diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md index 0c63f05f09e0..27b28d66358e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md @@ -1,14 +1,118 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2025-03-03) -### Features Added +- Azure Resource Manager DataFactory client library for Java. This package contains Microsoft Azure SDK for DataFactory Management SDK. The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. Package tag package-2018-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.Factories` was modified + +* `list(com.azure.core.util.Context)` was removed +* `list()` was removed + +### Features Added + +* `models.GreenplumAuthenticationType` was added -### Other Changes +* `models.TeradataSink` was added + +* `models.OracleAuthenticationType` was added + +* `models.TeradataImportCommand` was added + +#### `models.GreenplumLinkedService` was modified + +* `withSslMode(java.lang.Object)` was added +* `withPassword(models.SecretBase)` was added +* `commandTimeout()` was added +* `database()` was added +* `password()` was added +* `host()` was added +* `withAuthenticationType(models.GreenplumAuthenticationType)` was added +* `withCommandTimeout(java.lang.Object)` was added +* `authenticationType()` was added +* `port()` was added +* `withConnectionTimeout(java.lang.Object)` was added +* `username()` was added +* `withDatabase(java.lang.Object)` was added +* `withUsername(java.lang.Object)` was added +* `withPort(java.lang.Object)` was added +* `withHost(java.lang.Object)` was added +* `connectionTimeout()` was added +* `sslMode()` was added + +#### `models.TeradataLinkedService` was modified + +* `httpsPortNumber()` was added +* `sslMode()` was added +* `withCharacterSet(java.lang.Object)` was added +* `withHttpsPortNumber(java.lang.Object)` was added +* `withPortNumber(java.lang.Object)` was added +* `withSslMode(java.lang.Object)` was added +* `portNumber()` was added +* `withMaxRespSize(java.lang.Object)` was added +* `maxRespSize()` was added +* `characterSet()` was added +* `withUseDataEncryption(java.lang.Object)` was added +* `useDataEncryption()` was added + +#### `models.TypeConversionSettings` was modified + +* `withDateFormat(java.lang.Object)` was added +* `dateFormat()` was added +* `timeFormat()` was added +* `withTimeFormat(java.lang.Object)` was added + +#### `models.AzurePostgreSqlLinkedService` was modified + +* `withServicePrincipalEmbeddedCert(models.SecretBase)` was added +* `servicePrincipalKey()` was added +* `withServicePrincipalEmbeddedCertPassword(models.SecretBase)` was added +* `withServicePrincipalKey(models.SecretBase)` was added +* `servicePrincipalEmbeddedCert()` was added +* `withCredential(models.CredentialReference)` was added +* `servicePrincipalId()` was added +* `servicePrincipalEmbeddedCertPassword()` was added +* `azureCloudType()` was added +* `withTenant(java.lang.Object)` was added +* `withServicePrincipalCredentialType(java.lang.Object)` was added +* `credential()` was added +* `tenant()` was added +* `withAzureCloudType(java.lang.Object)` was added +* `withServicePrincipalId(java.lang.Object)` was added +* `servicePrincipalCredentialType()` was added + +#### `models.OracleLinkedService` was modified + +* `withSupportV1DataTypes(java.lang.Object)` was added +* `enableBulkLoad()` was added +* `withCryptoChecksumClient(java.lang.Object)` was added +* `withServer(java.lang.Object)` was added +* `encryptionClient()` was added +* `cryptoChecksumClient()` was added +* `withInitialLobFetchSize(java.lang.Object)` was added +* `fetchSize()` was added +* `withAuthenticationType(models.OracleAuthenticationType)` was added +* `withEncryptionClient(java.lang.Object)` was added +* `initializationString()` was added +* `supportV1DataTypes()` was added +* `initialLobFetchSize()` was added +* `statementCacheSize()` was added +* `fetchTswtzAsTimestamp()` was added +* `withInitializationString(java.lang.Object)` was added +* `withEnableBulkLoad(java.lang.Object)` was added +* `withEncryptionTypesClient(java.lang.Object)` was added +* `username()` was added +* `encryptionTypesClient()` was added +* `authenticationType()` was added +* `withFetchTswtzAsTimestamp(java.lang.Object)` was added +* `server()` was added +* `withCryptoChecksumTypesClient(java.lang.Object)` was added +* `withStatementCacheSize(java.lang.Object)` was added +* `cryptoChecksumTypesClient()` was added +* `withFetchSize(java.lang.Object)` was added +* `withUsername(java.lang.Object)` was added ## 1.0.0 (2024-12-16) diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/README.md b/sdk/datafactory/azure-resourcemanager-datafactory/README.md index 233595584bb1..579e1c589a6f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/README.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-datafactory - 1.0.0 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ DataFactoryManager manager = DataFactoryManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -73,19 +73,19 @@ See [API design][design] for general introduction on design and key concepts on ```java // storage account StorageAccount storageAccount = storageManager.storageAccounts() - .define(STORAGE_ACCOUNT) + .define(storageAccountName) .withRegion(REGION) .withExistingResourceGroup(resourceGroup) .create(); final String storageAccountKey = storageAccount.getKeys().iterator().next().value(); final String connectionString - = getStorageConnectionString(STORAGE_ACCOUNT, storageAccountKey, storageManager.environment()); + = getStorageConnectionString(storageAccountName, storageAccountKey, storageManager.environment()); // container final String containerName = "adf"; storageManager.blobContainers() .defineContainer(containerName) - .withExistingStorageAccount(resourceGroup, STORAGE_ACCOUNT) + .withExistingStorageAccount(resourceGroup, storageAccountName) .withPublicAccess(PublicAccess.NONE) .create(); @@ -193,5 +193,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ - - diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md index 1c1430792680..3e207c9051eb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md @@ -58,7 +58,6 @@ - [GetByResourceGroup](#factories_getbyresourcegroup) - [GetDataPlaneAccess](#factories_getdataplaneaccess) - [GetGitHubAccessToken](#factories_getgithubaccesstoken) -- [List](#factories_list) - [ListByResourceGroup](#factories_listbyresourcegroup) - [Update](#factories_update) @@ -1330,28 +1329,6 @@ public final class FactoriesGetGitHubAccessTokenSamples { } ``` -### Factories_List - -```java -/** - * Samples for Factories List. - */ -public final class FactoriesListSamples { - /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json - */ - /** - * Sample code: Factories_List. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().list(com.azure.core.util.Context.NONE); - } -} -``` - ### Factories_ListByResourceGroup ```java diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml index e018dddf1818..5373297d02bf 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml +++ b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml @@ -45,6 +45,7 @@ UTF-8 0 0 + true false diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java index 38e432f1bf78..2f8d64c284ec 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java @@ -22,6 +22,7 @@ import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient; import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl; @@ -75,6 +76,7 @@ import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; @@ -182,6 +184,9 @@ public static Configurable configure() { */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + private static final String SDK_VERSION = "version"; + private static final Map PROPERTIES + = CoreUtils.getProperties("azure-resourcemanager-datafactory.properties"); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -289,12 +294,14 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile Objects.requireNonNull(credential, "'credential' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + StringBuilder userAgentBuilder = new StringBuilder(); userAgentBuilder.append("azsdk-java") .append("-") .append("com.azure.resourcemanager.datafactory") .append("/") - .append("1.0.0"); + .append(clientVersion); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java index 9011f27d1377..e49d82b02376 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java @@ -21,28 +21,6 @@ * An instance of this class provides access to all the operations defined in FactoriesClient. */ public interface FactoriesClient { - /** - * Lists factories under the specified subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - /** * Updates a factory's repo information. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java index 6855193b6443..01ecf17ad281 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java @@ -10,6 +10,8 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; +import com.azure.resourcemanager.datafactory.models.CredentialReference; +import com.azure.resourcemanager.datafactory.models.SecretBase; import java.io.IOException; /** @@ -93,6 +95,53 @@ public final class AzurePostgreSqlLinkedServiceTypeProperties */ private String encryptedCredential; + /* + * The ID of the service principal used to authenticate against Azure Database for PostgreSQL Flexible server. Type: + * string (or Expression with resultType string). + */ + private Object servicePrincipalId; + + /* + * The key of the service principal used to authenticate against Azure Database for PostgreSQL Flexible server. + */ + private SecretBase servicePrincipalKey; + + /* + * The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for + * key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string). + */ + private Object servicePrincipalCredentialType; + + /* + * Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or + * Expression with resultType string). + */ + private SecretBase servicePrincipalEmbeddedCert; + + /* + * Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal + * authentication. Type: string (or Expression with resultType string). + */ + private SecretBase servicePrincipalEmbeddedCertPassword; + + /* + * The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType + * string). + */ + private Object tenant; + + /* + * Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, + * AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + private Object azureCloudType; + + /* + * The credential reference containing authentication information. + */ + private CredentialReference credential; + /** * Creates an instance of AzurePostgreSqlLinkedServiceTypeProperties class. */ @@ -395,6 +444,189 @@ public AzurePostgreSqlLinkedServiceTypeProperties withEncryptedCredential(String return this; } + /** + * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Database + * for PostgreSQL Flexible server. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value. + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Database + * for PostgreSQL Flexible server. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure + * Database for PostgreSQL Flexible server. + * + * @return the servicePrincipalKey value. + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure + * Database for PostgreSQL Flexible server. + * + * @param servicePrincipalKey the servicePrincipalKey value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @return the servicePrincipalCredentialType value. + */ + public Object servicePrincipalCredentialType() { + return this.servicePrincipalCredentialType; + } + + /** + * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties + withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { + this.servicePrincipalCredentialType = servicePrincipalCredentialType; + return this; + } + + /** + * Get the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application + * registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalEmbeddedCert value. + */ + public SecretBase servicePrincipalEmbeddedCert() { + return this.servicePrincipalEmbeddedCert; + } + + /** + * Set the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application + * registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @param servicePrincipalEmbeddedCert the servicePrincipalEmbeddedCert value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties + withServicePrincipalEmbeddedCert(SecretBase servicePrincipalEmbeddedCert) { + this.servicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert; + return this; + } + + /** + * Get the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your + * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with + * resultType string). + * + * @return the servicePrincipalEmbeddedCertPassword value. + */ + public SecretBase servicePrincipalEmbeddedCertPassword() { + return this.servicePrincipalEmbeddedCertPassword; + } + + /** + * Set the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your + * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with + * resultType string). + * + * @param servicePrincipalEmbeddedCertPassword the servicePrincipalEmbeddedCertPassword value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties + withServicePrincipalEmbeddedCertPassword(SecretBase servicePrincipalEmbeddedCertPassword) { + this.servicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword; + return this; + } + + /** + * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @return the tenant value. + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @param tenant the tenant value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are + * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. + * Type: string (or Expression with resultType string). + * + * @return the azureCloudType value. + */ + public Object azureCloudType() { + return this.azureCloudType; + } + + /** + * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are + * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. + * Type: string (or Expression with resultType string). + * + * @param azureCloudType the azureCloudType value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { + this.azureCloudType = azureCloudType; + return this; + } + + /** + * Get the credential property: The credential reference containing authentication information. + * + * @return the credential value. + */ + public CredentialReference credential() { + return this.credential; + } + + /** + * Set the credential property: The credential reference containing authentication information. + * + * @param credential the credential value to set. + * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. + */ + public AzurePostgreSqlLinkedServiceTypeProperties withCredential(CredentialReference credential) { + this.credential = credential; + return this; + } + /** * Validates the instance. * @@ -404,6 +636,18 @@ public void validate() { if (password() != null) { password().validate(); } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (servicePrincipalEmbeddedCert() != null) { + servicePrincipalEmbeddedCert().validate(); + } + if (servicePrincipalEmbeddedCertPassword() != null) { + servicePrincipalEmbeddedCertPassword().validate(); + } + if (credential() != null) { + credential().validate(); + } } /** @@ -426,6 +670,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeUntypedField("encoding", this.encoding); jsonWriter.writeJsonField("password", this.password); jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential); + jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId); + jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey); + jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType); + jsonWriter.writeJsonField("servicePrincipalEmbeddedCert", this.servicePrincipalEmbeddedCert); + jsonWriter.writeJsonField("servicePrincipalEmbeddedCertPassword", this.servicePrincipalEmbeddedCertPassword); + jsonWriter.writeUntypedField("tenant", this.tenant); + jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType); + jsonWriter.writeJsonField("credential", this.credential); return jsonWriter.writeEndObject(); } @@ -475,6 +727,27 @@ public static AzurePostgreSqlLinkedServiceTypeProperties fromJson(JsonReader jso = AzureKeyVaultSecretReference.fromJson(reader); } else if ("encryptedCredential".equals(fieldName)) { deserializedAzurePostgreSqlLinkedServiceTypeProperties.encryptedCredential = reader.getString(); + } else if ("servicePrincipalId".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped(); + } else if ("servicePrincipalKey".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.servicePrincipalKey + = SecretBase.fromJson(reader); + } else if ("servicePrincipalCredentialType".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.servicePrincipalCredentialType + = reader.readUntyped(); + } else if ("servicePrincipalEmbeddedCert".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.servicePrincipalEmbeddedCert + = SecretBase.fromJson(reader); + } else if ("servicePrincipalEmbeddedCertPassword".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.servicePrincipalEmbeddedCertPassword + = SecretBase.fromJson(reader); + } else if ("tenant".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.tenant = reader.readUntyped(); + } else if ("azureCloudType".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.azureCloudType = reader.readUntyped(); + } else if ("credential".equals(fieldName)) { + deserializedAzurePostgreSqlLinkedServiceTypeProperties.credential + = CredentialReference.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java index bf46567980d3..05e45da0092a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java @@ -10,6 +10,8 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; +import com.azure.resourcemanager.datafactory.models.GreenplumAuthenticationType; +import com.azure.resourcemanager.datafactory.models.SecretBase; import java.io.IOException; /** @@ -34,6 +36,54 @@ public final class GreenplumLinkedServiceTypeProperties */ private String encryptedCredential; + /* + * The authentication type to use. Type: string. Only used for V2. + */ + private GreenplumAuthenticationType authenticationType; + + /* + * Host name for connection. Type: string. Only used for V2. + */ + private Object host; + + /* + * The port for the connection. Type: integer. Only used for V2. + */ + private Object port; + + /* + * Username for authentication. Type: string. Only used for V2. + */ + private Object username; + + /* + * Database name for connection. Type: string. Only used for V2. + */ + private Object database; + + /* + * SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. + * Type: integer. Only used for V2. + */ + private Object sslMode; + + /* + * The time to wait (in seconds) while trying to establish a connection before terminating the attempt and + * generating an error. Type: integer. Only used for V2. + */ + private Object connectionTimeout; + + /* + * The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an + * error. Set to zero for infinity. Type: integer. Only used for V2. + */ + private Object commandTimeout; + + /* + * The Azure key vault secret reference of password in connection string. Type: string. Only used for V2. + */ + private SecretBase password; + /** * Creates an instance of GreenplumLinkedServiceTypeProperties class. */ @@ -104,6 +154,194 @@ public GreenplumLinkedServiceTypeProperties withEncryptedCredential(String encry return this; } + /** + * Get the authenticationType property: The authentication type to use. Type: string. Only used for V2. + * + * @return the authenticationType value. + */ + public GreenplumAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType property: The authentication type to use. Type: string. Only used for V2. + * + * @param authenticationType the authenticationType value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withAuthenticationType(GreenplumAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the host property: Host name for connection. Type: string. Only used for V2. + * + * @return the host value. + */ + public Object host() { + return this.host; + } + + /** + * Set the host property: Host name for connection. Type: string. Only used for V2. + * + * @param host the host value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port property: The port for the connection. Type: integer. Only used for V2. + * + * @return the port value. + */ + public Object port() { + return this.port; + } + + /** + * Set the port property: The port for the connection. Type: integer. Only used for V2. + * + * @param port the port value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the username property: Username for authentication. Type: string. Only used for V2. + * + * @return the username value. + */ + public Object username() { + return this.username; + } + + /** + * Set the username property: Username for authentication. Type: string. Only used for V2. + * + * @param username the username value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the database property: Database name for connection. Type: string. Only used for V2. + * + * @return the database value. + */ + public Object database() { + return this.database; + } + + /** + * Set the database property: Database name for connection. Type: string. Only used for V2. + * + * @param database the database value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: + * verify-ca, 5: verify-full. Type: integer. Only used for V2. + * + * @return the sslMode value. + */ + public Object sslMode() { + return this.sslMode; + } + + /** + * Set the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: + * verify-ca, 5: verify-full. Type: integer. Only used for V2. + * + * @param sslMode the sslMode value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withSslMode(Object sslMode) { + this.sslMode = sslMode; + return this; + } + + /** + * Get the connectionTimeout property: The time to wait (in seconds) while trying to establish a connection before + * terminating the attempt and generating an error. Type: integer. Only used for V2. + * + * @return the connectionTimeout value. + */ + public Object connectionTimeout() { + return this.connectionTimeout; + } + + /** + * Set the connectionTimeout property: The time to wait (in seconds) while trying to establish a connection before + * terminating the attempt and generating an error. Type: integer. Only used for V2. + * + * @param connectionTimeout the connectionTimeout value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withConnectionTimeout(Object connectionTimeout) { + this.connectionTimeout = connectionTimeout; + return this; + } + + /** + * Get the commandTimeout property: The time to wait (in seconds) while trying to execute a command before + * terminating the attempt and generating an error. Set to zero for infinity. Type: integer. Only used for V2. + * + * @return the commandTimeout value. + */ + public Object commandTimeout() { + return this.commandTimeout; + } + + /** + * Set the commandTimeout property: The time to wait (in seconds) while trying to execute a command before + * terminating the attempt and generating an error. Set to zero for infinity. Type: integer. Only used for V2. + * + * @param commandTimeout the commandTimeout value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withCommandTimeout(Object commandTimeout) { + this.commandTimeout = commandTimeout; + return this; + } + + /** + * Get the password property: The Azure key vault secret reference of password in connection string. Type: string. + * Only used for V2. + * + * @return the password value. + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password property: The Azure key vault secret reference of password in connection string. Type: string. + * Only used for V2. + * + * @param password the password value to set. + * @return the GreenplumLinkedServiceTypeProperties object itself. + */ + public GreenplumLinkedServiceTypeProperties withPassword(SecretBase password) { + this.password = password; + return this; + } + /** * Validates the instance. * @@ -113,6 +351,9 @@ public void validate() { if (pwd() != null) { pwd().validate(); } + if (password() != null) { + password().validate(); + } } /** @@ -124,6 +365,16 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeUntypedField("connectionString", this.connectionString); jsonWriter.writeJsonField("pwd", this.pwd); jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential); + jsonWriter.writeStringField("authenticationType", + this.authenticationType == null ? null : this.authenticationType.toString()); + jsonWriter.writeUntypedField("host", this.host); + jsonWriter.writeUntypedField("port", this.port); + jsonWriter.writeUntypedField("username", this.username); + jsonWriter.writeUntypedField("database", this.database); + jsonWriter.writeUntypedField("sslMode", this.sslMode); + jsonWriter.writeUntypedField("connectionTimeout", this.connectionTimeout); + jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout); + jsonWriter.writeJsonField("password", this.password); return jsonWriter.writeEndObject(); } @@ -150,6 +401,25 @@ public static GreenplumLinkedServiceTypeProperties fromJson(JsonReader jsonReade = AzureKeyVaultSecretReference.fromJson(reader); } else if ("encryptedCredential".equals(fieldName)) { deserializedGreenplumLinkedServiceTypeProperties.encryptedCredential = reader.getString(); + } else if ("authenticationType".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.authenticationType + = GreenplumAuthenticationType.fromString(reader.getString()); + } else if ("host".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.host = reader.readUntyped(); + } else if ("port".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.port = reader.readUntyped(); + } else if ("username".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.username = reader.readUntyped(); + } else if ("database".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.database = reader.readUntyped(); + } else if ("sslMode".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.sslMode = reader.readUntyped(); + } else if ("connectionTimeout".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.connectionTimeout = reader.readUntyped(); + } else if ("commandTimeout".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.commandTimeout = reader.readUntyped(); + } else if ("password".equals(fieldName)) { + deserializedGreenplumLinkedServiceTypeProperties.password = SecretBase.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java index 599e35232179..367da2aba9a4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java @@ -13,7 +13,7 @@ import java.io.IOException; /** - * Microsoft Fabric LakeHouse linked service properties. + * Microsoft Fabric Lakehouse linked service properties. */ @Fluent public final class LakeHouseLinkedServiceTypeProperties @@ -24,18 +24,18 @@ public final class LakeHouseLinkedServiceTypeProperties private Object workspaceId; /* - * The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with resultType string). + * The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with resultType string). */ private Object artifactId; /* - * The ID of the application used to authenticate against Microsoft Fabric LakeHouse. Type: string (or Expression + * The ID of the application used to authenticate against Microsoft Fabric Lakehouse. Type: string (or Expression * with resultType string). */ private Object servicePrincipalId; /* - * The Key of the application used to authenticate against Microsoft Fabric LakeHouse. + * The Key of the application used to authenticate against Microsoft Fabric Lakehouse. */ private SecretBase servicePrincipalKey; @@ -94,7 +94,7 @@ public LakeHouseLinkedServiceTypeProperties withWorkspaceId(Object workspaceId) } /** - * Get the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * Get the artifactId property: The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with * resultType string). * * @return the artifactId value. @@ -104,7 +104,7 @@ public Object artifactId() { } /** - * Set the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * Set the artifactId property: The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with * resultType string). * * @param artifactId the artifactId value to set. @@ -117,7 +117,7 @@ public LakeHouseLinkedServiceTypeProperties withArtifactId(Object artifactId) { /** * Get the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric - * LakeHouse. Type: string (or Expression with resultType string). + * Lakehouse. Type: string (or Expression with resultType string). * * @return the servicePrincipalId value. */ @@ -127,7 +127,7 @@ public Object servicePrincipalId() { /** * Set the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric - * LakeHouse. Type: string (or Expression with resultType string). + * Lakehouse. Type: string (or Expression with resultType string). * * @param servicePrincipalId the servicePrincipalId value to set. * @return the LakeHouseLinkedServiceTypeProperties object itself. @@ -139,7 +139,7 @@ public LakeHouseLinkedServiceTypeProperties withServicePrincipalId(Object servic /** * Get the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric - * LakeHouse. + * Lakehouse. * * @return the servicePrincipalKey value. */ @@ -149,7 +149,7 @@ public SecretBase servicePrincipalKey() { /** * Set the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric - * LakeHouse. + * Lakehouse. * * @param servicePrincipalKey the servicePrincipalKey value to set. * @return the LakeHouseLinkedServiceTypeProperties object itself. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java index d688a930fa50..81a6c059d67f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java @@ -12,18 +12,18 @@ import java.io.IOException; /** - * Microsoft Fabric LakeHouse Table dataset properties. + * Microsoft Fabric Lakehouse Table dataset properties. */ @Fluent public final class LakeHouseTableDatasetTypeProperties implements JsonSerializable { /* - * The schema name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType string). + * The schema name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with resultType string). */ private Object schema; /* - * The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType string). + * The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with resultType string). */ private Object table; @@ -34,7 +34,7 @@ public LakeHouseTableDatasetTypeProperties() { } /** - * Get the schema property: The schema name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with + * Get the schema property: The schema name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with * resultType string). * * @return the schema value. @@ -44,7 +44,7 @@ public Object schema() { } /** - * Set the schema property: The schema name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with + * Set the schema property: The schema name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with * resultType string). * * @param schema the schema value to set. @@ -56,7 +56,7 @@ public LakeHouseTableDatasetTypeProperties withSchema(Object schema) { } /** - * Get the table property: The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType + * Get the table property: The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with resultType * string). * * @return the table value. @@ -66,7 +66,7 @@ public Object table() { } /** - * Set the table property: The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType + * Set the table property: The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with resultType * string). * * @param table the table value to set. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java index 5963cc23f860..7197d2456b76 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java @@ -5,12 +5,12 @@ package com.azure.resourcemanager.datafactory.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; +import com.azure.resourcemanager.datafactory.models.OracleAuthenticationType; import java.io.IOException; /** @@ -19,15 +19,100 @@ @Fluent public final class OracleLinkedServiceTypeProperties implements JsonSerializable { /* - * The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0. */ private Object connectionString; + /* + * The location of Oracle database you want to connect to, the supported forms include connector descriptor, Easy + * Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: string. Only used for Version + * 2.0. + */ + private Object server; + + /* + * Authentication type for connecting to the Oracle database. Only used for Version 2.0. + */ + private OracleAuthenticationType authenticationType; + + /* + * The Oracle database username. Type: string. Only used for Version 2.0. + */ + private Object username; + /* * The Azure key vault secret reference of password in connection string. */ private AzureKeyVaultSecretReference password; + /* + * Specifies the encryption client behavior. Supported values are accepted, rejected, requested or required, default + * value is required. Type: string. Only used for Version 2.0. + */ + private Object encryptionClient; + + /* + * Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, AES256, 3DES112, + * 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + */ + private Object encryptionTypesClient; + + /* + * Specifies the desired data integrity behavior when this client connects to a server. Supported values are + * accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + */ + private Object cryptoChecksumClient; + + /* + * Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, SHA256, SHA384, SHA512, + * default value is (SHA512). Type: string. Only used for Version 2.0. + */ + private Object cryptoChecksumTypesClient; + + /* + * Specifies the amount that the source initially fetches for LOB columns, default value is 0. Type: integer. Only + * used for Version 2.0. + */ + private Object initialLobFetchSize; + + /* + * Specifies the number of bytes that the driver allocates to fetch the data in one database round-trip, default + * value is 10485760. Type: integer. Only used for Version 2.0. + */ + private Object fetchSize; + + /* + * Specifies the number of cursors or statements to be cached for each database connection, default value is 0. + * Type: integer. Only used for Version 2.0. + */ + private Object statementCacheSize; + + /* + * Specifies a command that is issued immediately after connecting to the database to manage session settings. Type: + * string. Only used for Version 2.0. + */ + private Object initializationString; + + /* + * Specifies whether to use bulk copy or batch insert when loading data into the database, default value is true. + * Type: boolean. Only used for Version 2.0. + */ + private Object enableBulkLoad; + + /* + * Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you want to keep + * backward compatibility with Version 1.0's data type mappings, default value is false. Type: boolean. Only used + * for Version 2.0. + */ + private Object supportV1DataTypes; + + /* + * Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or + * string. This setting is ignored if supportV1DataTypes is not true, default value is true. Type: boolean. Only + * used for Version 2.0. + */ + private Object fetchTswtzAsTimestamp; + /* * The encrypted credential used for authentication. Credentials are encrypted using the integration runtime * credential manager. Type: string. @@ -42,7 +127,7 @@ public OracleLinkedServiceTypeProperties() { /** * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @return the connectionString value. */ @@ -52,7 +137,7 @@ public Object connectionString() { /** * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @param connectionString the connectionString value to set. * @return the OracleLinkedServiceTypeProperties object itself. @@ -62,6 +147,72 @@ public OracleLinkedServiceTypeProperties withConnectionString(Object connectionS return this; } + /** + * Get the server property: The location of Oracle database you want to connect to, the supported forms include + * connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: + * string. Only used for Version 2.0. + * + * @return the server value. + */ + public Object server() { + return this.server; + } + + /** + * Set the server property: The location of Oracle database you want to connect to, the supported forms include + * connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: + * string. Only used for Version 2.0. + * + * @param server the server value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the authenticationType property: Authentication type for connecting to the Oracle database. Only used for + * Version 2.0. + * + * @return the authenticationType value. + */ + public OracleAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType property: Authentication type for connecting to the Oracle database. Only used for + * Version 2.0. + * + * @param authenticationType the authenticationType value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withAuthenticationType(OracleAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username property: The Oracle database username. Type: string. Only used for Version 2.0. + * + * @return the username value. + */ + public Object username() { + return this.username; + } + + /** + * Set the username property: The Oracle database username. Type: string. Only used for Version 2.0. + * + * @param username the username value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withUsername(Object username) { + this.username = username; + return this; + } + /** * Get the password property: The Azure key vault secret reference of password in connection string. * @@ -82,6 +233,256 @@ public OracleLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReferen return this; } + /** + * Get the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @return the encryptionClient value. + */ + public Object encryptionClient() { + return this.encryptionClient; + } + + /** + * Set the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @param encryptionClient the encryptionClient value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withEncryptionClient(Object encryptionClient) { + this.encryptionClient = encryptionClient; + return this; + } + + /** + * Get the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @return the encryptionTypesClient value. + */ + public Object encryptionTypesClient() { + return this.encryptionTypesClient; + } + + /** + * Set the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @param encryptionTypesClient the encryptionTypesClient value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withEncryptionTypesClient(Object encryptionTypesClient) { + this.encryptionTypesClient = encryptionTypesClient; + return this; + } + + /** + * Get the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @return the cryptoChecksumClient value. + */ + public Object cryptoChecksumClient() { + return this.cryptoChecksumClient; + } + + /** + * Set the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @param cryptoChecksumClient the cryptoChecksumClient value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withCryptoChecksumClient(Object cryptoChecksumClient) { + this.cryptoChecksumClient = cryptoChecksumClient; + return this; + } + + /** + * Get the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @return the cryptoChecksumTypesClient value. + */ + public Object cryptoChecksumTypesClient() { + return this.cryptoChecksumTypesClient; + } + + /** + * Set the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @param cryptoChecksumTypesClient the cryptoChecksumTypesClient value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withCryptoChecksumTypesClient(Object cryptoChecksumTypesClient) { + this.cryptoChecksumTypesClient = cryptoChecksumTypesClient; + return this; + } + + /** + * Get the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the initialLobFetchSize value. + */ + public Object initialLobFetchSize() { + return this.initialLobFetchSize; + } + + /** + * Set the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @param initialLobFetchSize the initialLobFetchSize value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withInitialLobFetchSize(Object initialLobFetchSize) { + this.initialLobFetchSize = initialLobFetchSize; + return this; + } + + /** + * Get the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @return the fetchSize value. + */ + public Object fetchSize() { + return this.fetchSize; + } + + /** + * Set the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @param fetchSize the fetchSize value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withFetchSize(Object fetchSize) { + this.fetchSize = fetchSize; + return this; + } + + /** + * Get the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the statementCacheSize value. + */ + public Object statementCacheSize() { + return this.statementCacheSize; + } + + /** + * Set the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @param statementCacheSize the statementCacheSize value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withStatementCacheSize(Object statementCacheSize) { + this.statementCacheSize = statementCacheSize; + return this; + } + + /** + * Get the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @return the initializationString value. + */ + public Object initializationString() { + return this.initializationString; + } + + /** + * Set the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @param initializationString the initializationString value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withInitializationString(Object initializationString) { + this.initializationString = initializationString; + return this; + } + + /** + * Get the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @return the enableBulkLoad value. + */ + public Object enableBulkLoad() { + return this.enableBulkLoad; + } + + /** + * Set the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @param enableBulkLoad the enableBulkLoad value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withEnableBulkLoad(Object enableBulkLoad) { + this.enableBulkLoad = enableBulkLoad; + return this; + } + + /** + * Get the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @return the supportV1DataTypes value. + */ + public Object supportV1DataTypes() { + return this.supportV1DataTypes; + } + + /** + * Set the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @param supportV1DataTypes the supportV1DataTypes value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withSupportV1DataTypes(Object supportV1DataTypes) { + this.supportV1DataTypes = supportV1DataTypes; + return this; + } + + /** + * Get the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @return the fetchTswtzAsTimestamp value. + */ + public Object fetchTswtzAsTimestamp() { + return this.fetchTswtzAsTimestamp; + } + + /** + * Set the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @param fetchTswtzAsTimestamp the fetchTswtzAsTimestamp value to set. + * @return the OracleLinkedServiceTypeProperties object itself. + */ + public OracleLinkedServiceTypeProperties withFetchTswtzAsTimestamp(Object fetchTswtzAsTimestamp) { + this.fetchTswtzAsTimestamp = fetchTswtzAsTimestamp; + return this; + } + /** * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted * using the integration runtime credential manager. Type: string. @@ -110,18 +511,11 @@ public OracleLinkedServiceTypeProperties withEncryptedCredential(String encrypte * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (connectionString() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property connectionString in model OracleLinkedServiceTypeProperties")); - } if (password() != null) { password().validate(); } } - private static final ClientLogger LOGGER = new ClientLogger(OracleLinkedServiceTypeProperties.class); - /** * {@inheritDoc} */ @@ -129,7 +523,22 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeUntypedField("connectionString", this.connectionString); + jsonWriter.writeUntypedField("server", this.server); + jsonWriter.writeStringField("authenticationType", + this.authenticationType == null ? null : this.authenticationType.toString()); + jsonWriter.writeUntypedField("username", this.username); jsonWriter.writeJsonField("password", this.password); + jsonWriter.writeUntypedField("encryptionClient", this.encryptionClient); + jsonWriter.writeUntypedField("encryptionTypesClient", this.encryptionTypesClient); + jsonWriter.writeUntypedField("cryptoChecksumClient", this.cryptoChecksumClient); + jsonWriter.writeUntypedField("cryptoChecksumTypesClient", this.cryptoChecksumTypesClient); + jsonWriter.writeUntypedField("initialLobFetchSize", this.initialLobFetchSize); + jsonWriter.writeUntypedField("fetchSize", this.fetchSize); + jsonWriter.writeUntypedField("statementCacheSize", this.statementCacheSize); + jsonWriter.writeUntypedField("initializationString", this.initializationString); + jsonWriter.writeUntypedField("enableBulkLoad", this.enableBulkLoad); + jsonWriter.writeUntypedField("supportV1DataTypes", this.supportV1DataTypes); + jsonWriter.writeUntypedField("fetchTswtzAsTimestamp", this.fetchTswtzAsTimestamp); jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential); return jsonWriter.writeEndObject(); } @@ -140,7 +549,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OracleLinkedServiceTypeProperties if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the OracleLinkedServiceTypeProperties. */ public static OracleLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException { @@ -153,9 +561,38 @@ public static OracleLinkedServiceTypeProperties fromJson(JsonReader jsonReader) if ("connectionString".equals(fieldName)) { deserializedOracleLinkedServiceTypeProperties.connectionString = reader.readUntyped(); + } else if ("server".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.server = reader.readUntyped(); + } else if ("authenticationType".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.authenticationType + = OracleAuthenticationType.fromString(reader.getString()); + } else if ("username".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.username = reader.readUntyped(); } else if ("password".equals(fieldName)) { deserializedOracleLinkedServiceTypeProperties.password = AzureKeyVaultSecretReference.fromJson(reader); + } else if ("encryptionClient".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.encryptionClient = reader.readUntyped(); + } else if ("encryptionTypesClient".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.encryptionTypesClient = reader.readUntyped(); + } else if ("cryptoChecksumClient".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.cryptoChecksumClient = reader.readUntyped(); + } else if ("cryptoChecksumTypesClient".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.cryptoChecksumTypesClient = reader.readUntyped(); + } else if ("initialLobFetchSize".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.initialLobFetchSize = reader.readUntyped(); + } else if ("fetchSize".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.fetchSize = reader.readUntyped(); + } else if ("statementCacheSize".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.statementCacheSize = reader.readUntyped(); + } else if ("initializationString".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.initializationString = reader.readUntyped(); + } else if ("enableBulkLoad".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.enableBulkLoad = reader.readUntyped(); + } else if ("supportV1DataTypes".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.supportV1DataTypes = reader.readUntyped(); + } else if ("fetchTswtzAsTimestamp".equals(fieldName)) { + deserializedOracleLinkedServiceTypeProperties.fetchTswtzAsTimestamp = reader.readUntyped(); } else if ("encryptedCredential".equals(fieldName)) { deserializedOracleLinkedServiceTypeProperties.encryptedCredential = reader.getString(); } else { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java index 8f8c48ff6af3..216ee147787e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java @@ -67,8 +67,8 @@ public final class SapOdpLinkedServiceTypeProperties implements JsonSerializable private Object messageServerService; /* - * SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). - * Type: string (or Expression with resultType string). + * SNC activation flag (Boolean) to access the SAP server where the table is located. Type: boolean (or Expression + * with resultType boolean). */ private Object sncMode; @@ -320,8 +320,8 @@ public SapOdpLinkedServiceTypeProperties withMessageServerService(Object message } /** - * Get the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Get the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @return the sncMode value. */ @@ -330,8 +330,8 @@ public Object sncMode() { } /** - * Set the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Set the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @param sncMode the sncMode value to set. * @return the SapOdpLinkedServiceTypeProperties object itself. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java index acbd0b1e401e..63e81d95b17c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java @@ -68,8 +68,8 @@ public final class SapTableLinkedServiceTypeProperties private Object messageServerService; /* - * SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). - * Type: string (or Expression with resultType string). + * SNC activation flag (Boolean) to access the SAP server where the table is located. Type: boolean (or Expression + * with resultType boolean). */ private Object sncMode; @@ -311,8 +311,8 @@ public SapTableLinkedServiceTypeProperties withMessageServerService(Object messa } /** - * Get the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Get the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @return the sncMode value. */ @@ -321,8 +321,8 @@ public Object sncMode() { } /** - * Set the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Set the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @param sncMode the sncMode value to set. * @return the SapTableLinkedServiceTypeProperties object itself. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java index 60a6b021041c..a80427922ade 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java @@ -20,7 +20,8 @@ public final class TeradataLinkedServiceTypeProperties implements JsonSerializable { /* - * Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only applied for + * version 1.0. */ private Object connectionString; @@ -44,6 +45,43 @@ public final class TeradataLinkedServiceTypeProperties */ private SecretBase password; + /* + * SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, “Require”, “Verify-CA”, + * “Verify-Full”. Default value is “Verify-Full”. Type: string (or Expression with resultType string). Only applied + * for version 2.0. + */ + private Object sslMode; + + /* + * The port numbers when connecting to server through non HTTPS/TLS connections. Type: integer (or Expression with + * resultType integer). Only used for V2. Only applied for version 2.0. + */ + private Object portNumber; + + /* + * The port numbers when connecting to server through HTTPS/TLS connections. Type: integer (or Expression with + * resultType integer). Only applied for version 2.0. + */ + private Object httpsPortNumber; + + /* + * Specifies whether to encrypt all communication with the Teradata database. Allowed values are 0 or 1. This + * setting will be ignored for HTTPS/TLS connections. Type: integer (or Expression with resultType integer). Only + * applied for version 2.0. + */ + private Object useDataEncryption; + + /* + * The character set to use for the connection. Type: string (or Expression with resultType string). Only applied + * for version 2.0. + */ + private Object characterSet; + + /* + * The maximum size of the response buffer for SQL requests, in bytes. Type: integer. Only applied for version 2.0. + */ + private Object maxRespSize; + /* * The encrypted credential used for authentication. Credentials are encrypted using the integration runtime * credential manager. Type: string. @@ -58,7 +96,7 @@ public TeradataLinkedServiceTypeProperties() { /** * Get the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only applied for version 1.0. * * @return the connectionString value. */ @@ -68,7 +106,7 @@ public Object connectionString() { /** * Set the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only applied for version 1.0. * * @param connectionString the connectionString value to set. * @return the TeradataLinkedServiceTypeProperties object itself. @@ -158,6 +196,142 @@ public TeradataLinkedServiceTypeProperties withPassword(SecretBase password) { return this; } + /** + * Get the sslMode property: SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, + * “Require”, “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @return the sslMode value. + */ + public Object sslMode() { + return this.sslMode; + } + + /** + * Set the sslMode property: SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, + * “Require”, “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @param sslMode the sslMode value to set. + * @return the TeradataLinkedServiceTypeProperties object itself. + */ + public TeradataLinkedServiceTypeProperties withSslMode(Object sslMode) { + this.sslMode = sslMode; + return this; + } + + /** + * Get the portNumber property: The port numbers when connecting to server through non HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only used for V2. Only applied for version 2.0. + * + * @return the portNumber value. + */ + public Object portNumber() { + return this.portNumber; + } + + /** + * Set the portNumber property: The port numbers when connecting to server through non HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only used for V2. Only applied for version 2.0. + * + * @param portNumber the portNumber value to set. + * @return the TeradataLinkedServiceTypeProperties object itself. + */ + public TeradataLinkedServiceTypeProperties withPortNumber(Object portNumber) { + this.portNumber = portNumber; + return this; + } + + /** + * Get the httpsPortNumber property: The port numbers when connecting to server through HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only applied for version 2.0. + * + * @return the httpsPortNumber value. + */ + public Object httpsPortNumber() { + return this.httpsPortNumber; + } + + /** + * Set the httpsPortNumber property: The port numbers when connecting to server through HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only applied for version 2.0. + * + * @param httpsPortNumber the httpsPortNumber value to set. + * @return the TeradataLinkedServiceTypeProperties object itself. + */ + public TeradataLinkedServiceTypeProperties withHttpsPortNumber(Object httpsPortNumber) { + this.httpsPortNumber = httpsPortNumber; + return this; + } + + /** + * Get the useDataEncryption property: Specifies whether to encrypt all communication with the Teradata database. + * Allowed values are 0 or 1. This setting will be ignored for HTTPS/TLS connections. Type: integer (or Expression + * with resultType integer). Only applied for version 2.0. + * + * @return the useDataEncryption value. + */ + public Object useDataEncryption() { + return this.useDataEncryption; + } + + /** + * Set the useDataEncryption property: Specifies whether to encrypt all communication with the Teradata database. + * Allowed values are 0 or 1. This setting will be ignored for HTTPS/TLS connections. Type: integer (or Expression + * with resultType integer). Only applied for version 2.0. + * + * @param useDataEncryption the useDataEncryption value to set. + * @return the TeradataLinkedServiceTypeProperties object itself. + */ + public TeradataLinkedServiceTypeProperties withUseDataEncryption(Object useDataEncryption) { + this.useDataEncryption = useDataEncryption; + return this; + } + + /** + * Get the characterSet property: The character set to use for the connection. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @return the characterSet value. + */ + public Object characterSet() { + return this.characterSet; + } + + /** + * Set the characterSet property: The character set to use for the connection. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @param characterSet the characterSet value to set. + * @return the TeradataLinkedServiceTypeProperties object itself. + */ + public TeradataLinkedServiceTypeProperties withCharacterSet(Object characterSet) { + this.characterSet = characterSet; + return this; + } + + /** + * Get the maxRespSize property: The maximum size of the response buffer for SQL requests, in bytes. Type: integer. + * Only applied for version 2.0. + * + * @return the maxRespSize value. + */ + public Object maxRespSize() { + return this.maxRespSize; + } + + /** + * Set the maxRespSize property: The maximum size of the response buffer for SQL requests, in bytes. Type: integer. + * Only applied for version 2.0. + * + * @param maxRespSize the maxRespSize value to set. + * @return the TeradataLinkedServiceTypeProperties object itself. + */ + public TeradataLinkedServiceTypeProperties withMaxRespSize(Object maxRespSize) { + this.maxRespSize = maxRespSize; + return this; + } + /** * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted * using the integration runtime credential manager. Type: string. @@ -203,6 +377,12 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.authenticationType == null ? null : this.authenticationType.toString()); jsonWriter.writeUntypedField("username", this.username); jsonWriter.writeJsonField("password", this.password); + jsonWriter.writeUntypedField("sslMode", this.sslMode); + jsonWriter.writeUntypedField("portNumber", this.portNumber); + jsonWriter.writeUntypedField("httpsPortNumber", this.httpsPortNumber); + jsonWriter.writeUntypedField("useDataEncryption", this.useDataEncryption); + jsonWriter.writeUntypedField("characterSet", this.characterSet); + jsonWriter.writeUntypedField("maxRespSize", this.maxRespSize); jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential); return jsonWriter.writeEndObject(); } @@ -234,6 +414,18 @@ public static TeradataLinkedServiceTypeProperties fromJson(JsonReader jsonReader deserializedTeradataLinkedServiceTypeProperties.username = reader.readUntyped(); } else if ("password".equals(fieldName)) { deserializedTeradataLinkedServiceTypeProperties.password = SecretBase.fromJson(reader); + } else if ("sslMode".equals(fieldName)) { + deserializedTeradataLinkedServiceTypeProperties.sslMode = reader.readUntyped(); + } else if ("portNumber".equals(fieldName)) { + deserializedTeradataLinkedServiceTypeProperties.portNumber = reader.readUntyped(); + } else if ("httpsPortNumber".equals(fieldName)) { + deserializedTeradataLinkedServiceTypeProperties.httpsPortNumber = reader.readUntyped(); + } else if ("useDataEncryption".equals(fieldName)) { + deserializedTeradataLinkedServiceTypeProperties.useDataEncryption = reader.readUntyped(); + } else if ("characterSet".equals(fieldName)) { + deserializedTeradataLinkedServiceTypeProperties.characterSet = reader.readUntyped(); + } else if ("maxRespSize".equals(fieldName)) { + deserializedTeradataLinkedServiceTypeProperties.maxRespSize = reader.readUntyped(); } else if ("encryptedCredential".equals(fieldName)) { deserializedTeradataLinkedServiceTypeProperties.encryptedCredential = reader.getString(); } else { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java index 7e099d9d2aa6..8a9e355dfdf4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java @@ -73,14 +73,6 @@ public final class FactoriesClientImpl implements FactoriesClient { @Host("{$host}") @ServiceInterface(name = "DataFactoryManagemen") public interface FactoriesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo") @ExpectedResponses({ 200 }) @@ -161,13 +153,6 @@ Mono> getDataPlaneAccess(@HostParam("$host") @QueryParam("api-version") String apiVersion, @BodyParam("application/json") UserAccessPolicy policy, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -177,113 +162,6 @@ Mono> listByResourceGroupNext( @HeaderParam("Accept") String accept, Context context); } - /** - * Lists factories under the specified subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), accept, - context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists factories under the specified subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists factories under the specified subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - /** * Updates a factory's repo information. * @@ -1329,57 +1207,6 @@ public AccessPolicyResponseInner getDataPlaneAccess(String resourceGroupName, St return getDataPlaneAccessWithResponse(resourceGroupName, factoryName, policy, Context.NONE).getValue(); } - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - /** * Get the next page of items. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesImpl.java index 39a4594f46fb..2b4174fd5b8a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesImpl.java @@ -34,16 +34,6 @@ public FactoriesImpl(FactoriesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FactoryImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FactoryImpl(inner1, this.manager())); - } - public Response configureFactoryRepoWithResponse(String locationId, FactoryRepoUpdate factoryRepoUpdate, Context context) { Response inner diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java index 512620279e78..12be1062aea2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonMwsLinkedServiceTypeProperties innerTypeProperties() { + AmazonMwsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java index 99c2a0397509..cf183e423579 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java index 5159525138e6..2eddd52b9c01 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonRdsForLinkedServiceTypeProperties innerTypeProperties() { + AmazonRdsForLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java index c3fd1789a903..8c5030cc56b2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonRdsForOracleTableDatasetTypeProperties innerTypeProperties() { + AmazonRdsForOracleTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java index 17c08c744cbb..115b1a4ff8c1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonRdsForSqlServerLinkedServiceTypeProperties innerTypeProperties() { + AmazonRdsForSqlServerLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java index da262679c069..ac64ece431d9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonRdsForSqlServerTableDatasetTypeProperties innerTypeProperties() { + AmazonRdsForSqlServerTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java index 664321c20a0c..cbe1a80a7245 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonRedshiftLinkedServiceTypeProperties innerTypeProperties() { + AmazonRedshiftLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java index 155e7ebc39ec..bf55dfde06d4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonRedshiftTableDatasetTypeProperties innerTypeProperties() { + AmazonRedshiftTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java index 2ee59166e1c2..1f582ca48e93 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonS3CompatibleLinkedServiceTypeProperties innerTypeProperties() { + AmazonS3CompatibleLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java index 0ebae08a48ab..0c7e573e9bfc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonS3DatasetTypeProperties innerTypeProperties() { + AmazonS3DatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java index 9207009e9e01..6a051e28dc6c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AmazonS3LinkedServiceTypeProperties innerTypeProperties() { + AmazonS3LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java index ac3b0fd777a5..e326ece895fd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AppFiguresLinkedServiceTypeProperties innerTypeProperties() { + AppFiguresLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java index 3cdbb8092dcc..051ecb4e49dd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AppendVariableActivityTypeProperties innerTypeProperties() { + AppendVariableActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java index 3fda079f7f73..58ba05daa5d0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AsanaLinkedServiceTypeProperties innerTypeProperties() { + AsanaLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java index 0bc77de2553c..2753e1172886 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AvroDatasetTypeProperties innerTypeProperties() { + AvroDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java index b6182b1f785d..a49bc86fcfcd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java @@ -48,7 +48,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzPowerShellSetupTypeProperties innerTypeProperties() { + AzPowerShellSetupTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java index c5e858da23aa..a0ca4701a3ad 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureBatchLinkedServiceTypeProperties innerTypeProperties() { + AzureBatchLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java index ffc4787586b9..9de9855d6dac 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureBlobDatasetTypeProperties innerTypeProperties() { + AzureBlobDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java index 89e0a7234b61..7ad25b76635e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureBlobFSDatasetTypeProperties innerTypeProperties() { + AzureBlobFSDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java index 3f05388c1b40..d1531e1a28fc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureBlobFSLinkedServiceTypeProperties innerTypeProperties() { + AzureBlobFSLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java index d4c861b8d6be..a5770487964f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureBlobStorageLinkedServiceTypeProperties innerTypeProperties() { + AzureBlobStorageLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java index 3c3cdc81913e..ca52f663862a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDataExplorerCommandActivityTypeProperties innerTypeProperties() { + AzureDataExplorerCommandActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java index b43bc692ca40..2061aa00c629 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDataExplorerLinkedServiceTypeProperties innerTypeProperties() { + AzureDataExplorerLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java index 3f0b6913d812..424fffc05b2e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDataExplorerDatasetTypeProperties innerTypeProperties() { + AzureDataExplorerDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java index c2f297c9efe9..7f20d41842b1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDataLakeAnalyticsLinkedServiceTypeProperties innerTypeProperties() { + AzureDataLakeAnalyticsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java index e43c42bc62b5..a3550443b1bf 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDataLakeStoreDatasetTypeProperties innerTypeProperties() { + AzureDataLakeStoreDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java index e591059b6960..f5813ebf1a14 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDataLakeStoreLinkedServiceTypeProperties innerTypeProperties() { + AzureDataLakeStoreLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java index 428216d7a8ff..2e638c3ebcc2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDatabricksDeltaLakeDatasetTypeProperties innerTypeProperties() { + AzureDatabricksDeltaLakeDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java index 9193468475c0..0b98a46c60ae 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDatabricksDetltaLakeLinkedServiceTypeProperties innerTypeProperties() { + AzureDatabricksDetltaLakeLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java index 48a52f60eaaf..dec5f7b455c9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureDatabricksLinkedServiceTypeProperties innerTypeProperties() { + AzureDatabricksLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java index 2d7665831b08..9eb5eda34fad 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureFileStorageLinkedServiceTypeProperties innerTypeProperties() { + AzureFileStorageLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java index e4dfcf36263a..88b2f832d9ce 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureFunctionActivityTypeProperties innerTypeProperties() { + AzureFunctionActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java index 0fa3d9d57691..91d0cc4e97c1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureFunctionLinkedServiceTypeProperties innerTypeProperties() { + AzureFunctionLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java index a98624549ef7..c0b7ead9202a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureKeyVaultLinkedServiceTypeProperties innerTypeProperties() { + AzureKeyVaultLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java index b5b6910ae7db..8f82d1effe95 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMLBatchExecutionActivityTypeProperties innerTypeProperties() { + AzureMLBatchExecutionActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java index 505c9855beaa..79a5d9049af5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMLExecutePipelineActivityTypeProperties innerTypeProperties() { + AzureMLExecutePipelineActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java index 3fe8daf7f633..88c64acce2af 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMLLinkedServiceTypeProperties innerTypeProperties() { + AzureMLLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java index 2aa50b3f6fb8..4f484fac8af0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMLServiceLinkedServiceTypeProperties innerTypeProperties() { + AzureMLServiceLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java index 9ba22cad6fa7..4f15a8f663e3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMLUpdateResourceActivityTypeProperties innerTypeProperties() { + AzureMLUpdateResourceActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java index 5cddb8d1fb02..338fc8116ffa 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMariaDBLinkedServiceTypeProperties innerTypeProperties() { + AzureMariaDBLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java index cb67a40c9bca..f181ab26fbaf 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java index 15fc6d298e10..8e78bae8081f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMySqlLinkedServiceTypeProperties innerTypeProperties() { + AzureMySqlLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java index 52611337cf03..d75d6dc17c39 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureMySqlTableDatasetTypeProperties innerTypeProperties() { + AzureMySqlTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java index 1e1387cf7768..4dcf779c8761 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzurePostgreSqlLinkedServiceTypeProperties innerTypeProperties() { + AzurePostgreSqlLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -439,6 +439,213 @@ public AzurePostgreSqlLinkedService withEncryptedCredential(String encryptedCred return this; } + /** + * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Database + * for PostgreSQL Flexible server. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value. + */ + public Object servicePrincipalId() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + } + + /** + * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Database + * for PostgreSQL Flexible server. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withServicePrincipalId(Object servicePrincipalId) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + return this; + } + + /** + * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure + * Database for PostgreSQL Flexible server. + * + * @return the servicePrincipalKey value. + */ + public SecretBase servicePrincipalKey() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + } + + /** + * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure + * Database for PostgreSQL Flexible server. + * + * @param servicePrincipalKey the servicePrincipalKey value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + return this; + } + + /** + * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @return the servicePrincipalCredentialType value. + */ + public Object servicePrincipalCredentialType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); + } + + /** + * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); + return this; + } + + /** + * Get the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application + * registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalEmbeddedCert value. + */ + public SecretBase servicePrincipalEmbeddedCert() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalEmbeddedCert(); + } + + /** + * Set the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application + * registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @param servicePrincipalEmbeddedCert the servicePrincipalEmbeddedCert value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withServicePrincipalEmbeddedCert(SecretBase servicePrincipalEmbeddedCert) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalEmbeddedCert(servicePrincipalEmbeddedCert); + return this; + } + + /** + * Get the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your + * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with + * resultType string). + * + * @return the servicePrincipalEmbeddedCertPassword value. + */ + public SecretBase servicePrincipalEmbeddedCertPassword() { + return this.innerTypeProperties() == null + ? null + : this.innerTypeProperties().servicePrincipalEmbeddedCertPassword(); + } + + /** + * Set the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your + * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with + * resultType string). + * + * @param servicePrincipalEmbeddedCertPassword the servicePrincipalEmbeddedCertPassword value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService + withServicePrincipalEmbeddedCertPassword(SecretBase servicePrincipalEmbeddedCertPassword) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalEmbeddedCertPassword(servicePrincipalEmbeddedCertPassword); + return this; + } + + /** + * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @return the tenant value. + */ + public Object tenant() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + } + + /** + * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @param tenant the tenant value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withTenant(Object tenant) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withTenant(tenant); + return this; + } + + /** + * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are + * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. + * Type: string (or Expression with resultType string). + * + * @return the azureCloudType value. + */ + public Object azureCloudType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + } + + /** + * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are + * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. + * Type: string (or Expression with resultType string). + * + * @param azureCloudType the azureCloudType value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withAzureCloudType(Object azureCloudType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withAzureCloudType(azureCloudType); + return this; + } + + /** + * Get the credential property: The credential reference containing authentication information. + * + * @return the credential value. + */ + public CredentialReference credential() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + } + + /** + * Set the credential property: The credential reference containing authentication information. + * + * @param credential the credential value to set. + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withCredential(CredentialReference credential) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withCredential(credential); + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java index 15cac3807381..f2d7dd92add0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzurePostgreSqlTableDatasetTypeProperties innerTypeProperties() { + AzurePostgreSqlTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java index 3d4a16adebc1..31d1ba1f5058 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSearchIndexDatasetTypeProperties innerTypeProperties() { + AzureSearchIndexDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java index 3aa3da094e8d..7f96ad124281 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSearchLinkedServiceTypeProperties innerTypeProperties() { + AzureSearchLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java index 12ea89b99099..5e0293972064 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSqlDWLinkedServiceTypeProperties innerTypeProperties() { + AzureSqlDWLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java index 5124974d8297..3e5d5e9b882f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSqlDWTableDatasetTypeProperties innerTypeProperties() { + AzureSqlDWTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java index 284a874ae70a..4ab5209d2272 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSqlDatabaseLinkedServiceTypeProperties innerTypeProperties() { + AzureSqlDatabaseLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java index f3445755b518..995b674dbfbe 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSqlMILinkedServiceTypeProperties innerTypeProperties() { + AzureSqlMILinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java index bfabc96c627a..0060fd081a72 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSqlMITableDatasetTypeProperties innerTypeProperties() { + AzureSqlMITableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java index 71d18e566ad1..f67c0343d510 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSqlTableDatasetTypeProperties innerTypeProperties() { + AzureSqlTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java index 25c7f42a7f34..6349944e06ad 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureStorageLinkedServiceTypeProperties innerTypeProperties() { + AzureStorageLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java index 2b4f9a1080cb..67a5b4fc7fd3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureSynapseArtifactsLinkedServiceTypeProperties innerTypeProperties() { + AzureSynapseArtifactsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java index 994ae32ca696..bc5334ba010b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureTableDatasetTypeProperties innerTypeProperties() { + AzureTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java index 3b4c417c23e7..0cc9f94760f7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private AzureTableStorageLinkedServiceTypeProperties innerTypeProperties() { + AzureTableStorageLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java index bc35c87d2eaf..92d4da56f120 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private BinaryDatasetTypeProperties innerTypeProperties() { + BinaryDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java index b169d238f34f..16880ce59820 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private BlobEventsTriggerTypeProperties innerTypeProperties() { + BlobEventsTriggerTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java index ad72556e7a71..3716d723d0cb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private BlobTriggerTypeProperties innerTypeProperties() { + BlobTriggerTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java index 05bac2a6b96a..5c687e60f468 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CassandraLinkedServiceTypeProperties innerTypeProperties() { + CassandraLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java index 90f52a2dc3b1..ad0de7d451d9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CassandraTableDatasetTypeProperties innerTypeProperties() { + CassandraTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java index 554d133b428a..15cb5bf9799b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java @@ -79,7 +79,7 @@ public ChainingTrigger withPipeline(TriggerPipelineReference pipeline) { * * @return the innerTypeProperties value. */ - private ChainingTriggerTypeProperties innerTypeProperties() { + ChainingTriggerTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java index 270a80016abe..5e64c91a8197 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java @@ -48,7 +48,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CmdkeySetupTypeProperties innerTypeProperties() { + CmdkeySetupTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java index f9be1bb37255..b9ea9e726ee0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CommonDataServiceForAppsEntityDatasetTypeProperties innerTypeProperties() { + CommonDataServiceForAppsEntityDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java index db466737d9db..372ca9e5390d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CommonDataServiceForAppsLinkedServiceTypeProperties innerTypeProperties() { + CommonDataServiceForAppsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java index 814dfcb7f605..c88c44d0dd49 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java @@ -48,7 +48,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private LicensedComponentSetupTypeProperties innerTypeProperties() { + LicensedComponentSetupTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java index fa93f869f709..9c86284a81cb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ConcurLinkedServiceTypeProperties innerTypeProperties() { + ConcurLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java index 9c7b83424701..b042382b748a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java index d51febf07754..e50c4ebb4199 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java @@ -61,7 +61,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CopyActivityTypeProperties innerTypeProperties() { + CopyActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java index a771d228461b..be3d889d2242 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java @@ -288,6 +288,8 @@ public static CopySink fromJson(JsonReader jsonReader) throws IOException { return OrcSink.fromJson(readerToUse.reset()); } else if ("RestSink".equals(discriminatorValue)) { return RestSink.fromJson(readerToUse.reset()); + } else if ("TeradataSink".equals(discriminatorValue)) { + return TeradataSink.fromJson(readerToUse.reset()); } else if ("AzurePostgreSqlSink".equals(discriminatorValue)) { return AzurePostgreSqlSink.fromJson(readerToUse.reset()); } else if ("AzureMySqlSink".equals(discriminatorValue)) { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java index 5198d707e3bb..2b92febec538 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CosmosDbLinkedServiceTypeProperties innerTypeProperties() { + CosmosDbLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java index 2a2ce3350173..af4e9d99973d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CosmosDbMongoDbApiCollectionDatasetTypeProperties innerTypeProperties() { + CosmosDbMongoDbApiCollectionDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java index b1a15b40f817..3b03d494f1f2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CosmosDbMongoDbApiLinkedServiceTypeProperties innerTypeProperties() { + CosmosDbMongoDbApiLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java index 2b6fd31fe90c..b9d12fde6d23 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CosmosDbSqlApiCollectionDatasetTypeProperties innerTypeProperties() { + CosmosDbSqlApiCollectionDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java index dd20990b21cb..1a47c8aae61b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CouchbaseLinkedServiceTypeProperties innerTypeProperties() { + CouchbaseLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java index 02d1e4791e8f..ed352196de98 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java index 3b59dea4867c..c60cd54d07ae 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CustomActivityTypeProperties innerTypeProperties() { + CustomActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java index 0a5c7c194b20..20da44bf3b82 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private CustomEventsTriggerTypeProperties innerTypeProperties() { + CustomEventsTriggerTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java index 36436a23643d..17bce2fe0163 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DataLakeAnalyticsUsqlActivityTypeProperties innerTypeProperties() { + DataLakeAnalyticsUsqlActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java index a85f1be7a21f..b9b1896946b1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DatabricksNotebookActivityTypeProperties innerTypeProperties() { + DatabricksNotebookActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java index 8f18dc9b8413..50f6828a024c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DatabricksSparkJarActivityTypeProperties innerTypeProperties() { + DatabricksSparkJarActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java index 2aa46e89d277..94d22e025d23 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DatabricksSparkPythonActivityTypeProperties innerTypeProperties() { + DatabricksSparkPythonActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Dataset.java index 7624d73bf4f4..109c61de9c32 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Dataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Dataset.java @@ -525,7 +525,7 @@ public static Dataset fromJson(JsonReader jsonReader) throws IOException { return SharePointOnlineListResourceDataset.fromJson(readerToUse.reset()); } else if ("AzureDatabricksDeltaLakeDataset".equals(discriminatorValue)) { return AzureDatabricksDeltaLakeDataset.fromJson(readerToUse.reset()); - } else if ("LakeHouseTable".equals(discriminatorValue)) { + } else if ("LakehouseTable".equals(discriminatorValue)) { return LakeHouseTableDataset.fromJson(readerToUse.reset()); } else if ("SalesforceV2Object".equals(discriminatorValue)) { return SalesforceV2ObjectDataset.fromJson(readerToUse.reset()); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataworldLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataworldLinkedService.java index a3b9dcad27a7..9d26e0a31de3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataworldLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataworldLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DataworldLinkedServiceTypeProperties innerTypeProperties() { + DataworldLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java index b50e73d804d1..819ae4087f86 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private Db2LinkedServiceTypeProperties innerTypeProperties() { + Db2LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java index ffa23e4eba47..cdd3c88c5a64 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private Db2TableDatasetTypeProperties innerTypeProperties() { + Db2TableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java index 5ee4f593c227..3226bdb80bed 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DeleteActivityTypeProperties innerTypeProperties() { + DeleteActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java index 57eca620cf80..58cd70675087 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DelimitedTextDatasetTypeProperties innerTypeProperties() { + DelimitedTextDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java index c2d699dee69b..42df7b0bc6fd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DocumentDbCollectionDatasetTypeProperties innerTypeProperties() { + DocumentDbCollectionDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java index 2ce35026cb02..81cfa5d5ad59 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DrillLinkedServiceTypeProperties innerTypeProperties() { + DrillLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java index e428cd0ba8e4..4f0dc0ea3c3f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DrillDatasetTypeProperties innerTypeProperties() { + DrillDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java index 3ad78cc70179..1c020b00dfca 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DynamicsAXLinkedServiceTypeProperties innerTypeProperties() { + DynamicsAXLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java index 5b30f15647b0..d5ee628da721 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DynamicsAXResourceDatasetTypeProperties innerTypeProperties() { + DynamicsAXResourceDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java index 2bd038cd70c1..44874f931261 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DynamicsCrmEntityDatasetTypeProperties innerTypeProperties() { + DynamicsCrmEntityDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java index 73a15f2b50ac..519f6e3ae705 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DynamicsCrmLinkedServiceTypeProperties innerTypeProperties() { + DynamicsCrmLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java index 4fa06c50cc2b..b0895dbdd473 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DynamicsEntityDatasetTypeProperties innerTypeProperties() { + DynamicsEntityDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java index 06787a50e406..f84af01a72eb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private DynamicsLinkedServiceTypeProperties innerTypeProperties() { + DynamicsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java index f9dc95aefdf7..4cf30c4b9099 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private EloquaLinkedServiceTypeProperties innerTypeProperties() { + EloquaLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java index 8a52e29799b8..8bc733c05c9e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java index 10ad6eaf9779..07ed50e851d3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java @@ -48,7 +48,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private EnvironmentVariableSetupTypeProperties innerTypeProperties() { + EnvironmentVariableSetupTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java index c9e845afe9ef..3ec890b01957 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ExcelDatasetTypeProperties innerTypeProperties() { + ExcelDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java index d549febf0f33..35e02afca0b6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ExecuteDataFlowActivityTypeProperties innerTypeProperties() { + ExecuteDataFlowActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java index 8938aaa02147..fb2de24294c8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java @@ -76,7 +76,7 @@ public ExecutePipelineActivity withPolicy(ExecutePipelineActivityPolicy policy) * * @return the innerTypeProperties value. */ - private ExecutePipelineActivityTypeProperties innerTypeProperties() { + ExecutePipelineActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java index 90591919e9ce..9cf8b2050243 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ExecuteSsisPackageActivityTypeProperties innerTypeProperties() { + ExecuteSsisPackageActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java index 0d07097e9c2c..49ccbb121913 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java @@ -56,7 +56,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ExecutePowerQueryActivityTypeProperties innerTypeProperties() { + ExecutePowerQueryActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java index f2f1126697a0..160e359cb728 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java @@ -12,26 +12,6 @@ * Resource collection API of Factories. */ public interface Factories { - /** - * Lists factories under the specified subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); - /** * Updates a factory's repo information. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FailActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FailActivity.java index e2c09986962f..e427c8422838 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FailActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FailActivity.java @@ -54,7 +54,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private FailActivityTypeProperties innerTypeProperties() { + FailActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java index c4ce2a11d58b..25c8f6c11c4b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private FileServerLinkedServiceTypeProperties innerTypeProperties() { + FileServerLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java index 2c7695300924..4d1eede4b36c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private FileShareDatasetTypeProperties innerTypeProperties() { + FileShareDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java index 5c7c676377d9..98ab297aa872 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private FilterActivityTypeProperties innerTypeProperties() { + FilterActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java index 1a3598f39b2d..f2ce8cc9c171 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java @@ -48,7 +48,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private FlowletTypeProperties innerTypeProperties() { + FlowletTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java index e3abf5c5b604..5c0bb1d0ef62 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ForEachActivityTypeProperties innerTypeProperties() { + ForEachActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java index b54e18259fa5..cf36324f47df 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private FtpServerLinkedServiceTypeProperties innerTypeProperties() { + FtpServerLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java index 213c5e775aba..b1e833ef1126 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GetMetadataActivityTypeProperties innerTypeProperties() { + GetMetadataActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java index 038006c1da4b..fd7c058c91c6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GoogleAdWordsLinkedServiceTypeProperties innerTypeProperties() { + GoogleAdWordsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java index 65607275ee56..b38c53eda189 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java index b95fe3e1037a..a92a29b4403d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GoogleBigQueryLinkedServiceTypeProperties innerTypeProperties() { + GoogleBigQueryLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java index cbdbfc7262da..d100b28aa1ac 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GoogleBigQueryDatasetTypeProperties innerTypeProperties() { + GoogleBigQueryDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2LinkedService.java index 9fc205c2d927..103dc5e9e553 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2LinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GoogleBigQueryV2LinkedServiceTypeProperties innerTypeProperties() { + GoogleBigQueryV2LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2ObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2ObjectDataset.java index 233d53549f44..47afba9bde09 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2ObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryV2ObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GoogleBigQueryV2DatasetTypeProperties innerTypeProperties() { + GoogleBigQueryV2DatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java index 6d36199e84ce..0a8cdc37e4e7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GoogleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { + GoogleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleSheetsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleSheetsLinkedService.java index 130e1566d34d..abe098f51f83 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleSheetsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleSheetsLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GoogleSheetsLinkedServiceTypeProperties innerTypeProperties() { + GoogleSheetsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumAuthenticationType.java new file mode 100644 index 000000000000..4700587f9d62 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumAuthenticationType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The authentication type to use. Type: string. Only used for V2. + */ +public final class GreenplumAuthenticationType extends ExpandableStringEnum { + /** + * Static value Basic for GreenplumAuthenticationType. + */ + public static final GreenplumAuthenticationType BASIC = fromString("Basic"); + + /** + * Creates a new instance of GreenplumAuthenticationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public GreenplumAuthenticationType() { + } + + /** + * Creates or finds a GreenplumAuthenticationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding GreenplumAuthenticationType. + */ + public static GreenplumAuthenticationType fromString(String name) { + return fromString(name, GreenplumAuthenticationType.class); + } + + /** + * Gets known GreenplumAuthenticationType values. + * + * @return known GreenplumAuthenticationType values. + */ + public static Collection values() { + return values(GreenplumAuthenticationType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java index 1813b541bd91..e49a3165678d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GreenplumLinkedServiceTypeProperties innerTypeProperties() { + GreenplumLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -173,6 +173,221 @@ public GreenplumLinkedService withEncryptedCredential(String encryptedCredential return this; } + /** + * Get the authenticationType property: The authentication type to use. Type: string. Only used for V2. + * + * @return the authenticationType value. + */ + public GreenplumAuthenticationType authenticationType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + } + + /** + * Set the authenticationType property: The authentication type to use. Type: string. Only used for V2. + * + * @param authenticationType the authenticationType value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withAuthenticationType(GreenplumAuthenticationType authenticationType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withAuthenticationType(authenticationType); + return this; + } + + /** + * Get the host property: Host name for connection. Type: string. Only used for V2. + * + * @return the host value. + */ + public Object host() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + } + + /** + * Set the host property: Host name for connection. Type: string. Only used for V2. + * + * @param host the host value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withHost(Object host) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withHost(host); + return this; + } + + /** + * Get the port property: The port for the connection. Type: integer. Only used for V2. + * + * @return the port value. + */ + public Object port() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + } + + /** + * Set the port property: The port for the connection. Type: integer. Only used for V2. + * + * @param port the port value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withPort(Object port) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withPort(port); + return this; + } + + /** + * Get the username property: Username for authentication. Type: string. Only used for V2. + * + * @return the username value. + */ + public Object username() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + } + + /** + * Set the username property: Username for authentication. Type: string. Only used for V2. + * + * @param username the username value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withUsername(Object username) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUsername(username); + return this; + } + + /** + * Get the database property: Database name for connection. Type: string. Only used for V2. + * + * @return the database value. + */ + public Object database() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + } + + /** + * Set the database property: Database name for connection. Type: string. Only used for V2. + * + * @param database the database value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withDatabase(Object database) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withDatabase(database); + return this; + } + + /** + * Get the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: + * verify-ca, 5: verify-full. Type: integer. Only used for V2. + * + * @return the sslMode value. + */ + public Object sslMode() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sslMode(); + } + + /** + * Set the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: + * verify-ca, 5: verify-full. Type: integer. Only used for V2. + * + * @param sslMode the sslMode value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withSslMode(Object sslMode) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withSslMode(sslMode); + return this; + } + + /** + * Get the connectionTimeout property: The time to wait (in seconds) while trying to establish a connection before + * terminating the attempt and generating an error. Type: integer. Only used for V2. + * + * @return the connectionTimeout value. + */ + public Object connectionTimeout() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionTimeout(); + } + + /** + * Set the connectionTimeout property: The time to wait (in seconds) while trying to establish a connection before + * terminating the attempt and generating an error. Type: integer. Only used for V2. + * + * @param connectionTimeout the connectionTimeout value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withConnectionTimeout(Object connectionTimeout) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withConnectionTimeout(connectionTimeout); + return this; + } + + /** + * Get the commandTimeout property: The time to wait (in seconds) while trying to execute a command before + * terminating the attempt and generating an error. Set to zero for infinity. Type: integer. Only used for V2. + * + * @return the commandTimeout value. + */ + public Object commandTimeout() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().commandTimeout(); + } + + /** + * Set the commandTimeout property: The time to wait (in seconds) while trying to execute a command before + * terminating the attempt and generating an error. Set to zero for infinity. Type: integer. Only used for V2. + * + * @param commandTimeout the commandTimeout value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withCommandTimeout(Object commandTimeout) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withCommandTimeout(commandTimeout); + return this; + } + + /** + * Get the password property: The Azure key vault secret reference of password in connection string. Type: string. + * Only used for V2. + * + * @return the password value. + */ + public SecretBase password() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + } + + /** + * Set the password property: The Azure key vault secret reference of password in connection string. Type: string. + * Only used for V2. + * + * @param password the password value to set. + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withPassword(SecretBase password) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withPassword(password); + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java index 9e8d001d573b..0763ed93a5d6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GreenplumDatasetTypeProperties innerTypeProperties() { + GreenplumDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java index 704abcb2c6d4..9f6c3bf324ee 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HBaseLinkedServiceTypeProperties innerTypeProperties() { + HBaseLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java index 0be93a694bf3..139dd9a9f3f4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java index 0f118da54969..15c3572e6a1e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HDInsightHiveActivityTypeProperties innerTypeProperties() { + HDInsightHiveActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java index 59d67c24d097..bb5806a15466 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HDInsightLinkedServiceTypeProperties innerTypeProperties() { + HDInsightLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java index 36f441c838c1..68b2dd1ab039 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HDInsightMapReduceActivityTypeProperties innerTypeProperties() { + HDInsightMapReduceActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java index c3f0d6b904fa..8ac57c9b0fca 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HDInsightOnDemandLinkedServiceTypeProperties innerTypeProperties() { + HDInsightOnDemandLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java index 316e8dc6ae7f..78a87e7fe304 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HDInsightPigActivityTypeProperties innerTypeProperties() { + HDInsightPigActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java index 1b884f39f984..1aa255d2476f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HDInsightSparkActivityTypeProperties innerTypeProperties() { + HDInsightSparkActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java index 2e74fd009ed5..cdc2ea027c8d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HDInsightStreamingActivityTypeProperties innerTypeProperties() { + HDInsightStreamingActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java index 7f60b73db13a..36d7e4a1f259 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HdfsLinkedServiceTypeProperties innerTypeProperties() { + HdfsLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java index 0d663e31a194..8fde96d6dca5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HiveLinkedServiceTypeProperties innerTypeProperties() { + HiveLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java index cdf04843cf89..7ed4f9867913 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HiveDatasetTypeProperties innerTypeProperties() { + HiveDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java index 2edc12444fc0..7fff8e163a94 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HttpDatasetTypeProperties innerTypeProperties() { + HttpDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java index a17a8be89e27..c4d62999584b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HttpLinkedServiceTypeProperties innerTypeProperties() { + HttpLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java index 8608e9da86d1..751e6ba269fb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private HubspotLinkedServiceTypeProperties innerTypeProperties() { + HubspotLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java index 0461e38b95de..ebaf62e0a224 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IcebergDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IcebergDataset.java index 90929ee9f96a..1414870d9196 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IcebergDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IcebergDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private IcebergDatasetTypeProperties innerTypeProperties() { + IcebergDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java index 0e01f6815d24..60c5d84f5ba3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private IfConditionActivityTypeProperties innerTypeProperties() { + IfConditionActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java index 773c5600910d..fd57c21da473 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ImpalaLinkedServiceTypeProperties innerTypeProperties() { + ImpalaLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java index 139bc4b7b616..90eb8acdcc70 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ImpalaDatasetTypeProperties innerTypeProperties() { + ImpalaDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImportSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImportSettings.java index 127ff9668fde..e2c6d621abe4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImportSettings.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImportSettings.java @@ -110,7 +110,9 @@ public static ImportSettings fromJson(JsonReader jsonReader) throws IOException } } // Use the discriminator value to determine which subtype should be deserialized. - if ("AzureDatabricksDeltaLakeImportCommand".equals(discriminatorValue)) { + if ("TeradataImportCommand".equals(discriminatorValue)) { + return TeradataImportCommand.fromJson(readerToUse.reset()); + } else if ("AzureDatabricksDeltaLakeImportCommand".equals(discriminatorValue)) { return AzureDatabricksDeltaLakeImportCommand.fromJson(readerToUse.reset()); } else if ("SnowflakeImportCopyCommand".equals(discriminatorValue)) { return SnowflakeImportCopyCommand.fromJson(readerToUse.reset()); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java index 283db8934c24..05ebf8904350 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private InformixLinkedServiceTypeProperties innerTypeProperties() { + InformixLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java index aaa3f7b30eb0..07f329cb903b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private InformixTableDatasetTypeProperties innerTypeProperties() { + InformixTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java index 588506b57b18..21d2a0a2afb1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private JiraLinkedServiceTypeProperties innerTypeProperties() { + JiraLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java index 68e006091e06..fc449c0c5319 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java index 5a57ab2e97c0..e97925fedbe4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private JsonDatasetTypeProperties innerTypeProperties() { + JsonDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLinkedService.java index d7dc282d7af2..30b6f02ea0ad 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLinkedService.java @@ -16,17 +16,17 @@ import java.util.Map; /** - * Microsoft Fabric LakeHouse linked service. + * Microsoft Fabric Lakehouse linked service. */ @Fluent public final class LakeHouseLinkedService extends LinkedService { /* * Type of linked service. */ - private String type = "LakeHouse"; + private String type = "Lakehouse"; /* - * Microsoft Fabric LakeHouse linked service properties. + * Microsoft Fabric Lakehouse linked service properties. */ private LakeHouseLinkedServiceTypeProperties innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); @@ -47,11 +47,11 @@ public String type() { } /** - * Get the innerTypeProperties property: Microsoft Fabric LakeHouse linked service properties. + * Get the innerTypeProperties property: Microsoft Fabric Lakehouse linked service properties. * * @return the innerTypeProperties value. */ - private LakeHouseLinkedServiceTypeProperties innerTypeProperties() { + LakeHouseLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -126,7 +126,7 @@ public LakeHouseLinkedService withWorkspaceId(Object workspaceId) { } /** - * Get the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * Get the artifactId property: The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with * resultType string). * * @return the artifactId value. @@ -136,7 +136,7 @@ public Object artifactId() { } /** - * Set the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * Set the artifactId property: The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with * resultType string). * * @param artifactId the artifactId value to set. @@ -152,7 +152,7 @@ public LakeHouseLinkedService withArtifactId(Object artifactId) { /** * Get the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric - * LakeHouse. Type: string (or Expression with resultType string). + * Lakehouse. Type: string (or Expression with resultType string). * * @return the servicePrincipalId value. */ @@ -162,7 +162,7 @@ public Object servicePrincipalId() { /** * Set the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric - * LakeHouse. Type: string (or Expression with resultType string). + * Lakehouse. Type: string (or Expression with resultType string). * * @param servicePrincipalId the servicePrincipalId value to set. * @return the LakeHouseLinkedService object itself. @@ -177,7 +177,7 @@ public LakeHouseLinkedService withServicePrincipalId(Object servicePrincipalId) /** * Get the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric - * LakeHouse. + * Lakehouse. * * @return the servicePrincipalKey value. */ @@ -187,7 +187,7 @@ public SecretBase servicePrincipalKey() { /** * Set the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric - * LakeHouse. + * Lakehouse. * * @param servicePrincipalKey the servicePrincipalKey value to set. * @return the LakeHouseLinkedService object itself. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLocation.java index 8da6ea000ffa..4746225d3d03 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLocation.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLocation.java @@ -13,7 +13,7 @@ import java.util.Map; /** - * The location of Microsoft Fabric LakeHouse Files dataset. + * The location of Microsoft Fabric Lakehouse Files dataset. */ @Fluent public final class LakeHouseLocation extends DatasetLocation { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseReadSettings.java index 96f5d16bdf79..5239024e07d8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseReadSettings.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseReadSettings.java @@ -13,7 +13,7 @@ import java.util.Map; /** - * Microsoft Fabric LakeHouse Files read settings. + * Microsoft Fabric Lakehouse Files read settings. */ @Fluent public final class LakeHouseReadSettings extends StoreReadSettings { @@ -29,12 +29,12 @@ public final class LakeHouseReadSettings extends StoreReadSettings { private Object recursive; /* - * Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or Expression with resultType string). + * Microsoft Fabric Lakehouse Files wildcardFolderPath. Type: string (or Expression with resultType string). */ private Object wildcardFolderPath; /* - * Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression with resultType string). + * Microsoft Fabric Lakehouse Files wildcardFileName. Type: string (or Expression with resultType string). */ private Object wildcardFileName; @@ -109,7 +109,7 @@ public LakeHouseReadSettings withRecursive(Object recursive) { } /** - * Get the wildcardFolderPath property: Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or + * Get the wildcardFolderPath property: Microsoft Fabric Lakehouse Files wildcardFolderPath. Type: string (or * Expression with resultType string). * * @return the wildcardFolderPath value. @@ -119,7 +119,7 @@ public Object wildcardFolderPath() { } /** - * Set the wildcardFolderPath property: Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or + * Set the wildcardFolderPath property: Microsoft Fabric Lakehouse Files wildcardFolderPath. Type: string (or * Expression with resultType string). * * @param wildcardFolderPath the wildcardFolderPath value to set. @@ -131,7 +131,7 @@ public LakeHouseReadSettings withWildcardFolderPath(Object wildcardFolderPath) { } /** - * Get the wildcardFileName property: Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression + * Get the wildcardFileName property: Microsoft Fabric Lakehouse Files wildcardFileName. Type: string (or Expression * with resultType string). * * @return the wildcardFileName value. @@ -141,7 +141,7 @@ public Object wildcardFileName() { } /** - * Set the wildcardFileName property: Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression + * Set the wildcardFileName property: Microsoft Fabric Lakehouse Files wildcardFileName. Type: string (or Expression * with resultType string). * * @param wildcardFileName the wildcardFileName value to set. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableDataset.java index f3abf30d9f4b..23536b80ee6b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableDataset.java @@ -16,17 +16,17 @@ import java.util.Map; /** - * Microsoft Fabric LakeHouse Table. + * Microsoft Fabric Lakehouse Table. */ @Fluent public final class LakeHouseTableDataset extends Dataset { /* * Type of dataset. */ - private String type = "LakeHouseTable"; + private String type = "LakehouseTable"; /* - * Microsoft Fabric LakeHouse Table dataset properties. + * Microsoft Fabric Lakehouse Table dataset properties. */ private LakeHouseTableDatasetTypeProperties innerTypeProperties; @@ -47,11 +47,11 @@ public String type() { } /** - * Get the innerTypeProperties property: Microsoft Fabric LakeHouse Table dataset properties. + * Get the innerTypeProperties property: Microsoft Fabric Lakehouse Table dataset properties. * * @return the innerTypeProperties value. */ - private LakeHouseTableDatasetTypeProperties innerTypeProperties() { + LakeHouseTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -119,7 +119,7 @@ public LakeHouseTableDataset withFolder(DatasetFolder folder) { } /** - * Get the schema property: The schema name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with + * Get the schema property: The schema name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with * resultType string). * * @return the schema value. @@ -129,7 +129,7 @@ public Object schemaTypePropertiesSchema() { } /** - * Set the schema property: The schema name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with + * Set the schema property: The schema name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with * resultType string). * * @param schema the schema value to set. @@ -144,7 +144,7 @@ public LakeHouseTableDataset withSchemaTypePropertiesSchema(Object schema) { } /** - * Get the table property: The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType + * Get the table property: The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with resultType * string). * * @return the table value. @@ -154,7 +154,7 @@ public Object table() { } /** - * Set the table property: The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType + * Set the table property: The name of Microsoft Fabric Lakehouse Table. Type: string (or Expression with resultType * string). * * @param table the table value to set. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSink.java index 389b908fc283..183ac63621f8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSink.java @@ -13,7 +13,7 @@ import java.util.Map; /** - * A copy activity for Microsoft Fabric LakeHouse Table sink. + * A copy activity for Microsoft Fabric Lakehouse Table sink. */ @Fluent public final class LakeHouseTableSink extends CopySink { @@ -23,7 +23,7 @@ public final class LakeHouseTableSink extends CopySink { private String type = "LakeHouseTableSink"; /* - * The type of table action for LakeHouse Table sink. Possible values include: "None", "Append", "Overwrite". + * The type of table action for Lakehouse Table sink. Possible values include: "None", "Append", "Overwrite". */ private Object tableActionOption; @@ -56,7 +56,7 @@ public String type() { } /** - * Get the tableActionOption property: The type of table action for LakeHouse Table sink. Possible values include: + * Get the tableActionOption property: The type of table action for Lakehouse Table sink. Possible values include: * "None", "Append", "Overwrite". * * @return the tableActionOption value. @@ -66,7 +66,7 @@ public Object tableActionOption() { } /** - * Set the tableActionOption property: The type of table action for LakeHouse Table sink. Possible values include: + * Set the tableActionOption property: The type of table action for Lakehouse Table sink. Possible values include: * "None", "Append", "Overwrite". * * @param tableActionOption the tableActionOption value to set. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSource.java index 077848b0ff49..9953cfff2b2e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseTableSource.java @@ -13,7 +13,7 @@ import java.util.Map; /** - * A copy activity source for Microsoft Fabric LakeHouse Table. + * A copy activity source for Microsoft Fabric Lakehouse Table. */ @Fluent public final class LakeHouseTableSource extends CopySource { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseWriteSettings.java index 180cb0d6e59a..55e84c1b155a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseWriteSettings.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseWriteSettings.java @@ -14,7 +14,7 @@ import java.util.Map; /** - * Microsoft Fabric LakeHouse Files write settings. + * Microsoft Fabric Lakehouse Files write settings. */ @Fluent public final class LakeHouseWriteSettings extends StoreWriteSettings { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java index da820afa1150..69a4513fbf92 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java @@ -487,7 +487,7 @@ public static LinkedService fromJson(JsonReader jsonReader) throws IOException { return SharePointOnlineListLinkedService.fromJson(readerToUse.reset()); } else if ("AzureSynapseArtifacts".equals(discriminatorValue)) { return AzureSynapseArtifactsLinkedService.fromJson(readerToUse.reset()); - } else if ("LakeHouse".equals(discriminatorValue)) { + } else if ("Lakehouse".equals(discriminatorValue)) { return LakeHouseLinkedService.fromJson(readerToUse.reset()); } else if ("SalesforceV2".equals(discriminatorValue)) { return SalesforceV2LinkedService.fromJson(readerToUse.reset()); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java index 86d0a6e5e35b..c9f3138b40b6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private LookupActivityTypeProperties innerTypeProperties() { + LookupActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java index e70549c39ee4..e571e1a9fc8e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MagentoLinkedServiceTypeProperties innerTypeProperties() { + MagentoLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java index d3268529c352..2ce5bf7b0c03 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredential.java index 4b46fc7c0c5c..b2888dfed629 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredential.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredential.java @@ -50,7 +50,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ManagedIdentityTypeProperties innerTypeProperties() { + ManagedIdentityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java index 643a57202517..3f27c71ec8e0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java @@ -69,7 +69,7 @@ public IntegrationRuntimeState state() { * * @return the innerTypeProperties value. */ - private ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { + ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java index 7344ce9fe94f..f5ae33d1c5e2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java @@ -53,7 +53,7 @@ public IntegrationRuntimeType type() { * * @return the innerTypeProperties value. */ - private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { + ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java index aed09f0866fd..cb5764d989fc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java @@ -48,7 +48,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MappingDataFlowTypeProperties innerTypeProperties() { + MappingDataFlowTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java index 01ebfb7b1420..d55a53e7633d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MariaDBLinkedServiceTypeProperties innerTypeProperties() { + MariaDBLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java index 6106db18d141..bdf31b7e4cfb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java index 8454840f6c25..b2b04b4e3a83 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MarketoLinkedServiceTypeProperties innerTypeProperties() { + MarketoLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java index 6b18977de376..b8891b0c454d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java index f6c41e035517..966f49644b01 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MicrosoftAccessLinkedServiceTypeProperties innerTypeProperties() { + MicrosoftAccessLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java index 4e5ff8726b96..e1905a94d8fe 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MicrosoftAccessTableDatasetTypeProperties innerTypeProperties() { + MicrosoftAccessTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java index 96c6c64c2ec9..880dcd7a249b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MongoDbAtlasCollectionDatasetTypeProperties innerTypeProperties() { + MongoDbAtlasCollectionDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java index cbe6237ce624..8c38db7c21b5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MongoDbAtlasLinkedServiceTypeProperties innerTypeProperties() { + MongoDbAtlasLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java index f6b12a727cff..2122858f9f4d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MongoDbCollectionDatasetTypeProperties innerTypeProperties() { + MongoDbCollectionDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java index f54628f44372..d41affb9ca5f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MongoDbLinkedServiceTypeProperties innerTypeProperties() { + MongoDbLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java index 1c3441804168..fd8011236498 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MongoDbV2CollectionDatasetTypeProperties innerTypeProperties() { + MongoDbV2CollectionDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java index e3c48df90ba0..8b6c8c526615 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MongoDbV2LinkedServiceTypeProperties innerTypeProperties() { + MongoDbV2LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java index eaf78ec21da3..10237959528e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MySqlLinkedServiceTypeProperties innerTypeProperties() { + MySqlLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java index b3e4e9cb04dd..d3b1a2ef8114 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private MySqlTableDatasetTypeProperties innerTypeProperties() { + MySqlTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java index cb243bd6daf4..6d417f53d146 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private NetezzaLinkedServiceTypeProperties innerTypeProperties() { + NetezzaLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java index 5254fe84fcd0..ba940af69281 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private NetezzaTableDatasetTypeProperties innerTypeProperties() { + NetezzaTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java index d0b10525b70f..7f79b27f3aec 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ODataLinkedServiceTypeProperties innerTypeProperties() { + ODataLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java index a90706208955..570bd77b1aa5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ODataResourceDatasetTypeProperties innerTypeProperties() { + ODataResourceDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java index 40669bad6b0a..f4474a288acb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private OdbcLinkedServiceTypeProperties innerTypeProperties() { + OdbcLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java index c0ac7a58612d..7d1184cdc82c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private OdbcTableDatasetTypeProperties innerTypeProperties() { + OdbcTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java index b4be3b1c44bf..8fe3c9826d64 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private Office365DatasetTypeProperties innerTypeProperties() { + Office365DatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java index a4b444260a9c..9fff8c739571 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private Office365LinkedServiceTypeProperties innerTypeProperties() { + Office365LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleAuthenticationType.java new file mode 100644 index 000000000000..a862c0ae4e9d --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleAuthenticationType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Authentication type for connecting to the Oracle database. Only used for Version 2.0. + */ +public final class OracleAuthenticationType extends ExpandableStringEnum { + /** + * Static value Basic for OracleAuthenticationType. + */ + public static final OracleAuthenticationType BASIC = fromString("Basic"); + + /** + * Creates a new instance of OracleAuthenticationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public OracleAuthenticationType() { + } + + /** + * Creates or finds a OracleAuthenticationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding OracleAuthenticationType. + */ + public static OracleAuthenticationType fromString(String name) { + return fromString(name, OracleAuthenticationType.class); + } + + /** + * Gets known OracleAuthenticationType values. + * + * @return known OracleAuthenticationType values. + */ + public static Collection values() { + return values(OracleAuthenticationType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java index cd665322090b..dfca3f59e6e4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private OracleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { + OracleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java index 42e724f15c68..548ce33946e6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java @@ -16,7 +16,8 @@ import java.util.Map; /** - * Oracle database. + * Oracle database. This linked service has supported version property. The Version 1.0 is scheduled for deprecation + * while your pipeline will continue to run after EOL but without any bug fix or new features. */ @Fluent public final class OracleLinkedService extends LinkedService { @@ -51,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private OracleLinkedServiceTypeProperties innerTypeProperties() { + OracleLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -102,7 +103,7 @@ public OracleLinkedService withAnnotations(List annotations) { /** * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @return the connectionString value. */ @@ -112,7 +113,7 @@ public Object connectionString() { /** * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @param connectionString the connectionString value to set. * @return the OracleLinkedService object itself. @@ -125,6 +126,81 @@ public OracleLinkedService withConnectionString(Object connectionString) { return this; } + /** + * Get the server property: The location of Oracle database you want to connect to, the supported forms include + * connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: + * string. Only used for Version 2.0. + * + * @return the server value. + */ + public Object server() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + } + + /** + * Set the server property: The location of Oracle database you want to connect to, the supported forms include + * connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: + * string. Only used for Version 2.0. + * + * @param server the server value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withServer(Object server) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServer(server); + return this; + } + + /** + * Get the authenticationType property: Authentication type for connecting to the Oracle database. Only used for + * Version 2.0. + * + * @return the authenticationType value. + */ + public OracleAuthenticationType authenticationType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + } + + /** + * Set the authenticationType property: Authentication type for connecting to the Oracle database. Only used for + * Version 2.0. + * + * @param authenticationType the authenticationType value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withAuthenticationType(OracleAuthenticationType authenticationType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withAuthenticationType(authenticationType); + return this; + } + + /** + * Get the username property: The Oracle database username. Type: string. Only used for Version 2.0. + * + * @return the username value. + */ + public Object username() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + } + + /** + * Set the username property: The Oracle database username. Type: string. Only used for Version 2.0. + * + * @param username the username value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withUsername(Object username) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUsername(username); + return this; + } + /** * Get the password property: The Azure key vault secret reference of password in connection string. * @@ -148,6 +224,289 @@ public OracleLinkedService withPassword(AzureKeyVaultSecretReference password) { return this; } + /** + * Get the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @return the encryptionClient value. + */ + public Object encryptionClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptionClient(); + } + + /** + * Set the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @param encryptionClient the encryptionClient value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withEncryptionClient(Object encryptionClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptionClient(encryptionClient); + return this; + } + + /** + * Get the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @return the encryptionTypesClient value. + */ + public Object encryptionTypesClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptionTypesClient(); + } + + /** + * Set the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @param encryptionTypesClient the encryptionTypesClient value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withEncryptionTypesClient(Object encryptionTypesClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptionTypesClient(encryptionTypesClient); + return this; + } + + /** + * Get the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @return the cryptoChecksumClient value. + */ + public Object cryptoChecksumClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().cryptoChecksumClient(); + } + + /** + * Set the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @param cryptoChecksumClient the cryptoChecksumClient value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withCryptoChecksumClient(Object cryptoChecksumClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withCryptoChecksumClient(cryptoChecksumClient); + return this; + } + + /** + * Get the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @return the cryptoChecksumTypesClient value. + */ + public Object cryptoChecksumTypesClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().cryptoChecksumTypesClient(); + } + + /** + * Set the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @param cryptoChecksumTypesClient the cryptoChecksumTypesClient value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withCryptoChecksumTypesClient(Object cryptoChecksumTypesClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withCryptoChecksumTypesClient(cryptoChecksumTypesClient); + return this; + } + + /** + * Get the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the initialLobFetchSize value. + */ + public Object initialLobFetchSize() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().initialLobFetchSize(); + } + + /** + * Set the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @param initialLobFetchSize the initialLobFetchSize value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withInitialLobFetchSize(Object initialLobFetchSize) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withInitialLobFetchSize(initialLobFetchSize); + return this; + } + + /** + * Get the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @return the fetchSize value. + */ + public Object fetchSize() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fetchSize(); + } + + /** + * Set the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @param fetchSize the fetchSize value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withFetchSize(Object fetchSize) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withFetchSize(fetchSize); + return this; + } + + /** + * Get the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the statementCacheSize value. + */ + public Object statementCacheSize() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().statementCacheSize(); + } + + /** + * Set the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @param statementCacheSize the statementCacheSize value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withStatementCacheSize(Object statementCacheSize) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withStatementCacheSize(statementCacheSize); + return this; + } + + /** + * Get the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @return the initializationString value. + */ + public Object initializationString() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().initializationString(); + } + + /** + * Set the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @param initializationString the initializationString value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withInitializationString(Object initializationString) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withInitializationString(initializationString); + return this; + } + + /** + * Get the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @return the enableBulkLoad value. + */ + public Object enableBulkLoad() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableBulkLoad(); + } + + /** + * Set the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @param enableBulkLoad the enableBulkLoad value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withEnableBulkLoad(Object enableBulkLoad) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEnableBulkLoad(enableBulkLoad); + return this; + } + + /** + * Get the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @return the supportV1DataTypes value. + */ + public Object supportV1DataTypes() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().supportV1DataTypes(); + } + + /** + * Set the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @param supportV1DataTypes the supportV1DataTypes value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withSupportV1DataTypes(Object supportV1DataTypes) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withSupportV1DataTypes(supportV1DataTypes); + return this; + } + + /** + * Get the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @return the fetchTswtzAsTimestamp value. + */ + public Object fetchTswtzAsTimestamp() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fetchTswtzAsTimestamp(); + } + + /** + * Set the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @param fetchTswtzAsTimestamp the fetchTswtzAsTimestamp value to set. + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withFetchTswtzAsTimestamp(Object fetchTswtzAsTimestamp) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withFetchTswtzAsTimestamp(fetchTswtzAsTimestamp); + return this; + } + /** * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted * using the integration runtime credential manager. Type: string. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java index fa6ed075e2d2..9bffbeacec93 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private OracleServiceCloudLinkedServiceTypeProperties innerTypeProperties() { + OracleServiceCloudLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java index 0a999e3a9c5d..a958fb50f654 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java index 66a8251a48ec..419116921f2a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private OracleTableDatasetTypeProperties innerTypeProperties() { + OracleTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java index d2327f639cae..844ec8986960 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private OrcDatasetTypeProperties innerTypeProperties() { + OrcDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java index e04d52096a74..d50f185b716b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ParquetDatasetTypeProperties innerTypeProperties() { + ParquetDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java index 6c6f78250c72..3f559f7f9b4a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PaypalLinkedServiceTypeProperties innerTypeProperties() { + PaypalLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java index c9e540a39a7c..0fbcc2793755 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java index ccaa96108e61..4a10c8316980 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PhoenixLinkedServiceTypeProperties innerTypeProperties() { + PhoenixLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java index a181084535f1..d98675904a48 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PhoenixDatasetTypeProperties innerTypeProperties() { + PhoenixDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java index f72497fbccc7..b3bf7b21f8d7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PostgreSqlLinkedServiceTypeProperties innerTypeProperties() { + PostgreSqlLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java index a50889c5ad8b..4b67e56095a9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PostgreSqlTableDatasetTypeProperties innerTypeProperties() { + PostgreSqlTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2LinkedService.java index da106f49bdb6..952e251af6b6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PostgreSqlV2LinkedServiceTypeProperties innerTypeProperties() { + PostgreSqlV2LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2TableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2TableDataset.java index 626899545347..7be5f522dc34 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2TableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlV2TableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PostgreSqlV2TableDatasetTypeProperties innerTypeProperties() { + PostgreSqlV2TableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java index a4b1cf7a158e..0ddcaea44888 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PrestoLinkedServiceTypeProperties innerTypeProperties() { + PrestoLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java index a69cbea808f8..97cc359e2ff8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private PrestoDatasetTypeProperties innerTypeProperties() { + PrestoDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java index e2b554516b0d..6ddf6ec41a31 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private QuickBooksLinkedServiceTypeProperties innerTypeProperties() { + QuickBooksLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java index ef65cbc0cbd4..cf8f9fbf41e8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java index fc1e7ce9a9c8..c8adc5cf3ae0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private QuickbaseLinkedServiceTypeProperties innerTypeProperties() { + QuickbaseLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java index 167ed8005374..143ced98c1de 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private RelationalTableDatasetTypeProperties innerTypeProperties() { + RelationalTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java index 5632d6af208f..fc970ba06414 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java @@ -54,7 +54,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private RerunTumblingWindowTriggerTypeProperties innerTypeProperties() { + RerunTumblingWindowTriggerTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java index aff1360a8ffe..2af17bf3dab6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ResponsysLinkedServiceTypeProperties innerTypeProperties() { + ResponsysLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java index 0c014853550b..2232cfbd8267 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java index 3972ed591ef5..818bd8448e59 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private RestResourceDatasetTypeProperties innerTypeProperties() { + RestResourceDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java index d8a4da31b8e0..5470db3eac61 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private RestServiceLinkedServiceTypeProperties innerTypeProperties() { + RestServiceLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java index ca159244da50..364314d8bc2b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceLinkedServiceTypeProperties innerTypeProperties() { + SalesforceLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java index 1baf9d836390..a59f20975000 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceMarketingCloudLinkedServiceTypeProperties innerTypeProperties() { + SalesforceMarketingCloudLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java index 733eab3816c2..f38a07962eda 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java index 4eb79592e749..898407506d97 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceObjectDatasetTypeProperties innerTypeProperties() { + SalesforceObjectDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java index 9006a2f21592..3f2d97aaa520 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceServiceCloudLinkedServiceTypeProperties innerTypeProperties() { + SalesforceServiceCloudLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java index ffa228c25f9e..634e73ade742 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceServiceCloudObjectDatasetTypeProperties innerTypeProperties() { + SalesforceServiceCloudObjectDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2LinkedService.java index 35875fee4c12..650b19996291 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2LinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceServiceCloudV2LinkedServiceTypeProperties innerTypeProperties() { + SalesforceServiceCloudV2LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2ObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2ObjectDataset.java index e64ee02d1a93..8e50e47b0015 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2ObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudV2ObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceServiceCloudV2ObjectDatasetTypeProperties innerTypeProperties() { + SalesforceServiceCloudV2ObjectDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2LinkedService.java index 8efd74d5661e..99288b3f9f85 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceV2LinkedServiceTypeProperties innerTypeProperties() { + SalesforceV2LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2ObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2ObjectDataset.java index e90d939363bd..3b5306caf227 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2ObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceV2ObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SalesforceV2ObjectDatasetTypeProperties innerTypeProperties() { + SalesforceV2ObjectDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java index a2d469cbb491..a4f4fb0e2f15 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapBWLinkedServiceTypeProperties innerTypeProperties() { + SapBWLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java index 48ca9674f6cc..395ce0bbc89a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapCloudForCustomerLinkedServiceTypeProperties innerTypeProperties() { + SapCloudForCustomerLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java index 7f52ef4a4551..d729bef677c2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapCloudForCustomerResourceDatasetTypeProperties innerTypeProperties() { + SapCloudForCustomerResourceDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java index 4ca3cb19d672..390bdf202360 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapEccLinkedServiceTypeProperties innerTypeProperties() { + SapEccLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java index 7e782a5131c9..40bd4e9a9483 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapEccResourceDatasetTypeProperties innerTypeProperties() { + SapEccResourceDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java index e9f59479a70c..c53f12102a43 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapHanaLinkedServiceProperties innerTypeProperties() { + SapHanaLinkedServiceProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java index 9744b9364bb6..599cda795e78 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapHanaTableDatasetTypeProperties innerTypeProperties() { + SapHanaTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpLinkedService.java index 0aae948be492..a07db9d84f19 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapOdpLinkedServiceTypeProperties innerTypeProperties() { + SapOdpLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -324,8 +324,8 @@ public SapOdpLinkedService withMessageServerService(Object messageServerService) } /** - * Get the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Get the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @return the sncMode value. */ @@ -334,8 +334,8 @@ public Object sncMode() { } /** - * Set the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Set the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @param sncMode the sncMode value to set. * @return the SapOdpLinkedService object itself. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpResourceDataset.java index 1b2bcc6336f8..6cbea37e694b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOdpResourceDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapOdpResourceDatasetTypeProperties innerTypeProperties() { + SapOdpResourceDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java index 9e63d0fc6655..a9b2ca71341e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapOpenHubLinkedServiceTypeProperties innerTypeProperties() { + SapOpenHubLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java index f9002bdaf710..aea05945b107 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapOpenHubTableDatasetTypeProperties innerTypeProperties() { + SapOpenHubTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java index 073066386a46..8ff4b8388863 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapTableLinkedServiceTypeProperties innerTypeProperties() { + SapTableLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -324,8 +324,8 @@ public SapTableLinkedService withMessageServerService(Object messageServerServic } /** - * Get the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Get the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @return the sncMode value. */ @@ -334,8 +334,8 @@ public Object sncMode() { } /** - * Set the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * Set the sncMode property: SNC activation flag (Boolean) to access the SAP server where the table is located. + * Type: boolean (or Expression with resultType boolean). * * @param sncMode the sncMode value to set. * @return the SapTableLinkedService object itself. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java index fd6830892a1c..53e044edcfc6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SapTableResourceDatasetTypeProperties innerTypeProperties() { + SapTableResourceDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java index a38935f78d52..032416a037f8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ScheduleTriggerTypeProperties innerTypeProperties() { + ScheduleTriggerTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java index ab29a33979fe..50ead2e2531c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ScriptActivityTypeProperties innerTypeProperties() { + ScriptActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java index f590f30fef17..7ebf5c2f83c7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java @@ -51,7 +51,7 @@ public IntegrationRuntimeType type() { * * @return the innerTypeProperties value. */ - private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties() { + SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java index c037da4dc7b1..7f8f5d3d7c75 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java @@ -54,7 +54,7 @@ public IntegrationRuntimeType type() { * * @return the innerTypeProperties value. */ - private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { + SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java index e6432d07e759..84a4310e1c00 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ServiceNowLinkedServiceTypeProperties innerTypeProperties() { + ServiceNowLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java index d19a1d67857d..972bace48358 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2LinkedService.java index 4f6077841f8c..5b6951b761ae 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ServiceNowV2LinkedServiceTypeProperties innerTypeProperties() { + ServiceNowV2LinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2ObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2ObjectDataset.java index a7e309d20357..a569f75f4081 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2ObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowV2ObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServicePrincipalCredential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServicePrincipalCredential.java index b7a4867dcb42..32d98134ee67 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServicePrincipalCredential.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServicePrincipalCredential.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ServicePrincipalCredentialTypeProperties innerTypeProperties() { + ServicePrincipalCredentialTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java index 5653d1e7c835..def35e377841 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java @@ -56,7 +56,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SetVariableActivityTypeProperties innerTypeProperties() { + SetVariableActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java index 2634b87f3688..f5de2417b4af 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SftpServerLinkedServiceTypeProperties innerTypeProperties() { + SftpServerLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java index 7c37f6d98e5b..b570bdac1be9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SharePointOnlineListLinkedServiceTypeProperties innerTypeProperties() { + SharePointOnlineListLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java index fb0bbdfaa9d9..fa15bb399cc0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SharePointOnlineListDatasetTypeProperties innerTypeProperties() { + SharePointOnlineListDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java index 442b3793e4e1..850ee9696199 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private ShopifyLinkedServiceTypeProperties innerTypeProperties() { + ShopifyLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java index 2d8eb9972685..343c6182d91f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java index 25fa05f71fe7..a79935bcc5e3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SmartsheetLinkedServiceTypeProperties innerTypeProperties() { + SmartsheetLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java index e4bff5e54f7f..82af5c8e18b3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SnowflakeDatasetTypeProperties innerTypeProperties() { + SnowflakeDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java index 69ee59b76d95..149728538948 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SnowflakeLinkedServiceTypeProperties innerTypeProperties() { + SnowflakeLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2Dataset.java index 3e4516fdad39..006e020588ce 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2Dataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2Dataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SnowflakeDatasetTypeProperties innerTypeProperties() { + SnowflakeDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2LinkedService.java index cc0de16af74d..eb7c78dbb50d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeV2LinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SnowflakeLinkedV2ServiceTypeProperties innerTypeProperties() { + SnowflakeLinkedV2ServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java index 55c2ab87a7be..ae8cefd9d8fc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SparkLinkedServiceTypeProperties innerTypeProperties() { + SparkLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java index 9aa74f013ec9..0043b82c3ec8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SparkDatasetTypeProperties innerTypeProperties() { + SparkDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java index 73248bb7bf20..f439b50db3eb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SqlServerLinkedServiceTypeProperties innerTypeProperties() { + SqlServerLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java index 598be10200d0..f7454a388ea5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SqlServerStoredProcedureActivityTypeProperties innerTypeProperties() { + SqlServerStoredProcedureActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java index b03abe5ee284..46df966672d9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SqlServerTableDatasetTypeProperties innerTypeProperties() { + SqlServerTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java index 66e26a2c55c6..c97e957e143e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SquareLinkedServiceTypeProperties innerTypeProperties() { + SquareLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java index c443f0c88e86..227c02c855b2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private GenericDatasetTypeProperties innerTypeProperties() { + GenericDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java index e4e9d7290ddf..e209c2535d7f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java @@ -52,7 +52,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SwitchActivityTypeProperties innerTypeProperties() { + SwitchActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java index 5388ad0bf683..97ee14fe2a63 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SybaseLinkedServiceTypeProperties innerTypeProperties() { + SybaseLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java index f005730c34f3..24a0500a427c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SybaseTableDatasetTypeProperties innerTypeProperties() { + SybaseTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseNotebookActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseNotebookActivity.java index f60882b1158c..c15f4a8eda26 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseNotebookActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseNotebookActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SynapseNotebookActivityTypeProperties innerTypeProperties() { + SynapseNotebookActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java index ea0a907a3e61..404fc88f1566 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private SynapseSparkJobActivityTypeProperties innerTypeProperties() { + SynapseSparkJobActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java index 67c2293b1114..832bd5048b17 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private TeamDeskLinkedServiceTypeProperties innerTypeProperties() { + TeamDeskLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataImportCommand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataImportCommand.java new file mode 100644 index 000000000000..19db756568af --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataImportCommand.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * Teradata import command settings. + */ +@Fluent +public final class TeradataImportCommand extends ImportSettings { + /* + * The import setting type. + */ + private String type = "TeradataImportCommand"; + + /* + * Additional format options for Teradata Copy Command. The format options only applies to direct copy from CSV + * source. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: + * "additionalFormatOptions": { "timeFormat": "HHhMImSSs" } + */ + private Object additionalFormatOptions; + + /** + * Creates an instance of TeradataImportCommand class. + */ + public TeradataImportCommand() { + } + + /** + * Get the type property: The import setting type. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the additionalFormatOptions property: Additional format options for Teradata Copy Command. The format options + * only applies to direct copy from CSV source. Type: key value pairs (value should be string type) (or Expression + * with resultType object). Example: "additionalFormatOptions": { "timeFormat": "HHhMImSSs" }. + * + * @return the additionalFormatOptions value. + */ + public Object additionalFormatOptions() { + return this.additionalFormatOptions; + } + + /** + * Set the additionalFormatOptions property: Additional format options for Teradata Copy Command. The format options + * only applies to direct copy from CSV source. Type: key value pairs (value should be string type) (or Expression + * with resultType object). Example: "additionalFormatOptions": { "timeFormat": "HHhMImSSs" }. + * + * @param additionalFormatOptions the additionalFormatOptions value to set. + * @return the TeradataImportCommand object itself. + */ + public TeradataImportCommand withAdditionalFormatOptions(Object additionalFormatOptions) { + this.additionalFormatOptions = additionalFormatOptions; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type); + jsonWriter.writeUntypedField("additionalFormatOptions", this.additionalFormatOptions); + if (additionalProperties() != null) { + for (Map.Entry additionalProperty : additionalProperties().entrySet()) { + jsonWriter.writeUntypedField(additionalProperty.getKey(), additionalProperty.getValue()); + } + } + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TeradataImportCommand from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TeradataImportCommand 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 TeradataImportCommand. + */ + public static TeradataImportCommand fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TeradataImportCommand deserializedTeradataImportCommand = new TeradataImportCommand(); + Map additionalProperties = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedTeradataImportCommand.type = reader.getString(); + } else if ("additionalFormatOptions".equals(fieldName)) { + deserializedTeradataImportCommand.additionalFormatOptions = reader.readUntyped(); + } else { + if (additionalProperties == null) { + additionalProperties = new LinkedHashMap<>(); + } + + additionalProperties.put(fieldName, reader.readUntyped()); + } + } + deserializedTeradataImportCommand.withAdditionalProperties(additionalProperties); + + return deserializedTeradataImportCommand; + }); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java index cf383763ee67..03cc30491b9f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private TeradataLinkedServiceTypeProperties innerTypeProperties() { + TeradataLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } @@ -102,7 +102,7 @@ public TeradataLinkedService withAnnotations(List annotations) { /** * Get the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only applied for version 1.0. * * @return the connectionString value. */ @@ -112,7 +112,7 @@ public Object connectionString() { /** * Set the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only applied for version 1.0. * * @param connectionString the connectionString value to set. * @return the TeradataLinkedService object itself. @@ -217,6 +217,160 @@ public TeradataLinkedService withPassword(SecretBase password) { return this; } + /** + * Get the sslMode property: SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, + * “Require”, “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @return the sslMode value. + */ + public Object sslMode() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sslMode(); + } + + /** + * Set the sslMode property: SSL mode for connection. Valid values including: “Disable”, “Allow”, “Prefer”, + * “Require”, “Verify-CA”, “Verify-Full”. Default value is “Verify-Full”. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @param sslMode the sslMode value to set. + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withSslMode(Object sslMode) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withSslMode(sslMode); + return this; + } + + /** + * Get the portNumber property: The port numbers when connecting to server through non HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only used for V2. Only applied for version 2.0. + * + * @return the portNumber value. + */ + public Object portNumber() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().portNumber(); + } + + /** + * Set the portNumber property: The port numbers when connecting to server through non HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only used for V2. Only applied for version 2.0. + * + * @param portNumber the portNumber value to set. + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withPortNumber(Object portNumber) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withPortNumber(portNumber); + return this; + } + + /** + * Get the httpsPortNumber property: The port numbers when connecting to server through HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only applied for version 2.0. + * + * @return the httpsPortNumber value. + */ + public Object httpsPortNumber() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpsPortNumber(); + } + + /** + * Set the httpsPortNumber property: The port numbers when connecting to server through HTTPS/TLS connections. Type: + * integer (or Expression with resultType integer). Only applied for version 2.0. + * + * @param httpsPortNumber the httpsPortNumber value to set. + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withHttpsPortNumber(Object httpsPortNumber) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withHttpsPortNumber(httpsPortNumber); + return this; + } + + /** + * Get the useDataEncryption property: Specifies whether to encrypt all communication with the Teradata database. + * Allowed values are 0 or 1. This setting will be ignored for HTTPS/TLS connections. Type: integer (or Expression + * with resultType integer). Only applied for version 2.0. + * + * @return the useDataEncryption value. + */ + public Object useDataEncryption() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useDataEncryption(); + } + + /** + * Set the useDataEncryption property: Specifies whether to encrypt all communication with the Teradata database. + * Allowed values are 0 or 1. This setting will be ignored for HTTPS/TLS connections. Type: integer (or Expression + * with resultType integer). Only applied for version 2.0. + * + * @param useDataEncryption the useDataEncryption value to set. + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withUseDataEncryption(Object useDataEncryption) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUseDataEncryption(useDataEncryption); + return this; + } + + /** + * Get the characterSet property: The character set to use for the connection. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @return the characterSet value. + */ + public Object characterSet() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().characterSet(); + } + + /** + * Set the characterSet property: The character set to use for the connection. Type: string (or Expression with + * resultType string). Only applied for version 2.0. + * + * @param characterSet the characterSet value to set. + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withCharacterSet(Object characterSet) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withCharacterSet(characterSet); + return this; + } + + /** + * Get the maxRespSize property: The maximum size of the response buffer for SQL requests, in bytes. Type: integer. + * Only applied for version 2.0. + * + * @return the maxRespSize value. + */ + public Object maxRespSize() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().maxRespSize(); + } + + /** + * Set the maxRespSize property: The maximum size of the response buffer for SQL requests, in bytes. Type: integer. + * Only applied for version 2.0. + * + * @param maxRespSize the maxRespSize value to set. + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withMaxRespSize(Object maxRespSize) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withMaxRespSize(maxRespSize); + return this; + } + /** * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted * using the integration runtime credential manager. Type: string. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataSink.java new file mode 100644 index 000000000000..996ce32e674c --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataSink.java @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * A copy activity Teradata sink. + */ +@Fluent +public final class TeradataSink extends CopySink { + /* + * Copy sink type. + */ + private String type = "TeradataSink"; + + /* + * Teradata import settings. + */ + private TeradataImportCommand importSettings; + + /** + * Creates an instance of TeradataSink class. + */ + public TeradataSink() { + } + + /** + * Get the type property: Copy sink type. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the importSettings property: Teradata import settings. + * + * @return the importSettings value. + */ + public TeradataImportCommand importSettings() { + return this.importSettings; + } + + /** + * Set the importSettings property: Teradata import settings. + * + * @param importSettings the importSettings value to set. + * @return the TeradataSink object itself. + */ + public TeradataSink withImportSettings(TeradataImportCommand importSettings) { + this.importSettings = importSettings; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TeradataSink withWriteBatchSize(Object writeBatchSize) { + super.withWriteBatchSize(writeBatchSize); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TeradataSink withWriteBatchTimeout(Object writeBatchTimeout) { + super.withWriteBatchTimeout(writeBatchTimeout); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TeradataSink withSinkRetryCount(Object sinkRetryCount) { + super.withSinkRetryCount(sinkRetryCount); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TeradataSink withSinkRetryWait(Object sinkRetryWait) { + super.withSinkRetryWait(sinkRetryWait); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TeradataSink withMaxConcurrentConnections(Object maxConcurrentConnections) { + super.withMaxConcurrentConnections(maxConcurrentConnections); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TeradataSink withDisableMetricsCollection(Object disableMetricsCollection) { + super.withDisableMetricsCollection(disableMetricsCollection); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (importSettings() != null) { + importSettings().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeUntypedField("writeBatchSize", writeBatchSize()); + jsonWriter.writeUntypedField("writeBatchTimeout", writeBatchTimeout()); + jsonWriter.writeUntypedField("sinkRetryCount", sinkRetryCount()); + jsonWriter.writeUntypedField("sinkRetryWait", sinkRetryWait()); + jsonWriter.writeUntypedField("maxConcurrentConnections", maxConcurrentConnections()); + jsonWriter.writeUntypedField("disableMetricsCollection", disableMetricsCollection()); + jsonWriter.writeStringField("type", this.type); + jsonWriter.writeJsonField("importSettings", this.importSettings); + if (additionalProperties() != null) { + for (Map.Entry additionalProperty : additionalProperties().entrySet()) { + jsonWriter.writeUntypedField(additionalProperty.getKey(), additionalProperty.getValue()); + } + } + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TeradataSink from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TeradataSink 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 TeradataSink. + */ + public static TeradataSink fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TeradataSink deserializedTeradataSink = new TeradataSink(); + Map additionalProperties = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("writeBatchSize".equals(fieldName)) { + deserializedTeradataSink.withWriteBatchSize(reader.readUntyped()); + } else if ("writeBatchTimeout".equals(fieldName)) { + deserializedTeradataSink.withWriteBatchTimeout(reader.readUntyped()); + } else if ("sinkRetryCount".equals(fieldName)) { + deserializedTeradataSink.withSinkRetryCount(reader.readUntyped()); + } else if ("sinkRetryWait".equals(fieldName)) { + deserializedTeradataSink.withSinkRetryWait(reader.readUntyped()); + } else if ("maxConcurrentConnections".equals(fieldName)) { + deserializedTeradataSink.withMaxConcurrentConnections(reader.readUntyped()); + } else if ("disableMetricsCollection".equals(fieldName)) { + deserializedTeradataSink.withDisableMetricsCollection(reader.readUntyped()); + } else if ("type".equals(fieldName)) { + deserializedTeradataSink.type = reader.getString(); + } else if ("importSettings".equals(fieldName)) { + deserializedTeradataSink.importSettings = TeradataImportCommand.fromJson(reader); + } else { + if (additionalProperties == null) { + additionalProperties = new LinkedHashMap<>(); + } + + additionalProperties.put(fieldName, reader.readUntyped()); + } + } + deserializedTeradataSink.withAdditionalProperties(additionalProperties); + + return deserializedTeradataSink; + }); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java index 09ad3a6a7a08..e4f1538602bb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private TeradataTableDatasetTypeProperties innerTypeProperties() { + TeradataTableDatasetTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java index b6a91cb626ff..2f4d9ec45dd7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java @@ -80,7 +80,7 @@ public TumblingWindowTrigger withPipeline(TriggerPipelineReference pipeline) { * * @return the innerTypeProperties value. */ - private TumblingWindowTriggerTypeProperties innerTypeProperties() { + TumblingWindowTriggerTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TwilioLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TwilioLinkedService.java index feb66b0ce441..02e712c2fde5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TwilioLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TwilioLinkedService.java @@ -51,7 +51,7 @@ public String type() { * * @return the innerTypeProperties value. */ - private TwilioLinkedServiceTypeProperties innerTypeProperties() { + TwilioLinkedServiceTypeProperties innerTypeProperties() { return this.innerTypeProperties; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TypeConversionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TypeConversionSettings.java index d3a152c74123..6a0edbdc5e01 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TypeConversionSettings.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TypeConversionSettings.java @@ -41,6 +41,16 @@ public final class TypeConversionSettings implements JsonSerializable Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java deleted file mode 100644 index 66b8877f487d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ActivityPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ActivityPolicy model = BinaryData.fromString( - "{\"timeout\":\"datamlsuuhwuox\",\"retry\":\"datai\",\"retryIntervalInSeconds\":1056891956,\"secureInput\":true,\"secureOutput\":true,\"\":{\"xxcruleimswxoi\":\"datagzjrkslqbafdb\",\"pgzetuvfps\":\"datanqumj\",\"ks\":\"datajpmeptnqsnpa\"}}") - .toObject(ActivityPolicy.class); - Assertions.assertEquals(1056891956, model.retryIntervalInSeconds()); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityPolicy model = new ActivityPolicy().withTimeout("datamlsuuhwuox") - .withRetry("datai") - .withRetryIntervalInSeconds(1056891956) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ActivityPolicy.class); - Assertions.assertEquals(1056891956, model.retryIntervalInSeconds()); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java deleted file mode 100644 index ffa137de53a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityRun; -import java.util.HashMap; -import java.util.Map; - -public final class ActivityRunTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ActivityRun model = BinaryData.fromString( - "{\"pipelineName\":\"qhzvhxnkomt\",\"pipelineRunId\":\"bo\",\"activityName\":\"pnvdxz\",\"activityType\":\"ihfrbbcevqa\",\"activityRunId\":\"ltd\",\"linkedServiceName\":\"fkqojpy\",\"status\":\"gtrd\",\"activityRunStart\":\"2021-05-17T05:05:59Z\",\"activityRunEnd\":\"2021-08-15T02:13:51Z\",\"durationInMs\":2043504503,\"input\":\"datadymbrny\",\"output\":\"dataxmprafwg\",\"error\":\"datahocxvdfffwafqrou\",\"\":{\"kbunzoz\":\"datapavehhr\",\"cdyuibhmfdnbzyd\":\"datadhcxgkmoy\"}}") - .toObject(ActivityRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityRun model = new ActivityRun().withAdditionalProperties( - mapOf("durationInMs", 2043504503, "linkedServiceName", "fkqojpy", "activityRunStart", - "2021-05-17T05:05:59Z", "activityRunEnd", "2021-08-15T02:13:51Z", "activityName", "pnvdxz", "error", - "datahocxvdfffwafqrou", "pipelineName", "qhzvhxnkomt", "output", "dataxmprafwg", "activityRunId", "ltd", - "input", "datadymbrny", "pipelineRunId", "bo", "activityType", "ihfrbbcevqa", "status", "gtrd")); - model = BinaryData.fromObject(model).toObject(ActivityRun.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java deleted file mode 100644 index a309e7809b31..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Activity model = BinaryData.fromString( - "{\"type\":\"Activity\",\"name\":\"ljyxgtczhe\",\"description\":\"bsdshmkxmaehvbbx\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"n\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"wrck\":\"datagx\",\"gzibthostgktstv\":\"datayklyhpluodpvruud\"}},{\"activity\":\"xeclzedqbcvhzlhp\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Succeeded\"],\"\":{\"smlmbtxhwgfwsrta\":\"datawwqfbumlkxtrqj\",\"dyg\":\"datacoezbrhubskh\",\"fqjbvleo\":\"dataookk\",\"qybaryeua\":\"datafmluiqtqzfavyvn\"}},{\"activity\":\"jkqa\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"tiewdj\":\"dataesjcbhern\",\"ehwagoh\":\"datavbquwr\"}}],\"userProperties\":[{\"name\":\"fkmr\",\"value\":\"dataemvvhm\"}],\"\":{\"coebjvewzcj\":\"datarjfut\"}}") - .toObject(Activity.class); - Assertions.assertEquals("ljyxgtczhe", model.name()); - Assertions.assertEquals("bsdshmkxmaehvbbx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("n", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fkmr", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Activity model - = new Activity().withName("ljyxgtczhe") - .withDescription("bsdshmkxmaehvbbx") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("n") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xeclzedqbcvhzlhp") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jkqa") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("fkmr").withValue("dataemvvhm"))) - .withAdditionalProperties(mapOf("type", "Activity")); - model = BinaryData.fromObject(model).toObject(Activity.class); - Assertions.assertEquals("ljyxgtczhe", model.name()); - Assertions.assertEquals("bsdshmkxmaehvbbx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("n", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fkmr", model.userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java deleted file mode 100644 index 10ec7d9dc045..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class AddDataFlowToDebugSessionResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDataFlowToDebugSessionResponseInner model - = BinaryData.fromString("{\"jobVersion\":\"l\"}").toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("l", model.jobVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDataFlowToDebugSessionResponseInner model = new AddDataFlowToDebugSessionResponseInner().withJobVersion("l"); - model = BinaryData.fromObject(model).toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("l", model.jobVersion()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java deleted file mode 100644 index 2713ab94eec3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonMwsObjectDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonMwsObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonMwsObjectDataset model = BinaryData.fromString( - "{\"type\":\"AmazonMWSObject\",\"typeProperties\":{\"tableName\":\"datasfqqhcmecagsbf\"},\"description\":\"irpnj\",\"structure\":\"datallfkchhgs\",\"schema\":\"datazzcajl\",\"linkedServiceName\":{\"referenceName\":\"mqcycabaamkkhd\",\"parameters\":{\"ws\":\"datakxdujkxpuqzdyoq\",\"ezxiz\":\"dataarpzhry\",\"azccouhwivkd\":\"datasyxbfjilb\"}},\"parameters\":{\"dqbvx\":{\"type\":\"SecureString\",\"defaultValue\":\"datanrbxzepirtvcpi\"}},\"annotations\":[\"datalpwbopvhcbt\"],\"folder\":{\"name\":\"rjxcon\"},\"\":{\"h\":\"datakfki\",\"gvuqzgbjwvrudmp\":\"dataeoc\",\"esgyzwph\":\"dataewpmioleaja\"}}") - .toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("irpnj", model.description()); - Assertions.assertEquals("mqcycabaamkkhd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("dqbvx").type()); - Assertions.assertEquals("rjxcon", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsObjectDataset model = new AmazonMwsObjectDataset().withDescription("irpnj") - .withStructure("datallfkchhgs") - .withSchema("datazzcajl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mqcycabaamkkhd") - .withParameters( - mapOf("ws", "datakxdujkxpuqzdyoq", "ezxiz", "dataarpzhry", "azccouhwivkd", "datasyxbfjilb"))) - .withParameters(mapOf("dqbvx", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datanrbxzepirtvcpi"))) - .withAnnotations(Arrays.asList("datalpwbopvhcbt")) - .withFolder(new DatasetFolder().withName("rjxcon")) - .withTableName("datasfqqhcmecagsbf"); - model = BinaryData.fromObject(model).toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("irpnj", model.description()); - Assertions.assertEquals("mqcycabaamkkhd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("dqbvx").type()); - Assertions.assertEquals("rjxcon", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java deleted file mode 100644 index 790b4414dfa9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonMwsSource; - -public final class AmazonMwsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonMwsSource model = BinaryData.fromString( - "{\"type\":\"AmazonMWSSource\",\"query\":\"datakujceeczhsdpfoa\",\"queryTimeout\":\"dataahuwxodddqz\",\"additionalColumns\":\"datarrytgsocqkdc\",\"sourceRetryCount\":\"datazqnaoxsgmpdcb\",\"sourceRetryWait\":\"datazautuaysxhfupvq\",\"maxConcurrentConnections\":\"dataqlafi\",\"disableMetricsCollection\":\"dataw\",\"\":{\"mgaifgy\":\"datapuyefhhd\",\"hxpcxqc\":\"datakgqwmp\",\"dhx\":\"datankxhc\"}}") - .toObject(AmazonMwsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsSource model = new AmazonMwsSource().withSourceRetryCount("datazqnaoxsgmpdcb") - .withSourceRetryWait("datazautuaysxhfupvq") - .withMaxConcurrentConnections("dataqlafi") - .withDisableMetricsCollection("dataw") - .withQueryTimeout("dataahuwxodddqz") - .withAdditionalColumns("datarrytgsocqkdc") - .withQuery("datakujceeczhsdpfoa"); - model = BinaryData.fromObject(model).toObject(AmazonMwsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOraclePartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOraclePartitionSettingsTests.java deleted file mode 100644 index 6c5a5822f5d9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOraclePartitionSettingsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOraclePartitionSettings; - -public final class AmazonRdsForOraclePartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOraclePartitionSettings model = BinaryData.fromString( - "{\"partitionNames\":\"datajnsp\",\"partitionColumnName\":\"dataqo\",\"partitionUpperBound\":\"datautqt\",\"partitionLowerBound\":\"dataivvnmavfzjwdwwnx\"}") - .toObject(AmazonRdsForOraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOraclePartitionSettings model - = new AmazonRdsForOraclePartitionSettings().withPartitionNames("datajnsp") - .withPartitionColumnName("dataqo") - .withPartitionUpperBound("datautqt") - .withPartitionLowerBound("dataivvnmavfzjwdwwnx"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOraclePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java deleted file mode 100644 index 99406d66d20c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOraclePartitionSettings; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleSource; - -public final class AmazonRdsForOracleSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleSource model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForOracleSource\",\"oracleReaderQuery\":\"datav\",\"queryTimeout\":\"datai\",\"partitionOption\":\"datajhxxxuuqcmunhfa\",\"partitionSettings\":{\"partitionNames\":\"datanyvypu\",\"partitionColumnName\":\"dataxhowwe\",\"partitionUpperBound\":\"datayw\",\"partitionLowerBound\":\"datahiuwv\"},\"additionalColumns\":\"datagejytqnzrcbh\",\"sourceRetryCount\":\"datahctjvlwfnzgz\",\"sourceRetryWait\":\"datafyvytydrdcwbaiaq\",\"maxConcurrentConnections\":\"datauhsmuclx\",\"disableMetricsCollection\":\"dataedusu\",\"\":{\"ibrolqxloed\":\"datavykagsxhzhervv\",\"fsyq\":\"datazrvf\",\"owthvuepszzn\":\"datafgwuj\"}}") - .toObject(AmazonRdsForOracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleSource model = new AmazonRdsForOracleSource().withSourceRetryCount("datahctjvlwfnzgz") - .withSourceRetryWait("datafyvytydrdcwbaiaq") - .withMaxConcurrentConnections("datauhsmuclx") - .withDisableMetricsCollection("dataedusu") - .withOracleReaderQuery("datav") - .withQueryTimeout("datai") - .withPartitionOption("datajhxxxuuqcmunhfa") - .withPartitionSettings(new AmazonRdsForOraclePartitionSettings().withPartitionNames("datanyvypu") - .withPartitionColumnName("dataxhowwe") - .withPartitionUpperBound("datayw") - .withPartitionLowerBound("datahiuwv")) - .withAdditionalColumns("datagejytqnzrcbh"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java deleted file mode 100644 index 1106b6c3309f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRdsForOracleTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleTableDataset model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForOracleTable\",\"typeProperties\":{\"schema\":\"datankfrwxo\",\"table\":\"dataydsn\"},\"description\":\"pchiypbfhmih\",\"structure\":\"datatqozewbrsrjzgkbr\",\"schema\":\"dataxboufqnnqbjx\",\"linkedServiceName\":{\"referenceName\":\"jwsreruk\",\"parameters\":{\"wkjxlaaced\":\"datadrizw\",\"lssybzbev\":\"datakq\"}},\"parameters\":{\"jy\":{\"type\":\"Int\",\"defaultValue\":\"datammkiqhypwtmzy\"},\"i\":{\"type\":\"String\",\"defaultValue\":\"datamzqlnaag\"}},\"annotations\":[\"datafqiywhxpsb\",\"datapialezay\"],\"folder\":{\"name\":\"zudegefxlieg\"},\"\":{\"zkah\":\"dataosmhssfnw\",\"cufthdgwuzrono\":\"dataecknfm\",\"odcikgxk\":\"datavhzfkdnwy\"}}") - .toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("pchiypbfhmih", model.description()); - Assertions.assertEquals("jwsreruk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("jy").type()); - Assertions.assertEquals("zudegefxlieg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDataset model = new AmazonRdsForOracleTableDataset().withDescription("pchiypbfhmih") - .withStructure("datatqozewbrsrjzgkbr") - .withSchema("dataxboufqnnqbjx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jwsreruk") - .withParameters(mapOf("wkjxlaaced", "datadrizw", "lssybzbev", "datakq"))) - .withParameters(mapOf("jy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datammkiqhypwtmzy"), "i", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datamzqlnaag"))) - .withAnnotations(Arrays.asList("datafqiywhxpsb", "datapialezay")) - .withFolder(new DatasetFolder().withName("zudegefxlieg")) - .withSchemaTypePropertiesSchema("datankfrwxo") - .withTable("dataydsn"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("pchiypbfhmih", model.description()); - Assertions.assertEquals("jwsreruk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("jy").type()); - Assertions.assertEquals("zudegefxlieg", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java deleted file mode 100644 index 091bf4046708..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForOracleTableDatasetTypeProperties; - -public final class AmazonRdsForOracleTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datazfzdjekeb\",\"table\":\"datanxzsjwy\"}") - .toObject(AmazonRdsForOracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDatasetTypeProperties model - = new AmazonRdsForOracleTableDatasetTypeProperties().withSchema("datazfzdjekeb").withTable("datanxzsjwy"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java deleted file mode 100644 index f4a9bb725ce2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class AmazonRdsForSqlServerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerSource model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForSqlServerSource\",\"sqlReaderQuery\":\"dataqfaxtl\",\"sqlReaderStoredProcedureName\":\"datayzcgugslpvy\",\"storedProcedureParameters\":\"datafuhfa\",\"isolationLevel\":\"dataibvslocdkp\",\"produceAdditionalTypes\":\"datakq\",\"partitionOption\":\"datahdxnzjza\",\"partitionSettings\":{\"partitionColumnName\":\"dataiz\",\"partitionUpperBound\":\"datamibwzuhyda\",\"partitionLowerBound\":\"datakgwtbfxxsfj\"},\"queryTimeout\":\"dataascjighmkdsv\",\"additionalColumns\":\"datayhtiyxeh\",\"sourceRetryCount\":\"dataizoybtehky\",\"sourceRetryWait\":\"datanmmyznw\",\"maxConcurrentConnections\":\"datafqwkqulkzovqohwi\",\"disableMetricsCollection\":\"datarqxjxlsso\",\"\":{\"nsjjjcddsv\":\"datanyp\",\"jhpmajg\":\"datadbfniqxbc\",\"jwjhmtca\":\"datazpdioddtjylimz\"}}") - .toObject(AmazonRdsForSqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerSource model = new AmazonRdsForSqlServerSource().withSourceRetryCount("dataizoybtehky") - .withSourceRetryWait("datanmmyznw") - .withMaxConcurrentConnections("datafqwkqulkzovqohwi") - .withDisableMetricsCollection("datarqxjxlsso") - .withQueryTimeout("dataascjighmkdsv") - .withAdditionalColumns("datayhtiyxeh") - .withSqlReaderQuery("dataqfaxtl") - .withSqlReaderStoredProcedureName("datayzcgugslpvy") - .withStoredProcedureParameters("datafuhfa") - .withIsolationLevel("dataibvslocdkp") - .withProduceAdditionalTypes("datakq") - .withPartitionOption("datahdxnzjza") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("dataiz") - .withPartitionUpperBound("datamibwzuhyda") - .withPartitionLowerBound("datakgwtbfxxsfj")); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java deleted file mode 100644 index f1e33c5ff0c2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRdsForSqlServerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerTableDataset model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForSqlServerTable\",\"typeProperties\":{\"schema\":\"datawvxcimp\",\"table\":\"datajrmplzmsl\"},\"description\":\"nkn\",\"structure\":\"datauysjhvrr\",\"schema\":\"datafswarmybw\",\"linkedServiceName\":{\"referenceName\":\"rotgeysyq\",\"parameters\":{\"xia\":\"dataehfwwcbf\"}},\"parameters\":{\"yzguaxfhvjixg\":{\"type\":\"String\",\"defaultValue\":\"datacfjisosfzlnraxn\"},\"xdoicqpkntly\":{\"type\":\"SecureString\",\"defaultValue\":\"datadqwsjmihuvrqp\"},\"nsbmzjritukoym\":{\"type\":\"Int\",\"defaultValue\":\"datap\"},\"ndu\":{\"type\":\"Int\",\"defaultValue\":\"dataexmizzjxwjoqfzw\"}},\"annotations\":[\"dataw\",\"datavolxtqmricdsflzb\"],\"folder\":{\"name\":\"mjfgoxedrmra\"},\"\":{\"uzsoowxcsm\":\"datachvvoyiogbntnwz\",\"bsp\":\"datatlcappnvc\"}}") - .toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("nkn", model.description()); - Assertions.assertEquals("rotgeysyq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("yzguaxfhvjixg").type()); - Assertions.assertEquals("mjfgoxedrmra", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDataset model = new AmazonRdsForSqlServerTableDataset().withDescription("nkn") - .withStructure("datauysjhvrr") - .withSchema("datafswarmybw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rotgeysyq") - .withParameters(mapOf("xia", "dataehfwwcbf"))) - .withParameters(mapOf("yzguaxfhvjixg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datacfjisosfzlnraxn"), - "xdoicqpkntly", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datadqwsjmihuvrqp"), - "nsbmzjritukoym", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datap"), - "ndu", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataexmizzjxwjoqfzw"))) - .withAnnotations(Arrays.asList("dataw", "datavolxtqmricdsflzb")) - .withFolder(new DatasetFolder().withName("mjfgoxedrmra")) - .withSchemaTypePropertiesSchema("datawvxcimp") - .withTable("datajrmplzmsl"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("nkn", model.description()); - Assertions.assertEquals("rotgeysyq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("yzguaxfhvjixg").type()); - Assertions.assertEquals("mjfgoxedrmra", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java deleted file mode 100644 index 8150d1f9e37d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerTableDatasetTypeProperties; - -public final class AmazonRdsForSqlServerTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"dataryomhkdwuwe\",\"table\":\"datapbkmzkwhjjs\"}") - .toObject(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model - = new AmazonRdsForSqlServerTableDatasetTypeProperties().withSchema("dataryomhkdwuwe") - .withTable("datapbkmzkwhjjs"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java deleted file mode 100644 index 706de4dfa11b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRedshiftSource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.RedshiftUnloadSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRedshiftSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftSource model = BinaryData.fromString( - "{\"type\":\"AmazonRedshiftSource\",\"query\":\"datatgmxkol\",\"redshiftUnloadSettings\":{\"s3LinkedServiceName\":{\"referenceName\":\"nqjcmkpxbckjrfkw\",\"parameters\":{\"zatqocvrdj\":\"datamyowddhtwaxob\",\"cyvymv\":\"datavsclwpsteuvjdnh\",\"omohcynorh\":\"datalaehitxoib\",\"f\":\"databvbqxtktkeuapomo\"}},\"bucketName\":\"datanbhptraljcqp\"},\"queryTimeout\":\"datamathiydmkyvsxc\",\"additionalColumns\":\"datavghajpddgfoznmf\",\"sourceRetryCount\":\"datapjoesozcuhun\",\"sourceRetryWait\":\"datazbmwptdr\",\"maxConcurrentConnections\":\"datauyknoiumuxn\",\"disableMetricsCollection\":\"dataivgmck\",\"\":{\"oj\":\"dataxzsmpoiutaatvpb\",\"kekmgpseassdqpw\":\"datacgjogmvo\",\"pwxcjciotlbp\":\"datapxwdosfgbvsozjf\"}}") - .toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("nqjcmkpxbckjrfkw", - model.redshiftUnloadSettings().s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftSource model = new AmazonRedshiftSource().withSourceRetryCount("datapjoesozcuhun") - .withSourceRetryWait("datazbmwptdr") - .withMaxConcurrentConnections("datauyknoiumuxn") - .withDisableMetricsCollection("dataivgmck") - .withQueryTimeout("datamathiydmkyvsxc") - .withAdditionalColumns("datavghajpddgfoznmf") - .withQuery("datatgmxkol") - .withRedshiftUnloadSettings(new RedshiftUnloadSettings() - .withS3LinkedServiceName(new LinkedServiceReference().withReferenceName("nqjcmkpxbckjrfkw") - .withParameters(mapOf("zatqocvrdj", "datamyowddhtwaxob", "cyvymv", "datavsclwpsteuvjdnh", - "omohcynorh", "datalaehitxoib", "f", "databvbqxtktkeuapomo"))) - .withBucketName("datanbhptraljcqp")); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("nqjcmkpxbckjrfkw", - model.redshiftUnloadSettings().s3LinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java deleted file mode 100644 index 38ab8aba78ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRedshiftTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRedshiftTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftTableDataset model = BinaryData.fromString( - "{\"type\":\"AmazonRedshiftTable\",\"typeProperties\":{\"tableName\":\"datargyzcslazp\",\"table\":\"dataqoyimxp\",\"schema\":\"dataktteagbga\"},\"description\":\"qpjuytvude\",\"structure\":\"datapbybkisboif\",\"schema\":\"dataglpwdjr\",\"linkedServiceName\":{\"referenceName\":\"urfshzn\",\"parameters\":{\"txfrm\":\"datatuhaaaxxdcdjmdk\",\"ehxuihwes\":\"dataecxstowa\"}},\"parameters\":{\"tevspsaneyvaerp\":{\"type\":\"String\",\"defaultValue\":\"datagblkkncyp\"},\"kjwqdmraqnilp\":{\"type\":\"String\",\"defaultValue\":\"datanhrfbrj\"},\"lrfdjwlzseod\":{\"type\":\"Bool\",\"defaultValue\":\"dataaigazwf\"}},\"annotations\":[\"datadr\",\"datal\",\"dataymqxserwy\"],\"folder\":{\"name\":\"ytjwgetfigw\"},\"\":{\"ebjrahgdstubwg\":\"datajxzi\",\"mdoiiyobqzwjal\":\"dataxzsshxliqmsckwh\"}}") - .toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("qpjuytvude", model.description()); - Assertions.assertEquals("urfshzn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tevspsaneyvaerp").type()); - Assertions.assertEquals("ytjwgetfigw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDataset model = new AmazonRedshiftTableDataset().withDescription("qpjuytvude") - .withStructure("datapbybkisboif") - .withSchema("dataglpwdjr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("urfshzn") - .withParameters(mapOf("txfrm", "datatuhaaaxxdcdjmdk", "ehxuihwes", "dataecxstowa"))) - .withParameters(mapOf("tevspsaneyvaerp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datagblkkncyp"), - "kjwqdmraqnilp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datanhrfbrj"), - "lrfdjwlzseod", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataaigazwf"))) - .withAnnotations(Arrays.asList("datadr", "datal", "dataymqxserwy")) - .withFolder(new DatasetFolder().withName("ytjwgetfigw")) - .withTableName("datargyzcslazp") - .withTable("dataqoyimxp") - .withSchemaTypePropertiesSchema("dataktteagbga"); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("qpjuytvude", model.description()); - Assertions.assertEquals("urfshzn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tevspsaneyvaerp").type()); - Assertions.assertEquals("ytjwgetfigw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java deleted file mode 100644 index 3d914429733e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftTableDatasetTypeProperties; - -public final class AmazonRedshiftTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datasofxc\",\"table\":\"datarmvjfmrsuyd\",\"schema\":\"dataprel\"}") - .toObject(AmazonRedshiftTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDatasetTypeProperties model - = new AmazonRedshiftTableDatasetTypeProperties().withTableName("datasofxc") - .withTable("datarmvjfmrsuyd") - .withSchema("dataprel"); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java deleted file mode 100644 index ece1b5b75bfc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleLocation; - -public final class AmazonS3CompatibleLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3CompatibleLocation model = BinaryData.fromString( - "{\"type\":\"AmazonS3CompatibleLocation\",\"bucketName\":\"datagcozzomehxlant\",\"version\":\"dataamlbiju\",\"folderPath\":\"dataqllczipvwdtgckz\",\"fileName\":\"dataiqdlratrkw\",\"\":{\"lhpryjfzihuio\":\"datauwxsuykznhrfgsl\",\"pajtfeyvkbd\":\"dataeo\",\"rhd\":\"datadd\",\"uzy\":\"datacxbeuuqutkzwtjww\"}}") - .toObject(AmazonS3CompatibleLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleLocation model = new AmazonS3CompatibleLocation().withFolderPath("dataqllczipvwdtgckz") - .withFileName("dataiqdlratrkw") - .withBucketName("datagcozzomehxlant") - .withVersion("dataamlbiju"); - model = BinaryData.fromObject(model).toObject(AmazonS3CompatibleLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java deleted file mode 100644 index 50fa3e6c1867..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleReadSettings; - -public final class AmazonS3CompatibleReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3CompatibleReadSettings model = BinaryData.fromString( - "{\"type\":\"AmazonS3CompatibleReadSettings\",\"recursive\":\"datayglfyfcsbkjhoxtb\",\"wildcardFolderPath\":\"databpef\",\"wildcardFileName\":\"datapnixdgqjkfvmrn\",\"prefix\":\"dataeajyifeiiriomjd\",\"fileListPath\":\"datanbtlxrdepqt\",\"enablePartitionDiscovery\":\"datahkpko\",\"partitionRootPath\":\"datavfno\",\"deleteFilesAfterCompletion\":\"datawhutvcdtgxsyfuh\",\"modifiedDatetimeStart\":\"datamzxpsrlbppjqcwc\",\"modifiedDatetimeEnd\":\"dataaosk\",\"maxConcurrentConnections\":\"dataalljsoasxjjklm\",\"disableMetricsCollection\":\"datagrosxfdxrc\",\"\":{\"zlreiwdskiegta\":\"databbhluvdceouevno\",\"ptaasqolxaodb\":\"datanal\",\"mihggvyhqwyxb\":\"datagxbadborq\"}}") - .toObject(AmazonS3CompatibleReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleReadSettings model - = new AmazonS3CompatibleReadSettings().withMaxConcurrentConnections("dataalljsoasxjjklm") - .withDisableMetricsCollection("datagrosxfdxrc") - .withRecursive("datayglfyfcsbkjhoxtb") - .withWildcardFolderPath("databpef") - .withWildcardFileName("datapnixdgqjkfvmrn") - .withPrefix("dataeajyifeiiriomjd") - .withFileListPath("datanbtlxrdepqt") - .withEnablePartitionDiscovery("datahkpko") - .withPartitionRootPath("datavfno") - .withDeleteFilesAfterCompletion("datawhutvcdtgxsyfuh") - .withModifiedDatetimeStart("datamzxpsrlbppjqcwc") - .withModifiedDatetimeEnd("dataaosk"); - model = BinaryData.fromObject(model).toObject(AmazonS3CompatibleReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java deleted file mode 100644 index 634d1ff52e97..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3Location; - -public final class AmazonS3LocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3Location model = BinaryData.fromString( - "{\"type\":\"AmazonS3Location\",\"bucketName\":\"dataaxmfmvsmcwoxfa\",\"version\":\"datatnq\",\"folderPath\":\"databsat\",\"fileName\":\"dataiauesugmocpcjy\",\"\":{\"ini\":\"dataelrgttwfldsiuo\",\"zqv\":\"datacedpksriwmmtmqrx\",\"xiqahr\":\"datayczyayubtgm\"}}") - .toObject(AmazonS3Location.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3Location model = new AmazonS3Location().withFolderPath("databsat") - .withFileName("dataiauesugmocpcjy") - .withBucketName("dataaxmfmvsmcwoxfa") - .withVersion("datatnq"); - model = BinaryData.fromObject(model).toObject(AmazonS3Location.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java deleted file mode 100644 index 056628ec9919..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3ReadSettings; - -public final class AmazonS3ReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3ReadSettings model = BinaryData.fromString( - "{\"type\":\"AmazonS3ReadSettings\",\"recursive\":\"dataziztgddahymv\",\"wildcardFolderPath\":\"datajtdhmig\",\"wildcardFileName\":\"dataaoexgienylsijqyg\",\"prefix\":\"datashd\",\"fileListPath\":\"datahxv\",\"enablePartitionDiscovery\":\"datafdsafgkysymhuxs\",\"partitionRootPath\":\"datallbpegcetezaa\",\"deleteFilesAfterCompletion\":\"dataszrbttz\",\"modifiedDatetimeStart\":\"dataeyrw\",\"modifiedDatetimeEnd\":\"datafgoyxxszpaiecurf\",\"maxConcurrentConnections\":\"datafshfmgiixurve\",\"disableMetricsCollection\":\"datahsmulvmy\",\"\":{\"mufipygtmoycpotm\":\"datafkpuuuxiuwhcycke\",\"ngtbhvhsqvubww\":\"dataos\"}}") - .toObject(AmazonS3ReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3ReadSettings model = new AmazonS3ReadSettings().withMaxConcurrentConnections("datafshfmgiixurve") - .withDisableMetricsCollection("datahsmulvmy") - .withRecursive("dataziztgddahymv") - .withWildcardFolderPath("datajtdhmig") - .withWildcardFileName("dataaoexgienylsijqyg") - .withPrefix("datashd") - .withFileListPath("datahxv") - .withEnablePartitionDiscovery("datafdsafgkysymhuxs") - .withPartitionRootPath("datallbpegcetezaa") - .withDeleteFilesAfterCompletion("dataszrbttz") - .withModifiedDatetimeStart("dataeyrw") - .withModifiedDatetimeEnd("datafgoyxxszpaiecurf"); - model = BinaryData.fromObject(model).toObject(AmazonS3ReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.java deleted file mode 100644 index 9703d260d086..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AppendVariableActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AppendVariableActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AppendVariableActivity model = BinaryData.fromString( - "{\"type\":\"AppendVariable\",\"typeProperties\":{\"variableName\":\"q\",\"value\":\"dataf\"},\"name\":\"gntrynfoaoeuztps\",\"description\":\"hdqcrigygtodp\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"bybrvkxrcfzsz\",\"dependencyConditions\":[\"Succeeded\",\"Completed\"],\"\":{\"uuzftd\":\"dataucvq\",\"vxtz\":\"dataktmsphcrn\",\"pigsulejukack\":\"dataspykcreu\"}},{\"activity\":\"crdrdkexcyw\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Completed\",\"Succeeded\"],\"\":{\"rsajtdzpel\":\"datajllypchqhc\",\"gczxicqyvwzxqmve\":\"dataktkimm\",\"mrqdgyttfzoz\":\"datatnro\"}}],\"userProperties\":[{\"name\":\"njjimfcgbdup\",\"value\":\"datalwlhuuezxcpxwq\"}],\"\":{\"foosiplhygpsahu\":\"dataqueqeabe\",\"geym\":\"datammshfh\",\"lpnrjswr\":\"datapvgatzr\"}}") - .toObject(AppendVariableActivity.class); - Assertions.assertEquals("gntrynfoaoeuztps", model.name()); - Assertions.assertEquals("hdqcrigygtodp", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("bybrvkxrcfzsz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("njjimfcgbdup", model.userProperties().get(0).name()); - Assertions.assertEquals("q", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivity model = new AppendVariableActivity().withName("gntrynfoaoeuztps") - .withDescription("hdqcrigygtodp") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("bybrvkxrcfzsz") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("crdrdkexcyw") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("njjimfcgbdup").withValue("datalwlhuuezxcpxwq"))) - .withVariableName("q") - .withValue("dataf"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivity.class); - Assertions.assertEquals("gntrynfoaoeuztps", model.name()); - Assertions.assertEquals("hdqcrigygtodp", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("bybrvkxrcfzsz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("njjimfcgbdup", model.userProperties().get(0).name()); - Assertions.assertEquals("q", model.variableName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java deleted file mode 100644 index 82279312dd8d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AppendVariableActivityTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class AppendVariableActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AppendVariableActivityTypeProperties model - = BinaryData.fromString("{\"variableName\":\"xrecwdle\",\"value\":\"datamuqmzxrjvh\"}") - .toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("xrecwdle", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivityTypeProperties model - = new AppendVariableActivityTypeProperties().withVariableName("xrecwdle").withValue("datamuqmzxrjvh"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("xrecwdle", model.variableName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java deleted file mode 100644 index 07c0368f7336..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; - -public final class ArmIdWrapperTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ArmIdWrapper model = BinaryData.fromString("{\"id\":\"lbyrru\"}").toObject(ArmIdWrapper.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ArmIdWrapper model = new ArmIdWrapper(); - model = BinaryData.fromObject(model).toObject(ArmIdWrapper.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java deleted file mode 100644 index c023936dac7b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroFormat; - -public final class AvroFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroFormat model = BinaryData.fromString( - "{\"type\":\"AvroFormat\",\"serializer\":\"datafcwrri\",\"deserializer\":\"dataxeezwyhjmbjiqe\",\"\":{\"ohcwhpyv\":\"datadb\",\"z\":\"datakgdet\"}}") - .toObject(AvroFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroFormat model = new AvroFormat().withSerializer("datafcwrri").withDeserializer("dataxeezwyhjmbjiqe"); - model = BinaryData.fromObject(model).toObject(AvroFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java deleted file mode 100644 index d882d719055d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroSink; -import com.azure.resourcemanager.datafactory.models.AvroWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AvroSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroSink model = BinaryData.fromString( - "{\"type\":\"AvroSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datafsol\",\"disableMetricsCollection\":\"dataquulnhxrcjs\",\"copyBehavior\":\"datacvrmwbg\",\"metadata\":[{\"name\":\"dataqbxp\",\"value\":\"datapgsr\"}],\"\":{\"gspboaevtxibroo\":\"datak\"}},\"formatSettings\":{\"type\":\"AvroWriteSettings\",\"recordName\":\"jiqwxwpub\",\"recordNamespace\":\"qnprbvruhdjzivl\",\"maxRowsPerFile\":\"datai\",\"fileNamePrefix\":\"dataqnqmbf\",\"\":{\"kkzulmqx\":\"dataixmksxxbdtjvvngn\",\"nwij\":\"dataic\",\"er\":\"dataeyxt\",\"ytten\":\"datattobosjxb\"}},\"writeBatchSize\":\"dataditumyycvtya\",\"writeBatchTimeout\":\"datayimhspjqhi\",\"sinkRetryCount\":\"datablqvwhjgtbh\",\"sinkRetryWait\":\"dataoutq\",\"maxConcurrentConnections\":\"datapbtqibq\",\"disableMetricsCollection\":\"dataugcwzgdfdrdxo\",\"\":{\"lxoljbpoeoyw\":\"datagezulnntpbarejxj\",\"rx\":\"datakhhavwhrivvzrccy\",\"bbxanev\":\"datasypwudeea\",\"ju\":\"dataq\"}}") - .toObject(AvroSink.class); - Assertions.assertEquals("jiqwxwpub", model.formatSettings().recordName()); - Assertions.assertEquals("qnprbvruhdjzivl", model.formatSettings().recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSink model = new AvroSink().withWriteBatchSize("dataditumyycvtya") - .withWriteBatchTimeout("datayimhspjqhi") - .withSinkRetryCount("datablqvwhjgtbh") - .withSinkRetryWait("dataoutq") - .withMaxConcurrentConnections("datapbtqibq") - .withDisableMetricsCollection("dataugcwzgdfdrdxo") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datafsol") - .withDisableMetricsCollection("dataquulnhxrcjs") - .withCopyBehavior("datacvrmwbg") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataqbxp").withValue("datapgsr"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new AvroWriteSettings().withRecordName("jiqwxwpub") - .withRecordNamespace("qnprbvruhdjzivl") - .withMaxRowsPerFile("datai") - .withFileNamePrefix("dataqnqmbf")); - model = BinaryData.fromObject(model).toObject(AvroSink.class); - Assertions.assertEquals("jiqwxwpub", model.formatSettings().recordName()); - Assertions.assertEquals("qnprbvruhdjzivl", model.formatSettings().recordNamespace()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java deleted file mode 100644 index dcff4cc0ded3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class AvroSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroSource model = BinaryData.fromString( - "{\"type\":\"AvroSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datayylekubiwv\",\"disableMetricsCollection\":\"datazzny\",\"\":{\"isloquttkbzwgju\":\"datawxpwjv\",\"jttnurkmerqzap\":\"datajbdqmnkiajqsshup\",\"jwdlduvimgtce\":\"datawomevqvv\"}},\"additionalColumns\":\"datamxoxtapaf\",\"sourceRetryCount\":\"datavbkjtgzkcptav\",\"sourceRetryWait\":\"datapydnujgblski\",\"maxConcurrentConnections\":\"datarvpuacajxdr\",\"disableMetricsCollection\":\"datapuxpzslm\",\"\":{\"fge\":\"datapzrycchqz\",\"ch\":\"datadzgszjhekbmd\",\"vwysbme\":\"dataojsrhgpitye\",\"bznl\":\"dataf\"}}") - .toObject(AvroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSource model = new AvroSource().withSourceRetryCount("datavbkjtgzkcptav") - .withSourceRetryWait("datapydnujgblski") - .withMaxConcurrentConnections("datarvpuacajxdr") - .withDisableMetricsCollection("datapuxpzslm") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datayylekubiwv") - .withDisableMetricsCollection("datazzny") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("datamxoxtapaf"); - model = BinaryData.fromObject(model).toObject(AvroSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java deleted file mode 100644 index 30cb3fadffdf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroWriteSettings; -import org.junit.jupiter.api.Assertions; - -public final class AvroWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroWriteSettings model = BinaryData.fromString( - "{\"type\":\"AvroWriteSettings\",\"recordName\":\"ieeoc\",\"recordNamespace\":\"rvsfzgcsco\",\"maxRowsPerFile\":\"datafsgilwisqxzpz\",\"fileNamePrefix\":\"dataustrtrfvogk\",\"\":{\"irbrvz\":\"datashmpcjqtuz\"}}") - .toObject(AvroWriteSettings.class); - Assertions.assertEquals("ieeoc", model.recordName()); - Assertions.assertEquals("rvsfzgcsco", model.recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroWriteSettings model = new AvroWriteSettings().withRecordName("ieeoc") - .withRecordNamespace("rvsfzgcsco") - .withMaxRowsPerFile("datafsgilwisqxzpz") - .withFileNamePrefix("dataustrtrfvogk"); - model = BinaryData.fromObject(model).toObject(AvroWriteSettings.class); - Assertions.assertEquals("ieeoc", model.recordName()); - Assertions.assertEquals("rvsfzgcsco", model.recordNamespace()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java deleted file mode 100644 index 6e95a4524fed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzPowerShellSetup; -import org.junit.jupiter.api.Assertions; - -public final class AzPowerShellSetupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzPowerShellSetup model = BinaryData - .fromString("{\"type\":\"AzPowerShellSetup\",\"typeProperties\":{\"version\":\"gjjioqwuuogdkp\"}}") - .toObject(AzPowerShellSetup.class); - Assertions.assertEquals("gjjioqwuuogdkp", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetup model = new AzPowerShellSetup().withVersion("gjjioqwuuogdkp"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetup.class); - Assertions.assertEquals("gjjioqwuuogdkp", model.version()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTypePropertiesTests.java deleted file mode 100644 index adf568b00b97..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzPowerShellSetupTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class AzPowerShellSetupTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzPowerShellSetupTypeProperties model - = BinaryData.fromString("{\"version\":\"mwr\"}").toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("mwr", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetupTypeProperties model = new AzPowerShellSetupTypeProperties().withVersion("mwr"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("mwr", model.version()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java deleted file mode 100644 index 706eb466c964..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureBlobDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobDataset model = BinaryData.fromString( - "{\"type\":\"AzureBlob\",\"typeProperties\":{\"folderPath\":\"datal\",\"tableRootLocation\":\"datavig\",\"fileName\":\"dataghfrbzakpjtcq\",\"modifiedDatetimeStart\":\"dataqpojpsucmximc\",\"modifiedDatetimeEnd\":\"dataxyn\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datasatkyvscb\",\"deserializer\":\"datagcru\",\"\":{\"bjolpyoklkv\":\"dataircpgcvsvkk\"}},\"compression\":{\"type\":\"datanadvhml\",\"level\":\"dataoi\",\"\":{\"mqwtqszzgy\":\"dataxxbhtpsyioq\",\"gjqcrbkompnbnfg\":\"datasikawanvmwd\"}}},\"description\":\"e\",\"structure\":\"databepgcmahiwfry\",\"schema\":\"datakchkapit\",\"linkedServiceName\":{\"referenceName\":\"kshfy\",\"parameters\":{\"nfd\":\"dataibjepzwhj\"}},\"parameters\":{\"vwehsu\":{\"type\":\"Object\",\"defaultValue\":\"datajxzhbl\"}},\"annotations\":[\"dataymbh\",\"dataosmbngkqlgxz\",\"datauvxdmxexatmd\"],\"folder\":{\"name\":\"senxoirxyd\"},\"\":{\"xznntwgkvyohp\":\"dataploisjkzs\",\"wytb\":\"dataapzupz\",\"mxpqkjnpyriwn\":\"datajzghximkg\",\"xmmqmt\":\"dataot\"}}") - .toObject(AzureBlobDataset.class); - Assertions.assertEquals("e", model.description()); - Assertions.assertEquals("kshfy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vwehsu").type()); - Assertions.assertEquals("senxoirxyd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDataset model = new AzureBlobDataset().withDescription("e") - .withStructure("databepgcmahiwfry") - .withSchema("datakchkapit") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("kshfy").withParameters(mapOf("nfd", "dataibjepzwhj"))) - .withParameters(mapOf("vwehsu", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datajxzhbl"))) - .withAnnotations(Arrays.asList("dataymbh", "dataosmbngkqlgxz", "datauvxdmxexatmd")) - .withFolder(new DatasetFolder().withName("senxoirxyd")) - .withFolderPath("datal") - .withTableRootLocation("datavig") - .withFileName("dataghfrbzakpjtcq") - .withModifiedDatetimeStart("dataqpojpsucmximc") - .withModifiedDatetimeEnd("dataxyn") - .withFormat(new DatasetStorageFormat().withSerializer("datasatkyvscb") - .withDeserializer("datagcru") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression().withType("datanadvhml").withLevel("dataoi").withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobDataset.class); - Assertions.assertEquals("e", model.description()); - Assertions.assertEquals("kshfy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vwehsu").type()); - Assertions.assertEquals("senxoirxyd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java deleted file mode 100644 index c9f5d0a0272f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureBlobDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"dataky\",\"tableRootLocation\":\"dataexwdonbexf\",\"fileName\":\"datadaubheeggzgr\",\"modifiedDatetimeStart\":\"datatlfozuumrtgjqgac\",\"modifiedDatetimeEnd\":\"datatnsyxzxjm\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"databc\",\"deserializer\":\"datazofmexvtemaspm\",\"\":{\"hntofe\":\"datadscdkxwdpwjcbha\",\"fixoskk\":\"datafh\",\"zzmrgtxdhmfpp\":\"datadfivsujybsr\"}},\"compression\":{\"type\":\"datamgikesmkwt\",\"level\":\"datafragjhxerx\",\"\":{\"vmmnii\":\"datakdbtq\",\"bggicnqwlctmw\":\"datayholhjns\"}}}") - .toObject(AzureBlobDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDatasetTypeProperties model = new AzureBlobDatasetTypeProperties().withFolderPath("dataky") - .withTableRootLocation("dataexwdonbexf") - .withFileName("datadaubheeggzgr") - .withModifiedDatetimeStart("datatlfozuumrtgjqgac") - .withModifiedDatetimeEnd("datatnsyxzxjm") - .withFormat(new DatasetStorageFormat().withSerializer("databc") - .withDeserializer("datazofmexvtemaspm") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datamgikesmkwt") - .withLevel("datafragjhxerx") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java deleted file mode 100644 index 3dc9b211d64c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureBlobFSDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSDataset model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSFile\",\"typeProperties\":{\"folderPath\":\"datakkvxu\",\"fileName\":\"dataqzbvbpsuvqhxt\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datagdkwbkurklpiigfu\",\"deserializer\":\"dataeutuipjclz\",\"\":{\"ydewuwxyll\":\"dataqdz\",\"k\":\"datazzevtzqwczochwb\",\"kyvnhiysdhork\":\"datauynf\",\"qki\":\"datalhr\"}},\"compression\":{\"type\":\"datawkffla\",\"level\":\"datamwqoguflteatnege\",\"\":{\"hnvxwtd\":\"dataxnjtqbgysib\",\"kxunsaujqgbb\":\"datatcbjdbtqy\",\"hgjsmbcsloy\":\"datavovoa\"}}},\"description\":\"abdgdheronsd\",\"structure\":\"datarkzvz\",\"schema\":\"datatqhgz\",\"linkedServiceName\":{\"referenceName\":\"yxtrvfdbqsk\",\"parameters\":{\"ptpvsffavdhpiw\":\"databvi\",\"bwxyldqtmggcpd\":\"datamuwkgjwbyfdw\",\"zctwymzsk\":\"datamegaj\"}},\"parameters\":{\"gliupqscoob\":{\"type\":\"Object\",\"defaultValue\":\"dataeseip\"},\"incev\":{\"type\":\"Object\",\"defaultValue\":\"datacaxsqcomjiq\"},\"duvtvod\":{\"type\":\"Int\",\"defaultValue\":\"datadevpximziizmeq\"},\"hm\":{\"type\":\"SecureString\",\"defaultValue\":\"datap\"}},\"annotations\":[\"datab\",\"datablmcvrjaznotdof\",\"datavpbqsdqkpsbqs\",\"databmitaftazgcxsvq\"],\"folder\":{\"name\":\"ufylamxowbg\"},\"\":{\"xiknsgofuns\":\"datayutehlkarvtipquk\",\"xn\":\"datahpcekggvmfnnb\"}}") - .toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("abdgdheronsd", model.description()); - Assertions.assertEquals("yxtrvfdbqsk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("gliupqscoob").type()); - Assertions.assertEquals("ufylamxowbg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDataset model - = new AzureBlobFSDataset().withDescription("abdgdheronsd") - .withStructure("datarkzvz") - .withSchema("datatqhgz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("yxtrvfdbqsk") - .withParameters(mapOf("ptpvsffavdhpiw", "databvi", "bwxyldqtmggcpd", "datamuwkgjwbyfdw", - "zctwymzsk", "datamegaj"))) - .withParameters(mapOf("gliupqscoob", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataeseip"), "incev", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacaxsqcomjiq"), - "duvtvod", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datadevpximziizmeq"), - "hm", new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datap"))) - .withAnnotations( - Arrays.asList("datab", "datablmcvrjaznotdof", "datavpbqsdqkpsbqs", "databmitaftazgcxsvq")) - .withFolder(new DatasetFolder().withName("ufylamxowbg")) - .withFolderPath("datakkvxu") - .withFileName("dataqzbvbpsuvqhxt") - .withFormat(new DatasetStorageFormat().withSerializer("datagdkwbkurklpiigfu") - .withDeserializer("dataeutuipjclz") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datawkffla") - .withLevel("datamwqoguflteatnege") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("abdgdheronsd", model.description()); - Assertions.assertEquals("yxtrvfdbqsk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("gliupqscoob").type()); - Assertions.assertEquals("ufylamxowbg", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java deleted file mode 100644 index eba36702c156..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureBlobFSDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"datafkk\",\"fileName\":\"dataeetxtpwcv\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datawsunjzijaciwmmpd\",\"deserializer\":\"datadonb\",\"\":{\"wsyuifkzqqhbtflo\":\"datanfzyviiwsuanz\",\"eoiipjpngvyvu\":\"datalmkf\",\"ryclo\":\"dataikdlpsxntugfwimq\",\"jeleifqhdxt\":\"datafmvswx\"}},\"compression\":{\"type\":\"dataulkrybpaev\",\"level\":\"databyjecrq\",\"\":{\"uibsd\":\"datakkchsfoulborc\",\"lp\":\"databdy\"}}}") - .toObject(AzureBlobFSDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDatasetTypeProperties model = new AzureBlobFSDatasetTypeProperties().withFolderPath("datafkk") - .withFileName("dataeetxtpwcv") - .withFormat(new DatasetStorageFormat().withSerializer("datawsunjzijaciwmmpd") - .withDeserializer("datadonb") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("dataulkrybpaev") - .withLevel("databyjecrq") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobFSDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java deleted file mode 100644 index ba13d1fc2fc4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSLocation; - -public final class AzureBlobFSLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSLocation model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSLocation\",\"fileSystem\":\"dataqqyeqfcb\",\"folderPath\":\"datalpyuflqjf\",\"fileName\":\"datatujcyoh\",\"\":{\"nmbzmecuy\":\"datamwdcsklkqnqvki\",\"rietvfp\":\"datazwimbzayspz\",\"gtpvdva\":\"datamdzxp\",\"kkzovlzdm\":\"datalzmgschnzrs\"}}") - .toObject(AzureBlobFSLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSLocation model = new AzureBlobFSLocation().withFolderPath("datalpyuflqjf") - .withFileName("datatujcyoh") - .withFileSystem("dataqqyeqfcb"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java deleted file mode 100644 index f9efd3744977..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSReadSettings; - -public final class AzureBlobFSReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSReadSettings\",\"recursive\":\"dataejkvcimq\",\"wildcardFolderPath\":\"datad\",\"wildcardFileName\":\"datahhwtgcgefayc\",\"fileListPath\":\"datagotbjnxozi\",\"enablePartitionDiscovery\":\"dataxnpov\",\"partitionRootPath\":\"dataxl\",\"deleteFilesAfterCompletion\":\"datamsgdisupnxth\",\"modifiedDatetimeStart\":\"datazdvokxuyhhrdi\",\"modifiedDatetimeEnd\":\"databqeahgsibldxyaq\",\"maxConcurrentConnections\":\"dataaznz\",\"disableMetricsCollection\":\"datazfhh\",\"\":{\"ihn\":\"dataxkgnryalkfdxa\",\"dwyehqnxuffgjyn\":\"datardh\"}}") - .toObject(AzureBlobFSReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSReadSettings model = new AzureBlobFSReadSettings().withMaxConcurrentConnections("dataaznz") - .withDisableMetricsCollection("datazfhh") - .withRecursive("dataejkvcimq") - .withWildcardFolderPath("datad") - .withWildcardFileName("datahhwtgcgefayc") - .withFileListPath("datagotbjnxozi") - .withEnablePartitionDiscovery("dataxnpov") - .withPartitionRootPath("dataxl") - .withDeleteFilesAfterCompletion("datamsgdisupnxth") - .withModifiedDatetimeStart("datazdvokxuyhhrdi") - .withModifiedDatetimeEnd("databqeahgsibldxyaq"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.java deleted file mode 100644 index 5c2e67fa162c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSSink; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureBlobFSSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSSink model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSSink\",\"copyBehavior\":\"datazmrlprbclj\",\"metadata\":[{\"name\":\"dataawnz\",\"value\":\"datafvefskjbasmrdpb\"},{\"name\":\"dataqusv\",\"value\":\"datagfzbykap\"},{\"name\":\"dataomc\",\"value\":\"datam\"},{\"name\":\"datadtg\",\"value\":\"datayubnwymyewbfoxw\"}],\"writeBatchSize\":\"dataetj\",\"writeBatchTimeout\":\"datajbahx\",\"sinkRetryCount\":\"dataddpbt\",\"sinkRetryWait\":\"datardj\",\"maxConcurrentConnections\":\"datacrmptjsixawipj\",\"disableMetricsCollection\":\"datacyxnza\",\"\":{\"dvapoh\":\"datavbkhgdzrc\"}}") - .toObject(AzureBlobFSSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSink model = new AzureBlobFSSink().withWriteBatchSize("dataetj") - .withWriteBatchTimeout("datajbahx") - .withSinkRetryCount("dataddpbt") - .withSinkRetryWait("datardj") - .withMaxConcurrentConnections("datacrmptjsixawipj") - .withDisableMetricsCollection("datacyxnza") - .withCopyBehavior("datazmrlprbclj") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataawnz").withValue("datafvefskjbasmrdpb"), - new MetadataItem().withName("dataqusv").withValue("datagfzbykap"), - new MetadataItem().withName("dataomc").withValue("datam"), - new MetadataItem().withName("datadtg").withValue("datayubnwymyewbfoxw"))); - model = BinaryData.fromObject(model).toObject(AzureBlobFSSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java deleted file mode 100644 index 09bd1339c126..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSSource; - -public final class AzureBlobFSSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSSource model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSSource\",\"treatEmptyAsNull\":\"databtuujcuavctxyrm\",\"skipHeaderLineCount\":\"datahrzmy\",\"recursive\":\"datan\",\"sourceRetryCount\":\"dataajxv\",\"sourceRetryWait\":\"dataidlwmewrgu\",\"maxConcurrentConnections\":\"dataugpkunvygupgnnvm\",\"disableMetricsCollection\":\"datazqmxwwmekms\",\"\":{\"x\":\"datajbefszfrxfywjy\",\"mykgrtwh\":\"dataqmdeecdhyjsizyhp\",\"hismw\":\"dataa\"}}") - .toObject(AzureBlobFSSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSource model = new AzureBlobFSSource().withSourceRetryCount("dataajxv") - .withSourceRetryWait("dataidlwmewrgu") - .withMaxConcurrentConnections("dataugpkunvygupgnnvm") - .withDisableMetricsCollection("datazqmxwwmekms") - .withTreatEmptyAsNull("databtuujcuavctxyrm") - .withSkipHeaderLineCount("datahrzmy") - .withRecursive("datan"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.java deleted file mode 100644 index 1bae2739bc90..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureBlobFSWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSWriteSettings model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSWriteSettings\",\"blockSizeInMB\":\"dataikedmou\",\"maxConcurrentConnections\":\"datauqo\",\"disableMetricsCollection\":\"dataic\",\"copyBehavior\":\"datayjszmleuqxhmrilw\",\"metadata\":[{\"name\":\"datasvpv\",\"value\":\"dataulxxznfxdqqzi\"},{\"name\":\"datagwqi\",\"value\":\"datadhas\"}],\"\":{\"tdmhr\":\"dataaexrzxvffqc\"}}") - .toObject(AzureBlobFSWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSWriteSettings model = new AzureBlobFSWriteSettings().withMaxConcurrentConnections("datauqo") - .withDisableMetricsCollection("dataic") - .withCopyBehavior("datayjszmleuqxhmrilw") - .withMetadata(Arrays.asList(new MetadataItem().withName("datasvpv").withValue("dataulxxznfxdqqzi"), - new MetadataItem().withName("datagwqi").withValue("datadhas"))) - .withBlockSizeInMB("dataikedmou"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java deleted file mode 100644 index 214f2c2421d9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation; - -public final class AzureBlobStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageLocation model = BinaryData.fromString( - "{\"type\":\"AzureBlobStorageLocation\",\"container\":\"datazpzlpryf\",\"folderPath\":\"datamdutzfk\",\"fileName\":\"datalnoud\",\"\":{\"gdpri\":\"datand\"}}") - .toObject(AzureBlobStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageLocation model = new AzureBlobStorageLocation().withFolderPath("datamdutzfk") - .withFileName("datalnoud") - .withContainer("datazpzlpryf"); - model = BinaryData.fromObject(model).toObject(AzureBlobStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java deleted file mode 100644 index c3d04a8439e9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageReadSettings; - -public final class AzureBlobStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureBlobStorageReadSettings\",\"recursive\":\"datazcjmsrorjby\",\"wildcardFolderPath\":\"datakcvahvby\",\"wildcardFileName\":\"datat\",\"prefix\":\"datavwvengicyc\",\"fileListPath\":\"datakhgjyho\",\"enablePartitionDiscovery\":\"datamahbj\",\"partitionRootPath\":\"datavskqxgb\",\"deleteFilesAfterCompletion\":\"dataozrvlklaurl\",\"modifiedDatetimeStart\":\"dataseocp\",\"modifiedDatetimeEnd\":\"datasfj\",\"maxConcurrentConnections\":\"datagmogmcjn\",\"disableMetricsCollection\":\"dataukbwypcvqfz\",\"\":{\"erizf\":\"datax\",\"cdpyoqmwpmrlgj\":\"datawlkovopqp\",\"fptvam\":\"dataqs\"}}") - .toObject(AzureBlobStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageReadSettings model - = new AzureBlobStorageReadSettings().withMaxConcurrentConnections("datagmogmcjn") - .withDisableMetricsCollection("dataukbwypcvqfz") - .withRecursive("datazcjmsrorjby") - .withWildcardFolderPath("datakcvahvby") - .withWildcardFileName("datat") - .withPrefix("datavwvengicyc") - .withFileListPath("datakhgjyho") - .withEnablePartitionDiscovery("datamahbj") - .withPartitionRootPath("datavskqxgb") - .withDeleteFilesAfterCompletion("dataozrvlklaurl") - .withModifiedDatetimeStart("dataseocp") - .withModifiedDatetimeEnd("datasfj"); - model = BinaryData.fromObject(model).toObject(AzureBlobStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.java deleted file mode 100644 index eddb312ba3ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureBlobStorageWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageWriteSettings model = BinaryData.fromString( - "{\"type\":\"AzureBlobStorageWriteSettings\",\"blockSizeInMB\":\"datasvexzyjfwi\",\"maxConcurrentConnections\":\"datamqutgxdlznfokc\",\"disableMetricsCollection\":\"datarskyl\",\"copyBehavior\":\"datapp\",\"metadata\":[{\"name\":\"datakktretutsy\",\"value\":\"datajpla\"},{\"name\":\"datafnrltanvb\",\"value\":\"dataotghxkrrpmgdoli\"},{\"name\":\"datazsglavdtttyd\",\"value\":\"dataomz\"}],\"\":{\"vey\":\"datajqcshbypw\"}}") - .toObject(AzureBlobStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageWriteSettings model - = new AzureBlobStorageWriteSettings().withMaxConcurrentConnections("datamqutgxdlznfokc") - .withDisableMetricsCollection("datarskyl") - .withCopyBehavior("datapp") - .withMetadata(Arrays.asList(new MetadataItem().withName("datakktretutsy").withValue("datajpla"), - new MetadataItem().withName("datafnrltanvb").withValue("dataotghxkrrpmgdoli"), - new MetadataItem().withName("datazsglavdtttyd").withValue("dataomz"))) - .withBlockSizeInMB("datasvexzyjfwi"); - model = BinaryData.fromObject(model).toObject(AzureBlobStorageWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java deleted file mode 100644 index bd3f5bcad827..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerCommandActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataExplorerCommandActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerCommandActivity model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerCommand\",\"typeProperties\":{\"command\":\"datamnyfhkxcplhqzpw\",\"commandTimeout\":\"datauyrpsl\"},\"linkedServiceName\":{\"referenceName\":\"acn\",\"parameters\":{\"amcsdzqxkg\":\"dataupjqfup\",\"acd\":\"dataecnqipskpynr\",\"qodxsscirgqjnfde\":\"datafwutahlh\"}},\"policy\":{\"timeout\":\"dataeyhfnjifuucojkik\",\"retry\":\"datahkvhld\",\"retryIntervalInSeconds\":919721101,\"secureInput\":true,\"secureOutput\":false,\"\":{\"wexoyfsee\":\"datadzmbzlfzy\",\"doufwkhipaodohb\":\"datavmtyub\",\"gokpnbmhskhjjxe\":\"datadbbweaa\",\"h\":\"datambuhkcsh\"}},\"name\":\"ahmtevifeo\",\"description\":\"eppnpftwgtrcccyi\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"njpwkwxnmqmytv\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"haeedqa\":\"datafnmwm\",\"ntnlbsv\":\"datahccw\",\"zafpvwrbqbyxu\":\"datasjvd\"}},{\"activity\":\"pqkbbemh\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"pxbjjnxdgnegkltl\":\"datasfsjpvjwbxlgp\",\"mm\":\"databbe\",\"tdzgngnuuz\":\"datahmvadasuevu\",\"mnelqlqn\":\"datahgfojdbov\"}},{\"activity\":\"vqmxzdi\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"bwakmibiylkfnedx\":\"datapqsjzgncyksblre\"}}],\"userProperties\":[{\"name\":\"cyrblwqhzyr\",\"value\":\"datags\"},{\"name\":\"bzpozqluuaugktt\",\"value\":\"datapw\"}],\"\":{\"b\":\"dataajevw\"}}") - .toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("ahmtevifeo", model.name()); - Assertions.assertEquals("eppnpftwgtrcccyi", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("njpwkwxnmqmytv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cyrblwqhzyr", model.userProperties().get(0).name()); - Assertions.assertEquals("acn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(919721101, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerCommandActivity model = new AzureDataExplorerCommandActivity().withName("ahmtevifeo") - .withDescription("eppnpftwgtrcccyi") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("njpwkwxnmqmytv") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pqkbbemh") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vqmxzdi") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("cyrblwqhzyr").withValue("datags"), - new UserProperty().withName("bzpozqluuaugktt").withValue("datapw"))) - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("acn") - .withParameters(mapOf("amcsdzqxkg", "dataupjqfup", "acd", "dataecnqipskpynr", "qodxsscirgqjnfde", - "datafwutahlh"))) - .withPolicy(new ActivityPolicy().withTimeout("dataeyhfnjifuucojkik") - .withRetry("datahkvhld") - .withRetryIntervalInSeconds(919721101) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withCommand("datamnyfhkxcplhqzpw") - .withCommandTimeout("datauyrpsl"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("ahmtevifeo", model.name()); - Assertions.assertEquals("eppnpftwgtrcccyi", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("njpwkwxnmqmytv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cyrblwqhzyr", model.userProperties().get(0).name()); - Assertions.assertEquals("acn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(919721101, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java deleted file mode 100644 index 7a62a114fc58..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerCommandActivityTypeProperties; - -public final class AzureDataExplorerCommandActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerCommandActivityTypeProperties model - = BinaryData.fromString("{\"command\":\"dataqdotqe\",\"commandTimeout\":\"dataenteucaojj\"}") - .toObject(AzureDataExplorerCommandActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerCommandActivityTypeProperties model - = new AzureDataExplorerCommandActivityTypeProperties().withCommand("dataqdotqe") - .withCommandTimeout("dataenteucaojj"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerCommandActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java deleted file mode 100644 index 93019880a52e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerDatasetTypeProperties; - -public final class AzureDataExplorerDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerDatasetTypeProperties model = BinaryData.fromString("{\"table\":\"datajxxpxxizchmb\"}") - .toObject(AzureDataExplorerDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerDatasetTypeProperties model - = new AzureDataExplorerDatasetTypeProperties().withTable("datajxxpxxizchmb"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java deleted file mode 100644 index ccb434363f64..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerSink; - -public final class AzureDataExplorerSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerSink model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerSink\",\"ingestionMappingName\":\"datalvvazujc\",\"ingestionMappingAsJson\":\"dataznwlxzmszxyfa\",\"flushImmediately\":\"datazvdqvdivzjy\",\"writeBatchSize\":\"datajb\",\"writeBatchTimeout\":\"datalxjbrqbut\",\"sinkRetryCount\":\"datacnqudm\",\"sinkRetryWait\":\"datauvaweajq\",\"maxConcurrentConnections\":\"datavbvkwr\",\"disableMetricsCollection\":\"datazoqyymhdbg\",\"\":{\"cqqgrsyttosnzb\":\"dataltmpa\",\"vpbwt\":\"dataxifacrhpuzcagz\"}}") - .toObject(AzureDataExplorerSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSink model = new AzureDataExplorerSink().withWriteBatchSize("datajb") - .withWriteBatchTimeout("datalxjbrqbut") - .withSinkRetryCount("datacnqudm") - .withSinkRetryWait("datauvaweajq") - .withMaxConcurrentConnections("datavbvkwr") - .withDisableMetricsCollection("datazoqyymhdbg") - .withIngestionMappingName("datalvvazujc") - .withIngestionMappingAsJson("dataznwlxzmszxyfa") - .withFlushImmediately("datazvdqvdivzjy"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java deleted file mode 100644 index 112a310be4d5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerSource; - -public final class AzureDataExplorerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerSource model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerSource\",\"query\":\"datacfkc\",\"noTruncation\":\"datamoonnriah\",\"queryTimeout\":\"datagzkdbmjzob\",\"additionalColumns\":\"datavbbuuipel\",\"sourceRetryCount\":\"dataptteojxhwgja\",\"sourceRetryWait\":\"datagrpwjgkxvkj\",\"maxConcurrentConnections\":\"datasl\",\"disableMetricsCollection\":\"datamm\",\"\":{\"hubgaaaxigafah\":\"datazxsvwqiwgjw\",\"gzd\":\"datatoo\",\"plavgfbvr\":\"datablpdtcyvgbhb\",\"we\":\"datahwuex\"}}") - .toObject(AzureDataExplorerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSource model = new AzureDataExplorerSource().withSourceRetryCount("dataptteojxhwgja") - .withSourceRetryWait("datagrpwjgkxvkj") - .withMaxConcurrentConnections("datasl") - .withDisableMetricsCollection("datamm") - .withQuery("datacfkc") - .withNoTruncation("datamoonnriah") - .withQueryTimeout("datagzkdbmjzob") - .withAdditionalColumns("datavbbuuipel"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java deleted file mode 100644 index 685c9bd75f1d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataExplorerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerTable\",\"typeProperties\":{\"table\":\"datausfdywqrq\"},\"description\":\"wkendgr\",\"structure\":\"dataff\",\"schema\":\"dataqqnugtcuyuwgnyj\",\"linkedServiceName\":{\"referenceName\":\"iuj\",\"parameters\":{\"tuajkufpvvdgnme\":\"datawmlfzlhibfmcoxb\",\"bfyqz\":\"dataomnobbaibc\"}},\"parameters\":{\"buhdnhhcmtslptbd\":{\"type\":\"Float\",\"defaultValue\":\"datafgvmrkmgifmy\"},\"zjzzb\":{\"type\":\"String\",\"defaultValue\":\"datahblqivcnuqf\"},\"trch\":{\"type\":\"Array\",\"defaultValue\":\"datat\"}},\"annotations\":[\"dataruawqe\",\"dataqsqmiekx\",\"datap\",\"dataqchf\"],\"folder\":{\"name\":\"kkvjjl\"},\"\":{\"zyqokbgum\":\"datacu\"}}") - .toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("wkendgr", model.description()); - Assertions.assertEquals("iuj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("buhdnhhcmtslptbd").type()); - Assertions.assertEquals("kkvjjl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerTableDataset model = new AzureDataExplorerTableDataset().withDescription("wkendgr") - .withStructure("dataff") - .withSchema("dataqqnugtcuyuwgnyj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iuj") - .withParameters(mapOf("tuajkufpvvdgnme", "datawmlfzlhibfmcoxb", "bfyqz", "dataomnobbaibc"))) - .withParameters(mapOf("buhdnhhcmtslptbd", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafgvmrkmgifmy"), - "zjzzb", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahblqivcnuqf"), "trch", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datat"))) - .withAnnotations(Arrays.asList("dataruawqe", "dataqsqmiekx", "datap", "dataqchf")) - .withFolder(new DatasetFolder().withName("kkvjjl")) - .withTable("datausfdywqrq"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("wkendgr", model.description()); - Assertions.assertEquals("iuj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("buhdnhhcmtslptbd").type()); - Assertions.assertEquals("kkvjjl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java deleted file mode 100644 index f5c7d3fc4aa2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataLakeStoreDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreDataset model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreFile\",\"typeProperties\":{\"folderPath\":\"datawgr\",\"fileName\":\"databwudhvosgjzs\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datazalivdfwgq\",\"deserializer\":\"dataewcffrxgg\",\"\":{\"priqissener\":\"datah\",\"ujyduonbdawsao\":\"datausyzaivnpsjnpckp\"}},\"compression\":{\"type\":\"datavvm\",\"level\":\"datakxjarsbbdddw\",\"\":{\"kdyqjvz\":\"dataxailx\"}}},\"description\":\"grdspzesfkqq\",\"structure\":\"datahvzf\",\"schema\":\"datarouszxacdwukokgo\",\"linkedServiceName\":{\"referenceName\":\"j\",\"parameters\":{\"tzvxxvsb\":\"dataktubcmunhg\",\"furqm\":\"datauufkrfnkcnihkswx\",\"motahbqsvnk\":\"datamwwpnt\",\"gc\":\"datamytzuaedrlh\"}},\"parameters\":{\"yftgpqoswgfqv\":{\"type\":\"Int\",\"defaultValue\":\"datakvxzzmiem\"},\"qyhls\":{\"type\":\"Array\",\"defaultValue\":\"datahpak\"},\"gkncjm\":{\"type\":\"String\",\"defaultValue\":\"datafbmeq\"}},\"annotations\":[\"datayevztnjaw\",\"datahul\",\"datammqmbwppx\",\"datarxbkitzmnhitax\"],\"folder\":{\"name\":\"l\"},\"\":{\"dvyljubvfjy\":\"dataxsgcemegd\",\"ifnivlut\":\"dataufl\",\"aacxauhvc\":\"datag\"}}") - .toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("grdspzesfkqq", model.description()); - Assertions.assertEquals("j", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("yftgpqoswgfqv").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDataset model = new AzureDataLakeStoreDataset().withDescription("grdspzesfkqq") - .withStructure("datahvzf") - .withSchema("datarouszxacdwukokgo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("j") - .withParameters(mapOf("tzvxxvsb", "dataktubcmunhg", "furqm", "datauufkrfnkcnihkswx", "motahbqsvnk", - "datamwwpnt", "gc", "datamytzuaedrlh"))) - .withParameters(mapOf("yftgpqoswgfqv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datakvxzzmiem"), "qyhls", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahpak"), "gkncjm", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafbmeq"))) - .withAnnotations(Arrays.asList("datayevztnjaw", "datahul", "datammqmbwppx", "datarxbkitzmnhitax")) - .withFolder(new DatasetFolder().withName("l")) - .withFolderPath("datawgr") - .withFileName("databwudhvosgjzs") - .withFormat(new DatasetStorageFormat().withSerializer("datazalivdfwgq") - .withDeserializer("dataewcffrxgg") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datavvm") - .withLevel("datakxjarsbbdddw") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("grdspzesfkqq", model.description()); - Assertions.assertEquals("j", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("yftgpqoswgfqv").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java deleted file mode 100644 index 9b663d95f659..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureDataLakeStoreDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"dataxhklsqxt\",\"fileName\":\"datayygktsrjyxxoxwf\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datavecnxfxphs\",\"deserializer\":\"databebsnbw\",\"\":{\"fjajvkyxmm\":\"datavuwmsumustihtgr\",\"rjenn\":\"dataczvogtd\",\"phfxnrpdhewoky\":\"datakvaeuwqdwxhhlbm\"}},\"compression\":{\"type\":\"datafkxfsywbihqb\",\"level\":\"datadjfyxbvkv\",\"\":{\"wnjdvvlrh\":\"datamvddqwcrugyozzz\"}}}") - .toObject(AzureDataLakeStoreDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDatasetTypeProperties model - = new AzureDataLakeStoreDatasetTypeProperties().withFolderPath("dataxhklsqxt") - .withFileName("datayygktsrjyxxoxwf") - .withFormat(new DatasetStorageFormat().withSerializer("datavecnxfxphs") - .withDeserializer("databebsnbw") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datafkxfsywbihqb") - .withLevel("datadjfyxbvkv") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java deleted file mode 100644 index 452a2d6c71c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreLocation; - -public final class AzureDataLakeStoreLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreLocation model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreLocation\",\"folderPath\":\"datamfwsxafofu\",\"fileName\":\"datarimm\",\"\":{\"mvhzfovanyrvaprt\":\"datawdehk\",\"fyaqandmymnqo\":\"dataelgwewi\",\"movsfbpbvz\":\"dataj\"}}") - .toObject(AzureDataLakeStoreLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreLocation model - = new AzureDataLakeStoreLocation().withFolderPath("datamfwsxafofu").withFileName("datarimm"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java deleted file mode 100644 index 16186be07a8d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreReadSettings; - -public final class AzureDataLakeStoreReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreReadSettings\",\"recursive\":\"datanhvdkqigppdqsqs\",\"wildcardFolderPath\":\"dataweaxthuhuruo\",\"wildcardFileName\":\"datayotapstkdbn\",\"fileListPath\":\"datapcuzexoymfku\",\"listAfter\":\"dataysgsqzpgrvf\",\"listBefore\":\"datayph\",\"enablePartitionDiscovery\":\"datarxrpahp\",\"partitionRootPath\":\"dataikfenmiflkyf\",\"deleteFilesAfterCompletion\":\"datalolnxhsupilh\",\"modifiedDatetimeStart\":\"dataabli\",\"modifiedDatetimeEnd\":\"dataoomgsejisydh\",\"maxConcurrentConnections\":\"datadxnkluqf\",\"disableMetricsCollection\":\"dataglftlqakie\",\"\":{\"xewcscuveljfarin\":\"datavprb\"}}") - .toObject(AzureDataLakeStoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreReadSettings model - = new AzureDataLakeStoreReadSettings().withMaxConcurrentConnections("datadxnkluqf") - .withDisableMetricsCollection("dataglftlqakie") - .withRecursive("datanhvdkqigppdqsqs") - .withWildcardFolderPath("dataweaxthuhuruo") - .withWildcardFileName("datayotapstkdbn") - .withFileListPath("datapcuzexoymfku") - .withListAfter("dataysgsqzpgrvf") - .withListBefore("datayph") - .withEnablePartitionDiscovery("datarxrpahp") - .withPartitionRootPath("dataikfenmiflkyf") - .withDeleteFilesAfterCompletion("datalolnxhsupilh") - .withModifiedDatetimeStart("dataabli") - .withModifiedDatetimeEnd("dataoomgsejisydh"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java deleted file mode 100644 index b77355f34ae4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSink; - -public final class AzureDataLakeStoreSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreSink model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreSink\",\"copyBehavior\":\"datandfrfhgowhnvc\",\"enableAdlsSingleFileParallel\":\"datamuvgysto\",\"writeBatchSize\":\"datarktodeertyijlvcm\",\"writeBatchTimeout\":\"datanxxw\",\"sinkRetryCount\":\"dataedbdkwzbkhvlsahj\",\"sinkRetryWait\":\"databwyqnlus\",\"maxConcurrentConnections\":\"datalkrcpxlk\",\"disableMetricsCollection\":\"datafxtbvhmsvcmce\",\"\":{\"gkrpjonminsqjnu\":\"datahwriihwxchyy\",\"gkkg\":\"dataiytyarpeyigfdp\",\"bgrtse\":\"dataygjldljgd\",\"kofmtfwculsbnapz\":\"datanowzf\"}}") - .toObject(AzureDataLakeStoreSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSink model = new AzureDataLakeStoreSink().withWriteBatchSize("datarktodeertyijlvcm") - .withWriteBatchTimeout("datanxxw") - .withSinkRetryCount("dataedbdkwzbkhvlsahj") - .withSinkRetryWait("databwyqnlus") - .withMaxConcurrentConnections("datalkrcpxlk") - .withDisableMetricsCollection("datafxtbvhmsvcmce") - .withCopyBehavior("datandfrfhgowhnvc") - .withEnableAdlsSingleFileParallel("datamuvgysto"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java deleted file mode 100644 index f2e4d70ab8d7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSource; - -public final class AzureDataLakeStoreSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreSource model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreSource\",\"recursive\":\"datazythxzrvjfsmfkd\",\"sourceRetryCount\":\"datawfrmhookef\",\"sourceRetryWait\":\"datafexakctlcps\",\"maxConcurrentConnections\":\"datancco\",\"disableMetricsCollection\":\"dataqxmdievkmrso\",\"\":{\"imuqqmdxcwx\":\"dataiheh\",\"ypsypmthf\":\"datamrmwd\",\"afcxdldh\":\"datasz\",\"urhsmg\":\"datakdeviwpzhfxvlc\"}}") - .toObject(AzureDataLakeStoreSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSource model = new AzureDataLakeStoreSource().withSourceRetryCount("datawfrmhookef") - .withSourceRetryWait("datafexakctlcps") - .withMaxConcurrentConnections("datancco") - .withDisableMetricsCollection("dataqxmdievkmrso") - .withRecursive("datazythxzrvjfsmfkd"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java deleted file mode 100644 index c25ed234ce3b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureDataLakeStoreWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreWriteSettings model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreWriteSettings\",\"expiryDateTime\":\"databyul\",\"maxConcurrentConnections\":\"dataepssoqdibyg\",\"disableMetricsCollection\":\"datacidiwkxi\",\"copyBehavior\":\"dataiqxlxoksyypftrdi\",\"metadata\":[{\"name\":\"databqgatkl\",\"value\":\"datapgwp\"}],\"\":{\"nsdp\":\"dataccetyyvxkwobb\",\"lzk\":\"datairt\"}}") - .toObject(AzureDataLakeStoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreWriteSettings model - = new AzureDataLakeStoreWriteSettings().withMaxConcurrentConnections("dataepssoqdibyg") - .withDisableMetricsCollection("datacidiwkxi") - .withCopyBehavior("dataiqxlxoksyypftrdi") - .withMetadata(Arrays.asList(new MetadataItem().withName("databqgatkl").withValue("datapgwp"))) - .withExpiryDateTime("databyul"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java deleted file mode 100644 index 680823b490c4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDatabricksDeltaLakeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeDataset model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeDataset\",\"typeProperties\":{\"table\":\"datal\",\"database\":\"datacf\"},\"description\":\"rn\",\"structure\":\"dataqpkayqivbigdrqg\",\"schema\":\"datatboyztgnmu\",\"linkedServiceName\":{\"referenceName\":\"ppwp\",\"parameters\":{\"ofeiiewibdtplj\":\"datagrmtgwhzbbdwrjen\"}},\"parameters\":{\"xjwtkftgzljue\":{\"type\":\"Object\",\"defaultValue\":\"dataokbxxcdk\"},\"lb\":{\"type\":\"Int\",\"defaultValue\":\"datawsjpgb\"},\"epvrunudma\":{\"type\":\"Object\",\"defaultValue\":\"datagv\"},\"kwohdig\":{\"type\":\"Int\",\"defaultValue\":\"datahrnaxkc\"}},\"annotations\":[\"dataocft\",\"dataamodw\"],\"folder\":{\"name\":\"ktvxerow\"},\"\":{\"xgd\":\"datarnnbegrafeonmto\",\"aq\":\"datafmazhkqqsjk\",\"evveswghhbqqhd\":\"datazbwgpmdmwi\"}}") - .toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("rn", model.description()); - Assertions.assertEquals("ppwp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xjwtkftgzljue").type()); - Assertions.assertEquals("ktvxerow", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDataset model = new AzureDatabricksDeltaLakeDataset().withDescription("rn") - .withStructure("dataqpkayqivbigdrqg") - .withSchema("datatboyztgnmu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ppwp") - .withParameters(mapOf("ofeiiewibdtplj", "datagrmtgwhzbbdwrjen"))) - .withParameters(mapOf("xjwtkftgzljue", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataokbxxcdk"), "lb", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datawsjpgb"), "epvrunudma", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datagv"), "kwohdig", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datahrnaxkc"))) - .withAnnotations(Arrays.asList("dataocft", "dataamodw")) - .withFolder(new DatasetFolder().withName("ktvxerow")) - .withTable("datal") - .withDatabase("datacf"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("rn", model.description()); - Assertions.assertEquals("ppwp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xjwtkftgzljue").type()); - Assertions.assertEquals("ktvxerow", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java deleted file mode 100644 index cab06036c8e6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDeltaLakeDatasetTypeProperties; - -public final class AzureDatabricksDeltaLakeDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeDatasetTypeProperties model - = BinaryData.fromString("{\"table\":\"dataargkwimtc\",\"database\":\"dataeeuquuwczzcujwx\"}") - .toObject(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDatasetTypeProperties model - = new AzureDatabricksDeltaLakeDatasetTypeProperties().withTable("dataargkwimtc") - .withDatabase("dataeeuquuwczzcujwx"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java deleted file mode 100644 index c6b70df62288..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeExportCommand; - -public final class AzureDatabricksDeltaLakeExportCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeExportCommand model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeExportCommand\",\"dateFormat\":\"dataioqwmhcpujygnt\",\"timestampFormat\":\"datae\",\"\":{\"rso\":\"datasqthcywyoqx\",\"lr\":\"dataf\",\"ffl\":\"dataj\",\"ljf\":\"datazm\"}}") - .toObject(AzureDatabricksDeltaLakeExportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeExportCommand model - = new AzureDatabricksDeltaLakeExportCommand().withDateFormat("dataioqwmhcpujygnt") - .withTimestampFormat("datae"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeExportCommand.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.java deleted file mode 100644 index 42fe016597a4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeImportCommand; - -public final class AzureDatabricksDeltaLakeImportCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeImportCommand model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeImportCommand\",\"dateFormat\":\"datardb\",\"timestampFormat\":\"dataqtxpf\",\"\":{\"kqscmdsjgows\":\"datafvhbbnoevkkrlkdo\",\"peqlhhmbyfacexp\":\"datalgu\",\"pkqiqs\":\"datapqykicesqpvmoxil\"}}") - .toObject(AzureDatabricksDeltaLakeImportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeImportCommand model - = new AzureDatabricksDeltaLakeImportCommand().withDateFormat("datardb").withTimestampFormat("dataqtxpf"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeImportCommand.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.java deleted file mode 100644 index 165b86b5a013..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeImportCommand; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeSink; - -public final class AzureDatabricksDeltaLakeSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeSink model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeSink\",\"preCopyScript\":\"datalwlzekygnep\",\"importSettings\":{\"type\":\"AzureDatabricksDeltaLakeImportCommand\",\"dateFormat\":\"dataxqdrphiyxjq\",\"timestampFormat\":\"datanpztlac\",\"\":{\"ovvyhsorcavkfh\":\"datazsfutaapbrwv\"}},\"writeBatchSize\":\"dataigzwedfteratvpk\",\"writeBatchTimeout\":\"datawrmujizdmh\",\"sinkRetryCount\":\"datafjdiwzgwmumuc\",\"sinkRetryWait\":\"dataq\",\"maxConcurrentConnections\":\"datascva\",\"disableMetricsCollection\":\"dataxgelnjgftqkgavgo\",\"\":{\"krastbkskk\":\"dataxpay\",\"dfmplgdxdt\":\"dataiebmwy\"}}") - .toObject(AzureDatabricksDeltaLakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSink model - = new AzureDatabricksDeltaLakeSink().withWriteBatchSize("dataigzwedfteratvpk") - .withWriteBatchTimeout("datawrmujizdmh") - .withSinkRetryCount("datafjdiwzgwmumuc") - .withSinkRetryWait("dataq") - .withMaxConcurrentConnections("datascva") - .withDisableMetricsCollection("dataxgelnjgftqkgavgo") - .withPreCopyScript("datalwlzekygnep") - .withImportSettings(new AzureDatabricksDeltaLakeImportCommand().withDateFormat("dataxqdrphiyxjq") - .withTimestampFormat("datanpztlac")); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.java deleted file mode 100644 index c410e3dc217e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeExportCommand; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeSource; - -public final class AzureDatabricksDeltaLakeSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeSource model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeSource\",\"query\":\"datasteeksb\",\"exportSettings\":{\"type\":\"AzureDatabricksDeltaLakeExportCommand\",\"dateFormat\":\"datav\",\"timestampFormat\":\"dataoibvv\",\"\":{\"tnqdcgobkcebzr\":\"dataljmzpyukrwvvhcgt\",\"mtjsklkw\":\"datapu\"}},\"sourceRetryCount\":\"dataqqiqckmfxldqtman\",\"sourceRetryWait\":\"dataj\",\"maxConcurrentConnections\":\"datamrfq\",\"disableMetricsCollection\":\"datacdpwlezbfgullq\",\"\":{\"gksrorxejf\":\"datajyxcmqc\",\"ray\":\"dataarphltlf\",\"wbkxdhavegy\":\"dataxzdujpuhbaog\",\"pdatvndvwwejvqpw\":\"dataqsmlbzi\"}}") - .toObject(AzureDatabricksDeltaLakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSource model = new AzureDatabricksDeltaLakeSource() - .withSourceRetryCount("dataqqiqckmfxldqtman") - .withSourceRetryWait("dataj") - .withMaxConcurrentConnections("datamrfq") - .withDisableMetricsCollection("datacdpwlezbfgullq") - .withQuery("datasteeksb") - .withExportSettings( - new AzureDatabricksDeltaLakeExportCommand().withDateFormat("datav").withTimestampFormat("dataoibvv")); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java deleted file mode 100644 index 3fc8ff660adf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageLocation; - -public final class AzureFileStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageLocation model = BinaryData.fromString( - "{\"type\":\"AzureFileStorageLocation\",\"folderPath\":\"datadezvjqw\",\"fileName\":\"dataoyiyaxqv\",\"\":{\"tcz\":\"datai\",\"xyglaetscflw\":\"dataddnvovbooqbmdq\",\"tzcqipsd\":\"datajdtlriefooyycux\"}}") - .toObject(AzureFileStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageLocation model - = new AzureFileStorageLocation().withFolderPath("datadezvjqw").withFileName("dataoyiyaxqv"); - model = BinaryData.fromObject(model).toObject(AzureFileStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java deleted file mode 100644 index 0b7bb158a18a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageReadSettings; - -public final class AzureFileStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureFileStorageReadSettings\",\"recursive\":\"datadqgy\",\"wildcardFolderPath\":\"dataulzguvckpdp\",\"wildcardFileName\":\"datanrjqskikqd\",\"prefix\":\"dataybqtlvofjjsetiz\",\"fileListPath\":\"datanadn\",\"enablePartitionDiscovery\":\"datasbpxlserqgxnh\",\"partitionRootPath\":\"dataccd\",\"deleteFilesAfterCompletion\":\"dataxybn\",\"modifiedDatetimeStart\":\"datahmpmeglolpot\",\"modifiedDatetimeEnd\":\"datamb\",\"maxConcurrentConnections\":\"dataqjrytymfnojjh\",\"disableMetricsCollection\":\"datanthjqgovviv\",\"\":{\"rafet\":\"datay\",\"vpiilgy\":\"datawyt\",\"vpbuk\":\"dataluolgspyqsapnh\",\"oujtcp\":\"dataurqviyfksegwezgf\"}}") - .toObject(AzureFileStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageReadSettings model - = new AzureFileStorageReadSettings().withMaxConcurrentConnections("dataqjrytymfnojjh") - .withDisableMetricsCollection("datanthjqgovviv") - .withRecursive("datadqgy") - .withWildcardFolderPath("dataulzguvckpdp") - .withWildcardFileName("datanrjqskikqd") - .withPrefix("dataybqtlvofjjsetiz") - .withFileListPath("datanadn") - .withEnablePartitionDiscovery("datasbpxlserqgxnh") - .withPartitionRootPath("dataccd") - .withDeleteFilesAfterCompletion("dataxybn") - .withModifiedDatetimeStart("datahmpmeglolpot") - .withModifiedDatetimeEnd("datamb"); - model = BinaryData.fromObject(model).toObject(AzureFileStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.java deleted file mode 100644 index 8ed38f9e5d8f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureFileStorageWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageWriteSettings model = BinaryData.fromString( - "{\"type\":\"AzureFileStorageWriteSettings\",\"maxConcurrentConnections\":\"dataduttqjtszqexc\",\"disableMetricsCollection\":\"datawbxx\",\"copyBehavior\":\"datavekqjdrumlvk\",\"metadata\":[{\"name\":\"datahhlfvmw\",\"value\":\"dataarswsvtzotmwxq\"}],\"\":{\"wrtmjskb\":\"datadanfexlawkeqjhz\",\"mvounbyvsfqu\":\"dataenjnady\",\"xqbknoxjhedwh\":\"datar\",\"rpajbiig\":\"datamwb\"}}") - .toObject(AzureFileStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageWriteSettings model = new AzureFileStorageWriteSettings() - .withMaxConcurrentConnections("dataduttqjtszqexc") - .withDisableMetricsCollection("datawbxx") - .withCopyBehavior("datavekqjdrumlvk") - .withMetadata(Arrays.asList(new MetadataItem().withName("datahhlfvmw").withValue("dataarswsvtzotmwxq"))); - model = BinaryData.fromObject(model).toObject(AzureFileStorageWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java deleted file mode 100644 index 004d854c7db4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivity; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureFunctionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFunctionActivity model = BinaryData.fromString( - "{\"type\":\"AzureFunctionActivity\",\"typeProperties\":{\"method\":\"POST\",\"functionName\":\"datanyehh\",\"headers\":{\"ka\":\"datajrmxazkqiqzaea\",\"xivhozhr\":\"datapokf\"},\"body\":\"datavfljxljgtirnpazr\"},\"linkedServiceName\":{\"referenceName\":\"hyzufkzqtv\",\"parameters\":{\"ahdkeayu\":\"datayzihuupeflkwbvxn\"}},\"policy\":{\"timeout\":\"datavpnemydntupbrv\",\"retry\":\"datatblxa\",\"retryIntervalInSeconds\":1508140667,\"secureInput\":true,\"secureOutput\":true,\"\":{\"lsnkwullvukwy\":\"dataxuaidrbz\",\"andjjqhinsv\":\"dataosjz\",\"jrotqdi\":\"dataou\",\"jqkg\":\"dataxffiwrfocbetl\"}},\"name\":\"rvjawaxv\",\"description\":\"jlcj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"e\",\"dependencyConditions\":[\"Completed\"],\"\":{\"zbjieeivdrqtlcx\":\"datac\"}},{\"activity\":\"ogykrmf\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Completed\"],\"\":{\"mgberxnlj\":\"datavgroewhsnpcwy\"}},{\"activity\":\"vujsnzuebyznkdb\",\"dependencyConditions\":[\"Completed\"],\"\":{\"gksfjqfeeqh\":\"datamnztzhqs\",\"rbdtlikba\":\"datacwrrne\"}},{\"activity\":\"mrqponu\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Failed\",\"Succeeded\"],\"\":{\"vvggvnqpar\":\"dataxps\"}}],\"userProperties\":[{\"name\":\"gdkovytjsrboqamq\",\"value\":\"dataqvukjtcdppdmm\"},{\"name\":\"dubccclt\",\"value\":\"datagx\"}],\"\":{\"kvydvdj\":\"dataiix\",\"yswlmxepygkfuwgk\":\"datagdharlrfay\"}}") - .toObject(AzureFunctionActivity.class); - Assertions.assertEquals("rvjawaxv", model.name()); - Assertions.assertEquals("jlcj", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("e", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gdkovytjsrboqamq", model.userProperties().get(0).name()); - Assertions.assertEquals("hyzufkzqtv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1508140667, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(AzureFunctionActivityMethod.POST, model.method()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFunctionActivity model = new AzureFunctionActivity().withName("rvjawaxv") - .withDescription("jlcj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("e") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ogykrmf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vujsnzuebyznkdb") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mrqponu") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("gdkovytjsrboqamq").withValue("dataqvukjtcdppdmm"), - new UserProperty().withName("dubccclt").withValue("datagx"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hyzufkzqtv") - .withParameters(mapOf("ahdkeayu", "datayzihuupeflkwbvxn"))) - .withPolicy(new ActivityPolicy().withTimeout("datavpnemydntupbrv") - .withRetry("datatblxa") - .withRetryIntervalInSeconds(1508140667) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withMethod(AzureFunctionActivityMethod.POST) - .withFunctionName("datanyehh") - .withHeaders(mapOf("ka", "datajrmxazkqiqzaea", "xivhozhr", "datapokf")) - .withBody("datavfljxljgtirnpazr"); - model = BinaryData.fromObject(model).toObject(AzureFunctionActivity.class); - Assertions.assertEquals("rvjawaxv", model.name()); - Assertions.assertEquals("jlcj", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("e", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gdkovytjsrboqamq", model.userProperties().get(0).name()); - Assertions.assertEquals("hyzufkzqtv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1508140667, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(AzureFunctionActivityMethod.POST, model.method()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java deleted file mode 100644 index 723da6f79f02..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureFunctionActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFunctionActivityTypeProperties model = BinaryData.fromString( - "{\"method\":\"POST\",\"functionName\":\"datajqtk\",\"headers\":{\"kj\":\"datamq\",\"cvmhpueiuhhnexnx\":\"dataczpzwfewbj\",\"lipymnukv\":\"datawafi\",\"liodyuu\":\"datajbxvhu\"},\"body\":\"dataqplj\"}") - .toObject(AzureFunctionActivityTypeProperties.class); - Assertions.assertEquals(AzureFunctionActivityMethod.POST, model.method()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFunctionActivityTypeProperties model - = new AzureFunctionActivityTypeProperties().withMethod(AzureFunctionActivityMethod.POST) - .withFunctionName("datajqtk") - .withHeaders(mapOf("kj", "datamq", "cvmhpueiuhhnexnx", "dataczpzwfewbj", "lipymnukv", "datawafi", - "liodyuu", "datajbxvhu")) - .withBody("dataqplj"); - model = BinaryData.fromObject(model).toObject(AzureFunctionActivityTypeProperties.class); - Assertions.assertEquals(AzureFunctionActivityMethod.POST, model.method()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java deleted file mode 100644 index 793e68ac3b4e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLBatchExecutionActivity; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLBatchExecutionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLBatchExecutionActivity model = BinaryData.fromString( - "{\"type\":\"AzureMLBatchExecution\",\"typeProperties\":{\"globalParameters\":{\"hghorgji\":\"datajaktgtwvzp\",\"bqdsuaazkouvvgcw\":\"dataragqcwcdbtopuyi\",\"gaofwo\":\"dataimhjbxwr\",\"xp\":\"dataz\"},\"webServiceOutputs\":{\"euegrdit\":{\"filePath\":\"datax\",\"linkedServiceName\":{\"referenceName\":\"m\",\"parameters\":{\"uxjh\":\"datafsh\",\"uz\":\"datauzirhcghnclfahr\"}}},\"xabtlmszqaudaip\":{\"filePath\":\"dataptpq\",\"linkedServiceName\":{\"referenceName\":\"ajggmmiwoisql\",\"parameters\":{\"cptoihoyvua\":\"datafycnpovnjzaaox\",\"gslqpz\":\"datafju\",\"vfbzzscepo\":\"dataxwdanlgc\",\"yiuhjqdw\":\"datagzppufueiaiece\"}}}},\"webServiceInputs\":{\"qgivyxoj\":{\"filePath\":\"dataxjkopivszejb\",\"linkedServiceName\":{\"referenceName\":\"trmhabzjemqvl\",\"parameters\":{\"cgqh\":\"datacaxnbqsjz\"}}},\"aubhrbtthzfgpzy\":{\"filePath\":\"datamussvurslwd\",\"linkedServiceName\":{\"referenceName\":\"n\",\"parameters\":{\"daql\":\"dataalv\",\"whtws\":\"datasoqrhwla\",\"srvtrwswb\":\"dataliwpzucetzi\"}}},\"dyxjicikzm\":{\"filePath\":\"dataivusehyvqxjbqfcl\",\"linkedServiceName\":{\"referenceName\":\"jecajtuo\",\"parameters\":{\"xn\":\"datalzxuakbavpk\",\"vsgx\":\"datarbckfzb\",\"htlvja\":\"dataijnvsjgnbdhhqs\"}}},\"emsl\":{\"filePath\":\"datadddfjmirbnfc\",\"linkedServiceName\":{\"referenceName\":\"l\",\"parameters\":{\"q\":\"datavpfspfdfrymrf\",\"w\":\"dataxln\",\"qhzotkowi\":\"datagi\",\"wymrmuioepi\":\"datauerhzyl\"}}}}},\"linkedServiceName\":{\"referenceName\":\"tvryszqzvemwne\",\"parameters\":{\"ywdgrskdlt\":\"datawjcgryolbqcft\",\"vmcxljlpyh\":\"datafzyijn\"}},\"policy\":{\"timeout\":\"datadjgcuew\",\"retry\":\"dataqbqgfq\",\"retryIntervalInSeconds\":1286883147,\"secureInput\":true,\"secureOutput\":true,\"\":{\"oubjnmoid\":\"datajmxvvtuk\",\"cgmfklqswwdbs\":\"datanbfbkwyvw\",\"vo\":\"dataghysedqrb\",\"yibycoupksa\":\"dataqrwngfyjfquzxmtm\"}},\"name\":\"djkrosqxvffrn\",\"description\":\"wvjgyjoklngjs\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"sqdnasj\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"bvqsl\":\"datakszzbdtvrgy\",\"uqvq\":\"datak\",\"atyqawtfyzqo\":\"dataotvfcbgffdlff\"}},{\"activity\":\"glixhapvwacwrcte\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Failed\"],\"\":{\"ble\":\"datazncoxeop\"}},{\"activity\":\"axrsyxeqwgaeice\",\"dependencyConditions\":[\"Completed\"],\"\":{\"cxkywypztssq\":\"dataci\",\"wzwvttkh\":\"dataclaec\",\"qjqjkhqa\":\"dataxqyinfd\"}}],\"userProperties\":[{\"name\":\"czaqgevsnnqvkuf\",\"value\":\"datazwgw\"},{\"name\":\"dv\",\"value\":\"dataskffqqaobbq\"}],\"\":{\"ykhtsycct\":\"datajusqhrvadffdr\",\"siembc\":\"datarvn\",\"ixjkxvz\":\"datatzmldw\",\"orqbmkfo\":\"dataa\"}}") - .toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("djkrosqxvffrn", model.name()); - Assertions.assertEquals("wvjgyjoklngjs", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("sqdnasj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("czaqgevsnnqvkuf", model.userProperties().get(0).name()); - Assertions.assertEquals("tvryszqzvemwne", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1286883147, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("m", model.webServiceOutputs().get("euegrdit").linkedServiceName().referenceName()); - Assertions.assertEquals("trmhabzjemqvl", - model.webServiceInputs().get("qgivyxoj").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivity model - = new AzureMLBatchExecutionActivity().withName("djkrosqxvffrn") - .withDescription("wvjgyjoklngjs") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("sqdnasj") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("glixhapvwacwrcte") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("axrsyxeqwgaeice") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("czaqgevsnnqvkuf").withValue("datazwgw"), - new UserProperty().withName("dv").withValue("dataskffqqaobbq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tvryszqzvemwne") - .withParameters(mapOf("ywdgrskdlt", "datawjcgryolbqcft", "vmcxljlpyh", "datafzyijn"))) - .withPolicy(new ActivityPolicy().withTimeout("datadjgcuew") - .withRetry("dataqbqgfq") - .withRetryIntervalInSeconds(1286883147) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withGlobalParameters(mapOf("hghorgji", "datajaktgtwvzp", "bqdsuaazkouvvgcw", "dataragqcwcdbtopuyi", - "gaofwo", "dataimhjbxwr", "xp", "dataz")) - .withWebServiceOutputs( - mapOf("euegrdit", - new AzureMLWebServiceFile().withFilePath("datax") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("m") - .withParameters(mapOf("uxjh", "datafsh", "uz", "datauzirhcghnclfahr"))), - "xabtlmszqaudaip", - new AzureMLWebServiceFile().withFilePath("dataptpq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ajggmmiwoisql") - .withParameters(mapOf("cptoihoyvua", "datafycnpovnjzaaox", "gslqpz", "datafju", - "vfbzzscepo", "dataxwdanlgc", "yiuhjqdw", "datagzppufueiaiece"))))) - .withWebServiceInputs( - mapOf("qgivyxoj", - new AzureMLWebServiceFile().withFilePath("dataxjkopivszejb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("trmhabzjemqvl") - .withParameters(mapOf("cgqh", "datacaxnbqsjz"))), - "aubhrbtthzfgpzy", - new AzureMLWebServiceFile().withFilePath("datamussvurslwd") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("n") - .withParameters(mapOf("daql", "dataalv", "whtws", "datasoqrhwla", "srvtrwswb", - "dataliwpzucetzi"))), - "dyxjicikzm", - new AzureMLWebServiceFile().withFilePath("dataivusehyvqxjbqfcl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jecajtuo") - .withParameters(mapOf("xn", "datalzxuakbavpk", "vsgx", "datarbckfzb", "htlvja", - "dataijnvsjgnbdhhqs"))), - "emsl", - new AzureMLWebServiceFile().withFilePath("datadddfjmirbnfc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("l") - .withParameters(mapOf("q", "datavpfspfdfrymrf", "w", "dataxln", "qhzotkowi", "datagi", - "wymrmuioepi", "datauerhzyl"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("djkrosqxvffrn", model.name()); - Assertions.assertEquals("wvjgyjoklngjs", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("sqdnasj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("czaqgevsnnqvkuf", model.userProperties().get(0).name()); - Assertions.assertEquals("tvryszqzvemwne", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1286883147, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("m", model.webServiceOutputs().get("euegrdit").linkedServiceName().referenceName()); - Assertions.assertEquals("trmhabzjemqvl", - model.webServiceInputs().get("qgivyxoj").linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java deleted file mode 100644 index 84d71337b488..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLBatchExecutionActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLBatchExecutionActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLBatchExecutionActivityTypeProperties model = BinaryData.fromString( - "{\"globalParameters\":{\"vinvzdnubs\":\"dataaqfqgmwdo\",\"ilbiwacxldho\":\"dataskgiy\",\"cvtbgznpx\":\"datacdpwxh\",\"zo\":\"dataxcshtlqhikmfzdlh\"},\"webServiceOutputs\":{\"tnyvigjbxhjpsgpr\":{\"filePath\":\"datauziaztmxwmjaevw\",\"linkedServiceName\":{\"referenceName\":\"dn\",\"parameters\":{\"vdykxg\":\"datakunhwdirtiyraqy\",\"bycraryxrttn\":\"datafhvhynsyhzysuoq\",\"tstlgdvvpxhdefy\":\"datajhjbfoemm\",\"jyqhcowouoih\":\"dataitbjmva\"}}},\"ni\":{\"filePath\":\"datampzb\",\"linkedServiceName\":{\"referenceName\":\"iakyflryhvph\",\"parameters\":{\"bgstmlhrziggcaz\":\"dataiyidzbpfwlxxwpy\"}}},\"fggheqllrp\":{\"filePath\":\"datakkengowcut\",\"linkedServiceName\":{\"referenceName\":\"hmxmjm\",\"parameters\":{\"iimennxvqjakqd\":\"dataich\",\"zuuguze\":\"datannef\"}}}},\"webServiceInputs\":{\"pdovlp\":{\"filePath\":\"dataxqfkrvmvdqhageh\",\"linkedServiceName\":{\"referenceName\":\"hqeqtlsi\",\"parameters\":{\"gwidgx\":\"datagtupkmvxeub\"}}},\"fxkud\":{\"filePath\":\"datamcmfvyhmivyblt\",\"linkedServiceName\":{\"referenceName\":\"akmtvoprg\",\"parameters\":{\"orxibw\":\"datay\"}}}}}") - .toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions.assertEquals("dn", - model.webServiceOutputs().get("tnyvigjbxhjpsgpr").linkedServiceName().referenceName()); - Assertions.assertEquals("hqeqtlsi", model.webServiceInputs().get("pdovlp").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivityTypeProperties model = new AzureMLBatchExecutionActivityTypeProperties() - .withGlobalParameters(mapOf("vinvzdnubs", "dataaqfqgmwdo", "ilbiwacxldho", "dataskgiy", "cvtbgznpx", - "datacdpwxh", "zo", "dataxcshtlqhikmfzdlh")) - .withWebServiceOutputs(mapOf("tnyvigjbxhjpsgpr", - new AzureMLWebServiceFile().withFilePath("datauziaztmxwmjaevw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dn") - .withParameters(mapOf("vdykxg", "datakunhwdirtiyraqy", "bycraryxrttn", "datafhvhynsyhzysuoq", - "tstlgdvvpxhdefy", "datajhjbfoemm", "jyqhcowouoih", "dataitbjmva"))), - "ni", - new AzureMLWebServiceFile().withFilePath("datampzb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iakyflryhvph") - .withParameters(mapOf("bgstmlhrziggcaz", "dataiyidzbpfwlxxwpy"))), - "fggheqllrp", - new AzureMLWebServiceFile().withFilePath("datakkengowcut") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hmxmjm") - .withParameters(mapOf("iimennxvqjakqd", "dataich", "zuuguze", "datannef"))))) - .withWebServiceInputs(mapOf("pdovlp", - new AzureMLWebServiceFile().withFilePath("dataxqfkrvmvdqhageh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hqeqtlsi") - .withParameters(mapOf("gwidgx", "datagtupkmvxeub"))), - "fxkud", - new AzureMLWebServiceFile().withFilePath("datamcmfvyhmivyblt") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("akmtvoprg") - .withParameters(mapOf("orxibw", "datay"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions.assertEquals("dn", - model.webServiceOutputs().get("tnyvigjbxhjpsgpr").linkedServiceName().referenceName()); - Assertions.assertEquals("hqeqtlsi", model.webServiceInputs().get("pdovlp").linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java deleted file mode 100644 index 99a84f6c3e4f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLExecutePipelineActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLExecutePipelineActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLExecutePipelineActivity model = BinaryData.fromString( - "{\"type\":\"AzureMLExecutePipeline\",\"typeProperties\":{\"mlPipelineId\":\"datamymalvoydqgelc\",\"mlPipelineEndpointId\":\"dataccco\",\"version\":\"dataljzqvevmzpo\",\"experimentName\":\"datah\",\"mlPipelineParameters\":\"dataipnbdkhvxt\",\"dataPathAssignments\":\"dataihydwkdvy\",\"mlParentRunId\":\"datazqjpyq\",\"continueOnStepFailure\":\"dataqydtllpwzaya\"},\"linkedServiceName\":{\"referenceName\":\"ell\",\"parameters\":{\"edsnubirusknpy\":\"dataplhre\"}},\"policy\":{\"timeout\":\"datatoktrjwnqfdgcr\",\"retry\":\"datagktmzooszvungkkf\",\"retryIntervalInSeconds\":1773094085,\"secureInput\":false,\"secureOutput\":false,\"\":{\"pidb\":\"datatyeqeasiadscjha\",\"lcowb\":\"dataqvi\",\"w\":\"datapvmndqmzcgqedono\",\"eaahnkntldddk\":\"datawhvqkeuiy\"}},\"name\":\"pvusigw\",\"description\":\"qnxrrji\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ksoodqnouwxkeql\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"hxlcvzqhtgtadtoo\":\"datanqvudfi\"}},{\"activity\":\"k\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"petwgtmpytom\":\"datanlqwxskltz\",\"g\":\"datatubhvb\",\"zdazxfz\":\"datavpyjpaih\",\"sjnlekotqhd\":\"datallihwpsrdaoixgqt\"}}],\"userProperties\":[{\"name\":\"kn\",\"value\":\"datahyoimtfk\"},{\"name\":\"cdjswxeknhvcc\",\"value\":\"datauntghwcbgc\"},{\"name\":\"gbyfcbcak\",\"value\":\"dataqvhwzeukuml\"},{\"name\":\"f\",\"value\":\"databo\"}],\"\":{\"muiqir\":\"datawaiywzgv\",\"zbnqmxirspj\":\"datasznxz\",\"zisdnbourw\":\"dataakrbew\",\"sdluquyxgmzyqftl\":\"datag\"}}") - .toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("pvusigw", model.name()); - Assertions.assertEquals("qnxrrji", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ksoodqnouwxkeql", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kn", model.userProperties().get(0).name()); - Assertions.assertEquals("ell", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1773094085, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLExecutePipelineActivity model = new AzureMLExecutePipelineActivity().withName("pvusigw") - .withDescription("qnxrrji") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ksoodqnouwxkeql") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("k") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("kn").withValue("datahyoimtfk"), - new UserProperty().withName("cdjswxeknhvcc").withValue("datauntghwcbgc"), - new UserProperty().withName("gbyfcbcak").withValue("dataqvhwzeukuml"), - new UserProperty().withName("f").withValue("databo"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ell") - .withParameters(mapOf("edsnubirusknpy", "dataplhre"))) - .withPolicy(new ActivityPolicy().withTimeout("datatoktrjwnqfdgcr") - .withRetry("datagktmzooszvungkkf") - .withRetryIntervalInSeconds(1773094085) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withMlPipelineId("datamymalvoydqgelc") - .withMlPipelineEndpointId("dataccco") - .withVersion("dataljzqvevmzpo") - .withExperimentName("datah") - .withMlPipelineParameters("dataipnbdkhvxt") - .withDataPathAssignments("dataihydwkdvy") - .withMlParentRunId("datazqjpyq") - .withContinueOnStepFailure("dataqydtllpwzaya"); - model = BinaryData.fromObject(model).toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("pvusigw", model.name()); - Assertions.assertEquals("qnxrrji", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ksoodqnouwxkeql", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kn", model.userProperties().get(0).name()); - Assertions.assertEquals("ell", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1773094085, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java deleted file mode 100644 index 7f9426d8fc7b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLExecutePipelineActivityTypeProperties; - -public final class AzureMLExecutePipelineActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLExecutePipelineActivityTypeProperties model = BinaryData.fromString( - "{\"mlPipelineId\":\"dataecoufnxtynusqz\",\"mlPipelineEndpointId\":\"datanztwnylk\",\"version\":\"datawxcjfjuzwiw\",\"experimentName\":\"datauqzlmhpuqlsd\",\"mlPipelineParameters\":\"dataejxlzyyylyxuj\",\"dataPathAssignments\":\"dataccpv\",\"mlParentRunId\":\"datahobshogja\",\"continueOnStepFailure\":\"dataplfzj\"}") - .toObject(AzureMLExecutePipelineActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLExecutePipelineActivityTypeProperties model - = new AzureMLExecutePipelineActivityTypeProperties().withMlPipelineId("dataecoufnxtynusqz") - .withMlPipelineEndpointId("datanztwnylk") - .withVersion("datawxcjfjuzwiw") - .withExperimentName("datauqzlmhpuqlsd") - .withMlPipelineParameters("dataejxlzyyylyxuj") - .withDataPathAssignments("dataccpv") - .withMlParentRunId("datahobshogja") - .withContinueOnStepFailure("dataplfzj"); - model = BinaryData.fromObject(model).toObject(AzureMLExecutePipelineActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.java deleted file mode 100644 index 9abb76812070..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLUpdateResourceActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLUpdateResourceActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLUpdateResourceActivity model = BinaryData.fromString( - "{\"type\":\"AzureMLUpdateResource\",\"typeProperties\":{\"trainedModelName\":\"dataonlgnespkxnhfd\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"zskvp\",\"parameters\":{\"bicj\":\"datandrhlbxr\",\"poczxmwbk\":\"dataaafvxxiizkehf\",\"inhqpq\":\"datawihbyufm\",\"huxzdgoto\":\"dataowxd\"}},\"trainedModelFilePath\":\"datan\"},\"linkedServiceName\":{\"referenceName\":\"uirjqxknaeuhxnp\",\"parameters\":{\"dvnaxtbnjmj\":\"datajaeqaolfyqjgob\",\"bdfmhzgtieybimit\":\"datagrwvl\",\"wab\":\"dataxeetkwloozeg\"}},\"policy\":{\"timeout\":\"datareftwhiivxytvje\",\"retry\":\"datakuzlfnbz\",\"retryIntervalInSeconds\":1739064620,\"secureInput\":true,\"secureOutput\":true,\"\":{\"xsdtnxggwxmqy\":\"datarvckyhncqyogvv\",\"npftaykovgxam\":\"datatl\",\"reufd\":\"datamqexyoylcwzk\"}},\"name\":\"vvelcrwhrpxsxy\",\"description\":\"lsmiaruvbo\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"obyyv\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"vytluh\":\"datahg\",\"qikuj\":\"datahiycddo\",\"dbkezfkot\":\"datadoela\",\"hwjxn\":\"dataoszgc\"}}],\"userProperties\":[{\"name\":\"w\",\"value\":\"datavferl\"},{\"name\":\"hfzzqq\",\"value\":\"databj\"},{\"name\":\"shwxy\",\"value\":\"dataskjqejkm\"},{\"name\":\"twftlhsmtkxzio\",\"value\":\"datautcyjjbdgfrl\"}],\"\":{\"mirvmpi\":\"dataegqvusffzvpwzvh\"}}") - .toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("vvelcrwhrpxsxy", model.name()); - Assertions.assertEquals("lsmiaruvbo", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("obyyv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("w", model.userProperties().get(0).name()); - Assertions.assertEquals("uirjqxknaeuhxnp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1739064620, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("zskvp", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivity model = new AzureMLUpdateResourceActivity().withName("vvelcrwhrpxsxy") - .withDescription("lsmiaruvbo") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("obyyv") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("w").withValue("datavferl"), - new UserProperty().withName("hfzzqq").withValue("databj"), - new UserProperty().withName("shwxy").withValue("dataskjqejkm"), - new UserProperty().withName("twftlhsmtkxzio").withValue("datautcyjjbdgfrl"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uirjqxknaeuhxnp") - .withParameters(mapOf("dvnaxtbnjmj", "datajaeqaolfyqjgob", "bdfmhzgtieybimit", "datagrwvl", "wab", - "dataxeetkwloozeg"))) - .withPolicy(new ActivityPolicy().withTimeout("datareftwhiivxytvje") - .withRetry("datakuzlfnbz") - .withRetryIntervalInSeconds(1739064620) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withTrainedModelName("dataonlgnespkxnhfd") - .withTrainedModelLinkedServiceName(new LinkedServiceReference().withReferenceName("zskvp") - .withParameters(mapOf("bicj", "datandrhlbxr", "poczxmwbk", "dataaafvxxiizkehf", "inhqpq", - "datawihbyufm", "huxzdgoto", "dataowxd"))) - .withTrainedModelFilePath("datan"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("vvelcrwhrpxsxy", model.name()); - Assertions.assertEquals("lsmiaruvbo", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("obyyv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("w", model.userProperties().get(0).name()); - Assertions.assertEquals("uirjqxknaeuhxnp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1739064620, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("zskvp", model.trainedModelLinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.java deleted file mode 100644 index 83a5725337ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLUpdateResourceActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLUpdateResourceActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLUpdateResourceActivityTypeProperties model = BinaryData.fromString( - "{\"trainedModelName\":\"dataooo\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"rnssthninzatd\",\"parameters\":{\"clqgteoepdpx\":\"datayltrxwabwd\",\"qq\":\"datazpqwfpqixomo\"}},\"trainedModelFilePath\":\"dataik\"}") - .toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("rnssthninzatd", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivityTypeProperties model - = new AzureMLUpdateResourceActivityTypeProperties().withTrainedModelName("dataooo") - .withTrainedModelLinkedServiceName(new LinkedServiceReference().withReferenceName("rnssthninzatd") - .withParameters(mapOf("clqgteoepdpx", "datayltrxwabwd", "qq", "datazpqwfpqixomo"))) - .withTrainedModelFilePath("dataik"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("rnssthninzatd", model.trainedModelLinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.java deleted file mode 100644 index 645a109813f0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLWebServiceFileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLWebServiceFile model = BinaryData.fromString( - "{\"filePath\":\"datacwfo\",\"linkedServiceName\":{\"referenceName\":\"enmuevq\",\"parameters\":{\"lbpwegzd\":\"dataclg\"}}}") - .toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("enmuevq", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLWebServiceFile model = new AzureMLWebServiceFile().withFilePath("datacwfo") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("enmuevq").withParameters(mapOf("lbpwegzd", "dataclg"))); - model = BinaryData.fromObject(model).toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("enmuevq", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java deleted file mode 100644 index b9ecc9370786..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMariaDBSource; - -public final class AzureMariaDBSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMariaDBSource model = BinaryData.fromString( - "{\"type\":\"AzureMariaDBSource\",\"query\":\"dataqngpvvnbu\",\"queryTimeout\":\"datavkutl\",\"additionalColumns\":\"dataxuuqb\",\"sourceRetryCount\":\"datapbeswgkreozpufk\",\"sourceRetryWait\":\"datamzcbzgi\",\"maxConcurrentConnections\":\"dataqpegcgdndpb\",\"disableMetricsCollection\":\"dataeymmcbiktetzvqt\",\"\":{\"pdnbzqweohmlkzhx\":\"datavcsbyimygswdu\",\"haerhxd\":\"datadmauanxzrqt\",\"bqmoguy\":\"datahkbrkhjjbwelicrx\",\"dxljjzdbzk\":\"datamselwszqveak\"}}") - .toObject(AzureMariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBSource model = new AzureMariaDBSource().withSourceRetryCount("datapbeswgkreozpufk") - .withSourceRetryWait("datamzcbzgi") - .withMaxConcurrentConnections("dataqpegcgdndpb") - .withDisableMetricsCollection("dataeymmcbiktetzvqt") - .withQueryTimeout("datavkutl") - .withAdditionalColumns("dataxuuqb") - .withQuery("dataqngpvvnbu"); - model = BinaryData.fromObject(model).toObject(AzureMariaDBSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java deleted file mode 100644 index 13474804f70e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMariaDBTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMariaDBTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMariaDBTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureMariaDBTable\",\"typeProperties\":{\"tableName\":\"datatythct\"},\"description\":\"oip\",\"structure\":\"datanerwhem\",\"schema\":\"datadsssfzsgzguspej\",\"linkedServiceName\":{\"referenceName\":\"meqgxhwispsogdbl\",\"parameters\":{\"ichlygkvuixwonkr\":\"databaqxaxtuxirppb\",\"dxywabk\":\"datai\",\"aqyjukkajnne\":\"datatnipaptgv\"}},\"parameters\":{\"femiwfhhawbabhz\":{\"type\":\"SecureString\",\"defaultValue\":\"dataop\"},\"qnxyd\":{\"type\":\"String\",\"defaultValue\":\"datadi\"},\"uspaywvs\":{\"type\":\"Object\",\"defaultValue\":\"dataoiqz\"}},\"annotations\":[\"dataronzeafkxfmuwdb\",\"dataytqavouymkdeu\",\"dataxlvzpfdka\"],\"folder\":{\"name\":\"iw\"},\"\":{\"gjmpd\":\"datapqlktthbmrrmtr\",\"juzmu\":\"datarjzwawpewajccs\"}}") - .toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("oip", model.description()); - Assertions.assertEquals("meqgxhwispsogdbl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("femiwfhhawbabhz").type()); - Assertions.assertEquals("iw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBTableDataset model = new AzureMariaDBTableDataset().withDescription("oip") - .withStructure("datanerwhem") - .withSchema("datadsssfzsgzguspej") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("meqgxhwispsogdbl") - .withParameters(mapOf("ichlygkvuixwonkr", "databaqxaxtuxirppb", "dxywabk", "datai", "aqyjukkajnne", - "datatnipaptgv"))) - .withParameters(mapOf("femiwfhhawbabhz", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataop"), "qnxyd", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datadi"), "uspaywvs", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataoiqz"))) - .withAnnotations(Arrays.asList("dataronzeafkxfmuwdb", "dataytqavouymkdeu", "dataxlvzpfdka")) - .withFolder(new DatasetFolder().withName("iw")) - .withTableName("datatythct"); - model = BinaryData.fromObject(model).toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("oip", model.description()); - Assertions.assertEquals("meqgxhwispsogdbl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("femiwfhhawbabhz").type()); - Assertions.assertEquals("iw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java deleted file mode 100644 index 795b652b20fa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlSink; - -public final class AzureMySqlSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlSink model = BinaryData.fromString( - "{\"type\":\"AzureMySqlSink\",\"preCopyScript\":\"datavijdr\",\"writeBatchSize\":\"datayqvhz\",\"writeBatchTimeout\":\"datayvhrenozl\",\"sinkRetryCount\":\"dataqfghlosho\",\"sinkRetryWait\":\"datakpcmtsbandesalv\",\"maxConcurrentConnections\":\"datawrljmlo\",\"disableMetricsCollection\":\"datatzvtfyqe\",\"\":{\"xhcygfg\":\"databsyni\",\"aosttbwap\":\"datamdbazggr\"}}") - .toObject(AzureMySqlSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSink model = new AzureMySqlSink().withWriteBatchSize("datayqvhz") - .withWriteBatchTimeout("datayvhrenozl") - .withSinkRetryCount("dataqfghlosho") - .withSinkRetryWait("datakpcmtsbandesalv") - .withMaxConcurrentConnections("datawrljmlo") - .withDisableMetricsCollection("datatzvtfyqe") - .withPreCopyScript("datavijdr"); - model = BinaryData.fromObject(model).toObject(AzureMySqlSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java deleted file mode 100644 index e29a131aca1a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlSource; - -public final class AzureMySqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlSource model = BinaryData.fromString( - "{\"type\":\"AzureMySqlSource\",\"query\":\"datagliufdctgsd\",\"queryTimeout\":\"dataxkddxoatlprs\",\"additionalColumns\":\"dataen\",\"sourceRetryCount\":\"datayyvvlgsa\",\"sourceRetryWait\":\"datavmnjtf\",\"maxConcurrentConnections\":\"datagx\",\"disableMetricsCollection\":\"datarctbxpuis\",\"\":{\"s\":\"datamgnpe\",\"ljabdmwalipb\":\"datasiyyco\",\"aknhmi\":\"dataqkdieuopw\"}}") - .toObject(AzureMySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSource model = new AzureMySqlSource().withSourceRetryCount("datayyvvlgsa") - .withSourceRetryWait("datavmnjtf") - .withMaxConcurrentConnections("datagx") - .withDisableMetricsCollection("datarctbxpuis") - .withQueryTimeout("dataxkddxoatlprs") - .withAdditionalColumns("dataen") - .withQuery("datagliufdctgsd"); - model = BinaryData.fromObject(model).toObject(AzureMySqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java deleted file mode 100644 index 84a1fc8078b8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMySqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureMySqlTable\",\"typeProperties\":{\"tableName\":\"datapqokhdyncra\",\"table\":\"datasewbempfapmqnm\"},\"description\":\"yksygih\",\"structure\":\"datalmslnunkqvzlbbb\",\"schema\":\"datadexquaw\",\"linkedServiceName\":{\"referenceName\":\"xizbfzet\",\"parameters\":{\"pnbmajvvyxt\":\"dataw\",\"nakzixbkaybfmln\":\"datav\",\"nrzblxna\":\"datafwhrmvlaknujmw\"}},\"parameters\":{\"hl\":{\"type\":\"Int\",\"defaultValue\":\"datandcbs\"},\"dvt\":{\"type\":\"SecureString\",\"defaultValue\":\"datajkkovohwvprj\"},\"ffhvqii\":{\"type\":\"Array\",\"defaultValue\":\"datamdtacntjn\"},\"sxjbjkewrigl\":{\"type\":\"String\",\"defaultValue\":\"datatwskkfkuyikmxhh\"}},\"annotations\":[\"datarefeclflxcjf\",\"datazwncvdefxonz\",\"datapcjptnnt\"],\"folder\":{\"name\":\"jqpzj\"},\"\":{\"h\":\"datajr\",\"agwviqehmdqvaoli\":\"datagsjbi\",\"m\":\"dataxdfsfvkjc\",\"rkd\":\"datarsvxphtjnhptj\"}}") - .toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("yksygih", model.description()); - Assertions.assertEquals("xizbfzet", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hl").type()); - Assertions.assertEquals("jqpzj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDataset model = new AzureMySqlTableDataset().withDescription("yksygih") - .withStructure("datalmslnunkqvzlbbb") - .withSchema("datadexquaw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xizbfzet") - .withParameters( - mapOf("pnbmajvvyxt", "dataw", "nakzixbkaybfmln", "datav", "nrzblxna", "datafwhrmvlaknujmw"))) - .withParameters(mapOf("hl", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datandcbs"), "dvt", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datajkkovohwvprj"), - "ffhvqii", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamdtacntjn"), - "sxjbjkewrigl", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatwskkfkuyikmxhh"))) - .withAnnotations(Arrays.asList("datarefeclflxcjf", "datazwncvdefxonz", "datapcjptnnt")) - .withFolder(new DatasetFolder().withName("jqpzj")) - .withTableName("datapqokhdyncra") - .withTable("datasewbempfapmqnm"); - model = BinaryData.fromObject(model).toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("yksygih", model.description()); - Assertions.assertEquals("xizbfzet", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hl").type()); - Assertions.assertEquals("jqpzj", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 5f70c0f52981..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlTableDatasetTypeProperties; - -public final class AzureMySqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"dataz\",\"table\":\"datammydtdtftmizuz\"}") - .toObject(AzureMySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDatasetTypeProperties model - = new AzureMySqlTableDatasetTypeProperties().withTableName("dataz").withTable("datammydtdtftmizuz"); - model = BinaryData.fromObject(model).toObject(AzureMySqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSinkTests.java deleted file mode 100644 index 6aed589dce5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlSink; - -public final class AzurePostgreSqlSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlSink model = BinaryData.fromString( - "{\"type\":\"AzurePostgreSqlSink\",\"preCopyScript\":\"dataxtkmknacnfzcy\",\"writeBatchSize\":\"datahdjpagwszm\",\"writeBatchTimeout\":\"datagzfeyexbg\",\"sinkRetryCount\":\"datayo\",\"sinkRetryWait\":\"datawigvqgc\",\"maxConcurrentConnections\":\"datacqjg\",\"disableMetricsCollection\":\"dataxpbpj\",\"\":{\"ohehhtl\":\"datanvdabaodiytxq\"}}") - .toObject(AzurePostgreSqlSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlSink model = new AzurePostgreSqlSink().withWriteBatchSize("datahdjpagwszm") - .withWriteBatchTimeout("datagzfeyexbg") - .withSinkRetryCount("datayo") - .withSinkRetryWait("datawigvqgc") - .withMaxConcurrentConnections("datacqjg") - .withDisableMetricsCollection("dataxpbpj") - .withPreCopyScript("dataxtkmknacnfzcy"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java deleted file mode 100644 index 208308b32c66..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlSource; - -public final class AzurePostgreSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlSource model = BinaryData.fromString( - "{\"type\":\"AzurePostgreSqlSource\",\"query\":\"dataxllfwxdou\",\"queryTimeout\":\"datazpaqjahjxgedtmzh\",\"additionalColumns\":\"datahktywtac\",\"sourceRetryCount\":\"datakie\",\"sourceRetryWait\":\"dataqrfassiiil\",\"maxConcurrentConnections\":\"datargahscay\",\"disableMetricsCollection\":\"datagc\",\"\":{\"vqopxun\":\"dataieqonsbukznxd\"}}") - .toObject(AzurePostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlSource model = new AzurePostgreSqlSource().withSourceRetryCount("datakie") - .withSourceRetryWait("dataqrfassiiil") - .withMaxConcurrentConnections("datargahscay") - .withDisableMetricsCollection("datagc") - .withQueryTimeout("datazpaqjahjxgedtmzh") - .withAdditionalColumns("datahktywtac") - .withQuery("dataxllfwxdou"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java deleted file mode 100644 index 0c35a5fb2169..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzurePostgreSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlTableDataset model = BinaryData.fromString( - "{\"type\":\"AzurePostgreSqlTable\",\"typeProperties\":{\"tableName\":\"datascec\",\"table\":\"dataaajdfwrdkql\",\"schema\":\"datakfekdesbpjq\"},\"description\":\"lbh\",\"structure\":\"datapduibsr\",\"schema\":\"dataqnneqrypyurvs\",\"linkedServiceName\":{\"referenceName\":\"hovtuercp\",\"parameters\":{\"yb\":\"datawc\",\"nwczsraz\":\"datadzycxhaoegjzgplj\"}},\"parameters\":{\"uapasizzfmugykw\":{\"type\":\"SecureString\",\"defaultValue\":\"datacqhxhj\"},\"enndzgthdzit\":{\"type\":\"Int\",\"defaultValue\":\"datauo\"},\"wonadezmzxvfybxm\":{\"type\":\"Object\",\"defaultValue\":\"datafpherwjqvsw\"},\"c\":{\"type\":\"Object\",\"defaultValue\":\"datanuvqkrrsguog\"}},\"annotations\":[\"datatpyabensjflwp\",\"datatvvqtmvifgcvsim\",\"datalbmti\",\"dataxgosnxa\"],\"folder\":{\"name\":\"cdfmzxaoxlhmvjc\"},\"\":{\"xh\":\"datasbnuc\",\"nkleldk\":\"dataaqoqbvejoysoxovl\",\"qrykkxakruupti\":\"datadlqqhn\"}}") - .toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("lbh", model.description()); - Assertions.assertEquals("hovtuercp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("uapasizzfmugykw").type()); - Assertions.assertEquals("cdfmzxaoxlhmvjc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDataset model = new AzurePostgreSqlTableDataset().withDescription("lbh") - .withStructure("datapduibsr") - .withSchema("dataqnneqrypyurvs") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hovtuercp") - .withParameters(mapOf("yb", "datawc", "nwczsraz", "datadzycxhaoegjzgplj"))) - .withParameters(mapOf("uapasizzfmugykw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datacqhxhj"), - "enndzgthdzit", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datauo"), - "wonadezmzxvfybxm", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datafpherwjqvsw"), "c", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanuvqkrrsguog"))) - .withAnnotations(Arrays.asList("datatpyabensjflwp", "datatvvqtmvifgcvsim", "datalbmti", "dataxgosnxa")) - .withFolder(new DatasetFolder().withName("cdfmzxaoxlhmvjc")) - .withTableName("datascec") - .withTable("dataaajdfwrdkql") - .withSchemaTypePropertiesSchema("datakfekdesbpjq"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("lbh", model.description()); - Assertions.assertEquals("hovtuercp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("uapasizzfmugykw").type()); - Assertions.assertEquals("cdfmzxaoxlhmvjc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 9d5fad721f3b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlTableDatasetTypeProperties; - -public final class AzurePostgreSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datagvpzgy\",\"table\":\"datacnpxiema\",\"schema\":\"dataztjekxsnnbrys\"}") - .toObject(AzurePostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDatasetTypeProperties model - = new AzurePostgreSqlTableDatasetTypeProperties().withTableName("datagvpzgy") - .withTable("datacnpxiema") - .withSchema("dataztjekxsnnbrys"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java deleted file mode 100644 index 7bf1f7a01582..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureQueueSink; - -public final class AzureQueueSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureQueueSink model = BinaryData.fromString( - "{\"type\":\"AzureQueueSink\",\"writeBatchSize\":\"datajfkaoew\",\"writeBatchTimeout\":\"datayizdglzz\",\"sinkRetryCount\":\"datafi\",\"sinkRetryWait\":\"datavyxyrykn\",\"maxConcurrentConnections\":\"datatjgpyvjgsjyjnhwb\",\"disableMetricsCollection\":\"datawrncxw\",\"\":{\"pb\":\"datarrvpamfpini\"}}") - .toObject(AzureQueueSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureQueueSink model = new AzureQueueSink().withWriteBatchSize("datajfkaoew") - .withWriteBatchTimeout("datayizdglzz") - .withSinkRetryCount("datafi") - .withSinkRetryWait("datavyxyrykn") - .withMaxConcurrentConnections("datatjgpyvjgsjyjnhwb") - .withDisableMetricsCollection("datawrncxw"); - model = BinaryData.fromObject(model).toObject(AzureQueueSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java deleted file mode 100644 index 302080fcf14f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSearchIndexDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexDataset model = BinaryData.fromString( - "{\"type\":\"AzureSearchIndex\",\"typeProperties\":{\"indexName\":\"dataofwuzeb\"},\"description\":\"vmpjbhzyen\",\"structure\":\"datapetxeudwkh\",\"schema\":\"datackdoxo\",\"linkedServiceName\":{\"referenceName\":\"jcdevzpfreor\",\"parameters\":{\"x\":\"datayjmgvrlh\"}},\"parameters\":{\"kdywkszavuafane\":{\"type\":\"Array\",\"defaultValue\":\"datanhbcjy\"},\"zw\":{\"type\":\"Float\",\"defaultValue\":\"datatptplkossjbzvx\"},\"nyuvbtcuhjcgjt\":{\"type\":\"SecureString\",\"defaultValue\":\"datauhfgtiaczhfjdcc\"},\"bszsbzrrxey\":{\"type\":\"Int\",\"defaultValue\":\"datatomnlzthc\"}},\"annotations\":[\"datacowlrmbdctqx\"],\"folder\":{\"name\":\"joezvw\"},\"\":{\"ndm\":\"datazgavp\",\"ek\":\"datafiekkiskyyy\",\"bjiutfofhoajjyl\":\"datafffyshdawjlmlcuf\"}}") - .toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("vmpjbhzyen", model.description()); - Assertions.assertEquals("jcdevzpfreor", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("kdywkszavuafane").type()); - Assertions.assertEquals("joezvw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDataset model = new AzureSearchIndexDataset().withDescription("vmpjbhzyen") - .withStructure("datapetxeudwkh") - .withSchema("datackdoxo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jcdevzpfreor") - .withParameters(mapOf("x", "datayjmgvrlh"))) - .withParameters(mapOf("kdywkszavuafane", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datanhbcjy"), "zw", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatptplkossjbzvx"), - "nyuvbtcuhjcgjt", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datauhfgtiaczhfjdcc"), - "bszsbzrrxey", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datatomnlzthc"))) - .withAnnotations(Arrays.asList("datacowlrmbdctqx")) - .withFolder(new DatasetFolder().withName("joezvw")) - .withIndexName("dataofwuzeb"); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("vmpjbhzyen", model.description()); - Assertions.assertEquals("jcdevzpfreor", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("kdywkszavuafane").type()); - Assertions.assertEquals("joezvw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java deleted file mode 100644 index 0955650cc2eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSearchIndexDatasetTypeProperties; - -public final class AzureSearchIndexDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexDatasetTypeProperties model = BinaryData.fromString("{\"indexName\":\"datayqyjnufzvl\"}") - .toObject(AzureSearchIndexDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDatasetTypeProperties model - = new AzureSearchIndexDatasetTypeProperties().withIndexName("datayqyjnufzvl"); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java deleted file mode 100644 index 7d7bfbe80231..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexSink; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexWriteBehaviorType; -import org.junit.jupiter.api.Assertions; - -public final class AzureSearchIndexSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexSink model = BinaryData.fromString( - "{\"type\":\"AzureSearchIndexSink\",\"writeBehavior\":\"Upload\",\"writeBatchSize\":\"dataerejrdxhlo\",\"writeBatchTimeout\":\"dataxhztdca\",\"sinkRetryCount\":\"datamvqgqmi\",\"sinkRetryWait\":\"datapa\",\"maxConcurrentConnections\":\"datah\",\"disableMetricsCollection\":\"datacyasz\",\"\":{\"ni\":\"datamtcihupoelj\",\"awbsdeqqbdcbnrg\":\"datayoxajit\",\"mtgtnb\":\"datapnor\",\"rwldeinhnsd\":\"datasopuwesmxodyto\"}}") - .toObject(AzureSearchIndexSink.class); - Assertions.assertEquals(AzureSearchIndexWriteBehaviorType.UPLOAD, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexSink model = new AzureSearchIndexSink().withWriteBatchSize("dataerejrdxhlo") - .withWriteBatchTimeout("dataxhztdca") - .withSinkRetryCount("datamvqgqmi") - .withSinkRetryWait("datapa") - .withMaxConcurrentConnections("datah") - .withDisableMetricsCollection("datacyasz") - .withWriteBehavior(AzureSearchIndexWriteBehaviorType.UPLOAD); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexSink.class); - Assertions.assertEquals(AzureSearchIndexWriteBehaviorType.UPLOAD, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java deleted file mode 100644 index 627a6e35543d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlDWTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlDWTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlDWTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureSqlDWTable\",\"typeProperties\":{\"tableName\":\"dataync\",\"schema\":\"datau\",\"table\":\"datafstyygjqpulm\"},\"description\":\"gm\",\"structure\":\"dataqmiwxzfvvzucqfg\",\"schema\":\"datajnbxwbmwdukin\",\"linkedServiceName\":{\"referenceName\":\"lxhgdekekzou\",\"parameters\":{\"cgldohgc\":\"datawwpzrd\",\"dqtdnnc\":\"datandxfhhhtes\"}},\"parameters\":{\"dxccyijj\":{\"type\":\"Object\",\"defaultValue\":\"datadshvvf\"},\"ydw\":{\"type\":\"Int\",\"defaultValue\":\"dataijzrqnjxmvvsd\"},\"exqwqnghxnimvy\":{\"type\":\"Object\",\"defaultValue\":\"dataruhhqldrdymnswx\"},\"tnylqu\":{\"type\":\"Object\",\"defaultValue\":\"dataxgunnqgypu\"}},\"annotations\":[\"datamvyumgmmuebsnzn\",\"datagsqufmjxcyo\",\"dataeqcazisvbrqgcy\",\"datapgawepk\"],\"folder\":{\"name\":\"rzp\"},\"\":{\"taflvs\":\"datardtbgblxbuibrvj\"}}") - .toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("gm", model.description()); - Assertions.assertEquals("lxhgdekekzou", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("dxccyijj").type()); - Assertions.assertEquals("rzp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDataset model = new AzureSqlDWTableDataset().withDescription("gm") - .withStructure("dataqmiwxzfvvzucqfg") - .withSchema("datajnbxwbmwdukin") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lxhgdekekzou") - .withParameters(mapOf("cgldohgc", "datawwpzrd", "dqtdnnc", "datandxfhhhtes"))) - .withParameters(mapOf("dxccyijj", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datadshvvf"), "ydw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataijzrqnjxmvvsd"), - "exqwqnghxnimvy", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataruhhqldrdymnswx"), - "tnylqu", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataxgunnqgypu"))) - .withAnnotations( - Arrays.asList("datamvyumgmmuebsnzn", "datagsqufmjxcyo", "dataeqcazisvbrqgcy", "datapgawepk")) - .withFolder(new DatasetFolder().withName("rzp")) - .withTableName("dataync") - .withSchemaTypePropertiesSchema("datau") - .withTable("datafstyygjqpulm"); - model = BinaryData.fromObject(model).toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("gm", model.description()); - Assertions.assertEquals("lxhgdekekzou", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("dxccyijj").type()); - Assertions.assertEquals("rzp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java deleted file mode 100644 index 955c60493965..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWTableDatasetTypeProperties; - -public final class AzureSqlDWTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlDWTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datajihvfjcqrttjfuq\",\"schema\":\"datafjewfeqbavdo\",\"table\":\"datawy\"}") - .toObject(AzureSqlDWTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDatasetTypeProperties model - = new AzureSqlDWTableDatasetTypeProperties().withTableName("datajihvfjcqrttjfuq") - .withSchema("datafjewfeqbavdo") - .withTable("datawy"); - model = BinaryData.fromObject(model).toObject(AzureSqlDWTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java deleted file mode 100644 index 6b869d88c9a4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlMITableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlMITableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlMITableDataset model = BinaryData.fromString( - "{\"type\":\"AzureSqlMITable\",\"typeProperties\":{\"tableName\":\"dataqphkv\",\"schema\":\"datazadcrxyla\",\"table\":\"datadtyzvelffohur\"},\"description\":\"hjdfrwpsshrmnk\",\"structure\":\"datalpc\",\"schema\":\"dataogkscxj\",\"linkedServiceName\":{\"referenceName\":\"s\",\"parameters\":{\"qcowscuyfql\":\"dataspoebnx\",\"bqhsujkafu\":\"datam\"}},\"parameters\":{\"svgoocq\":{\"type\":\"Bool\",\"defaultValue\":\"datapwnikxkcajgrbrc\"},\"tm\":{\"type\":\"Bool\",\"defaultValue\":\"datamzlpcx\"},\"zfvwjdthkvpyeyoa\":{\"type\":\"Int\",\"defaultValue\":\"datarqic\"},\"kjr\":{\"type\":\"String\",\"defaultValue\":\"datampnqup\"}},\"annotations\":[\"dataky\"],\"folder\":{\"name\":\"bdx\"},\"\":{\"p\":\"datadcclcvqsr\",\"ry\":\"dataylcvwbzmfx\"}}") - .toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("hjdfrwpsshrmnk", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("svgoocq").type()); - Assertions.assertEquals("bdx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDataset model = new AzureSqlMITableDataset().withDescription("hjdfrwpsshrmnk") - .withStructure("datalpc") - .withSchema("dataogkscxj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("s") - .withParameters(mapOf("qcowscuyfql", "dataspoebnx", "bqhsujkafu", "datam"))) - .withParameters(mapOf("svgoocq", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datapwnikxkcajgrbrc"), "tm", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datamzlpcx"), - "zfvwjdthkvpyeyoa", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datarqic"), "kjr", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datampnqup"))) - .withAnnotations(Arrays.asList("dataky")) - .withFolder(new DatasetFolder().withName("bdx")) - .withTableName("dataqphkv") - .withSchemaTypePropertiesSchema("datazadcrxyla") - .withTable("datadtyzvelffohur"); - model = BinaryData.fromObject(model).toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("hjdfrwpsshrmnk", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("svgoocq").type()); - Assertions.assertEquals("bdx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java deleted file mode 100644 index 7ef02149fe45..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMITableDatasetTypeProperties; - -public final class AzureSqlMITableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datajxlpiy\",\"schema\":\"datanpfydrfb\",\"table\":\"datanyxbyxmk\"}") - .toObject(AzureSqlMITableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model - = new AzureSqlMITableDatasetTypeProperties().withTableName("datajxlpiy") - .withSchema("datanpfydrfb") - .withTable("datanyxbyxmk"); - model = BinaryData.fromObject(model).toObject(AzureSqlMITableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java deleted file mode 100644 index beab63b951d7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class AzureSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlSource model = BinaryData.fromString( - "{\"type\":\"AzureSqlSource\",\"sqlReaderQuery\":\"datamabehrfyskzwt\",\"sqlReaderStoredProcedureName\":\"datazvhz\",\"storedProcedureParameters\":\"datac\",\"isolationLevel\":\"datasoxoavlwwpv\",\"produceAdditionalTypes\":\"datanjwvc\",\"partitionOption\":\"datarqlceflgsndur\",\"partitionSettings\":{\"partitionColumnName\":\"datazjwmwkdehjlozzcw\",\"partitionUpperBound\":\"datauxedpqwz\",\"partitionLowerBound\":\"dataimgbxjgxrhajrub\"},\"queryTimeout\":\"dataucvebdfmdjnfe\",\"additionalColumns\":\"datalp\",\"sourceRetryCount\":\"dataclkbwkmwdrvkb\",\"sourceRetryWait\":\"datavnnvk\",\"maxConcurrentConnections\":\"datazldzzjj\",\"disableMetricsCollection\":\"datahjqengopdvnzn\",\"\":{\"vzmiufbwreawhnz\":\"dataodajxvszd\",\"lesvzdvakqajiant\":\"datasmueedbhn\"}}") - .toObject(AzureSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlSource model = new AzureSqlSource().withSourceRetryCount("dataclkbwkmwdrvkb") - .withSourceRetryWait("datavnnvk") - .withMaxConcurrentConnections("datazldzzjj") - .withDisableMetricsCollection("datahjqengopdvnzn") - .withQueryTimeout("dataucvebdfmdjnfe") - .withAdditionalColumns("datalp") - .withSqlReaderQuery("datamabehrfyskzwt") - .withSqlReaderStoredProcedureName("datazvhz") - .withStoredProcedureParameters("datac") - .withIsolationLevel("datasoxoavlwwpv") - .withProduceAdditionalTypes("datanjwvc") - .withPartitionOption("datarqlceflgsndur") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datazjwmwkdehjlozzcw") - .withPartitionUpperBound("datauxedpqwz") - .withPartitionLowerBound("dataimgbxjgxrhajrub")); - model = BinaryData.fromObject(model).toObject(AzureSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java deleted file mode 100644 index 88afc4d3aa38..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureSqlTable\",\"typeProperties\":{\"tableName\":\"datazwahdrdvhaztkxb\",\"schema\":\"datazfgxmbry\",\"table\":\"datawibios\"},\"description\":\"sykqfd\",\"structure\":\"datadrtx\",\"schema\":\"datadaglmrcok\",\"linkedServiceName\":{\"referenceName\":\"zertkounz\",\"parameters\":{\"fpopikzeb\":\"datawhuby\",\"wt\":\"datannf\",\"jculojhhylx\":\"dataqowsdlkhczygpmg\",\"bybwjmtftcvelnir\":\"dataevfiyymotu\"}},\"parameters\":{\"hfxrt\":{\"type\":\"String\",\"defaultValue\":\"datastpaqpibjgbvswm\"},\"ectcxsfmbzdx\":{\"type\":\"Object\",\"defaultValue\":\"datamsennqfabqcama\"},\"fxuzmsvzyqrbrn\":{\"type\":\"Object\",\"defaultValue\":\"datanbkdnny\"},\"uasnjeglhtrxb\":{\"type\":\"Object\",\"defaultValue\":\"datatlxfikjkxaravw\"}},\"annotations\":[\"datacjcnwjzb\",\"databl\",\"datarnwv\"],\"folder\":{\"name\":\"oq\"},\"\":{\"ooauffhxfqkmwzr\":\"datawwsdsorgfhjxsa\"}}") - .toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("sykqfd", model.description()); - Assertions.assertEquals("zertkounz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hfxrt").type()); - Assertions.assertEquals("oq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDataset model = new AzureSqlTableDataset().withDescription("sykqfd") - .withStructure("datadrtx") - .withSchema("datadaglmrcok") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zertkounz") - .withParameters(mapOf("fpopikzeb", "datawhuby", "wt", "datannf", "jculojhhylx", "dataqowsdlkhczygpmg", - "bybwjmtftcvelnir", "dataevfiyymotu"))) - .withParameters(mapOf("hfxrt", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datastpaqpibjgbvswm"), - "ectcxsfmbzdx", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datamsennqfabqcama"), - "fxuzmsvzyqrbrn", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanbkdnny"), - "uasnjeglhtrxb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datatlxfikjkxaravw"))) - .withAnnotations(Arrays.asList("datacjcnwjzb", "databl", "datarnwv")) - .withFolder(new DatasetFolder().withName("oq")) - .withTableName("datazwahdrdvhaztkxb") - .withSchemaTypePropertiesSchema("datazfgxmbry") - .withTable("datawibios"); - model = BinaryData.fromObject(model).toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("sykqfd", model.description()); - Assertions.assertEquals("zertkounz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hfxrt").type()); - Assertions.assertEquals("oq", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index ef8c513bc1d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlTableDatasetTypeProperties; - -public final class AzureSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datayoybm\",\"schema\":\"dataotoc\",\"table\":\"datazdaiovrb\"}") - .toObject(AzureSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDatasetTypeProperties model = new AzureSqlTableDatasetTypeProperties().withTableName("datayoybm") - .withSchema("dataotoc") - .withTable("datazdaiovrb"); - model = BinaryData.fromObject(model).toObject(AzureSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java deleted file mode 100644 index 40b950ad0768..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSynapseArtifactsLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSynapseArtifactsLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSynapseArtifactsLinkedService model = BinaryData.fromString( - "{\"type\":\"AzureSynapseArtifacts\",\"typeProperties\":{\"endpoint\":\"datav\",\"authentication\":\"dataujzofyldxk\",\"workspaceResourceId\":\"datavfojcvnhpebuiy\"},\"version\":\"ysgq\",\"connectVia\":{\"referenceName\":\"beauvldb\",\"parameters\":{\"uugdarfumitjai\":\"dataguifqjtoxzxbljpz\",\"y\":\"datasmokfdyb\",\"rwrylcttvxk\":\"databgmjrvrsqrjco\"}},\"description\":\"ffpvvqwvvnxoqaaq\",\"parameters\":{\"cwtszt\":{\"type\":\"Object\",\"defaultValue\":\"datawwtevfeu\"}},\"annotations\":[\"datawvfrymq\",\"datafksqfcxdleo\",\"dataysdgkbax\"],\"\":{\"jjqztrpjmeip\":\"datavtkrqiyuqd\",\"qaavjkrepqasviy\":\"dataotaaqyxkloabco\"}}") - .toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("ysgq", model.version()); - Assertions.assertEquals("beauvldb", model.connectVia().referenceName()); - Assertions.assertEquals("ffpvvqwvvnxoqaaq", model.description()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("cwtszt").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedService model = new AzureSynapseArtifactsLinkedService().withVersion("ysgq") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("beauvldb") - .withParameters(mapOf("uugdarfumitjai", "dataguifqjtoxzxbljpz", "y", "datasmokfdyb", "rwrylcttvxk", - "databgmjrvrsqrjco"))) - .withDescription("ffpvvqwvvnxoqaaq") - .withParameters(mapOf("cwtszt", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datawwtevfeu"))) - .withAnnotations(Arrays.asList("datawvfrymq", "datafksqfcxdleo", "dataysdgkbax")) - .withEndpoint("datav") - .withAuthentication("dataujzofyldxk") - .withWorkspaceResourceId("datavfojcvnhpebuiy"); - model = BinaryData.fromObject(model).toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("ysgq", model.version()); - Assertions.assertEquals("beauvldb", model.connectVia().referenceName()); - Assertions.assertEquals("ffpvvqwvvnxoqaaq", model.description()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("cwtszt").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 0e09367b73d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSynapseArtifactsLinkedServiceTypeProperties; - -public final class AzureSynapseArtifactsLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model = BinaryData.fromString( - "{\"endpoint\":\"databvolivianklqclft\",\"authentication\":\"dataeouxpdnl\",\"workspaceResourceId\":\"datanbckohnr\"}") - .toObject(AzureSynapseArtifactsLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model - = new AzureSynapseArtifactsLinkedServiceTypeProperties().withEndpoint("databvolivianklqclft") - .withAuthentication("dataeouxpdnl") - .withWorkspaceResourceId("datanbckohnr"); - model = BinaryData.fromObject(model).toObject(AzureSynapseArtifactsLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java deleted file mode 100644 index e822db0e378d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureTable\",\"typeProperties\":{\"tableName\":\"datablxk\"},\"description\":\"qgvxrktjcjigcw\",\"structure\":\"datapanbqxasevc\",\"schema\":\"datafp\",\"linkedServiceName\":{\"referenceName\":\"eedyybruholaem\",\"parameters\":{\"aowcahdkm\":\"dataimmrimaabsqqlonb\",\"zglkvbgu\":\"datajsmihrijezbfsjwf\",\"gnbknhj\":\"databsvbwyot\",\"ffaspsdzkucsz\":\"dataclxaxw\"}},\"parameters\":{\"nxclfrsbzrnmuv\":{\"type\":\"String\",\"defaultValue\":\"dataqip\"},\"bf\":{\"type\":\"Array\",\"defaultValue\":\"datauofdd\"},\"oyqxfvgyxz\":{\"type\":\"Bool\",\"defaultValue\":\"datajcnginxdvm\"},\"dnzujsj\":{\"type\":\"Bool\",\"defaultValue\":\"datanofxlttxoqx\"}},\"annotations\":[\"datarpskcjhmmo\",\"databnivdqtkykp\",\"dataxnlsf\"],\"folder\":{\"name\":\"scaccptbz\"},\"\":{\"xxicee\":\"datay\"}}") - .toObject(AzureTableDataset.class); - Assertions.assertEquals("qgvxrktjcjigcw", model.description()); - Assertions.assertEquals("eedyybruholaem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("nxclfrsbzrnmuv").type()); - Assertions.assertEquals("scaccptbz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDataset model = new AzureTableDataset().withDescription("qgvxrktjcjigcw") - .withStructure("datapanbqxasevc") - .withSchema("datafp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("eedyybruholaem") - .withParameters(mapOf("aowcahdkm", "dataimmrimaabsqqlonb", "zglkvbgu", "datajsmihrijezbfsjwf", - "gnbknhj", "databsvbwyot", "ffaspsdzkucsz", "dataclxaxw"))) - .withParameters(mapOf("nxclfrsbzrnmuv", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataqip"), "bf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datauofdd"), "oyqxfvgyxz", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajcnginxdvm"), "dnzujsj", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datanofxlttxoqx"))) - .withAnnotations(Arrays.asList("datarpskcjhmmo", "databnivdqtkykp", "dataxnlsf")) - .withFolder(new DatasetFolder().withName("scaccptbz")) - .withTableName("datablxk"); - model = BinaryData.fromObject(model).toObject(AzureTableDataset.class); - Assertions.assertEquals("qgvxrktjcjigcw", model.description()); - Assertions.assertEquals("eedyybruholaem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("nxclfrsbzrnmuv").type()); - Assertions.assertEquals("scaccptbz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java deleted file mode 100644 index 92f2aad3132e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureTableDatasetTypeProperties; - -public final class AzureTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datavjwyuveox\"}") - .toObject(AzureTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDatasetTypeProperties model = new AzureTableDatasetTypeProperties().withTableName("datavjwyuveox"); - model = BinaryData.fromObject(model).toObject(AzureTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java deleted file mode 100644 index 632d27b5c5be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureTableSource; - -public final class AzureTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableSource model = BinaryData.fromString( - "{\"type\":\"AzureTableSource\",\"azureTableSourceQuery\":\"datauybdzrxbckx\",\"azureTableSourceIgnoreTableNotFound\":\"datanzowguirhexj\",\"queryTimeout\":\"datayhmktpy\",\"additionalColumns\":\"dataicpkoam\",\"sourceRetryCount\":\"datadtbaobj\",\"sourceRetryWait\":\"datafkcvhh\",\"maxConcurrentConnections\":\"datavkuuikrsi\",\"disableMetricsCollection\":\"datarwsj\",\"\":{\"jva\":\"dataen\",\"fm\":\"datadqgfvygrfyyknxua\",\"kt\":\"dataynlcimjmurocryfu\"}}") - .toObject(AzureTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableSource model = new AzureTableSource().withSourceRetryCount("datadtbaobj") - .withSourceRetryWait("datafkcvhh") - .withMaxConcurrentConnections("datavkuuikrsi") - .withDisableMetricsCollection("datarwsj") - .withQueryTimeout("datayhmktpy") - .withAdditionalColumns("dataicpkoam") - .withAzureTableSourceQuery("datauybdzrxbckx") - .withAzureTableSourceIgnoreTableNotFound("datanzowguirhexj"); - model = BinaryData.fromObject(model).toObject(AzureTableSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BigDataPoolParametrizationReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BigDataPoolParametrizationReferenceTests.java deleted file mode 100644 index bf1e41473cb3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BigDataPoolParametrizationReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class BigDataPoolParametrizationReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BigDataPoolParametrizationReference model - = BinaryData.fromString("{\"type\":\"BigDataPoolReference\",\"referenceName\":\"datahektw\"}") - .toObject(BigDataPoolParametrizationReference.class); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BigDataPoolParametrizationReference model - = new BigDataPoolParametrizationReference().withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("datahektw"); - model = BinaryData.fromObject(model).toObject(BigDataPoolParametrizationReference.class); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java deleted file mode 100644 index 442298f6827e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BinaryDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryDataset model = BinaryData.fromString( - "{\"type\":\"Binary\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataizhqikmgobl\",\"fileName\":\"datae\",\"\":{\"jxvtrkfkgenjqnnp\":\"dataiiisklbonxxu\",\"ujjcxgdqmrlhn\":\"datawkosnyxigf\",\"xyxwjezbfqplo\":\"datakwopswnyinxupr\",\"trsvjmnsvujnjkt\":\"datauekdcpvu\"}},\"compression\":{\"type\":\"datalefcjis\",\"level\":\"datakdb\",\"\":{\"ampqocl\":\"datafb\",\"tgvpatr\":\"datannmxynlsuqbwzstr\"}}},\"description\":\"jktfinf\",\"structure\":\"dataks\",\"schema\":\"dataculwkqic\",\"linkedServiceName\":{\"referenceName\":\"uookrjfls\",\"parameters\":{\"pqsdoc\":\"datajbt\",\"pujzfl\":\"datap\",\"wlluunxhfwlfxz\":\"datacdsgxceluji\"}},\"parameters\":{\"jdmngsytqpdzfyxc\":{\"type\":\"Float\",\"defaultValue\":\"dataupcknecexkgrvfp\"}},\"annotations\":[\"datawoxcgzbejqfb\",\"datafopfjxdwdrpazqjk\",\"datafmbwotfcuuugt\"],\"folder\":{\"name\":\"pgayiawohfmhnnzm\"},\"\":{\"gloiovsl\":\"datajkmqenhaidzrpv\",\"pijpkhc\":\"dataivqsuvwtenb\",\"xukuicjuftekio\":\"dataoa\"}}") - .toObject(BinaryDataset.class); - Assertions.assertEquals("jktfinf", model.description()); - Assertions.assertEquals("uookrjfls", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jdmngsytqpdzfyxc").type()); - Assertions.assertEquals("pgayiawohfmhnnzm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDataset model = new BinaryDataset().withDescription("jktfinf") - .withStructure("dataks") - .withSchema("dataculwkqic") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uookrjfls") - .withParameters(mapOf("pqsdoc", "datajbt", "pujzfl", "datap", "wlluunxhfwlfxz", "datacdsgxceluji"))) - .withParameters(mapOf("jdmngsytqpdzfyxc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataupcknecexkgrvfp"))) - .withAnnotations(Arrays.asList("datawoxcgzbejqfb", "datafopfjxdwdrpazqjk", "datafmbwotfcuuugt")) - .withFolder(new DatasetFolder().withName("pgayiawohfmhnnzm")) - .withLocation(new DatasetLocation().withFolderPath("dataizhqikmgobl") - .withFileName("datae") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withCompression(new DatasetCompression().withType("datalefcjis") - .withLevel("datakdb") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(BinaryDataset.class); - Assertions.assertEquals("jktfinf", model.description()); - Assertions.assertEquals("uookrjfls", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jdmngsytqpdzfyxc").type()); - Assertions.assertEquals("pgayiawohfmhnnzm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java deleted file mode 100644 index 9e73b2ff731e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.BinaryDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class BinaryDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datand\",\"fileName\":\"datawfhvpxjhxzu\",\"\":{\"uaixcdckix\":\"datazabbwzgv\",\"igavk\":\"dataps\"}},\"compression\":{\"type\":\"datayxzerejr\",\"level\":\"datazjbyetjxryopta\",\"\":{\"rrabovrwwxywp\":\"datawhlbecgihzbpem\",\"hifppskpeswyhhm\":\"datahspbo\",\"lyuqvcmlaexb\":\"datafjuajxwwvcmmpe\"}}}") - .toObject(BinaryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDatasetTypeProperties model = new BinaryDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datand") - .withFileName("datawfhvpxjhxzu") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withCompression(new DatasetCompression().withType("datayxzerejr") - .withLevel("datazjbyetjxryopta") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(BinaryDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java deleted file mode 100644 index 3dccb5859e0c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryReadSettings; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class BinaryReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryReadSettings model = BinaryData.fromString( - "{\"type\":\"BinaryReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"ezkpdm\":\"datafpqxse\",\"fekfxmgjywwid\":\"dataowftfrqebrjopot\"}},\"\":{\"isypga\":\"datasdkvhuiadyho\",\"be\":\"datafdwh\",\"njay\":\"datadokuqnkoskf\",\"mbh\":\"datarjee\"}}") - .toObject(BinaryReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryReadSettings model = new BinaryReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(BinaryReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java deleted file mode 100644 index 67a3cfaeea9a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinarySink; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class BinarySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinarySink model = BinaryData.fromString( - "{\"type\":\"BinarySink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datanyciss\",\"disableMetricsCollection\":\"datapxftyhfc\",\"copyBehavior\":\"dataqsd\",\"metadata\":[{\"name\":\"dataaawry\",\"value\":\"datazs\"},{\"name\":\"datarzt\",\"value\":\"datarysxxa\"}],\"\":{\"ddvnobesowbtnfq\":\"datacighl\",\"hteho\":\"datawcaxj\",\"xofqjninrskq\":\"datacmeuuuajiotl\"}},\"writeBatchSize\":\"dataqtiuve\",\"writeBatchTimeout\":\"datauciwbiwygwpwqu\",\"sinkRetryCount\":\"dataqgslspihuxgvvio\",\"sinkRetryWait\":\"dataoolkmfi\",\"maxConcurrentConnections\":\"datafbbrndaquxvufr\",\"disableMetricsCollection\":\"dataaehssosowav\",\"\":{\"sjxf\":\"dataieyeblkgupgnst\",\"jff\":\"datahioartvkhufktqg\",\"gkokfzt\":\"datatreot\",\"kegyskmh\":\"datavonbtnnwa\"}}") - .toObject(BinarySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySink model = new BinarySink().withWriteBatchSize("dataqtiuve") - .withWriteBatchTimeout("datauciwbiwygwpwqu") - .withSinkRetryCount("dataqgslspihuxgvvio") - .withSinkRetryWait("dataoolkmfi") - .withMaxConcurrentConnections("datafbbrndaquxvufr") - .withDisableMetricsCollection("dataaehssosowav") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datanyciss") - .withDisableMetricsCollection("datapxftyhfc") - .withCopyBehavior("dataqsd") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataaawry").withValue("datazs"), - new MetadataItem().withName("datarzt").withValue("datarysxxa"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))); - model = BinaryData.fromObject(model).toObject(BinarySink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java deleted file mode 100644 index efdaf82b1d0e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryReadSettings; -import com.azure.resourcemanager.datafactory.models.BinarySource; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class BinarySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinarySource model = BinaryData.fromString( - "{\"type\":\"BinarySource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datantsp\",\"disableMetricsCollection\":\"dataumpyytbjbmjbmtx\",\"\":{\"kgeqotvocjktihnw\":\"dataf\",\"mtfnbvtx\":\"datavtrsgf\",\"jxcdhp\":\"dataqlbmiqbdia\",\"qpfynt\":\"datalxwsfdd\"}},\"formatSettings\":{\"type\":\"BinaryReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"hruwizqvgadole\":\"dataurhljjzsj\"}},\"\":{\"tcesvvrab\":\"datalzjhaqxfams\",\"kxa\":\"datayfhzybjrxen\"}},\"sourceRetryCount\":\"databrcydwr\",\"sourceRetryWait\":\"datatanbwxh\",\"maxConcurrentConnections\":\"dataioqhoxcgfyzlui\",\"disableMetricsCollection\":\"datagpghjakzmn\",\"\":{\"pbxvpfyupgo\":\"dataqmajslwmj\",\"frkzgtxwyqkk\":\"datarwpoxuykqyoyjptk\"}}") - .toObject(BinarySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySource model = new BinarySource().withSourceRetryCount("databrcydwr") - .withSourceRetryWait("datatanbwxh") - .withMaxConcurrentConnections("dataioqhoxcgfyzlui") - .withDisableMetricsCollection("datagpghjakzmn") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datantsp") - .withDisableMetricsCollection("dataumpyytbjbmjbmtx") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new BinaryReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")))); - model = BinaryData.fromObject(model).toObject(BinarySource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java deleted file mode 100644 index 393935c3281d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobEventTypes; -import com.azure.resourcemanager.datafactory.models.BlobEventsTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobEventsTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobEventsTrigger model = BinaryData.fromString( - "{\"type\":\"BlobEventsTrigger\",\"typeProperties\":{\"blobPathBeginsWith\":\"amijgq\",\"blobPathEndsWith\":\"zvvwyhszewh\",\"ignoreEmptyBlobs\":false,\"events\":[\"Microsoft.Storage.BlobCreated\",\"Microsoft.Storage.BlobCreated\",\"Microsoft.Storage.BlobCreated\",\"Microsoft.Storage.BlobDeleted\"],\"scope\":\"kiwytskp\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"vwwbxnxlhdindc\",\"name\":\"iq\"},\"parameters\":{\"jli\":\"datay\",\"hcylvjzufznaed\":\"datagkxrevwvjwtf\"}},{\"pipelineReference\":{\"referenceName\":\"uxrufwdbi\",\"name\":\"udphy\"},\"parameters\":{\"wdesyttka\":\"datavopc\",\"cbntnjnkvsnsiphl\":\"datafabt\",\"xtzgxdxq\":\"datawcedzodvz\"}},{\"pipelineReference\":{\"referenceName\":\"uzubntuimi\",\"name\":\"cnubynrhencgfz\"},\"parameters\":{\"dqtchxtbcqjvy\":\"datazu\",\"ioatzmr\":\"dataotxkhyvjomq\"}},{\"pipelineReference\":{\"referenceName\":\"srjjajlr\",\"name\":\"mjrufwqpnmcwesfp\"},\"parameters\":{\"rztwwkvwpbd\":\"datadzkbky\",\"upnfrlygyjrlu\":\"datazdkrmpljzrzv\",\"l\":\"dataigzwhfeq\",\"yzzk\":\"datajl\"}}],\"description\":\"beydjagyksgntg\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datafjbxhna\",\"datagbloeaewidumi\"],\"\":{\"majirnqcbhviqwfc\":\"datacgbyx\",\"bombncjn\":\"dataiyafafoornsktd\",\"qwnt\":\"datakc\",\"ijobcpruommtuca\":\"dataqvlcunnb\"}}") - .toObject(BlobEventsTrigger.class); - Assertions.assertEquals("beydjagyksgntg", model.description()); - Assertions.assertEquals("vwwbxnxlhdindc", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("iq", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("amijgq", model.blobPathBeginsWith()); - Assertions.assertEquals("zvvwyhszewh", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, model.events().get(0)); - Assertions.assertEquals("kiwytskp", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTrigger model - = new BlobEventsTrigger().withDescription("beydjagyksgntg") - .withAnnotations(Arrays.asList("datafjbxhna", "datagbloeaewidumi")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("vwwbxnxlhdindc").withName("iq")) - .withParameters(mapOf("jli", "datay", "hcylvjzufznaed", "datagkxrevwvjwtf")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("uxrufwdbi").withName("udphy")) - .withParameters(mapOf("wdesyttka", "datavopc", "cbntnjnkvsnsiphl", "datafabt", "xtzgxdxq", - "datawcedzodvz")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("uzubntuimi").withName("cnubynrhencgfz")) - .withParameters(mapOf("dqtchxtbcqjvy", "datazu", "ioatzmr", "dataotxkhyvjomq")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("srjjajlr").withName("mjrufwqpnmcwesfp")) - .withParameters(mapOf("rztwwkvwpbd", "datadzkbky", "upnfrlygyjrlu", "datazdkrmpljzrzv", "l", - "dataigzwhfeq", "yzzk", "datajl")))) - .withBlobPathBeginsWith("amijgq") - .withBlobPathEndsWith("zvvwyhszewh") - .withIgnoreEmptyBlobs(false) - .withEvents(Arrays.asList(BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, - BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, - BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED)) - .withScope("kiwytskp"); - model = BinaryData.fromObject(model).toObject(BlobEventsTrigger.class); - Assertions.assertEquals("beydjagyksgntg", model.description()); - Assertions.assertEquals("vwwbxnxlhdindc", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("iq", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("amijgq", model.blobPathBeginsWith()); - Assertions.assertEquals("zvvwyhszewh", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, model.events().get(0)); - Assertions.assertEquals("kiwytskp", model.scope()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.java deleted file mode 100644 index ffc88a8f9041..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.BlobEventsTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.BlobEventTypes; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BlobEventsTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobEventsTriggerTypeProperties model = BinaryData.fromString( - "{\"blobPathBeginsWith\":\"rlvkdaphzemnjast\",\"blobPathEndsWith\":\"zzyqbwimzjh\",\"ignoreEmptyBlobs\":true,\"events\":[\"Microsoft.Storage.BlobDeleted\",\"Microsoft.Storage.BlobCreated\"],\"scope\":\"grakmwyo\"}") - .toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("rlvkdaphzemnjast", model.blobPathBeginsWith()); - Assertions.assertEquals("zzyqbwimzjh", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("grakmwyo", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTriggerTypeProperties model - = new BlobEventsTriggerTypeProperties().withBlobPathBeginsWith("rlvkdaphzemnjast") - .withBlobPathEndsWith("zzyqbwimzjh") - .withIgnoreEmptyBlobs(true) - .withEvents(Arrays.asList(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, - BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED)) - .withScope("grakmwyo"); - model = BinaryData.fromObject(model).toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("rlvkdaphzemnjast", model.blobPathBeginsWith()); - Assertions.assertEquals("zzyqbwimzjh", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("grakmwyo", model.scope()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.java deleted file mode 100644 index 1be7e1e78eff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobSink; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class BlobSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobSink model = BinaryData.fromString( - "{\"type\":\"BlobSink\",\"blobWriterOverwriteFiles\":\"datajhgqqjmfrm\",\"blobWriterDateTimeFormat\":\"datav\",\"blobWriterAddHeader\":\"databrmmweeuy\",\"copyBehavior\":\"datajhpxjlg\",\"metadata\":[{\"name\":\"datalirnadqeqfxzc\",\"value\":\"datapogrtkditkwoke\"},{\"name\":\"dataeep\",\"value\":\"datacwsyqxfowfnsyy\"},{\"name\":\"datatrwyojhmgvme\",\"value\":\"datajazqlmigkxtgs\"}],\"writeBatchSize\":\"datadnholkoyxmspud\",\"writeBatchTimeout\":\"datawvzunrqvup\",\"sinkRetryCount\":\"datasrnqz\",\"sinkRetryWait\":\"datajwofgzifrm\",\"maxConcurrentConnections\":\"datatilhoy\",\"disableMetricsCollection\":\"datahwaepg\",\"\":{\"rifcqmfv\":\"datarcdtkv\",\"rvwmmuovturdhnn\":\"dataubmhsxtry\",\"vuei\":\"datahrizwmptsygqztn\"}}") - .toObject(BlobSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSink model = new BlobSink().withWriteBatchSize("datadnholkoyxmspud") - .withWriteBatchTimeout("datawvzunrqvup") - .withSinkRetryCount("datasrnqz") - .withSinkRetryWait("datajwofgzifrm") - .withMaxConcurrentConnections("datatilhoy") - .withDisableMetricsCollection("datahwaepg") - .withBlobWriterOverwriteFiles("datajhgqqjmfrm") - .withBlobWriterDateTimeFormat("datav") - .withBlobWriterAddHeader("databrmmweeuy") - .withCopyBehavior("datajhpxjlg") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datalirnadqeqfxzc").withValue("datapogrtkditkwoke"), - new MetadataItem().withName("dataeep").withValue("datacwsyqxfowfnsyy"), - new MetadataItem().withName("datatrwyojhmgvme").withValue("datajazqlmigkxtgs"))); - model = BinaryData.fromObject(model).toObject(BlobSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java deleted file mode 100644 index 67885e2a8983..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobSource; - -public final class BlobSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobSource model = BinaryData.fromString( - "{\"type\":\"BlobSource\",\"treatEmptyAsNull\":\"datazuzvbqbroyrw\",\"skipHeaderLineCount\":\"databbfweozkbok\",\"recursive\":\"datasu\",\"sourceRetryCount\":\"datacslzca\",\"sourceRetryWait\":\"datad\",\"maxConcurrentConnections\":\"datafwkpupbsgfnqtxl\",\"disableMetricsCollection\":\"dataoviklxsgstunsatc\",\"\":{\"tgsazwx\":\"datadbehkbuajkodpz\",\"hasjbuhz\":\"datafaas\"}}") - .toObject(BlobSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSource model = new BlobSource().withSourceRetryCount("datacslzca") - .withSourceRetryWait("datad") - .withMaxConcurrentConnections("datafwkpupbsgfnqtxl") - .withDisableMetricsCollection("dataoviklxsgstunsatc") - .withTreatEmptyAsNull("datazuzvbqbroyrw") - .withSkipHeaderLineCount("databbfweozkbok") - .withRecursive("datasu"); - model = BinaryData.fromObject(model).toObject(BlobSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.java deleted file mode 100644 index 04cefb8ce0a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobTrigger; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobTrigger model = BinaryData.fromString( - "{\"type\":\"BlobTrigger\",\"typeProperties\":{\"folderPath\":\"axcbfrnttlrumv\",\"maxConcurrency\":1631960216,\"linkedService\":{\"referenceName\":\"byedcavv\",\"parameters\":{\"mqxbauzvxe\":\"datannhafed\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"mg\",\"name\":\"vmuqxsoc\"},\"parameters\":{\"jpu\":\"datartcifxle\",\"cvsjcdmnvtpb\":\"dataai\",\"wcbnm\":\"datahzcaaqvsdaqfvplf\",\"bbvqsqw\":\"datashmqn\"}}],\"description\":\"xtqdtvejilq\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datarokfyddrsa\"],\"\":{\"vbc\":\"datanweiytkeqjviaws\",\"lmiuprfqyrwtdnr\":\"dataahe\"}}") - .toObject(BlobTrigger.class); - Assertions.assertEquals("xtqdtvejilq", model.description()); - Assertions.assertEquals("mg", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("vmuqxsoc", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("axcbfrnttlrumv", model.folderPath()); - Assertions.assertEquals(1631960216, model.maxConcurrency()); - Assertions.assertEquals("byedcavv", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTrigger model = new BlobTrigger().withDescription("xtqdtvejilq") - .withAnnotations(Arrays.asList("datarokfyddrsa")) - .withPipelines(Arrays.asList(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("mg").withName("vmuqxsoc")) - .withParameters(mapOf("jpu", "datartcifxle", "cvsjcdmnvtpb", "dataai", "wcbnm", "datahzcaaqvsdaqfvplf", - "bbvqsqw", "datashmqn")))) - .withFolderPath("axcbfrnttlrumv") - .withMaxConcurrency(1631960216) - .withLinkedService(new LinkedServiceReference().withReferenceName("byedcavv") - .withParameters(mapOf("mqxbauzvxe", "datannhafed"))); - model = BinaryData.fromObject(model).toObject(BlobTrigger.class); - Assertions.assertEquals("xtqdtvejilq", model.description()); - Assertions.assertEquals("mg", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("vmuqxsoc", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("axcbfrnttlrumv", model.folderPath()); - Assertions.assertEquals(1631960216, model.maxConcurrency()); - Assertions.assertEquals("byedcavv", model.linkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.java deleted file mode 100644 index eb77d9474236..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.BlobTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobTriggerTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"rmhewdfua\",\"maxConcurrency\":1306502182,\"linkedService\":{\"referenceName\":\"kfojn\",\"parameters\":{\"oprkpdghqsatbebx\":\"datatuyim\",\"zqaavxxvl\":\"dataedyyengnhoxbp\",\"ihqw\":\"dataspptxdra\",\"yguqsqobrent\":\"datartbvqtogkxdevkn\"}}}") - .toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("rmhewdfua", model.folderPath()); - Assertions.assertEquals(1306502182, model.maxConcurrency()); - Assertions.assertEquals("kfojn", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTriggerTypeProperties model = new BlobTriggerTypeProperties().withFolderPath("rmhewdfua") - .withMaxConcurrency(1306502182) - .withLinkedService(new LinkedServiceReference().withReferenceName("kfojn") - .withParameters(mapOf("oprkpdghqsatbebx", "datatuyim", "zqaavxxvl", "dataedyyengnhoxbp", "ihqw", - "dataspptxdra", "yguqsqobrent", "datartbvqtogkxdevkn"))); - model = BinaryData.fromObject(model).toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("rmhewdfua", model.folderPath()); - Assertions.assertEquals(1306502182, model.maxConcurrency()); - Assertions.assertEquals("kfojn", model.linkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java deleted file mode 100644 index f18715d2dbd4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CassandraSource; -import com.azure.resourcemanager.datafactory.models.CassandraSourceReadConsistencyLevels; -import org.junit.jupiter.api.Assertions; - -public final class CassandraSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CassandraSource model = BinaryData.fromString( - "{\"type\":\"CassandraSource\",\"query\":\"dataaomy\",\"consistencyLevel\":\"EACH_QUORUM\",\"queryTimeout\":\"datawdjbyaav\",\"additionalColumns\":\"datasxamncuhxznmak\",\"sourceRetryCount\":\"datahuetztorhue\",\"sourceRetryWait\":\"datayssz\",\"maxConcurrentConnections\":\"dataewjqgzloorh\",\"disableMetricsCollection\":\"dataur\",\"\":{\"nmhvwgchgpbdkqw\":\"datajqpyxiaakgdk\"}}") - .toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.EACH_QUORUM, model.consistencyLevel()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CassandraSource model = new CassandraSource().withSourceRetryCount("datahuetztorhue") - .withSourceRetryWait("datayssz") - .withMaxConcurrentConnections("dataewjqgzloorh") - .withDisableMetricsCollection("dataur") - .withQueryTimeout("datawdjbyaav") - .withAdditionalColumns("datasxamncuhxznmak") - .withQuery("dataaomy") - .withConsistencyLevel(CassandraSourceReadConsistencyLevels.EACH_QUORUM); - model = BinaryData.fromObject(model).toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.EACH_QUORUM, model.consistencyLevel()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java deleted file mode 100644 index b2a18eb9aae2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ChainingTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChainingTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChainingTrigger model = BinaryData.fromString( - "{\"type\":\"ChainingTrigger\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"l\",\"name\":\"pwsa\"},\"parameters\":{\"rwecrvkiaognma\":\"dataefkgjdnzowp\"}},\"typeProperties\":{\"dependsOn\":[{\"referenceName\":\"zjprlqwjwpejts\",\"name\":\"bvjcvwvyc\"},{\"referenceName\":\"nowzcl\",\"name\":\"mdlhxwwhusrod\"}],\"runDimension\":\"omozafwq\"},\"description\":\"cwkwm\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datada\",\"dataxofaq\",\"datassukvsgkzxznctx\",\"datacznszmjz\"],\"\":{\"vxahxyslhxok\":\"datacaqpkpvdii\",\"chduflajsg\":\"dataomakmi\",\"mfir\":\"datatgzcbvxyqprch\",\"aazvmnv\":\"dataoytkkq\"}}") - .toObject(ChainingTrigger.class); - Assertions.assertEquals("cwkwm", model.description()); - Assertions.assertEquals("l", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("pwsa", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("zjprlqwjwpejts", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("bvjcvwvyc", model.dependsOn().get(0).name()); - Assertions.assertEquals("omozafwq", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTrigger model = new ChainingTrigger().withDescription("cwkwm") - .withAnnotations(Arrays.asList("datada", "dataxofaq", "datassukvsgkzxznctx", "datacznszmjz")) - .withPipeline(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("l").withName("pwsa")) - .withParameters(mapOf("rwecrvkiaognma", "dataefkgjdnzowp"))) - .withDependsOn( - Arrays.asList(new PipelineReference().withReferenceName("zjprlqwjwpejts").withName("bvjcvwvyc"), - new PipelineReference().withReferenceName("nowzcl").withName("mdlhxwwhusrod"))) - .withRunDimension("omozafwq"); - model = BinaryData.fromObject(model).toObject(ChainingTrigger.class); - Assertions.assertEquals("cwkwm", model.description()); - Assertions.assertEquals("l", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("pwsa", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("zjprlqwjwpejts", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("bvjcvwvyc", model.dependsOn().get(0).name()); - Assertions.assertEquals("omozafwq", model.runDimension()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.java deleted file mode 100644 index ba8ef20b0f95..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChainingTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ChainingTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChainingTriggerTypeProperties model = BinaryData.fromString( - "{\"dependsOn\":[{\"referenceName\":\"zfypdsrfpihvijsj\",\"name\":\"p\"},{\"referenceName\":\"cqb\",\"name\":\"jjfxz\"},{\"referenceName\":\"jduyotqbfqtx\",\"name\":\"uxmegrix\"},{\"referenceName\":\"lbzjlqrp\",\"name\":\"pjstco\"}],\"runDimension\":\"b\"}") - .toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("zfypdsrfpihvijsj", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("p", model.dependsOn().get(0).name()); - Assertions.assertEquals("b", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTriggerTypeProperties model - = new ChainingTriggerTypeProperties() - .withDependsOn( - Arrays.asList(new PipelineReference().withReferenceName("zfypdsrfpihvijsj").withName("p"), - new PipelineReference().withReferenceName("cqb").withName("jjfxz"), - new PipelineReference().withReferenceName("jduyotqbfqtx").withName("uxmegrix"), - new PipelineReference().withReferenceName("lbzjlqrp").withName("pjstco"))) - .withRunDimension("b"); - model = BinaryData.fromObject(model).toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("zfypdsrfpihvijsj", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("p", model.dependsOn().get(0).name()); - Assertions.assertEquals("b", model.runDimension()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java deleted file mode 100644 index 5feab0015b8e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureFolder model - = BinaryData.fromString("{\"name\":\"yovwzdbpqv\"}").toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("yovwzdbpqv", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureFolder model = new ChangeDataCaptureFolder().withName("yovwzdbpqv"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("yovwzdbpqv", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java deleted file mode 100644 index 5f911fb14dc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureListResponse; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"folder\":{\"name\":\"hpv\"},\"description\":\"mslclblyjxlt\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datadrtc\",\"dataukdqkkyihztg\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datadoychillcecfeh\",\"datawaoaguhi\"]},{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datacsjvhrwef\"]}],\"policy\":{\"mode\":\"wqejpmvsse\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":18531700}},\"allowVNetOverride\":true,\"status\":\"tczhupeuknijd\"},\"name\":\"yespydjfbocyv\",\"type\":\"ulrtywikdmh\",\"etag\":\"kuflgbh\",\"\":{\"f\":\"dataacdixmx\",\"oeoq\":\"datasryjqgdkfno\",\"jchnta\":\"datavjhvefgwbm\"},\"id\":\"ay\"},{\"properties\":{\"folder\":{\"name\":\"ulpzealb\"},\"description\":\"kyojwyvfk\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datacubiwsdr\",\"datapxqwo\",\"dataiffjxcjrm\",\"datauabwibvjogjo\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"databamwineo\",\"datavfkakpold\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datahzjkn\",\"datauxgvttxpnr\",\"datapzaamrdixtreki\"]}],\"policy\":{\"mode\":\"wyskbruffgll\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":1275101011}},\"allowVNetOverride\":false,\"status\":\"rpq\"},\"name\":\"mblcouqehbhbcds\",\"type\":\"ryrando\",\"etag\":\"mbltoo\",\"\":{\"aolnjpnnbmjk\":\"datafqlwxldykalsy\",\"nadzyq\":\"dataibjgsjjxxahm\"},\"id\":\"xyivpinbm\"},{\"properties\":{\"folder\":{\"name\":\"jijkgqxnhmbke\"},\"description\":\"jauj\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"dataawxwfek\",\"dataumrrqmbzm\",\"datakratbnxwbj\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"datakso\",\"datadgo\",\"dataewijymrhbguz\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datazhhh\",\"datao\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datacyar\",\"dataroohguabzogh\",\"datat\"]}],\"policy\":{\"mode\":\"yczhco\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":953952910}},\"allowVNetOverride\":true,\"status\":\"ttjzcfyjzpt\"},\"name\":\"lohap\",\"type\":\"nfszpyglqdhmrjz\",\"etag\":\"l\",\"\":{\"ypsjoq\":\"datajb\"},\"id\":\"enky\"}],\"nextLink\":\"qzvs\"}") - .toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("ay", model.value().get(0).id()); - Assertions.assertEquals("hpv", model.value().get(0).folder().name()); - Assertions.assertEquals("mslclblyjxlt", model.value().get(0).description()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals("wqejpmvsse", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(18531700, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("tczhupeuknijd", model.value().get(0).status()); - Assertions.assertEquals("qzvs", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureListResponse model = new ChangeDataCaptureListResponse() - .withValue(Arrays.asList( - new ChangeDataCaptureResourceInner().withId("ay") - .withFolder(new ChangeDataCaptureFolder().withName("hpv")) - .withDescription("mslclblyjxlt") - .withSourceConnectionsInfo(Arrays.asList( - new MapperSourceConnectionsInfo().withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo(Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("datadrtc", "dataukdqkkyihztg")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datadoychillcecfeh", "datawaoaguhi")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datacsjvhrwef")))) - .withPolicy(new MapperPolicy().withMode("wqejpmvsse") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(18531700))) - .withAllowVNetOverride(true) - .withStatus("tczhupeuknijd") - .withAdditionalProperties(mapOf("name", "yespydjfbocyv", "etag", "kuflgbh", "type", "ulrtywikdmh")), - new ChangeDataCaptureResourceInner().withId("xyivpinbm") - .withFolder(new ChangeDataCaptureFolder().withName("ulpzealb")) - .withDescription("kyojwyvfk") - .withSourceConnectionsInfo(Arrays.asList( - new MapperSourceConnectionsInfo().withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo(Arrays.asList(new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping())) - .withRelationships( - Arrays.asList("datacubiwsdr", "datapxqwo", "dataiffjxcjrm", "datauabwibvjogjo")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("databamwineo", "datavfkakpold")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("datahzjkn", "datauxgvttxpnr", "datapzaamrdixtreki")))) - .withPolicy( - new MapperPolicy().withMode("wyskbruffgll") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.HOUR) - .withInterval(1275101011))) - .withAllowVNetOverride(false) - .withStatus("rpq") - .withAdditionalProperties(mapOf("name", "mblcouqehbhbcds", "etag", "mbltoo", "type", "ryrando")), - new ChangeDataCaptureResourceInner().withId("enky") - .withFolder(new ChangeDataCaptureFolder().withName("jijkgqxnhmbke")) - .withDescription("jauj") - .withSourceConnectionsInfo(Arrays.asList(new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo(Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("dataawxwfek", "dataumrrqmbzm", "datakratbnxwbj")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping())) - .withRelationships(Arrays.asList("datakso", "datadgo", "dataewijymrhbguz")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datazhhh", "datao")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datacyar", "dataroohguabzogh", "datat")))) - .withPolicy( - new MapperPolicy().withMode("yczhco") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND) - .withInterval(953952910))) - .withAllowVNetOverride(true) - .withStatus("ttjzcfyjzpt") - .withAdditionalProperties(mapOf("name", "lohap", "etag", "l", "type", "nfszpyglqdhmrjz")))) - .withNextLink("qzvs"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("ay", model.value().get(0).id()); - Assertions.assertEquals("hpv", model.value().get(0).folder().name()); - Assertions.assertEquals("mslclblyjxlt", model.value().get(0).description()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals("wqejpmvsse", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(18531700, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("tczhupeuknijd", model.value().get(0).status()); - Assertions.assertEquals("qzvs", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java deleted file mode 100644 index 3669570745b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureResourceInner model = BinaryData.fromString( - "{\"properties\":{\"folder\":{\"name\":\"xj\"},\"description\":\"gcm\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"hhqxuwyvcacoyviv\",\"properties\":{}},{\"name\":\"zusjsz\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"mnlzijiufehgmvf\",\"parameters\":{\"rlniyl\":\"datayvqkxr\"}},\"linkedServiceType\":\"yfw\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{\"name\":\"hghmupgxyj\",\"properties\":{}},{\"name\":\"xabb\",\"properties\":{}},{\"name\":\"tabenbbk\",\"properties\":{}},{\"name\":\"xzu\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ddwwnlzafwxudgnh\",\"parameters\":{\"wgpbemeluclv\":\"datakrtalvn\",\"xhqf\":\"datajjukyrdnqodxah\",\"avsczuejdtxp\":\"dataqnvzoqgyipemch\"}},\"linkedServiceType\":\"ghwzhomewjjstli\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}},{\"sourceEntities\":[{\"name\":\"ancz\",\"properties\":{}},{\"name\":\"drrslblxydk\",\"properties\":{}},{\"name\":\"vvbxiwkgfbqljnq\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"h\",\"parameters\":{\"fawey\":\"datakulehurqlrq\",\"vjuqdbrxmrgchb\":\"datarkphyjdxr\",\"j\":\"datapxkiyf\",\"ycblevpmcl\":\"databajbuscgduusi\"}},\"linkedServiceType\":\"yxkyxlz\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{\"name\":\"afhbzf\",\"properties\":{}},{\"name\":\"wmbjlzqsczpg\",\"properties\":{}},{\"name\":\"napfdqwowftpt\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"tkschgcgqyhl\",\"parameters\":{\"tj\":\"datayqrhvyeld\",\"kukjtasb\":\"datadkwisw\"}},\"linkedServiceType\":\"ispkxkdtx\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"nvgmmbugtywa\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"qkueatgroesho\",\"parameters\":{\"oytehqpuvjm\":\"datacbyfqxkf\",\"dwckygroe\":\"dataqm\"}},\"linkedServiceType\":\"ndljdjuskbr\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"sfaq\",\"sourceEntityName\":\"pl\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datahwddkvbxgkq\"},{\"targetEntityName\":\"ybwptda\",\"sourceEntityName\":\"rvv\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataymtpo\"},{\"targetEntityName\":\"enazerohzrsqals\",\"sourceEntityName\":\"dnwqapfg\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datavessm\"}],\"relationships\":[\"datakuui\"]},{\"targetEntities\":[{\"name\":\"qctekvalb\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"qvqyvweht\",\"parameters\":{\"usxivzrrryvei\":\"dataxhzzyse\",\"yzatvfuzkaft\":\"dataipsk\",\"syeipqd\":\"datavvruxwi\"}},\"linkedServiceType\":\"jtgrqgdgkkileplk\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"baedorvvmqfl\",\"sourceEntityName\":\"gbdg\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataxdgd\"},{\"targetEntityName\":\"abgdexj\",\"sourceEntityName\":\"vjsaqwotm\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datacolsrsxaptefhex\"},{\"targetEntityName\":\"jokjl\",\"sourceEntityName\":\"hv\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataek\"},{\"targetEntityName\":\"eksnbksdqhjvyk\",\"sourceEntityName\":\"eslk\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datatcpoqma\"}],\"relationships\":[\"dataqjwgoknlej\",\"datajkxyb\"]},{\"targetEntities\":[{\"name\":\"kjbztensvkzykj\",\"properties\":{}},{\"name\":\"nsxfwu\",\"properties\":{}},{\"name\":\"dpkupnqrmgjf\",\"properties\":{}},{\"name\":\"uwxeoiojfizf\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"zwfbcyaykmmfzs\",\"parameters\":{\"bjazejwwviy\":\"dataxrzxmdewsrsxkrp\",\"suhbrnn\":\"datay\",\"zycyqiqyhg\":\"datajxsqwjhqkbiwetp\",\"zlex\":\"datase\"}},\"linkedServiceType\":\"fledynojpziu\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"hqsycljselp\",\"sourceEntityName\":\"bafvafhlbylcc\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datarhyzdf\"},{\"targetEntityName\":\"sofpltd\",\"sourceEntityName\":\"airrhvhfnracw\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datag\"}],\"relationships\":[\"datajwouhda\",\"datas\",\"datagrbjbxsjybvitvqk\"]},{\"targetEntities\":[{\"name\":\"nu\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"m\",\"parameters\":{\"zfnkfexlvxno\":\"datach\",\"knaqlnuwig\":\"datakizvoa\",\"kwph\":\"datayxl\"}},\"linkedServiceType\":\"zc\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"ke\",\"sourceEntityName\":\"onwivkcqhrxhxkn\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datammkyu\"}],\"relationships\":[\"dataubyqj\",\"datakakfqfr\",\"dataem\"]}],\"policy\":{\"mode\":\"ldudxjascowv\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1348862039}},\"allowVNetOverride\":false,\"status\":\"lkksnmgzvyfi\"},\"name\":\"kzuqnwsith\",\"type\":\"olyahluqwqulsut\",\"etag\":\"bhxykfhyqezvqqug\",\"\":{\"ve\":\"datatb\",\"hreagk\":\"datareuquowtljvf\",\"dgglmepjpfs\":\"datayxvrqtvbczsul\",\"fpgylkve\":\"dataykgsangpszng\"},\"id\":\"ujcngo\"}") - .toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("ujcngo", model.id()); - Assertions.assertEquals("xj", model.folder().name()); - Assertions.assertEquals("gcm", model.description()); - Assertions.assertEquals("hhqxuwyvcacoyviv", - model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("mnlzijiufehgmvf", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("yfw", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nvgmmbugtywa", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("qkueatgroesho", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ndljdjuskbr", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("sfaq", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("pl", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("ldudxjascowv", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1348862039, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("lkksnmgzvyfi", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureResourceInner model - = new ChangeDataCaptureResourceInner().withId("ujcngo") - .withFolder(new ChangeDataCaptureFolder().withName("xj")) - .withDescription("gcm") - .withSourceConnectionsInfo( - Arrays.asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("hhqxuwyvcacoyviv"), - new MapperTable().withName("zusjsz"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("mnlzijiufehgmvf") - .withParameters(mapOf("rlniyl", "datayvqkxr"))) - .withLinkedServiceType("yfw") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("hghmupgxyj"), - new MapperTable().withName("xabb"), new MapperTable().withName("tabenbbk"), - new MapperTable().withName("xzu"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ddwwnlzafwxudgnh") - .withParameters(mapOf("wgpbemeluclv", "datakrtalvn", "xhqf", "datajjukyrdnqodxah", - "avsczuejdtxp", "dataqnvzoqgyipemch"))) - .withLinkedServiceType("ghwzhomewjjstli") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("ancz"), - new MapperTable().withName("drrslblxydk"), - new MapperTable().withName("vvbxiwkgfbqljnq"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("h") - .withParameters(mapOf("fawey", "datakulehurqlrq", "vjuqdbrxmrgchb", "datarkphyjdxr", - "j", "datapxkiyf", "ycblevpmcl", "databajbuscgduusi"))) - .withLinkedServiceType("yxkyxlz") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("afhbzf"), - new MapperTable().withName("wmbjlzqsczpg"), - new MapperTable().withName("napfdqwowftpt"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("tkschgcgqyhl") - .withParameters(mapOf("tj", "datayqrhvyeld", "kukjtasb", "datadkwisw"))) - .withLinkedServiceType("ispkxkdtx") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("nvgmmbugtywa"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("qkueatgroesho") - .withParameters(mapOf("oytehqpuvjm", "datacbyfqxkf", "dwckygroe", "dataqm"))) - .withLinkedServiceType("ndljdjuskbr") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList( - new DataMapperMapping().withTargetEntityName("sfaq") - .withSourceEntityName("pl") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datahwddkvbxgkq"), - new DataMapperMapping().withTargetEntityName("ybwptda") - .withSourceEntityName("rvv") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataymtpo"), - new DataMapperMapping().withTargetEntityName("enazerohzrsqals") - .withSourceEntityName("dnwqapfg") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datavessm"))) - .withRelationships(Arrays.asList("datakuui")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("qctekvalb"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("qvqyvweht") - .withParameters(mapOf("usxivzrrryvei", "dataxhzzyse", "yzatvfuzkaft", - "dataipsk", "syeipqd", "datavvruxwi"))) - .withLinkedServiceType("jtgrqgdgkkileplk") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays - .asList(new DataMapperMapping().withTargetEntityName("baedorvvmqfl") - .withSourceEntityName("gbdg") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataxdgd"), - new DataMapperMapping().withTargetEntityName("abgdexj") - .withSourceEntityName("vjsaqwotm") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datacolsrsxaptefhex"), - new DataMapperMapping().withTargetEntityName("jokjl") - .withSourceEntityName("hv") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataek"), - new DataMapperMapping().withTargetEntityName("eksnbksdqhjvyk") - .withSourceEntityName("eslk") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datatcpoqma"))) - .withRelationships(Arrays.asList("dataqjwgoknlej", "datajkxyb")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable().withName("kjbztensvkzykj"), - new MapperTable().withName("nsxfwu"), - new MapperTable().withName("dpkupnqrmgjf"), - new MapperTable().withName("uwxeoiojfizf"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("zwfbcyaykmmfzs") - .withParameters(mapOf("bjazejwwviy", "dataxrzxmdewsrsxkrp", "suhbrnn", "datay", - "zycyqiqyhg", "datajxsqwjhqkbiwetp", "zlex", "datase"))) - .withLinkedServiceType("fledynojpziu") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList( - new DataMapperMapping().withTargetEntityName("hqsycljselp") - .withSourceEntityName("bafvafhlbylcc") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datarhyzdf"), - new DataMapperMapping().withTargetEntityName("sofpltd") - .withSourceEntityName("airrhvhfnracw") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datag"))) - .withRelationships(Arrays.asList("datajwouhda", "datas", "datagrbjbxsjybvitvqk")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("nu"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("m") - .withParameters(mapOf("zfnkfexlvxno", "datach", "knaqlnuwig", "datakizvoa", - "kwph", "datayxl"))) - .withLinkedServiceType("zc") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping().withTargetEntityName("ke") - .withSourceEntityName("onwivkcqhrxhxkn") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datammkyu"))) - .withRelationships(Arrays.asList("dataubyqj", "datakakfqfr", "dataem")))) - .withPolicy(new MapperPolicy().withMode("ldudxjascowv") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(1348862039))) - .withAllowVNetOverride(false) - .withStatus("lkksnmgzvyfi") - .withAdditionalProperties( - mapOf("name", "kzuqnwsith", "etag", "bhxykfhyqezvqqug", "type", "olyahluqwqulsut")); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("ujcngo", model.id()); - Assertions.assertEquals("xj", model.folder().name()); - Assertions.assertEquals("gcm", model.description()); - Assertions.assertEquals("hhqxuwyvcacoyviv", - model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("mnlzijiufehgmvf", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("yfw", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nvgmmbugtywa", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("qkueatgroesho", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ndljdjuskbr", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("sfaq", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("pl", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("ldudxjascowv", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1348862039, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("lkksnmgzvyfi", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java deleted file mode 100644 index ed857f7fe840..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java +++ /dev/null @@ -1,291 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCapture; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCapture model = BinaryData.fromString( - "{\"folder\":{\"name\":\"edmzrgjfoknub\"},\"description\":\"itpkpztrgdg\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"raswugyxpqit\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"skbuhzaca\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"qcujpd\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"jkmvbi\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ovjufycsjmlbe\",\"parameters\":{\"hortu\":\"datajiriuxeg\"}},\"linkedServiceType\":\"wlpjfelqerppt\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"nhii\",\"value\":\"dataalwcjgckbb\"},{\"name\":\"cgzpraoxnyu\",\"value\":\"dataa\"},{\"name\":\"gftipwc\",\"value\":\"datayubhiqdx\"}]}},{\"sourceEntities\":[{\"name\":\"pnuhzafccnu\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"bui\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"crkdlbn\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"yhzlwxaeaovurexd\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"derzmwnto\",\"parameters\":{\"jiuazjc\":\"datattmvmmagoaqylkjz\",\"tkrlgjmtbd\":\"datamxitpfinzcpd\",\"mpheqdur\":\"datavcqguefzh\",\"kyeclcdigpta\":\"datalyujlfyoump\"}},\"linkedServiceType\":\"rzmq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"oclxiut\",\"value\":\"datacyzyzjdnrqjbt\"}]}},{\"sourceEntities\":[{\"name\":\"oqa\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"w\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"bqamteuliyslpk\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"xe\",\"parameters\":{\"iijq\":\"datawbormcqmi\"}},\"linkedServiceType\":\"zfboj\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"qwixvcpwnk\",\"value\":\"datawzwofalickduo\"},{\"name\":\"tamtyv\",\"value\":\"datanxrwzawnvs\"},{\"name\":\"fhzag\",\"value\":\"datavhycvdimwrzregzg\"},{\"name\":\"futrwpweryekzkd\",\"value\":\"dataeotta\"}]}},{\"sourceEntities\":[{\"name\":\"sxwwhnhjtf\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"jpnwynudql\",\"parameters\":{\"ehuxiqhzlraym\":\"dataauzpjlx\",\"dsajrednwyysh\":\"datazxlskihmxr\"}},\"linkedServiceType\":\"w\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"pwzyi\",\"value\":\"datakgwl\"},{\"name\":\"eqipxgzdy\",\"value\":\"datasfayorpravkjoges\"},{\"name\":\"bnsmjkwynqxaek\",\"value\":\"dataykvwjtqpkevmyltj\"},{\"name\":\"spxklu\",\"value\":\"dataclf\"}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"noytzposewxigp\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"pxvpifdfaif\",\"properties\":{\"schema\":[{},{},{}],\"dslConnectorProperties\":[{},{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"beidsz\",\"parameters\":{\"hgygvfltgvd\":\"datatoi\",\"xwetwkdrcyrucpc\":\"datahoynk\",\"zdqumoe\":\"datann\"}},\"linkedServiceType\":\"dnaienhqhskndnel\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"nwf\",\"value\":\"datanniyopetxi\"},{\"name\":\"nrlyxnuc\",\"value\":\"datap\"},{\"name\":\"lkwq\",\"value\":\"datatv\"},{\"name\":\"sdtcjbctvivuzqym\",\"value\":\"dataowog\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"sqhzvbrzcdbanfz\",\"sourceEntityName\":\"scxmxeat\",\"sourceConnectionReference\":{\"connectionName\":\"mwnrdj\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{}]},\"sourceDenormalizeInfo\":\"dataomhjrmkuhm\"}],\"relationships\":[\"datajalfihcjmobcanc\",\"dataexxqcwg\",\"dataxf\",\"datavaknokzwjj\"]}],\"policy\":{\"mode\":\"ltixldzyyfytpq\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":104830049}},\"allowVNetOverride\":true,\"status\":\"ivyqlkjuvsmbmsl\"}") - .toObject(ChangeDataCapture.class); - Assertions.assertEquals("edmzrgjfoknub", model.folder().name()); - Assertions.assertEquals("itpkpztrgdg", model.description()); - Assertions.assertEquals("raswugyxpqit", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("ovjufycsjmlbe", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("wlpjfelqerppt", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nhii", - model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("noytzposewxigp", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("beidsz", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("dnaienhqhskndnel", - model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nwf", - model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("sqhzvbrzcdbanfz", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("scxmxeat", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("mwnrdj", - model.targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("ltixldzyyfytpq", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(104830049, model.policy().recurrence().interval()); - Assertions.assertEquals(true, model.allowVNetOverride()); - Assertions.assertEquals("ivyqlkjuvsmbmsl", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCapture model - = new ChangeDataCapture().withFolder(new ChangeDataCaptureFolder().withName("edmzrgjfoknub")) - .withDescription("itpkpztrgdg") - .withSourceConnectionsInfo(Arrays.asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList( - new MapperTable().withName("raswugyxpqit") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("skbuhzaca") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable().withName("qcujpd") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("jkmvbi") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ovjufycsjmlbe") - .withParameters(mapOf("hortu", "datajiriuxeg"))) - .withLinkedServiceType("wlpjfelqerppt") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("nhii").withValue("dataalwcjgckbb"), - new MapperDslConnectorProperties().withName("cgzpraoxnyu").withValue("dataa"), - new MapperDslConnectorProperties().withName("gftipwc").withValue("datayubhiqdx")))), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays.asList( - new MapperTable().withName("pnuhzafccnu") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable() - .withName("bui") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("crkdlbn") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("yhzlwxaeaovurexd") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection().withLinkedService(new LinkedServiceReference() - .withReferenceName("derzmwnto") - .withParameters(mapOf("jiuazjc", "datattmvmmagoaqylkjz", "tkrlgjmtbd", "datamxitpfinzcpd", - "mpheqdur", "datavcqguefzh", "kyeclcdigpta", "datalyujlfyoump"))) - .withLinkedServiceType("rzmq") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("oclxiut") - .withValue("datacyzyzjdnrqjbt")))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList( - new MapperTable().withName("oqa") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable().withName("w") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("bqamteuliyslpk") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("xe") - .withParameters(mapOf("iijq", "datawbormcqmi"))) - .withLinkedServiceType("zfboj") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("qwixvcpwnk") - .withValue("datawzwofalickduo"), - new MapperDslConnectorProperties().withName("tamtyv").withValue("datanxrwzawnvs"), - new MapperDslConnectorProperties().withName("fhzag").withValue("datavhycvdimwrzregzg"), - new MapperDslConnectorProperties().withName("futrwpweryekzkd") - .withValue("dataeotta")))), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays.asList(new MapperTable() - .withName("sxwwhnhjtf") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("jpnwynudql") - .withParameters( - mapOf("ehuxiqhzlraym", "dataauzpjlx", "dsajrednwyysh", "datazxlskihmxr"))) - .withLinkedServiceType("w") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("pwzyi").withValue("datakgwl"), - new MapperDslConnectorProperties().withName("eqipxgzdy") - .withValue("datasfayorpravkjoges"), - new MapperDslConnectorProperties().withName("bnsmjkwynqxaek") - .withValue("dataykvwjtqpkevmyltj"), - new MapperDslConnectorProperties().withName("spxklu").withValue("dataclf")))))) - .withTargetConnectionsInfo( - Arrays - .asList(new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList( - new MapperTable().withName("noytzposewxigp") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("pxvpifdfaif") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("beidsz") - .withParameters(mapOf("hgygvfltgvd", "datatoi", "xwetwkdrcyrucpc", "datahoynk", - "zdqumoe", "datann"))) - .withLinkedServiceType("dnaienhqhskndnel") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("nwf").withValue("datanniyopetxi"), - new MapperDslConnectorProperties().withName("nrlyxnuc").withValue("datap"), - new MapperDslConnectorProperties().withName("lkwq").withValue("datatv"), - new MapperDslConnectorProperties() - .withName("sdtcjbctvivuzqym") - .withValue("dataowog")))) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping().withTargetEntityName("sqhzvbrzcdbanfz") - .withSourceEntityName("scxmxeat") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("mwnrdj") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings( - Arrays.asList(new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataomhjrmkuhm"))) - .withRelationships( - Arrays.asList("datajalfihcjmobcanc", "dataexxqcwg", "dataxf", "datavaknokzwjj")))) - .withPolicy(new MapperPolicy().withMode("ltixldzyyfytpq") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(104830049))) - .withAllowVNetOverride(true) - .withStatus("ivyqlkjuvsmbmsl"); - model = BinaryData.fromObject(model).toObject(ChangeDataCapture.class); - Assertions.assertEquals("edmzrgjfoknub", model.folder().name()); - Assertions.assertEquals("itpkpztrgdg", model.description()); - Assertions.assertEquals("raswugyxpqit", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("ovjufycsjmlbe", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("wlpjfelqerppt", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nhii", - model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("noytzposewxigp", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("beidsz", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("dnaienhqhskndnel", - model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nwf", - model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("sqhzvbrzcdbanfz", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("scxmxeat", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("mwnrdj", - model.targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("ltixldzyyfytpq", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(104830049, model.policy().recurrence().interval()); - Assertions.assertEquals(true, model.allowVNetOverride()); - Assertions.assertEquals("ivyqlkjuvsmbmsl", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 1c0922a92194..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"folder\":{\"name\":\"hvagrkjepdfsgk\"},\"description\":\"fltgbbxghxa\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"gslllc\"},\"linkedServiceType\":\"hrbqqumttxmgh\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ljbtytdx\"},\"linkedServiceType\":\"pjewqgyexrdszp\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}},{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"rutnaavtjhikc\"},\"linkedServiceType\":\"jswhoh\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"j\"},\"linkedServiceType\":\"bpudjhjwxpbwvceu\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"datawb\",\"datansb\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"c\"},\"linkedServiceType\":\"hyjex\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datakgrrrkbuiuspbeq\",\"dataqbscahrfhxrvarv\"]}],\"policy\":{\"mode\":\"manq\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":334723435}},\"allowVNetOverride\":true,\"status\":\"hxngqpbbybhjozn\"},\"name\":\"uvqnopupxbviemy\",\"type\":\"jqdk\",\"etag\":\"bfz\",\"\":{\"hkndedhmj\":\"dataqvwzsazfzyrle\"},\"id\":\"jnvkpd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ChangeDataCaptureResource response - = manager.changeDataCaptures() - .define("tkojmmcnlsfof") - .withExistingFactory("glkvby", "meraegfyrgrlnb") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("jxnoqxgfvg")) - .withLinkedServiceType("mtnunfjdgfm") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService( - new LinkedServiceReference().withReferenceName("aeoozjncurnrdye")) - .withLinkedServiceType("xk") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships( - Arrays.asList("datafprqwopjnrafli", "dataqpmdojbm", "datajohu", "datauvnbiujt")), - new MapperTargetConnectionsInfo().withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("wmwiaut")) - .withLinkedServiceType("h") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships( - Arrays.asList("dataeqhqfryfyfubtrta", "datapj", "datafedowcgqc", "datagvqqy")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService( - new LinkedServiceReference().withReferenceName("qnvnetrnwgchvgpu")) - .withLinkedServiceType("n") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datamshonnmbaottulk", "datal")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("zwfukjwvmmya")) - .withLinkedServiceType("lpeyiafz") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("dataabouerncgvjmk")))) - .withPolicy(new MapperPolicy().withMode("qruolmumz") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(1963137778))) - .withFolder(new ChangeDataCaptureFolder().withName("savdijbiu")) - .withDescription("w") - .withAllowVNetOverride(false) - .withStatus("jdmgzmpbfho") - .withIfMatch("jgjl") - .create(); - - Assertions.assertEquals("jnvkpd", response.id()); - Assertions.assertEquals("hvagrkjepdfsgk", response.folder().name()); - Assertions.assertEquals("fltgbbxghxa", response.description()); - Assertions.assertEquals("gslllc", - response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("hrbqqumttxmgh", - response.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, response.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("j", - response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("bpudjhjwxpbwvceu", - response.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, response.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("manq", response.policy().mode()); - Assertions.assertEquals(FrequencyType.SECOND, response.policy().recurrence().frequency()); - Assertions.assertEquals(334723435, response.policy().recurrence().interval()); - Assertions.assertEquals(true, response.allowVNetOverride()); - Assertions.assertEquals("hxngqpbbybhjozn", response.status()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.java deleted file mode 100644 index 8170931523cb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.changeDataCaptures().deleteWithResponse("v", "pzvrtuaapyejbs", "ec", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java deleted file mode 100644 index 86c979428590..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"folder\":{\"name\":\"f\"},\"description\":\"hjlpznxjymdql\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"wltabmcm\"},\"linkedServiceType\":\"e\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"gfya\"},\"linkedServiceType\":\"pkybgrugklwubkmd\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"mau\"},\"linkedServiceType\":\"rzlfpk\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"gztxcjnwzvlzwyk\"},\"linkedServiceType\":\"qq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datagivkfhiaa\",\"datalxpwhvu\",\"datahjl\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"nrfuabqotyoa\"},\"linkedServiceType\":\"rlydmldjtrxq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"dataqajhyufexb\"]},{\"targetEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ntzjvquwxxouflnc\"},\"linkedServiceType\":\"b\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datankrvpkkifjtx\",\"datady\",\"dataymijadh\"]},{\"targetEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"qjqutixykjlypmvo\"},\"linkedServiceType\":\"fnsfbnt\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"dataqddedhkhqwbm\"]}],\"policy\":{\"mode\":\"unxfdpulpnc\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":874037530}},\"allowVNetOverride\":true,\"status\":\"aeyczb\"},\"name\":\"skpnbdzjuq\",\"type\":\"qyusvgrbaax\",\"etag\":\"tkuchbnydzhafpbc\",\"\":{\"u\":\"datantw\",\"hbumoq\":\"datatffqa\",\"ik\":\"dataaixsalgzzm\",\"nsndcmghddsgjb\":\"datacagmmegukefmujg\"},\"id\":\"z\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ChangeDataCaptureResource response = manager.changeDataCaptures() - .getWithResponse("uvphkhszesxsyrvj", "wpknbwh", "ev", "own", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("z", response.id()); - Assertions.assertEquals("f", response.folder().name()); - Assertions.assertEquals("hjlpznxjymdql", response.description()); - Assertions.assertEquals("wltabmcm", - response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("e", response.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, response.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("gztxcjnwzvlzwyk", - response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("qq", response.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, response.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("unxfdpulpnc", response.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, response.policy().recurrence().frequency()); - Assertions.assertEquals(874037530, response.policy().recurrence().interval()); - Assertions.assertEquals(true, response.allowVNetOverride()); - Assertions.assertEquals("aeyczb", response.status()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesListByFactoryMockTests.java deleted file mode 100644 index 443cf5ad83be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesListByFactoryMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"folder\":{\"name\":\"ghnnxkouvsmmi\"},\"description\":\"iigslbriawkn\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"eyulmxonobozge\"},\"linkedServiceType\":\"tcxknipzqwcr\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"maws\"},\"linkedServiceType\":\"dfwex\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]}},{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"oarmlbqekvjwaq\"},\"linkedServiceType\":\"sjrpkgvstwdcz\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"fmytkluewthydgz\"},\"linkedServiceType\":\"bbfun\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ioxarwxhpufvuc\"},\"linkedServiceType\":\"ymjbzekrwpwyi\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"datazimevudmpsu\",\"datapra\",\"datajscni\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"kpewtbyciedxs\"},\"linkedServiceType\":\"jj\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"dataaxieuntceekh\",\"dataxgu\",\"datazzcpwbfbfrzr\"]}],\"policy\":{\"mode\":\"ipqbyvesxuzda\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":891591548}},\"allowVNetOverride\":false,\"status\":\"wzjkbaudtpp\"},\"name\":\"qkntnvgwgtgxggm\",\"type\":\"wulqpzqxcyg\",\"etag\":\"gjzrsb\",\"\":{\"cleniozqruqh\":\"datavvbsbkyfbmwzbf\",\"rhgohdv\":\"datapwzhpyymlwalldey\",\"kmqvivps\":\"datahsvrpnoxb\",\"fkjdw\":\"databzrfmfad\"},\"id\":\"yooewyvwwvki\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.changeDataCaptures().listByFactory("bkm", "wmmwjugaqyrtbniy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yooewyvwwvki", response.iterator().next().id()); - Assertions.assertEquals("ghnnxkouvsmmi", response.iterator().next().folder().name()); - Assertions.assertEquals("iigslbriawkn", response.iterator().next().description()); - Assertions.assertEquals("eyulmxonobozge", - response.iterator().next().sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("tcxknipzqwcr", - response.iterator().next().sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.iterator().next().sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, - response.iterator().next().sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("ioxarwxhpufvuc", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ymjbzekrwpwyi", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.iterator().next().targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, - response.iterator().next().targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("ipqbyvesxuzda", response.iterator().next().policy().mode()); - Assertions.assertEquals(FrequencyType.SECOND, response.iterator().next().policy().recurrence().frequency()); - Assertions.assertEquals(891591548, response.iterator().next().policy().recurrence().interval()); - Assertions.assertEquals(false, response.iterator().next().allowVNetOverride()); - Assertions.assertEquals("wzjkbaudtpp", response.iterator().next().status()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java deleted file mode 100644 index 410480f0ee50..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesStartWithResponseMockTests { - @Test - public void testStartWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.changeDataCaptures() - .startWithResponse("q", "ymmqxndxppzyiyc", "powjyfbnqohc", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStatusWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStatusWithResponseMockTests.java deleted file mode 100644 index 226b00eae616..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStatusWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesStatusWithResponseMockTests { - @Test - public void testStatusWithResponse() throws Exception { - String responseStr = "\"ebyt\""; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - String response = manager.changeDataCaptures() - .statusWithResponse("qijhvpvzfvegumsq", "acgfcbatfl", "pbgbzdhnmyyag", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ebyt", response); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStopWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStopWithResponseMockTests.java deleted file mode 100644 index d2271a413edf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStopWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesStopWithResponseMockTests { - @Test - public void testStopWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.changeDataCaptures() - .stopWithResponse("hmkpcrol", "xpalljveqx", "cbparyoa", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java deleted file mode 100644 index 5bddc381a80c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CmkIdentityDefinition; -import org.junit.jupiter.api.Assertions; - -public final class CmkIdentityDefinitionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CmkIdentityDefinition model - = BinaryData.fromString("{\"userAssignedIdentity\":\"lexxbczwtru\"}").toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("lexxbczwtru", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CmkIdentityDefinition model = new CmkIdentityDefinition().withUserAssignedIdentity("lexxbczwtru"); - model = BinaryData.fromObject(model).toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("lexxbczwtru", model.userAssignedIdentity()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java deleted file mode 100644 index 9a4c32813bf9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsEntityDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CommonDataServiceForAppsEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsEntityDataset model = BinaryData.fromString( - "{\"type\":\"CommonDataServiceForAppsEntity\",\"typeProperties\":{\"entityName\":\"datablwal\"},\"description\":\"ssnqe\",\"structure\":\"dataotbptg\",\"schema\":\"datamanxx\",\"linkedServiceName\":{\"referenceName\":\"wqfmdqecvta\",\"parameters\":{\"sibxovuqo\":\"datazmnobfeww\",\"qnzjcyqqz\":\"datajrkblndyclwgycv\",\"dpisjdl\":\"dataembtbwnalb\",\"eopsk\":\"dataajvmvvlooubsfxip\"}},\"parameters\":{\"dwzrgdqyxajc\":{\"type\":\"Bool\",\"defaultValue\":\"datamlupfazusjcdhusl\"},\"sjnkiixepbn\":{\"type\":\"Int\",\"defaultValue\":\"datacavqcwyzoqzkmqcw\"}},\"annotations\":[\"datawwgfgsqxilef\"],\"folder\":{\"name\":\"ewrznequqynttw\"},\"\":{\"ogjmqjhgcyd\":\"dataajksbs\",\"ixtdlxw\":\"datajnmcvjbssfcriqx\",\"orogeuv\":\"datavcdkucpxpyafrwr\",\"frsnqpljp\":\"datakrspnrsjsemlz\"}}") - .toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("ssnqe", model.description()); - Assertions.assertEquals("wqfmdqecvta", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dwzrgdqyxajc").type()); - Assertions.assertEquals("ewrznequqynttw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDataset model - = new CommonDataServiceForAppsEntityDataset().withDescription("ssnqe") - .withStructure("dataotbptg") - .withSchema("datamanxx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wqfmdqecvta") - .withParameters(mapOf("sibxovuqo", "datazmnobfeww", "qnzjcyqqz", "datajrkblndyclwgycv", "dpisjdl", - "dataembtbwnalb", "eopsk", "dataajvmvvlooubsfxip"))) - .withParameters(mapOf("dwzrgdqyxajc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datamlupfazusjcdhusl"), - "sjnkiixepbn", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datacavqcwyzoqzkmqcw"))) - .withAnnotations(Arrays.asList("datawwgfgsqxilef")) - .withFolder(new DatasetFolder().withName("ewrznequqynttw")) - .withEntityName("datablwal"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("ssnqe", model.description()); - Assertions.assertEquals("wqfmdqecvta", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dwzrgdqyxajc").type()); - Assertions.assertEquals("ewrznequqynttw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java deleted file mode 100644 index 720515e410a1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsEntityDatasetTypeProperties; - -public final class CommonDataServiceForAppsEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsEntityDatasetTypeProperties model - = BinaryData.fromString("{\"entityName\":\"dataexutike\"}") - .toObject(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDatasetTypeProperties model - = new CommonDataServiceForAppsEntityDatasetTypeProperties().withEntityName("dataexutike"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java deleted file mode 100644 index c46cf75e2de6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsSource; - -public final class CommonDataServiceForAppsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsSource model = BinaryData.fromString( - "{\"type\":\"CommonDataServiceForAppsSource\",\"query\":\"dataljzrqw\",\"additionalColumns\":\"dataswemotjkejy\",\"sourceRetryCount\":\"datakyjvctqaqcz\",\"sourceRetryWait\":\"datapaeyklxsvcbr\",\"maxConcurrentConnections\":\"datalt\",\"disableMetricsCollection\":\"datamdsngoaofmrph\",\"\":{\"exibo\":\"datafrunkcgdnha\"}}") - .toObject(CommonDataServiceForAppsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsSource model - = new CommonDataServiceForAppsSource().withSourceRetryCount("datakyjvctqaqcz") - .withSourceRetryWait("datapaeyklxsvcbr") - .withMaxConcurrentConnections("datalt") - .withDisableMetricsCollection("datamdsngoaofmrph") - .withQuery("dataljzrqw") - .withAdditionalColumns("dataswemotjkejy"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java deleted file mode 100644 index d982fd056d04..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class CompressionReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CompressionReadSettings model = BinaryData.fromString( - "{\"type\":\"CompressionReadSettings\",\"\":{\"eqjnouuujli\":\"datastwaa\",\"hop\":\"dataicshmqxgjzs\",\"vkcnggoc\":\"dataqxipbxs\",\"lk\":\"datawnjmiitlamfb\"}}") - .toObject(CompressionReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CompressionReadSettings model - = new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")); - model = BinaryData.fromObject(model).toObject(CompressionReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java deleted file mode 100644 index 66f9eeb62134..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConcurObjectDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ConcurObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConcurObjectDataset model = BinaryData.fromString( - "{\"type\":\"ConcurObject\",\"typeProperties\":{\"tableName\":\"dataf\"},\"description\":\"cnqbblr\",\"structure\":\"dataofzghfuifwxu\",\"schema\":\"datanoh\",\"linkedServiceName\":{\"referenceName\":\"cqxu\",\"parameters\":{\"fbplv\":\"dataugdcr\",\"qe\":\"datamhurosdjlzbdmddg\",\"orservpvesors\":\"datay\"}},\"parameters\":{\"fjqzyhzydyvtuq\":{\"type\":\"SecureString\",\"defaultValue\":\"datamex\"},\"igtvjxsocsvjekej\":{\"type\":\"SecureString\",\"defaultValue\":\"datalunssky\"}},\"annotations\":[\"datazjdcwuzscyf\",\"dataixecmasjnfgn\",\"dataxaojeeyvfxbfckmo\"],\"folder\":{\"name\":\"axvwxtxuzh\"},\"\":{\"ygtc\":\"datayffwflbkjcdzu\",\"jef\":\"dataz\",\"kbhzi\":\"dataubaldjcgldryvlr\"}}") - .toObject(ConcurObjectDataset.class); - Assertions.assertEquals("cnqbblr", model.description()); - Assertions.assertEquals("cqxu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("fjqzyhzydyvtuq").type()); - Assertions.assertEquals("axvwxtxuzh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurObjectDataset model = new ConcurObjectDataset().withDescription("cnqbblr") - .withStructure("dataofzghfuifwxu") - .withSchema("datanoh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("cqxu") - .withParameters(mapOf("fbplv", "dataugdcr", "qe", "datamhurosdjlzbdmddg", "orservpvesors", "datay"))) - .withParameters(mapOf("fjqzyhzydyvtuq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datamex"), - "igtvjxsocsvjekej", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datalunssky"))) - .withAnnotations(Arrays.asList("datazjdcwuzscyf", "dataixecmasjnfgn", "dataxaojeeyvfxbfckmo")) - .withFolder(new DatasetFolder().withName("axvwxtxuzh")) - .withTableName("dataf"); - model = BinaryData.fromObject(model).toObject(ConcurObjectDataset.class); - Assertions.assertEquals("cnqbblr", model.description()); - Assertions.assertEquals("cqxu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("fjqzyhzydyvtuq").type()); - Assertions.assertEquals("axvwxtxuzh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java deleted file mode 100644 index 38a156091902..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConcurSource; - -public final class ConcurSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConcurSource model = BinaryData.fromString( - "{\"type\":\"ConcurSource\",\"query\":\"dataanirlydsdmacydqa\",\"queryTimeout\":\"datayvwxubgulyz\",\"additionalColumns\":\"dataasxpprohuabdu\",\"sourceRetryCount\":\"datavsoxnpuapt\",\"sourceRetryWait\":\"datawekiqlscmtcljopi\",\"maxConcurrentConnections\":\"datawxvcfchokkcjjnq\",\"disableMetricsCollection\":\"datajoayaj\",\"\":{\"fbzbxeqzvokfrhfa\":\"datacxjmap\",\"uaxdulv\":\"dataxcgjuc\",\"mksgeqpai\":\"dataefsrxqscdbbwej\",\"eotvnet\":\"datalfscosf\"}}") - .toObject(ConcurSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurSource model = new ConcurSource().withSourceRetryCount("datavsoxnpuapt") - .withSourceRetryWait("datawekiqlscmtcljopi") - .withMaxConcurrentConnections("datawxvcfchokkcjjnq") - .withDisableMetricsCollection("datajoayaj") - .withQueryTimeout("datayvwxubgulyz") - .withAdditionalColumns("dataasxpprohuabdu") - .withQuery("dataanirlydsdmacydqa"); - model = BinaryData.fromObject(model).toObject(ConcurSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java deleted file mode 100644 index f75c77c3efb3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; - -public final class ConnectionStatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConnectionStateProperties model = BinaryData - .fromString( - "{\"actionsRequired\":\"lejchcsr\",\"description\":\"knmzlanrupdwvnp\",\"status\":\"nzqtpjhmqrhvt\"}") - .toObject(ConnectionStateProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConnectionStateProperties model = new ConnectionStateProperties(); - model = BinaryData.fromObject(model).toObject(ConnectionStateProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java deleted file mode 100644 index b8224e388e69..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ControlActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ControlActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ControlActivity model = BinaryData.fromString( - "{\"type\":\"Container\",\"name\":\"exkoncia\",\"description\":\"l\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"xkctedh\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"bu\":\"dataajniwbyzyjuyxyl\",\"sigkinykjxq\":\"dataojdzcluy\",\"jqpjzturdi\":\"dataspeqgedpi\",\"oqakvutedetxokqu\":\"dataerkwmafy\"}},{\"activity\":\"jdwcwj\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"blfefbbvitlnnp\":\"dataehxahnqjbav\"}},{\"activity\":\"fufwrerbndr\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"py\":\"dataavmdcctemvaajyi\",\"swurzaqubryhvbv\":\"datagwih\"}}],\"userProperties\":[{\"name\":\"dwaupjo\",\"value\":\"datagryocgwkp\"},{\"name\":\"ilyznbb\",\"value\":\"dataimxznfoaks\"}],\"\":{\"iwf\":\"dataswznlbbhtl\"}}") - .toObject(ControlActivity.class); - Assertions.assertEquals("exkoncia", model.name()); - Assertions.assertEquals("l", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xkctedh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("dwaupjo", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlActivity model = new ControlActivity().withName("exkoncia") - .withDescription("l") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("xkctedh") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jdwcwj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fufwrerbndr") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("dwaupjo").withValue("datagryocgwkp"), - new UserProperty().withName("ilyznbb").withValue("dataimxznfoaks"))); - model = BinaryData.fromObject(model).toObject(ControlActivity.class); - Assertions.assertEquals("exkoncia", model.name()); - Assertions.assertEquals("l", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xkctedh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("dwaupjo", model.userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityLogSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityLogSettingsTests.java deleted file mode 100644 index 5212d8bad6ce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityLogSettingsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; - -public final class CopyActivityLogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivityLogSettings model - = BinaryData.fromString("{\"logLevel\":\"datavsf\",\"enableReliableLogging\":\"datacarfdmlie\"}") - .toObject(CopyActivityLogSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityLogSettings model - = new CopyActivityLogSettings().withLogLevel("datavsf").withEnableReliableLogging("datacarfdmlie"); - model = BinaryData.fromObject(model).toObject(CopyActivityLogSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java deleted file mode 100644 index 21318d8e02d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CopyActivity; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivity model = BinaryData.fromString( - "{\"type\":\"Copy\",\"typeProperties\":{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datafhfptbdxtvlpj\",\"sourceRetryWait\":\"datasl\",\"maxConcurrentConnections\":\"datauzytxeaqig\",\"disableMetricsCollection\":\"datantutetdtgci\",\"\":{\"qnfyhgrcmcqpp\":\"datajwiwouep\",\"xyecttu\":\"datae\"}},\"sink\":{\"type\":\"CopySink\",\"writeBatchSize\":\"datawelutrvd\",\"writeBatchTimeout\":\"datawp\",\"sinkRetryCount\":\"datascwyltslf\",\"sinkRetryWait\":\"datayavysfmndrdqq\",\"maxConcurrentConnections\":\"dataeg\",\"disableMetricsCollection\":\"dataldkciherzkh\",\"\":{\"oiranxq\":\"datahjkwfolpjrepah\",\"nldt\":\"datazss\",\"qxi\":\"dataykzmwdoqrejltr\"}},\"translator\":\"dataozryoxmfrxfxyc\",\"enableStaging\":\"dataalvchfumlf\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"lzxxkokipklfwnhf\",\"parameters\":{\"hg\":\"datalrtffswqdkvljitb\"}},\"path\":\"datavlaro\",\"enableCompression\":\"datawmucrzabgsdxtw\",\"\":{\"kbksltunrwxsq\":\"datakgonlvjg\"}},\"parallelCopies\":\"datalupccfwqisouqy\",\"dataIntegrationUnits\":\"datazjehdklvqtmzoci\",\"enableSkipIncompatibleRow\":\"datatctjhpgmoazsjsu\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"datafvnntrccvxqb\",\"path\":\"dataq\",\"\":{\"xekibv\":\"datanri\",\"bxldl\":\"dataqldilmxsvzwbktal\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"hmibqgldhtt\",\"parameters\":{\"alxlewlwbxufqf\":\"datapqlnnyevj\",\"lfqvo\":\"datakkvij\"}},\"path\":\"dataowdqvqfldaqoao\",\"logLevel\":\"dataqpfwnjdyoxformfe\",\"enableReliableLogging\":\"datafq\",\"\":{\"hxphxokdbv\":\"dataszxtes\",\"bz\":\"datapqttusux\",\"jrnnwgrxzcn\":\"datapvue\"}},\"logSettings\":{\"enableCopyActivityLog\":\"dataezxluimkwb\",\"copyActivityLogSettings\":{\"logLevel\":\"dataq\",\"enableReliableLogging\":\"datal\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"nycchpcjztz\",\"parameters\":{\"vp\":\"datau\",\"xciunet\":\"datafvin\",\"hxxvft\":\"dataxgdgqkletlwavtzb\",\"kyjmtdnymbe\":\"datadrqgionm\"}},\"path\":\"dataskb\"}},\"preserveRules\":[\"dataaklesjgxdhgezy\",\"dataphaokhbqmxgglk\"],\"preserve\":[\"datapbynetyxuxopoc\"],\"validateDataConsistency\":\"dataffgggglz\",\"skipErrorFile\":{\"fileMissing\":\"datauhmngc\",\"dataInconsistency\":\"datakgiusrvs\"}},\"inputs\":[{\"referenceName\":\"spaoxi\",\"parameters\":{\"u\":\"datai\",\"yn\":\"datapgpqsmglutn\",\"xbgfwwcfwlwnj\":\"datalxxnbogxkidb\"}},{\"referenceName\":\"anm\",\"parameters\":{\"fbjesmiyj\":\"datametdruugimvi\",\"xqsvax\":\"datahjuuepnjuqwnajbb\"}}],\"outputs\":[{\"referenceName\":\"isdwtug\",\"parameters\":{\"cbwiwhtjox\":\"dataupip\"}},{\"referenceName\":\"llhkzunnwmwwxy\",\"parameters\":{\"qmcvu\":\"datakdvevhyuuihap\",\"fiiif\":\"dataekubljnizwztlcr\",\"ervtrulzlrmrt\":\"dataxnfarmficqr\"}},{\"referenceName\":\"smpmhlcxb\",\"parameters\":{\"bicjzntiblxeygo\":\"datagcdfelvapb\",\"oanpkcmdixiu\":\"datauhroicjtgqdy\",\"zlvhohzkcsjddzpo\":\"dataqbcalgspzoafp\"}},{\"referenceName\":\"mnmkypeqmuue\",\"parameters\":{\"y\":\"datakrulavxe\",\"chwpfunptsry\":\"dataf\"}}],\"linkedServiceName\":{\"referenceName\":\"a\",\"parameters\":{\"baddlmj\":\"datawbxvsytbxcj\",\"rc\":\"dataulio\",\"valezkyfykm\":\"datanthluze\"}},\"policy\":{\"timeout\":\"dataasuwep\",\"retry\":\"datagtyt\",\"retryIntervalInSeconds\":333163893,\"secureInput\":false,\"secureOutput\":true,\"\":{\"ykshizwdswikyewv\":\"datafqffwvnjgj\",\"meftlgjrfkqf\":\"datakzwqzwsguipqq\",\"kxk\":\"datadrel\"}},\"name\":\"glua\",\"description\":\"gjoy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"vrmenrcqickhvps\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Completed\"],\"\":{\"yojzvaykfjgakays\":\"datangmonqyntyuqdz\",\"zwm\":\"datakydqy\",\"muot\":\"datawrqzizgg\"}}],\"userProperties\":[{\"name\":\"abfyjampvwx\",\"value\":\"datakhprlt\"},{\"name\":\"ipmnqrbyq\",\"value\":\"datayw\"}],\"\":{\"yu\":\"datawcjkargg\"}}") - .toObject(CopyActivity.class); - Assertions.assertEquals("glua", model.name()); - Assertions.assertEquals("gjoy", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("vrmenrcqickhvps", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("abfyjampvwx", model.userProperties().get(0).name()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(333163893, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("spaoxi", model.inputs().get(0).referenceName()); - Assertions.assertEquals("isdwtug", model.outputs().get(0).referenceName()); - Assertions.assertEquals("lzxxkokipklfwnhf", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("hmibqgldhtt", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("nycchpcjztz", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivity model = new CopyActivity().withName("glua") - .withDescription("gjoy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("vrmenrcqickhvps") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("abfyjampvwx").withValue("datakhprlt"), - new UserProperty().withName("ipmnqrbyq").withValue("datayw"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("a") - .withParameters(mapOf("baddlmj", "datawbxvsytbxcj", "rc", "dataulio", "valezkyfykm", "datanthluze"))) - .withPolicy(new ActivityPolicy().withTimeout("dataasuwep") - .withRetry("datagtyt") - .withRetryIntervalInSeconds(333163893) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withInputs(Arrays.asList( - new DatasetReference().withReferenceName("spaoxi") - .withParameters(mapOf("u", "datai", "yn", "datapgpqsmglutn", "xbgfwwcfwlwnj", "datalxxnbogxkidb")), - new DatasetReference().withReferenceName("anm") - .withParameters(mapOf("fbjesmiyj", "datametdruugimvi", "xqsvax", "datahjuuepnjuqwnajbb")))) - .withOutputs(Arrays.asList( - new DatasetReference().withReferenceName("isdwtug").withParameters(mapOf("cbwiwhtjox", "dataupip")), - new DatasetReference().withReferenceName("llhkzunnwmwwxy") - .withParameters(mapOf("qmcvu", "datakdvevhyuuihap", "fiiif", "dataekubljnizwztlcr", "ervtrulzlrmrt", - "dataxnfarmficqr")), - new DatasetReference().withReferenceName("smpmhlcxb") - .withParameters(mapOf("bicjzntiblxeygo", "datagcdfelvapb", "oanpkcmdixiu", "datauhroicjtgqdy", - "zlvhohzkcsjddzpo", "dataqbcalgspzoafp")), - new DatasetReference().withReferenceName("mnmkypeqmuue") - .withParameters(mapOf("y", "datakrulavxe", "chwpfunptsry", "dataf")))) - .withSource(new CopySource().withSourceRetryCount("datafhfptbdxtvlpj") - .withSourceRetryWait("datasl") - .withMaxConcurrentConnections("datauzytxeaqig") - .withDisableMetricsCollection("datantutetdtgci") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withSink(new CopySink().withWriteBatchSize("datawelutrvd") - .withWriteBatchTimeout("datawp") - .withSinkRetryCount("datascwyltslf") - .withSinkRetryWait("datayavysfmndrdqq") - .withMaxConcurrentConnections("dataeg") - .withDisableMetricsCollection("dataldkciherzkh") - .withAdditionalProperties(mapOf("type", "CopySink"))) - .withTranslator("dataozryoxmfrxfxyc") - .withEnableStaging("dataalvchfumlf") - .withStagingSettings(new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lzxxkokipklfwnhf") - .withParameters(mapOf("hg", "datalrtffswqdkvljitb"))) - .withPath("datavlaro") - .withEnableCompression("datawmucrzabgsdxtw") - .withAdditionalProperties(mapOf())) - .withParallelCopies("datalupccfwqisouqy") - .withDataIntegrationUnits("datazjehdklvqtmzoci") - .withEnableSkipIncompatibleRow("datatctjhpgmoazsjsu") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings().withLinkedServiceName("datafvnntrccvxqb") - .withPath("dataq") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hmibqgldhtt") - .withParameters(mapOf("alxlewlwbxufqf", "datapqlnnyevj", "lfqvo", "datakkvij"))) - .withPath("dataowdqvqfldaqoao") - .withLogLevel("dataqpfwnjdyoxformfe") - .withEnableReliableLogging("datafq") - .withAdditionalProperties(mapOf())) - .withLogSettings(new LogSettings().withEnableCopyActivityLog("dataezxluimkwb") - .withCopyActivityLogSettings( - new CopyActivityLogSettings().withLogLevel("dataq").withEnableReliableLogging("datal")) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nycchpcjztz") - .withParameters(mapOf("vp", "datau", "xciunet", "datafvin", "hxxvft", "dataxgdgqkletlwavtzb", - "kyjmtdnymbe", "datadrqgionm"))) - .withPath("dataskb"))) - .withPreserveRules(Arrays.asList("dataaklesjgxdhgezy", "dataphaokhbqmxgglk")) - .withPreserve(Arrays.asList("datapbynetyxuxopoc")) - .withValidateDataConsistency("dataffgggglz") - .withSkipErrorFile(new SkipErrorFile().withFileMissing("datauhmngc").withDataInconsistency("datakgiusrvs")); - model = BinaryData.fromObject(model).toObject(CopyActivity.class); - Assertions.assertEquals("glua", model.name()); - Assertions.assertEquals("gjoy", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("vrmenrcqickhvps", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("abfyjampvwx", model.userProperties().get(0).name()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(333163893, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("spaoxi", model.inputs().get(0).referenceName()); - Assertions.assertEquals("isdwtug", model.outputs().get(0).referenceName()); - Assertions.assertEquals("lzxxkokipklfwnhf", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("hmibqgldhtt", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("nycchpcjztz", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java deleted file mode 100644 index d0035e9f5207..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CopyActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivityTypeProperties model = BinaryData.fromString( - "{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datagylo\",\"sourceRetryWait\":\"dataxwlql\",\"maxConcurrentConnections\":\"datanbudjypliotg\",\"disableMetricsCollection\":\"dataansykvlxsycq\",\"\":{\"wx\":\"dataxooxuaufqoo\",\"veqvpedwmhqcjr\":\"datat\",\"zqnupsipclxvaov\":\"datarypjbyqxe\",\"vqqvicqdbmzwlej\":\"datasib\"}},\"sink\":{\"type\":\"CopySink\",\"writeBatchSize\":\"datayoonbualri\",\"writeBatchTimeout\":\"datadbnt\",\"sinkRetryCount\":\"datababndwcfmz\",\"sinkRetryWait\":\"datamgdlgsxkyboysquy\",\"maxConcurrentConnections\":\"datakh\",\"disableMetricsCollection\":\"datatwcyigrhfevxypqu\",\"\":{\"xhhvoo\":\"dataj\",\"wyiq\":\"datartcsucot\",\"bhzukrpfbhihddi\":\"datajnxzvjnmpvsblud\",\"yfku\":\"datauexy\"}},\"translator\":\"datalq\",\"enableStaging\":\"dataa\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"pwrmlv\",\"parameters\":{\"xnyock\":\"datakkqspzw\"}},\"path\":\"datassusdrgzmmrzwm\",\"enableCompression\":\"datatkcvolaxnuk\",\"\":{\"oxyxiyhmjwsn\":\"dataoumndc\"}},\"parallelCopies\":\"dataezgvaeqiygbou\",\"dataIntegrationUnits\":\"datajodidgudar\",\"enableSkipIncompatibleRow\":\"dataajbenf\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"dataufvojikffczw\",\"path\":\"datawpilsuhsghdovcpb\",\"\":{\"hsixzcdaukh\":\"dataapgag\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"h\",\"parameters\":{\"ojker\":\"databomf\",\"togbkdctsg\":\"dataujfnbzamroad\",\"cnecl\":\"dataalh\",\"nsl\":\"datahmjsqcubyj\"}},\"path\":\"datateena\",\"logLevel\":\"dataecsft\",\"enableReliableLogging\":\"dataubzfuhj\",\"\":{\"qgvt\":\"datacyrbzyj\",\"vdvkeyqxjchdnlx\":\"datadxtwyxpkwwdkkvd\",\"xqpsqpfxjwt\":\"datailuexvml\",\"xrjjdjikiqtzub\":\"datalbqkguchd\"}},\"logSettings\":{\"enableCopyActivityLog\":\"datakujv\",\"copyActivityLogSettings\":{\"logLevel\":\"datauq\",\"enableReliableLogging\":\"datalwnxryyqtjcrpax\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"xlfxsetvdz\",\"parameters\":{\"zhdciuxotb\":\"datadmxfqftywbba\",\"hop\":\"dataflgkkiu\",\"rtaevq\":\"datafobpyeo\",\"owsmrvdtqhr\":\"datafdhpkiiunyrobcke\"}},\"path\":\"dataqs\"}},\"preserveRules\":[\"datanupskit\",\"datakphamefzzgwjoau\"],\"preserve\":[\"datadpn\",\"dataouylfcfgqinaokx\",\"datauknzhmza\"],\"validateDataConsistency\":\"datarsqzuknbtxtdm\",\"skipErrorFile\":{\"fileMissing\":\"datarrqqajhklttl\",\"dataInconsistency\":\"datawdrt\"}}") - .toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("pwrmlv", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("h", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("xlfxsetvdz", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityTypeProperties model = new CopyActivityTypeProperties() - .withSource(new CopySource().withSourceRetryCount("datagylo") - .withSourceRetryWait("dataxwlql") - .withMaxConcurrentConnections("datanbudjypliotg") - .withDisableMetricsCollection("dataansykvlxsycq") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withSink(new CopySink().withWriteBatchSize("datayoonbualri") - .withWriteBatchTimeout("datadbnt") - .withSinkRetryCount("datababndwcfmz") - .withSinkRetryWait("datamgdlgsxkyboysquy") - .withMaxConcurrentConnections("datakh") - .withDisableMetricsCollection("datatwcyigrhfevxypqu") - .withAdditionalProperties(mapOf("type", "CopySink"))) - .withTranslator("datalq") - .withEnableStaging("dataa") - .withStagingSettings(new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("pwrmlv") - .withParameters(mapOf("xnyock", "datakkqspzw"))) - .withPath("datassusdrgzmmrzwm") - .withEnableCompression("datatkcvolaxnuk") - .withAdditionalProperties(mapOf())) - .withParallelCopies("dataezgvaeqiygbou") - .withDataIntegrationUnits("datajodidgudar") - .withEnableSkipIncompatibleRow("dataajbenf") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings() - .withLinkedServiceName("dataufvojikffczw") - .withPath("datawpilsuhsghdovcpb") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("h") - .withParameters(mapOf("ojker", "databomf", "togbkdctsg", "dataujfnbzamroad", "cnecl", "dataalh", - "nsl", "datahmjsqcubyj"))) - .withPath("datateena") - .withLogLevel("dataecsft") - .withEnableReliableLogging("dataubzfuhj") - .withAdditionalProperties(mapOf())) - .withLogSettings(new LogSettings().withEnableCopyActivityLog("datakujv") - .withCopyActivityLogSettings(new CopyActivityLogSettings().withLogLevel("datauq") - .withEnableReliableLogging("datalwnxryyqtjcrpax")) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xlfxsetvdz") - .withParameters(mapOf("zhdciuxotb", "datadmxfqftywbba", "hop", "dataflgkkiu", "rtaevq", - "datafobpyeo", "owsmrvdtqhr", "datafdhpkiiunyrobcke"))) - .withPath("dataqs"))) - .withPreserveRules(Arrays.asList("datanupskit", "datakphamefzzgwjoau")) - .withPreserve(Arrays.asList("datadpn", "dataouylfcfgqinaokx", "datauknzhmza")) - .withValidateDataConsistency("datarsqzuknbtxtdm") - .withSkipErrorFile( - new SkipErrorFile().withFileMissing("datarrqqajhklttl").withDataInconsistency("datawdrt")); - model = BinaryData.fromObject(model).toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("pwrmlv", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("h", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("xlfxsetvdz", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java deleted file mode 100644 index 42e9dbd9bb8a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyComputeScaleProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyComputeScalePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyComputeScaleProperties model = BinaryData.fromString( - "{\"dataIntegrationUnit\":1175584995,\"timeToLive\":61564169,\"\":{\"yibx\":\"dataubwhx\",\"ttgxkxt\":\"dataceg\"}}") - .toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(1175584995, model.dataIntegrationUnit()); - Assertions.assertEquals(61564169, model.timeToLive()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyComputeScaleProperties model = new CopyComputeScaleProperties().withDataIntegrationUnit(1175584995) - .withTimeToLive(61564169) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(1175584995, model.dataIntegrationUnit()); - Assertions.assertEquals(61564169, model.timeToLive()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java deleted file mode 100644 index 5b7656a09a71..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopySink; -import java.util.HashMap; -import java.util.Map; - -public final class CopySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopySink model = BinaryData.fromString( - "{\"type\":\"CopySink\",\"writeBatchSize\":\"dataqibbtplrtxhz\",\"writeBatchTimeout\":\"datafwyrsfjjsoyu\",\"sinkRetryCount\":\"databuyd\",\"sinkRetryWait\":\"datahknttk\",\"maxConcurrentConnections\":\"datablehenjstiw\",\"disableMetricsCollection\":\"dataosbijikjfjibuwh\",\"\":{\"grxa\":\"datajujpifx\",\"chphovu\":\"datafjxviwxolauhr\",\"czwcxlnc\":\"datar\",\"dkbd\":\"datahywfvyriawfwws\"}}") - .toObject(CopySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySink model = new CopySink().withWriteBatchSize("dataqibbtplrtxhz") - .withWriteBatchTimeout("datafwyrsfjjsoyu") - .withSinkRetryCount("databuyd") - .withSinkRetryWait("datahknttk") - .withMaxConcurrentConnections("datablehenjstiw") - .withDisableMetricsCollection("dataosbijikjfjibuwh") - .withAdditionalProperties(mapOf("type", "CopySink")); - model = BinaryData.fromObject(model).toObject(CopySink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java deleted file mode 100644 index a9ea9fcea135..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopySource; -import java.util.HashMap; -import java.util.Map; - -public final class CopySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopySource model = BinaryData.fromString( - "{\"type\":\"CopySource\",\"sourceRetryCount\":\"datab\",\"sourceRetryWait\":\"datapaeyw\",\"maxConcurrentConnections\":\"datatvyzuyqzjfv\",\"disableMetricsCollection\":\"datayyjvzlscyz\",\"\":{\"ssgbscq\":\"dataxmy\",\"qiparctshe\":\"dataeixazebmmjaigax\"}}") - .toObject(CopySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySource model = new CopySource().withSourceRetryCount("datab") - .withSourceRetryWait("datapaeyw") - .withMaxConcurrentConnections("datatvyzuyqzjfv") - .withDisableMetricsCollection("datayyjvzlscyz") - .withAdditionalProperties(mapOf("type", "CopySource")); - model = BinaryData.fromObject(model).toObject(CopySource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java deleted file mode 100644 index 4483c5563708..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyTranslator; -import java.util.HashMap; -import java.util.Map; - -public final class CopyTranslatorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyTranslator model = BinaryData.fromString( - "{\"type\":\"CopyTranslator\",\"\":{\"ybp\":\"datanrg\",\"rvqticgsdcpmclku\":\"datawjjbmkhxun\",\"dcqrssqwzndzuxlg\":\"datadabh\"}}") - .toObject(CopyTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyTranslator model = new CopyTranslator().withAdditionalProperties(mapOf("type", "CopyTranslator")); - model = BinaryData.fromObject(model).toObject(CopyTranslator.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java deleted file mode 100644 index c7228306363d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiCollectionDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbMongoDbApiCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiCollectionDataset model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApiCollection\",\"typeProperties\":{\"collection\":\"databpebrmj\"},\"description\":\"fpghtbttpkim\",\"structure\":\"datahnkkhbykrs\",\"schema\":\"datarcmelycpgokut\",\"linkedServiceName\":{\"referenceName\":\"rvybnz\",\"parameters\":{\"ixlvzcgul\":\"datamshfuzzlap\",\"wjt\":\"dataebxiauqsuptessj\",\"skxgxqaygas\":\"datatpvb\",\"wpvlcjbvyezjwjkq\":\"datakvc\"}},\"parameters\":{\"fpucwn\":{\"type\":\"Bool\",\"defaultValue\":\"dataiieyozvrc\"}},\"annotations\":[\"dataqefgzjvbx\",\"datacbgoarxtuuciagv\",\"datadlhuduklbjo\",\"datafmjfexulv\"],\"folder\":{\"name\":\"kna\"},\"\":{\"leqfgkxenvszg\":\"dataiancsqoacbuqdgsa\",\"eszsuuv\":\"datavya\",\"brveci\":\"datalaqcwggchxvlqg\"}}") - .toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("fpghtbttpkim", model.description()); - Assertions.assertEquals("rvybnz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("fpucwn").type()); - Assertions.assertEquals("kna", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDataset model = new CosmosDbMongoDbApiCollectionDataset() - .withDescription("fpghtbttpkim") - .withStructure("datahnkkhbykrs") - .withSchema("datarcmelycpgokut") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rvybnz") - .withParameters(mapOf("ixlvzcgul", "datamshfuzzlap", "wjt", "dataebxiauqsuptessj", "skxgxqaygas", - "datatpvb", "wpvlcjbvyezjwjkq", "datakvc"))) - .withParameters(mapOf("fpucwn", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataiieyozvrc"))) - .withAnnotations(Arrays.asList("dataqefgzjvbx", "datacbgoarxtuuciagv", "datadlhuduklbjo", "datafmjfexulv")) - .withFolder(new DatasetFolder().withName("kna")) - .withCollection("databpebrmj"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("fpghtbttpkim", model.description()); - Assertions.assertEquals("rvybnz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("fpucwn").type()); - Assertions.assertEquals("kna", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index b47c427606a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties; - -public final class CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiCollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collection\":\"dataaovphirlzbipi\"}") - .toObject(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDatasetTypeProperties model - = new CosmosDbMongoDbApiCollectionDatasetTypeProperties().withCollection("dataaovphirlzbipi"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java deleted file mode 100644 index fe3653184de9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbMongoDbApiLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiLinkedService model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApi\",\"typeProperties\":{\"isServerVersionAbove32\":\"dataopqqiyjrehe\",\"connectionString\":\"datachengmxpjkuq\",\"database\":\"datangromlxsqdzyyalr\"},\"version\":\"gq\",\"connectVia\":{\"referenceName\":\"fwuplfjkbax\",\"parameters\":{\"hxbfhbip\":\"dataeimuipggt\",\"fefznxcleyamv\":\"datadziphe\",\"vbtkafcnfitpu\":\"dataitjjhqvypqgncgw\"}},\"description\":\"ykdwyjd\",\"parameters\":{\"yngoudclri\":{\"type\":\"Bool\",\"defaultValue\":\"dataawj\"},\"chgjonrhdib\":{\"type\":\"Object\",\"defaultValue\":\"dataynxbdisjeovgcf\"},\"y\":{\"type\":\"Int\",\"defaultValue\":\"datad\"},\"njbbhwsfllzy\":{\"type\":\"SecureString\",\"defaultValue\":\"dataouiuvkcnq\"}},\"annotations\":[\"dataj\"],\"\":{\"jsgbpj\":\"datalpby\",\"vwbd\":\"datanblbkakn\",\"qilsbabqtjch\":\"datanddctkjcqhxdirt\",\"eiyem\":\"datasfwey\"}}") - .toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("gq", model.version()); - Assertions.assertEquals("fwuplfjkbax", model.connectVia().referenceName()); - Assertions.assertEquals("ykdwyjd", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("yngoudclri").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedService model = new CosmosDbMongoDbApiLinkedService().withVersion("gq") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("fwuplfjkbax") - .withParameters(mapOf("hxbfhbip", "dataeimuipggt", "fefznxcleyamv", "datadziphe", "vbtkafcnfitpu", - "dataitjjhqvypqgncgw"))) - .withDescription("ykdwyjd") - .withParameters(mapOf("yngoudclri", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataawj"), "chgjonrhdib", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataynxbdisjeovgcf"), "y", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datad"), "njbbhwsfllzy", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataouiuvkcnq"))) - .withAnnotations(Arrays.asList("dataj")) - .withIsServerVersionAbove32("dataopqqiyjrehe") - .withConnectionString("datachengmxpjkuq") - .withDatabase("datangromlxsqdzyyalr"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("gq", model.version()); - Assertions.assertEquals("fwuplfjkbax", model.connectVia().referenceName()); - Assertions.assertEquals("ykdwyjd", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("yngoudclri").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 4e7a59723f02..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiLinkedServiceTypeProperties; - -public final class CosmosDbMongoDbApiLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiLinkedServiceTypeProperties model = BinaryData.fromString( - "{\"isServerVersionAbove32\":\"datapszekdqqwcspf\",\"connectionString\":\"datarndqymloslqgs\",\"database\":\"dataqnqqzqdvg\"}") - .toObject(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedServiceTypeProperties model - = new CosmosDbMongoDbApiLinkedServiceTypeProperties().withIsServerVersionAbove32("datapszekdqqwcspf") - .withConnectionString("datarndqymloslqgs") - .withDatabase("dataqnqqzqdvg"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java deleted file mode 100644 index 16303fe5a691..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSink; - -public final class CosmosDbMongoDbApiSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiSink model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApiSink\",\"writeBehavior\":\"dataeszx\",\"writeBatchSize\":\"datageuoihtik\",\"writeBatchTimeout\":\"datawp\",\"sinkRetryCount\":\"datayavcbdsuwctvbhc\",\"sinkRetryWait\":\"datagxtljyrey\",\"maxConcurrentConnections\":\"databtwzrzi\",\"disableMetricsCollection\":\"datak\",\"\":{\"buyuxg\":\"datajymdol\",\"sdoxhyi\":\"dataphviuexfb\",\"fkmti\":\"dataagaxru\"}}") - .toObject(CosmosDbMongoDbApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSink model = new CosmosDbMongoDbApiSink().withWriteBatchSize("datageuoihtik") - .withWriteBatchTimeout("datawp") - .withSinkRetryCount("datayavcbdsuwctvbhc") - .withSinkRetryWait("datagxtljyrey") - .withMaxConcurrentConnections("databtwzrzi") - .withDisableMetricsCollection("datak") - .withWriteBehavior("dataeszx"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java deleted file mode 100644 index 354e49cc74e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSource; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class CosmosDbMongoDbApiSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiSource model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApiSource\",\"filter\":\"datahlkzt\",\"cursorMethods\":{\"project\":\"datauupcdao\",\"sort\":\"datazvajwvxhefmotul\",\"skip\":\"datalmazgpqo\",\"limit\":\"datapsoeocvywtyehln\",\"\":{\"wdxoxjlvvvzpjjv\":\"dataeplyosadxs\",\"mb\":\"dataintgkveogeld\"}},\"batchSize\":\"databii\",\"queryTimeout\":\"databkxiujaagfeiwuux\",\"additionalColumns\":\"datamzmsivqeg\",\"sourceRetryCount\":\"datafzbrha\",\"sourceRetryWait\":\"dataptkr\",\"maxConcurrentConnections\":\"dataspz\",\"disableMetricsCollection\":\"dataev\",\"\":{\"xyoyjasqdhbftt\":\"dataszcau\"}}") - .toObject(CosmosDbMongoDbApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSource model = new CosmosDbMongoDbApiSource().withSourceRetryCount("datafzbrha") - .withSourceRetryWait("dataptkr") - .withMaxConcurrentConnections("dataspz") - .withDisableMetricsCollection("dataev") - .withFilter("datahlkzt") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("datauupcdao") - .withSort("datazvajwvxhefmotul") - .withSkip("datalmazgpqo") - .withLimit("datapsoeocvywtyehln") - .withAdditionalProperties(mapOf())) - .withBatchSize("databii") - .withQueryTimeout("databkxiujaagfeiwuux") - .withAdditionalColumns("datamzmsivqeg"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java deleted file mode 100644 index 712d50580491..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiCollectionDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbSqlApiCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiCollectionDataset model = BinaryData.fromString( - "{\"type\":\"CosmosDbSqlApiCollection\",\"typeProperties\":{\"collectionName\":\"datawpad\"},\"description\":\"dbfobdc\",\"structure\":\"dataothm\",\"schema\":\"datajaoz\",\"linkedServiceName\":{\"referenceName\":\"bwfcn\",\"parameters\":{\"lhscmyh\":\"datapo\",\"okndwpppqwojoevz\":\"datahjvszfq\",\"zlyvapbkrbuog\":\"dataufytdxmly\",\"cuhaizijv\":\"datatdlt\"}},\"parameters\":{\"m\":{\"type\":\"Float\",\"defaultValue\":\"dataohlpsftqkr\"}},\"annotations\":[\"datavvcpwtqsuspn\",\"datamzy\"],\"folder\":{\"name\":\"etevrntfknwacy\"},\"\":{\"atvcsxr\":\"dataotctkhfhf\",\"cubleh\":\"datahnmizhvprhqq\"}}") - .toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("dbfobdc", model.description()); - Assertions.assertEquals("bwfcn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("m").type()); - Assertions.assertEquals("etevrntfknwacy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDataset model = new CosmosDbSqlApiCollectionDataset().withDescription("dbfobdc") - .withStructure("dataothm") - .withSchema("datajaoz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bwfcn") - .withParameters(mapOf("lhscmyh", "datapo", "okndwpppqwojoevz", "datahjvszfq", "zlyvapbkrbuog", - "dataufytdxmly", "cuhaizijv", "datatdlt"))) - .withParameters(mapOf("m", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataohlpsftqkr"))) - .withAnnotations(Arrays.asList("datavvcpwtqsuspn", "datamzy")) - .withFolder(new DatasetFolder().withName("etevrntfknwacy")) - .withCollectionName("datawpad"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("dbfobdc", model.description()); - Assertions.assertEquals("bwfcn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("m").type()); - Assertions.assertEquals("etevrntfknwacy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 263dc932dd7c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbSqlApiCollectionDatasetTypeProperties; - -public final class CosmosDbSqlApiCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiCollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collectionName\":\"datakplobzgottaksadz\"}") - .toObject(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDatasetTypeProperties model - = new CosmosDbSqlApiCollectionDatasetTypeProperties().withCollectionName("datakplobzgottaksadz"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java deleted file mode 100644 index 43a4f75c3440..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSink; - -public final class CosmosDbSqlApiSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiSink model = BinaryData.fromString( - "{\"type\":\"CosmosDbSqlApiSink\",\"writeBehavior\":\"datapiezthflgpsalyn\",\"writeBatchSize\":\"datamwzpfbiqjrz\",\"writeBatchTimeout\":\"dataxizorqliblyb\",\"sinkRetryCount\":\"datajzknkffzdyozn\",\"sinkRetryWait\":\"datastofdedlmfwabf\",\"maxConcurrentConnections\":\"datawe\",\"disableMetricsCollection\":\"datawxmcsxidazslwhuy\",\"\":{\"fperheiplzms\":\"datadcilinbuok\",\"u\":\"datahqrdvqvalo\",\"fjgklmyomav\":\"datawoigofumbpmzed\"}}") - .toObject(CosmosDbSqlApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSink model = new CosmosDbSqlApiSink().withWriteBatchSize("datamwzpfbiqjrz") - .withWriteBatchTimeout("dataxizorqliblyb") - .withSinkRetryCount("datajzknkffzdyozn") - .withSinkRetryWait("datastofdedlmfwabf") - .withMaxConcurrentConnections("datawe") - .withDisableMetricsCollection("datawxmcsxidazslwhuy") - .withWriteBehavior("datapiezthflgpsalyn"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java deleted file mode 100644 index fb8cd58f88bd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSource; - -public final class CosmosDbSqlApiSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiSource model = BinaryData.fromString( - "{\"type\":\"CosmosDbSqlApiSource\",\"query\":\"dataloqpgzdbonepp\",\"pageSize\":\"datamzeufjzqaq\",\"preferredRegions\":\"datacbygqcwzyto\",\"detectDatetime\":\"dataqcthgqyvaoaz\",\"additionalColumns\":\"dataykkcqaf\",\"sourceRetryCount\":\"datajgixsjhi\",\"sourceRetryWait\":\"datayekslllzsqolckwh\",\"maxConcurrentConnections\":\"datafbnnhwpnloi\",\"disableMetricsCollection\":\"datazdohfvxavhfhl\",\"\":{\"cfrfaytcygoombn\":\"datawzpba\",\"wltozxdzoldwv\":\"datambcklfpemgfvvnk\",\"regesoozpudalu\":\"datanpnyaterjjuz\"}}") - .toObject(CosmosDbSqlApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSource model = new CosmosDbSqlApiSource().withSourceRetryCount("datajgixsjhi") - .withSourceRetryWait("datayekslllzsqolckwh") - .withMaxConcurrentConnections("datafbnnhwpnloi") - .withDisableMetricsCollection("datazdohfvxavhfhl") - .withQuery("dataloqpgzdbonepp") - .withPageSize("datamzeufjzqaq") - .withPreferredRegions("datacbygqcwzyto") - .withDetectDatetime("dataqcthgqyvaoaz") - .withAdditionalColumns("dataykkcqaf"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java deleted file mode 100644 index c61eb5fad609..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CouchbaseSource; - -public final class CouchbaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CouchbaseSource model = BinaryData.fromString( - "{\"type\":\"CouchbaseSource\",\"query\":\"datahndfpf\",\"queryTimeout\":\"datafdgf\",\"additionalColumns\":\"dataoeh\",\"sourceRetryCount\":\"datapkssjbw\",\"sourceRetryWait\":\"dataxdgcfcfky\",\"maxConcurrentConnections\":\"datajwxhslrbwwk\",\"disableMetricsCollection\":\"datawodhsodofsxjiky\",\"\":{\"cxdmxhuwldfa\":\"datauhuixqwogg\",\"dkbgsg\":\"datakyft\",\"ayqkg\":\"datapyckmncrutoudjm\"}}") - .toObject(CouchbaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseSource model = new CouchbaseSource().withSourceRetryCount("datapkssjbw") - .withSourceRetryWait("dataxdgcfcfky") - .withMaxConcurrentConnections("datajwxhslrbwwk") - .withDisableMetricsCollection("datawodhsodofsxjiky") - .withQueryTimeout("datafdgf") - .withAdditionalColumns("dataoeh") - .withQuery("datahndfpf"); - model = BinaryData.fromObject(model).toObject(CouchbaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java deleted file mode 100644 index a27053fb67f2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CouchbaseTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CouchbaseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CouchbaseTableDataset model = BinaryData.fromString( - "{\"type\":\"CouchbaseTable\",\"typeProperties\":{\"tableName\":\"datacaujbfomf\"},\"description\":\"zpjyxefppqcwd\",\"structure\":\"datajj\",\"schema\":\"datapsnxebycympohxub\",\"linkedServiceName\":{\"referenceName\":\"n\",\"parameters\":{\"usp\":\"dataebcxn\",\"vgspjlfzhjngwqx\":\"datayzssjlmykdyg\"}},\"parameters\":{\"c\":{\"type\":\"Bool\",\"defaultValue\":\"datagyoimmsszz\"},\"nwcnvpnyldjdkj\":{\"type\":\"SecureString\",\"defaultValue\":\"dataognhtvagw\"}},\"annotations\":[\"datayknkxioxhnrjlq\"],\"folder\":{\"name\":\"ejexfdlhuhd\"},\"\":{\"cflvxbocaywmfvuh\":\"datagywadrklpdyehjr\",\"gsfmhwdxqu\":\"datamolhveol\",\"ynhitrnwqgq\":\"dataymlhklmnjqzm\",\"piqnrjoc\":\"databthb\"}}") - .toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("zpjyxefppqcwd", model.description()); - Assertions.assertEquals("n", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("c").type()); - Assertions.assertEquals("ejexfdlhuhd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseTableDataset model = new CouchbaseTableDataset().withDescription("zpjyxefppqcwd") - .withStructure("datajj") - .withSchema("datapsnxebycympohxub") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("n") - .withParameters(mapOf("usp", "dataebcxn", "vgspjlfzhjngwqx", "datayzssjlmykdyg"))) - .withParameters( - mapOf("c", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datagyoimmsszz"), - "nwcnvpnyldjdkj", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataognhtvagw"))) - .withAnnotations(Arrays.asList("datayknkxioxhnrjlq")) - .withFolder(new DatasetFolder().withName("ejexfdlhuhd")) - .withTableName("datacaujbfomf"); - model = BinaryData.fromObject(model).toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("zpjyxefppqcwd", model.description()); - Assertions.assertEquals("n", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("c").type()); - Assertions.assertEquals("ejexfdlhuhd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java deleted file mode 100644 index e4ae9c0db4b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CreateDataFlowDebugSessionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateDataFlowDebugSessionRequest model = BinaryData.fromString( - "{\"computeType\":\"qfrddgam\",\"coreCount\":534741289,\"timeToLive\":362279180,\"integrationRuntime\":{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"sjuivfcdisyir\",\"\":{\"xrxzbujrtr\":\"datahcz\",\"khgn\":\"dataqvwre\",\"piqywnc\":\"datanzonzl\",\"zehtdhgb\":\"datajtszcof\"}},\"name\":\"vreljea\"}}") - .toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("qfrddgam", model.computeType()); - Assertions.assertEquals(534741289, model.coreCount()); - Assertions.assertEquals(362279180, model.timeToLive()); - Assertions.assertEquals("vreljea", model.integrationRuntime().name()); - Assertions.assertEquals("sjuivfcdisyir", model.integrationRuntime().properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionRequest model = new CreateDataFlowDebugSessionRequest().withComputeType("qfrddgam") - .withCoreCount(534741289) - .withTimeToLive(362279180) - .withIntegrationRuntime(new IntegrationRuntimeDebugResource().withName("vreljea") - .withProperties(new IntegrationRuntime().withDescription("sjuivfcdisyir") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")))); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("qfrddgam", model.computeType()); - Assertions.assertEquals(534741289, model.coreCount()); - Assertions.assertEquals(362279180, model.timeToLive()); - Assertions.assertEquals("vreljea", model.integrationRuntime().name()); - Assertions.assertEquals("sjuivfcdisyir", model.integrationRuntime().properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java deleted file mode 100644 index 9d66012f51be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CreateDataFlowDebugSessionResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateDataFlowDebugSessionResponseInner model - = BinaryData.fromString("{\"status\":\"srboldforobw\",\"sessionId\":\"vizbfhfo\"}") - .toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("srboldforobw", model.status()); - Assertions.assertEquals("vizbfhfo", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionResponseInner model - = new CreateDataFlowDebugSessionResponseInner().withStatus("srboldforobw").withSessionId("vizbfhfo"); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("srboldforobw", model.status()); - Assertions.assertEquals("vizbfhfo", model.sessionId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java deleted file mode 100644 index b3b56bd0fd34..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class CreateLinkedIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateLinkedIntegrationRuntimeRequest model = BinaryData.fromString( - "{\"name\":\"ni\",\"subscriptionId\":\"x\",\"dataFactoryName\":\"kpycgklwndnhjd\",\"dataFactoryLocation\":\"whvylw\"}") - .toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ni", model.name()); - Assertions.assertEquals("x", model.subscriptionId()); - Assertions.assertEquals("kpycgklwndnhjd", model.dataFactoryName()); - Assertions.assertEquals("whvylw", model.dataFactoryLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateLinkedIntegrationRuntimeRequest model = new CreateLinkedIntegrationRuntimeRequest().withName("ni") - .withSubscriptionId("x") - .withDataFactoryName("kpycgklwndnhjd") - .withDataFactoryLocation("whvylw"); - model = BinaryData.fromObject(model).toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ni", model.name()); - Assertions.assertEquals("x", model.subscriptionId()); - Assertions.assertEquals("kpycgklwndnhjd", model.dataFactoryName()); - Assertions.assertEquals("whvylw", model.dataFactoryLocation()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java deleted file mode 100644 index 109f89704ae7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CreateRunResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateRunResponseInner model - = BinaryData.fromString("{\"runId\":\"kokwbqplhlvnu\"}").toObject(CreateRunResponseInner.class); - Assertions.assertEquals("kokwbqplhlvnu", model.runId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateRunResponseInner model = new CreateRunResponseInner().withRunId("kokwbqplhlvnu"); - model = BinaryData.fromObject(model).toObject(CreateRunResponseInner.class); - Assertions.assertEquals("kokwbqplhlvnu", model.runId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java deleted file mode 100644 index af061cf088a3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.Credential; -import com.azure.resourcemanager.datafactory.models.CredentialListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"Credential\",\"description\":\"iwdcxsmlzzhzd\",\"annotations\":[\"datatlgy\",\"datalhqvlnnpxybafi\",\"datageaar\",\"datagjekglklby\"],\"\":{\"wvmzegjonfhjir\":\"datadw\",\"z\":\"datagdn\",\"tk\":\"datarfkspzhz\",\"lkeuac\":\"datajcitdigsxcdglj\"}},\"name\":\"omflrytswfp\",\"type\":\"dgycxnmskwhqjjy\",\"etag\":\"urlpshh\",\"id\":\"pedwqsl\"},{\"properties\":{\"type\":\"Credential\",\"description\":\"hmpqvw\",\"annotations\":[\"dataondcbrw\",\"datamuvqejosovyr\"],\"\":{\"sinuqtljqobbpih\":\"dataa\",\"bbmpxdlvykfre\":\"datahcecybmrqbr\"}},\"name\":\"rseqwjksghudgz\",\"type\":\"ogjggsvoujkxibda\",\"etag\":\"rkmdyom\",\"id\":\"fbvfbhdy\"},{\"properties\":{\"type\":\"Credential\",\"description\":\"hpwpgddeimawzovg\",\"annotations\":[\"datamuikjcjcaztbws\"],\"\":{\"ytwvczcswkacve\":\"dataowxwcomli\",\"pqthehnmnaoya\":\"datayfdvlvhbwrnfxtgd\"}},\"name\":\"coeqswankltytm\",\"type\":\"roznnhdrlktgj\",\"etag\":\"gguxhemlwyw\",\"id\":\"eczgfb\"},{\"properties\":{\"type\":\"Credential\",\"description\":\"klelssxb\",\"annotations\":[\"datasxz\"],\"\":{\"sqplpvmjcd\":\"datasrlsmd\"}},\"name\":\"wb\",\"type\":\"yvteowxvgpiudeu\",\"etag\":\"sxze\",\"id\":\"axwk\"}],\"nextLink\":\"ykhv\"}") - .toObject(CredentialListResponse.class); - Assertions.assertEquals("pedwqsl", model.value().get(0).id()); - Assertions.assertEquals("iwdcxsmlzzhzd", model.value().get(0).properties().description()); - Assertions.assertEquals("ykhv", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialListResponse model - = new CredentialListResponse() - .withValue(Arrays.asList( - new CredentialResourceInner().withId("pedwqsl") - .withProperties(new Credential().withDescription("iwdcxsmlzzhzd") - .withAnnotations( - Arrays.asList("datatlgy", "datalhqvlnnpxybafi", "datageaar", "datagjekglklby")) - .withAdditionalProperties(mapOf("type", "Credential"))), - new CredentialResourceInner().withId("fbvfbhdy") - .withProperties(new Credential().withDescription("hmpqvw") - .withAnnotations(Arrays.asList("dataondcbrw", "datamuvqejosovyr")) - .withAdditionalProperties(mapOf("type", "Credential"))), - new CredentialResourceInner().withId("eczgfb") - .withProperties(new Credential().withDescription("hpwpgddeimawzovg") - .withAnnotations(Arrays.asList("datamuikjcjcaztbws")) - .withAdditionalProperties(mapOf("type", "Credential"))), - new CredentialResourceInner().withId("axwk") - .withProperties(new Credential().withDescription("klelssxb") - .withAnnotations(Arrays.asList("datasxz")) - .withAdditionalProperties(mapOf("type", "Credential"))))) - .withNextLink("ykhv"); - model = BinaryData.fromObject(model).toObject(CredentialListResponse.class); - Assertions.assertEquals("pedwqsl", model.value().get(0).id()); - Assertions.assertEquals("iwdcxsmlzzhzd", model.value().get(0).properties().description()); - Assertions.assertEquals("ykhv", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index fa7f93c435a8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Credential; -import com.azure.resourcemanager.datafactory.models.CredentialResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Credential\",\"description\":\"uehcrywwfns\",\"annotations\":[\"datajadnwafjiba\",\"datal\",\"datatdije\"],\"\":{\"oxjwlhulvyz\":\"datarrm\",\"adkvld\":\"datavidokvzq\",\"tpwrm\":\"datacxvoltjyzolnqkdt\"}},\"name\":\"aoeghsqplnyp\",\"type\":\"wcevpmtpq\",\"etag\":\"pgsoje\",\"id\":\"jnlvcgar\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CredentialResource response = manager.credentialOperations() - .define("oiqtvfruyinavbf") - .withExistingFactory("sdewnkzwyr", "bhh") - .withProperties(new Credential().withDescription("vvrzdbrpdveyx") - .withAnnotations(Arrays.asList("datauldtfxedmm", "dataz", "datazhvjfij")) - .withAdditionalProperties(mapOf("type", "Credential"))) - .withIfMatch("hfsoiihjkiajo") - .create(); - - Assertions.assertEquals("jnlvcgar", response.id()); - Assertions.assertEquals("uehcrywwfns", response.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java deleted file mode 100644 index dd3646648803..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.credentialOperations() - .deleteWithResponse("lnjhoemlwea", "sxmshaugenpippt", "reput", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetWithResponseMockTests.java deleted file mode 100644 index ef278300170c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CredentialResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Credential\",\"description\":\"xrljlqdpqkcbf\",\"annotations\":[\"dataddfre\"],\"\":{\"rphdakwwiezeut\":\"datarsufvtmseuqguz\",\"awmoxvqlwzatv\":\"datar\",\"shvozhhzlmwvce\":\"dataejlocmqladlpqlwt\"}},\"name\":\"vafcjek\",\"type\":\"g\",\"etag\":\"rifyrap\",\"id\":\"iaeqcg\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CredentialResource response = manager.credentialOperations() - .getWithResponse("izoamttxyddkvi", "l", "bnycgzlicytfpy", "pedno", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("iaeqcg", response.id()); - Assertions.assertEquals("xrljlqdpqkcbf", response.properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactoryMockTests.java deleted file mode 100644 index 7821f1dd9637..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactoryMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CredentialResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"Credential\",\"description\":\"phieqgo\",\"annotations\":[\"dataxhottykfkwzk\"],\"\":{\"versu\":\"datag\",\"gzcwrhhgnmjxxov\":\"dataveknwldqj\"}},\"name\":\"wnggyv\",\"type\":\"g\",\"etag\":\"papzb\",\"id\":\"fuac\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.credentialOperations().listByFactory("n", "nts", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("fuac", response.iterator().next().id()); - Assertions.assertEquals("phieqgo", response.iterator().next().properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java deleted file mode 100644 index a810de82b01f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.CredentialReferenceType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialReference model = BinaryData.fromString( - "{\"type\":\"CredentialReference\",\"referenceName\":\"ypefcpczshnuqnda\",\"\":{\"tvegwqiukvzwy\":\"datapfkhuytuszxhmt\",\"i\":\"datawtthaokgksk\",\"hajqfuk\":\"databs\",\"hwu\":\"dataeexpgeumi\"}}") - .toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("ypefcpczshnuqnda", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialReference model = new CredentialReference().withType(CredentialReferenceType.CREDENTIAL_REFERENCE) - .withReferenceName("ypefcpczshnuqnda") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("ypefcpczshnuqnda", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialResourceInnerTests.java deleted file mode 100644 index fcc99a797401..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialResourceInnerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.Credential; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Credential\",\"description\":\"xepmrut\",\"annotations\":[\"databaobn\",\"datalujdjltymkmv\",\"datauihywart\",\"datapphkixkykxds\"],\"\":{\"kkflrmymyincqlhr\":\"dataemmucfxh\",\"sl\":\"datas\",\"ctotiowlx\":\"dataiiiovgqcgxuugq\"}},\"name\":\"qd\",\"type\":\"jgwdtgukranbl\",\"etag\":\"hqlkccuzgygqwaho\",\"id\":\"lwgniiprglvawu\"}") - .toObject(CredentialResourceInner.class); - Assertions.assertEquals("lwgniiprglvawu", model.id()); - Assertions.assertEquals("xepmrut", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialResourceInner model = new CredentialResourceInner().withId("lwgniiprglvawu") - .withProperties(new Credential().withDescription("xepmrut") - .withAnnotations(Arrays.asList("databaobn", "datalujdjltymkmv", "datauihywart", "datapphkixkykxds")) - .withAdditionalProperties(mapOf("type", "Credential"))); - model = BinaryData.fromObject(model).toObject(CredentialResourceInner.class); - Assertions.assertEquals("lwgniiprglvawu", model.id()); - Assertions.assertEquals("xepmrut", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java deleted file mode 100644 index 0b23e23851b3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Credential; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Credential model = BinaryData.fromString( - "{\"type\":\"Credential\",\"description\":\"d\",\"annotations\":[\"datapivlsbbjpm\",\"dataubkmifo\"],\"\":{\"ovpbbttefjoknssq\":\"dataubvphavpmhbrbqgv\"}}") - .toObject(Credential.class); - Assertions.assertEquals("d", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Credential model = new Credential().withDescription("d") - .withAnnotations(Arrays.asList("datapivlsbbjpm", "dataubkmifo")) - .withAdditionalProperties(mapOf("type", "Credential")); - model = BinaryData.fromObject(model).toObject(Credential.class); - Assertions.assertEquals("d", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java deleted file mode 100644 index c1f4a5767d10..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomActivityReferenceObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomActivityReferenceObject model = BinaryData.fromString( - "{\"linkedServices\":[{\"referenceName\":\"ylfdryes\",\"parameters\":{\"ybvgemkz\":\"datasparbjsv\",\"czctwacbnhk\":\"dataolvnosb\",\"fh\":\"datadcvjhykptcijuntm\"}},{\"referenceName\":\"ccqhtlqrfsrfxr\",\"parameters\":{\"vzadybhydlqf\":\"dataymtcwac\",\"aesp\":\"dataidastuihn\",\"haoviwuttlmfcn\":\"datawgpjri\"}}],\"datasets\":[{\"referenceName\":\"aiypihqmmmbokdqk\",\"parameters\":{\"l\":\"datafzxnivvuwrvg\",\"bfi\":\"datarlkgpipwtrt\"}},{\"referenceName\":\"bddhfkjsqqqu\",\"parameters\":{\"hvaovoqonqjl\":\"datawzkefzdu\",\"yqiytrhhmld\":\"datac\"}},{\"referenceName\":\"tyz\",\"parameters\":{\"lkfg\":\"datast\",\"fe\":\"dataovbbcsb\",\"chfssbqwvr\":\"datamcprg\",\"qipfrrvngill\":\"datagvxhw\"}}]}") - .toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("ylfdryes", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("aiypihqmmmbokdqk", model.datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivityReferenceObject model - = new CustomActivityReferenceObject() - .withLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("ylfdryes") - .withParameters(mapOf("ybvgemkz", "datasparbjsv", "czctwacbnhk", "dataolvnosb", "fh", - "datadcvjhykptcijuntm")), - new LinkedServiceReference().withReferenceName("ccqhtlqrfsrfxr") - .withParameters(mapOf("vzadybhydlqf", "dataymtcwac", "aesp", "dataidastuihn", "haoviwuttlmfcn", - "datawgpjri")))) - .withDatasets(Arrays.asList( - new DatasetReference().withReferenceName("aiypihqmmmbokdqk") - .withParameters(mapOf("l", "datafzxnivvuwrvg", "bfi", "datarlkgpipwtrt")), - new DatasetReference().withReferenceName("bddhfkjsqqqu") - .withParameters(mapOf("hvaovoqonqjl", "datawzkefzdu", "yqiytrhhmld", "datac")), - new DatasetReference().withReferenceName("tyz") - .withParameters(mapOf("lkfg", "datast", "fe", "dataovbbcsb", "chfssbqwvr", "datamcprg", - "qipfrrvngill", "datagvxhw")))); - model = BinaryData.fromObject(model).toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("ylfdryes", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("aiypihqmmmbokdqk", model.datasets().get(0).referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.java deleted file mode 100644 index e75b133b0202..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CustomActivity; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomActivity model = BinaryData.fromString( - "{\"type\":\"Custom\",\"typeProperties\":{\"command\":\"datagathvlwhr\",\"resourceLinkedService\":{\"referenceName\":\"kdyqxjpzykk\",\"parameters\":{\"sdg\":\"datakkpbybhqwil\",\"kir\":\"datahe\",\"rth\":\"dataojzfsznephbc\",\"ijayvuymib\":\"databgavwbqjeto\"}},\"folderPath\":\"dataqjcxp\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"wxivj\",\"parameters\":{\"ink\":\"datadvnoxjbhltxtpgq\"}},{\"referenceName\":\"tayafg\",\"parameters\":{\"xgsqhczokunc\":\"dataawblkkccixsgk\",\"qzcbqvjejnwwqyy\":\"dataqhbjmvbeznluk\"}}],\"datasets\":[{\"referenceName\":\"fsdhmrughm\",\"parameters\":{\"pd\":\"databhktnuzorxatizj\",\"lcfxsgjdiqemcgh\":\"datasautviti\",\"bvrmvhtmzwgir\":\"datarrjawfcz\",\"lqvtv\":\"datafnzpybr\"}}]},\"extendedProperties\":{\"p\":\"datapmmmh\",\"iiiwu\":\"dataxthpsugebgboqn\"},\"retentionTimeInDays\":\"dataofgfqge\",\"autoUserSpecification\":\"dataypxm\"},\"linkedServiceName\":{\"referenceName\":\"xjonasjdaxezf\",\"parameters\":{\"ogqw\":\"datagljihwduwncaif\",\"fachkzzn\":\"dataxtp\"}},\"policy\":{\"timeout\":\"datamsfnigjoxhz\",\"retry\":\"datagmcsjyfbut\",\"retryIntervalInSeconds\":1000793246,\"secureInput\":false,\"secureOutput\":false,\"\":{\"jloehhhkxlquupb\":\"dataayqwj\"}},\"name\":\"huinjymnq\",\"description\":\"ptejryvvu\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"amwjb\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"ifblyvqycknqmb\":\"datayxjjutvovh\",\"i\":\"datassjbyneusnncnn\",\"wupfndafrz\":\"datauhsjzduumpl\"}}],\"userProperties\":[{\"name\":\"cy\",\"value\":\"datazaneave\"},{\"name\":\"vd\",\"value\":\"dataulhworhzesqdvm\"}],\"\":{\"wu\":\"datarqpawwjvdohz\",\"hftlsfwpvflm\":\"datalae\"}}") - .toObject(CustomActivity.class); - Assertions.assertEquals("huinjymnq", model.name()); - Assertions.assertEquals("ptejryvvu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("amwjb", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cy", model.userProperties().get(0).name()); - Assertions.assertEquals("xjonasjdaxezf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1000793246, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("kdyqxjpzykk", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("wxivj", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("fsdhmrughm", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivity model - = new CustomActivity().withName("huinjymnq") - .withDescription("ptejryvvu") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("amwjb") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("cy").withValue("datazaneave"), - new UserProperty().withName("vd").withValue("dataulhworhzesqdvm"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xjonasjdaxezf") - .withParameters(mapOf("ogqw", "datagljihwduwncaif", "fachkzzn", "dataxtp"))) - .withPolicy(new ActivityPolicy().withTimeout("datamsfnigjoxhz") - .withRetry("datagmcsjyfbut") - .withRetryIntervalInSeconds(1000793246) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withCommand("datagathvlwhr") - .withResourceLinkedService(new LinkedServiceReference().withReferenceName("kdyqxjpzykk") - .withParameters(mapOf("sdg", "datakkpbybhqwil", "kir", "datahe", "rth", "dataojzfsznephbc", - "ijayvuymib", "databgavwbqjeto"))) - .withFolderPath("dataqjcxp") - .withReferenceObjects( - new CustomActivityReferenceObject() - .withLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("wxivj") - .withParameters(mapOf("ink", "datadvnoxjbhltxtpgq")), - new LinkedServiceReference().withReferenceName("tayafg") - .withParameters(mapOf("xgsqhczokunc", "dataawblkkccixsgk", "qzcbqvjejnwwqyy", - "dataqhbjmvbeznluk")))) - .withDatasets(Arrays.asList(new DatasetReference().withReferenceName("fsdhmrughm") - .withParameters(mapOf("pd", "databhktnuzorxatizj", "lcfxsgjdiqemcgh", "datasautviti", - "bvrmvhtmzwgir", "datarrjawfcz", "lqvtv", "datafnzpybr"))))) - .withExtendedProperties(mapOf("p", "datapmmmh", "iiiwu", "dataxthpsugebgboqn")) - .withRetentionTimeInDays("dataofgfqge") - .withAutoUserSpecification("dataypxm"); - model = BinaryData.fromObject(model).toObject(CustomActivity.class); - Assertions.assertEquals("huinjymnq", model.name()); - Assertions.assertEquals("ptejryvvu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("amwjb", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cy", model.userProperties().get(0).name()); - Assertions.assertEquals("xjonasjdaxezf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1000793246, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("kdyqxjpzykk", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("wxivj", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("fsdhmrughm", model.referenceObjects().datasets().get(0).referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.java deleted file mode 100644 index 2dd77391420b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CustomActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomActivityTypeProperties model = BinaryData.fromString( - "{\"command\":\"datajdu\",\"resourceLinkedService\":{\"referenceName\":\"xbrjdpeypuqwd\",\"parameters\":{\"xdeo\":\"datamfvxfssho\",\"fnreempbumyuiquz\":\"datanzprdgmmgtqgzdf\",\"facflkbgohxbj\":\"dataotfoifjrik\"}},\"folderPath\":\"datafpfxbqdrjunigx\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"ghga\",\"parameters\":{\"wrncwhlxvngj\":\"datavenvrltijq\",\"bd\":\"datapydjdpapndmv\",\"xidecdehskmfiu\":\"datavvtapwkwkthm\"}},{\"referenceName\":\"npjzx\",\"parameters\":{\"kznffqv\":\"datasgyyrgdguvkgqllg\"}},{\"referenceName\":\"xnytihhqancw\",\"parameters\":{\"snbdfamyolvgksla\":\"datagdpfzdygtk\",\"rswvwzu\":\"datauon\",\"omxvbruzxsnz\":\"datatqcxoamxumwzduhi\"}}],\"datasets\":[{\"referenceName\":\"gf\",\"parameters\":{\"zclnqexlnpwpw\":\"datadouneozgnwmc\"}}]},\"extendedProperties\":{\"cfoqdspslcvpqwrs\":\"datasjkondrk\",\"g\":\"datadpikx\",\"phcwzdwvyjz\":\"dataaegrppwoligfljt\",\"mfoztwmvprn\":\"datakvycinmywjcf\"},\"retentionTimeInDays\":\"dataxsexzxbiwnqe\",\"autoUserSpecification\":\"datatbztog\"}") - .toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("xbrjdpeypuqwd", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("ghga", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("gf", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivityTypeProperties model = new CustomActivityTypeProperties().withCommand("datajdu") - .withResourceLinkedService(new LinkedServiceReference().withReferenceName("xbrjdpeypuqwd") - .withParameters(mapOf("xdeo", "datamfvxfssho", "fnreempbumyuiquz", "datanzprdgmmgtqgzdf", - "facflkbgohxbj", "dataotfoifjrik"))) - .withFolderPath("datafpfxbqdrjunigx") - .withReferenceObjects(new CustomActivityReferenceObject() - .withLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("ghga") - .withParameters(mapOf("wrncwhlxvngj", "datavenvrltijq", "bd", "datapydjdpapndmv", - "xidecdehskmfiu", "datavvtapwkwkthm")), - new LinkedServiceReference().withReferenceName("npjzx") - .withParameters(mapOf("kznffqv", "datasgyyrgdguvkgqllg")), - new LinkedServiceReference().withReferenceName("xnytihhqancw") - .withParameters(mapOf("snbdfamyolvgksla", "datagdpfzdygtk", "rswvwzu", "datauon", - "omxvbruzxsnz", "datatqcxoamxumwzduhi")))) - .withDatasets(Arrays.asList(new DatasetReference().withReferenceName("gf") - .withParameters(mapOf("zclnqexlnpwpw", "datadouneozgnwmc"))))) - .withExtendedProperties(mapOf("cfoqdspslcvpqwrs", "datasjkondrk", "g", "datadpikx", "phcwzdwvyjz", - "dataaegrppwoligfljt", "mfoztwmvprn", "datakvycinmywjcf")) - .withRetentionTimeInDays("dataxsexzxbiwnqe") - .withAutoUserSpecification("datatbztog"); - model = BinaryData.fromObject(model).toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("xbrjdpeypuqwd", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("ghga", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("gf", model.referenceObjects().datasets().get(0).referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java deleted file mode 100644 index 129d1442cda4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomDataSourceLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomDataSourceLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDataSourceLinkedService model = BinaryData.fromString( - "{\"type\":\"CustomDataSource\",\"typeProperties\":\"datajhokhijghpvjq\",\"version\":\"kikdatbwyarqt\",\"connectVia\":{\"referenceName\":\"jblhefq\",\"parameters\":{\"klbjlnbxouc\":\"datanxtpzdgyilwu\",\"oke\":\"dataddplgjfhvia\",\"uosc\":\"datacmadyoctmd\"}},\"description\":\"wbestntoeteu\",\"parameters\":{\"efrfugthcdbzoxh\":{\"type\":\"SecureString\",\"defaultValue\":\"datazftsb\"},\"ijpkbr\":{\"type\":\"Bool\",\"defaultValue\":\"datagpbogpbwefoxlz\"}},\"annotations\":[\"dataup\"],\"\":{\"vgit\":\"dataqeqjtzawen\",\"ohnizvvekpq\":\"datadjixkepla\"}}") - .toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("kikdatbwyarqt", model.version()); - Assertions.assertEquals("jblhefq", model.connectVia().referenceName()); - Assertions.assertEquals("wbestntoeteu", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("efrfugthcdbzoxh").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataSourceLinkedService model = new CustomDataSourceLinkedService().withVersion("kikdatbwyarqt") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("jblhefq") - .withParameters( - mapOf("klbjlnbxouc", "datanxtpzdgyilwu", "oke", "dataddplgjfhvia", "uosc", "datacmadyoctmd"))) - .withDescription("wbestntoeteu") - .withParameters(mapOf("efrfugthcdbzoxh", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datazftsb"), - "ijpkbr", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datagpbogpbwefoxlz"))) - .withAnnotations(Arrays.asList("dataup")) - .withTypeProperties("datajhokhijghpvjq"); - model = BinaryData.fromObject(model).toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("kikdatbwyarqt", model.version()); - Assertions.assertEquals("jblhefq", model.connectVia().referenceName()); - Assertions.assertEquals("wbestntoeteu", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("efrfugthcdbzoxh").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java deleted file mode 100644 index 6c753dce56d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDataset model = BinaryData.fromString( - "{\"type\":\"CustomDataset\",\"typeProperties\":\"dataxvmdr\",\"description\":\"n\",\"structure\":\"dataovazoymdvhhpl\",\"schema\":\"datawwd\",\"linkedServiceName\":{\"referenceName\":\"atveqm\",\"parameters\":{\"armhpwbuklv\":\"dataswzeyxry\",\"aemcezevftmh\":\"datamfasgtlvhqpoilos\",\"okjyghzt\":\"datal\"}},\"parameters\":{\"vwiftd\":{\"type\":\"Array\",\"defaultValue\":\"datatpcflcezsw\"},\"jnqswxd\":{\"type\":\"Int\",\"defaultValue\":\"databfpfhruptsyq\"},\"clqddnhfknebw\":{\"type\":\"Object\",\"defaultValue\":\"datamxqukrcdio\"}},\"annotations\":[\"datapnyzcwyjs\",\"datakaqldqabnwvpa\",\"databqxfbb\",\"datagcfddofxnfb\"],\"folder\":{\"name\":\"yrqaedwovoc\"},\"\":{\"fmi\":\"datagoeayokr\"}}") - .toObject(CustomDataset.class); - Assertions.assertEquals("n", model.description()); - Assertions.assertEquals("atveqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vwiftd").type()); - Assertions.assertEquals("yrqaedwovoc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataset model - = new CustomDataset().withDescription("n") - .withStructure("dataovazoymdvhhpl") - .withSchema("datawwd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("atveqm") - .withParameters(mapOf("armhpwbuklv", "dataswzeyxry", "aemcezevftmh", "datamfasgtlvhqpoilos", - "okjyghzt", "datal"))) - .withParameters(mapOf("vwiftd", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datatpcflcezsw"), - "jnqswxd", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("databfpfhruptsyq"), - "clqddnhfknebw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datamxqukrcdio"))) - .withAnnotations(Arrays.asList("datapnyzcwyjs", "datakaqldqabnwvpa", "databqxfbb", "datagcfddofxnfb")) - .withFolder(new DatasetFolder().withName("yrqaedwovoc")) - .withTypeProperties("dataxvmdr"); - model = BinaryData.fromObject(model).toObject(CustomDataset.class); - Assertions.assertEquals("n", model.description()); - Assertions.assertEquals("atveqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vwiftd").type()); - Assertions.assertEquals("yrqaedwovoc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java deleted file mode 100644 index 3873986c2022..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomEventsTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomEventsTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomEventsTrigger model = BinaryData.fromString( - "{\"type\":\"CustomEventsTrigger\",\"typeProperties\":{\"subjectBeginsWith\":\"fimonreukc\",\"subjectEndsWith\":\"sdaipnhpov\",\"events\":[\"datav\",\"datatbybcxgrrlzdn\",\"datacxtqqpfgjny\",\"datauqi\"],\"scope\":\"oiuj\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"sfvyv\",\"name\":\"uclqtdcasjnzec\"},\"parameters\":{\"lzicltwan\":\"datapjkczkc\"}},{\"pipelineReference\":{\"referenceName\":\"zycxvifkzs\",\"name\":\"vlqinl\"},\"parameters\":{\"vkwxbb\":\"dataeevzelmmwmdhm\",\"nmnojfmztpwu\":\"datamck\",\"tvyeyeb\":\"datamu\",\"us\":\"datazrfonqjnpkofj\"}},{\"pipelineReference\":{\"referenceName\":\"yuir\",\"name\":\"xrftfamozyv\"},\"parameters\":{\"qtq\":\"datacflp\",\"lgzctfnlakl\":\"datacowmukzcrp\",\"xzwiehqvvbgwxp\":\"datazbeutqfx\",\"kmzubdmcdfvw\":\"datawticu\"}},{\"pipelineReference\":{\"referenceName\":\"z\",\"name\":\"jcxmffaqo\"},\"parameters\":{\"zwwsfrpbwv\":\"dataeywbpenqpz\"}}],\"description\":\"dghmny\",\"runtimeState\":\"Started\",\"annotations\":[\"datanjyulo\"],\"\":{\"xfwlkmj\":\"datalwcx\",\"mx\":\"dataekbmwizish\",\"aotaakcy\":\"datarsnmwiybl\",\"osnbwbcnfo\":\"datas\"}}") - .toObject(CustomEventsTrigger.class); - Assertions.assertEquals("dghmny", model.description()); - Assertions.assertEquals("sfvyv", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("uclqtdcasjnzec", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("fimonreukc", model.subjectBeginsWith()); - Assertions.assertEquals("sdaipnhpov", model.subjectEndsWith()); - Assertions.assertEquals("oiuj", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTrigger model = new CustomEventsTrigger().withDescription("dghmny") - .withAnnotations(Arrays.asList("datanjyulo")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("sfvyv").withName("uclqtdcasjnzec")) - .withParameters(mapOf("lzicltwan", "datapjkczkc")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("zycxvifkzs").withName("vlqinl")) - .withParameters(mapOf("vkwxbb", "dataeevzelmmwmdhm", "nmnojfmztpwu", "datamck", "tvyeyeb", "datamu", - "us", "datazrfonqjnpkofj")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("yuir").withName("xrftfamozyv")) - .withParameters(mapOf("qtq", "datacflp", "lgzctfnlakl", "datacowmukzcrp", "xzwiehqvvbgwxp", - "datazbeutqfx", "kmzubdmcdfvw", "datawticu")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("z").withName("jcxmffaqo")) - .withParameters(mapOf("zwwsfrpbwv", "dataeywbpenqpz")))) - .withSubjectBeginsWith("fimonreukc") - .withSubjectEndsWith("sdaipnhpov") - .withEvents(Arrays.asList("datav", "datatbybcxgrrlzdn", "datacxtqqpfgjny", "datauqi")) - .withScope("oiuj"); - model = BinaryData.fromObject(model).toObject(CustomEventsTrigger.class); - Assertions.assertEquals("dghmny", model.description()); - Assertions.assertEquals("sfvyv", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("uclqtdcasjnzec", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("fimonreukc", model.subjectBeginsWith()); - Assertions.assertEquals("sdaipnhpov", model.subjectEndsWith()); - Assertions.assertEquals("oiuj", model.scope()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java deleted file mode 100644 index c76a3584f59d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CustomEventsTriggerTypeProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CustomEventsTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomEventsTriggerTypeProperties model = BinaryData.fromString( - "{\"subjectBeginsWith\":\"ndbwwnlgaoub\",\"subjectEndsWith\":\"hdccghdzqvwlixhq\",\"events\":[\"dataqsprnhlsfhfjwa\",\"datas\"],\"scope\":\"qytfvjvmjhuvuad\"}") - .toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("ndbwwnlgaoub", model.subjectBeginsWith()); - Assertions.assertEquals("hdccghdzqvwlixhq", model.subjectEndsWith()); - Assertions.assertEquals("qytfvjvmjhuvuad", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTriggerTypeProperties model - = new CustomEventsTriggerTypeProperties().withSubjectBeginsWith("ndbwwnlgaoub") - .withSubjectEndsWith("hdccghdzqvwlixhq") - .withEvents(Arrays.asList("dataqsprnhlsfhfjwa", "datas")) - .withScope("qytfvjvmjhuvuad"); - model = BinaryData.fromObject(model).toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("ndbwwnlgaoub", model.subjectBeginsWith()); - Assertions.assertEquals("hdccghdzqvwlixhq", model.subjectEndsWith()); - Assertions.assertEquals("qytfvjvmjhuvuad", model.scope()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java deleted file mode 100644 index a748844197db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomSetupBase; - -public final class CustomSetupBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomSetupBase model = BinaryData.fromString("{\"type\":\"CustomSetupBase\"}").toObject(CustomSetupBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomSetupBase model = new CustomSetupBase(); - model = BinaryData.fromObject(model).toObject(CustomSetupBase.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java deleted file mode 100644 index 50abc0242280..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandDefaultValue; - -public final class DWCopyCommandDefaultValueTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DWCopyCommandDefaultValue model - = BinaryData.fromString("{\"columnName\":\"datan\",\"defaultValue\":\"datapnpunrvjb\"}") - .toObject(DWCopyCommandDefaultValue.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandDefaultValue model - = new DWCopyCommandDefaultValue().withColumnName("datan").withDefaultValue("datapnpunrvjb"); - model = BinaryData.fromObject(model).toObject(DWCopyCommandDefaultValue.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.java deleted file mode 100644 index 351428709763..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandDefaultValue; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DWCopyCommandSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DWCopyCommandSettings model = BinaryData.fromString( - "{\"defaultValues\":[{\"columnName\":\"dataazuboig\",\"defaultValue\":\"datawpbbjzdvaqoilgkz\"},{\"columnName\":\"datazpvjwego\",\"defaultValue\":\"dataceqyrajdvvs\"},{\"columnName\":\"datatyypercazcchvww\",\"defaultValue\":\"dataazztvotf\"}],\"additionalOptions\":{\"oszcmfmynljigj\":\"yfxkfgxxefzliguw\",\"dmwtiv\":\"nk\"}}") - .toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("yfxkfgxxefzliguw", model.additionalOptions().get("oszcmfmynljigj")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandSettings model - = new DWCopyCommandSettings() - .withDefaultValues(Arrays.asList( - new DWCopyCommandDefaultValue().withColumnName("dataazuboig") - .withDefaultValue("datawpbbjzdvaqoilgkz"), - new DWCopyCommandDefaultValue().withColumnName("datazpvjwego").withDefaultValue("dataceqyrajdvvs"), - new DWCopyCommandDefaultValue().withColumnName("datatyypercazcchvww") - .withDefaultValue("dataazztvotf"))) - .withAdditionalOptions(mapOf("oszcmfmynljigj", "yfxkfgxxefzliguw", "dmwtiv", "nk")); - model = BinaryData.fromObject(model).toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("yfxkfgxxefzliguw", model.additionalOptions().get("oszcmfmynljigj")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java deleted file mode 100644 index 27f856dbe2d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandPayloadTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandPayload model = BinaryData.fromString( - "{\"streamName\":\"opionszon\",\"rowLimits\":1957887263,\"columns\":[\"jinnix\",\"awrtmjfjmyccxlz\",\"coxovn\",\"khenlus\"],\"expression\":\"rd\"}") - .toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("opionszon", model.streamName()); - Assertions.assertEquals(1957887263, model.rowLimits()); - Assertions.assertEquals("jinnix", model.columns().get(0)); - Assertions.assertEquals("rd", model.expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandPayload model = new DataFlowDebugCommandPayload().withStreamName("opionszon") - .withRowLimits(1957887263) - .withColumns(Arrays.asList("jinnix", "awrtmjfjmyccxlz", "coxovn", "khenlus")) - .withExpression("rd"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("opionszon", model.streamName()); - Assertions.assertEquals(1957887263, model.rowLimits()); - Assertions.assertEquals("jinnix", model.columns().get(0)); - Assertions.assertEquals("rd", model.expression()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java deleted file mode 100644 index 3d66a70729f2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandRequest model = BinaryData.fromString( - "{\"sessionId\":\"afgfugsnn\",\"command\":\"executeExpressionQuery\",\"commandPayload\":{\"streamName\":\"tefypococtfjgti\",\"rowLimits\":1163986546,\"columns\":[\"uyturml\"],\"expression\":\"owolbaui\"}}") - .toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("afgfugsnn", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("tefypococtfjgti", model.commandPayload().streamName()); - Assertions.assertEquals(1163986546, model.commandPayload().rowLimits()); - Assertions.assertEquals("uyturml", model.commandPayload().columns().get(0)); - Assertions.assertEquals("owolbaui", model.commandPayload().expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandRequest model = new DataFlowDebugCommandRequest().withSessionId("afgfugsnn") - .withCommand(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("tefypococtfjgti") - .withRowLimits(1163986546) - .withColumns(Arrays.asList("uyturml")) - .withExpression("owolbaui")); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("afgfugsnn", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("tefypococtfjgti", model.commandPayload().streamName()); - Assertions.assertEquals(1163986546, model.commandPayload().rowLimits()); - Assertions.assertEquals("uyturml", model.commandPayload().columns().get(0)); - Assertions.assertEquals("owolbaui", model.commandPayload().expression()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java deleted file mode 100644 index ba8b1c293a6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandResponseInner model - = BinaryData.fromString("{\"status\":\"xtxrdcqtjvidt\",\"data\":\"epu\"}") - .toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("xtxrdcqtjvidt", model.status()); - Assertions.assertEquals("epu", model.data()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandResponseInner model - = new DataFlowDebugCommandResponseInner().withStatus("xtxrdcqtjvidt").withData("epu"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("xtxrdcqtjvidt", model.status()); - Assertions.assertEquals("epu", model.data()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java deleted file mode 100644 index 49f63d022bde..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugPackageDebugSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugPackageDebugSettings model = BinaryData.fromString( - "{\"sourceSettings\":[{\"sourceName\":\"z\",\"rowLimit\":470619426,\"\":{\"pkt\":\"dataedmurrxxge\",\"cgwgcloxoebqinji\":\"dataqylkmqpzoyhlf\",\"qlafcbahhpzpofoi\":\"datanwjfu\",\"kholvd\":\"datajwpfilkm\"}},{\"sourceName\":\"viauogphua\",\"rowLimit\":1965289703,\"\":{\"xjqirwrweoox\":\"dataukyefchnmnahmnxh\",\"ozqvbubqmam\":\"datafifhxwrsnew\",\"taboidvmf\":\"datasycxhxzgaz\"}}],\"parameters\":{\"mtdherngb\":\"datapubowsepdfg\"},\"datasetParameters\":\"datajuahokqto\"}") - .toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("z", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(470619426, model.sourceSettings().get(0).rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugPackageDebugSettings model = new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("z") - .withRowLimit(470619426) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("viauogphua") - .withRowLimit(1965289703) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("mtdherngb", "datapubowsepdfg")) - .withDatasetParameters("datajuahokqto"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("z", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(470619426, model.sourceSettings().get(0).rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java deleted file mode 100644 index 5c8151bbc8eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugPackage model = BinaryData.fromString( - "{\"sessionId\":\"zfjltfvnzcyjto\",\"dataFlow\":{\"properties\":{\"type\":\"DataFlow\",\"description\":\"opv\",\"annotations\":[\"databzqgqqi\",\"dataedsvqwthmk\",\"dataibcysihsgqc\"],\"folder\":{\"name\":\"ohsdtmcd\"}},\"name\":\"ufcohdxbz\"},\"dataFlows\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"uapcvhdbevwqqxe\",\"annotations\":[\"dataonqzinkfkbgbzbow\"],\"folder\":{\"name\":\"o\"}},\"name\":\"jmygvk\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"kjjeokbz\",\"annotations\":[\"datazrxcczurt\",\"datae\",\"datapqxbkwvzgnzvdf\",\"datazdix\"],\"folder\":{\"name\":\"pnodawopqhe\"}},\"name\":\"ptmcgsbostzelnd\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"tutmzl\",\"annotations\":[\"datajlvfhrbbpneqv\",\"datawwyyurmoch\",\"dataprprsnmokay\",\"dataejnhlbkpb\"],\"folder\":{\"name\":\"piljhahzvech\"}},\"name\":\"bnwieholew\"}],\"datasets\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"ubwefqs\",\"structure\":\"datapaq\",\"schema\":\"datae\",\"linkedServiceName\":{\"referenceName\":\"rqwexjkmfxapjwog\",\"parameters\":{\"pud\":\"datao\",\"yawbzasqbu\":\"datadabtqwp\",\"oguyaip\":\"dataljgkyex\",\"waz\":\"datadsdaultxijjumf\"}},\"parameters\":{\"usfzsvtuikzha\":{\"type\":\"Array\",\"defaultValue\":\"datacjngzqdqxtbjwgny\"},\"qnzrd\":{\"type\":\"Object\",\"defaultValue\":\"datalcfhmlrqryxy\"},\"tgoe\":{\"type\":\"String\",\"defaultValue\":\"datavwxzn\"}},\"annotations\":[\"datab\",\"databp\"],\"folder\":{\"name\":\"f\"},\"\":{\"kyrioovzid\":\"datavntjlrigjk\",\"xrizkzobgop\":\"dataxwaabzmifrygznmm\",\"lxecwcrojphslh\":\"datalhslnelxieixyn\",\"fmvigorqjbttzh\":\"dataawjutifd\"}},\"name\":\"glka\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"onqjujeickpzvcpo\",\"structure\":\"dataxelnwc\",\"schema\":\"datayjede\",\"linkedServiceName\":{\"referenceName\":\"xm\",\"parameters\":{\"uamwabzxrvxc\":\"datakqscazuawxtzx\",\"sphaivmxyasflvg\":\"datas\"}},\"parameters\":{\"mjblmljhlny\":{\"type\":\"Object\",\"defaultValue\":\"datawakoihkn\"},\"mv\":{\"type\":\"Object\",\"defaultValue\":\"datatqyryuzcbmqqv\"}},\"annotations\":[\"datatayx\",\"datansup\",\"dataujlzqnhcvsqltn\",\"dataoibgsxg\"],\"folder\":{\"name\":\"yqo\"},\"\":{\"fdbxiqxeiiqbim\":\"dataqoxwd\"}},\"name\":\"mwwinhehfqpofv\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"cblembnkbwv\",\"structure\":\"dataxk\",\"schema\":\"datavqihebwtswbzuwf\",\"linkedServiceName\":{\"referenceName\":\"duragegizvc\",\"parameters\":{\"gkxkbsazgakg\":\"datalisdjubggbq\",\"apvu\":\"datacyrcmjdmspo\"}},\"parameters\":{\"nlvxbcuii\":{\"type\":\"SecureString\",\"defaultValue\":\"dataiofrzgbzjedmstk\"},\"v\":{\"type\":\"String\",\"defaultValue\":\"datatwfans\"}},\"annotations\":[\"databmikost\",\"dataz\",\"datakiwbuqnyoph\"],\"folder\":{\"name\":\"l\"},\"\":{\"e\":\"datarpfbcunezz\",\"wl\":\"dataelfwy\",\"psihcla\":\"dataxjwet\"}},\"name\":\"va\"}],\"linkedServices\":[{\"properties\":{\"type\":\"LinkedService\",\"version\":\"rsqqwztcm\",\"connectVia\":{\"referenceName\":\"kchcxwa\",\"parameters\":{\"jkjexf\":\"dataw\",\"hkbffmbm\":\"dataeqvhpsylkk\",\"gjxsnptfu\":\"datazjrgyww\"}},\"description\":\"icgaao\",\"parameters\":{\"vru\":{\"type\":\"SecureString\",\"defaultValue\":\"dataqutdewemxs\"},\"tixo\":{\"type\":\"String\",\"defaultValue\":\"datazjgehkfkim\"},\"qepqwhixmon\":{\"type\":\"Array\",\"defaultValue\":\"dataqyinl\"}},\"annotations\":[\"datahiyxgvelfclduc\"],\"\":{\"uwc\":\"datards\",\"egstmninwjizci\":\"datab\",\"tbxqmuluxlxq\":\"datanghgshej\"}},\"name\":\"nersb\"}],\"staging\":{\"linkedService\":{\"referenceName\":\"crwnamikz\",\"parameters\":{\"ziqgfuh\":\"dataqbsms\",\"hczznvf\":\"datakzruswh\",\"wwixzvumw\":\"dataycjsx\"}},\"folderPath\":\"dataqhndvnoam\"},\"debugSettings\":{\"sourceSettings\":[{\"sourceName\":\"aohdjh\",\"rowLimit\":1043529198,\"\":{\"agltsxoa\":\"datakxcoxpelnje\",\"npbs\":\"dataftgz\"}},{\"sourceName\":\"e\",\"rowLimit\":1075307971,\"\":{\"awtxxpk\":\"datasrmozihmip\"}},{\"sourceName\":\"cxcjxgry\",\"rowLimit\":1729978627,\"\":{\"ztrksxwpndf\":\"dataycilrmcaykggnox\"}}],\"parameters\":{\"jaosrxuzv\":\"datanznthjtw\",\"xqdlyrtltlapr\":\"dataamktcqiosmgbzah\"},\"datasetParameters\":\"datazkatb\"},\"\":{\"gunbtgfebwlnbm\":\"dataznnbsoqeqalarvl\",\"av\":\"datayreeudz\",\"lmjjyuo\":\"datapdqmjxlyyzglgouw\",\"nlb\":\"dataqtobaxkjeyt\"}}") - .toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("zfjltfvnzcyjto", model.sessionId()); - Assertions.assertEquals("ufcohdxbz", model.dataFlow().name()); - Assertions.assertEquals("opv", model.dataFlow().properties().description()); - Assertions.assertEquals("ohsdtmcd", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("jmygvk", model.dataFlows().get(0).name()); - Assertions.assertEquals("uapcvhdbevwqqxe", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("o", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("glka", model.datasets().get(0).name()); - Assertions.assertEquals("ubwefqs", model.datasets().get(0).properties().description()); - Assertions.assertEquals("rqwexjkmfxapjwog", - model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, - model.datasets().get(0).properties().parameters().get("usfzsvtuikzha").type()); - Assertions.assertEquals("f", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("nersb", model.linkedServices().get(0).name()); - Assertions.assertEquals("rsqqwztcm", model.linkedServices().get(0).properties().version()); - Assertions.assertEquals("kchcxwa", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("icgaao", model.linkedServices().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.linkedServices().get(0).properties().parameters().get("vru").type()); - Assertions.assertEquals("crwnamikz", model.staging().linkedService().referenceName()); - Assertions.assertEquals("aohdjh", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(1043529198, model.debugSettings().sourceSettings().get(0).rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugPackage model = new DataFlowDebugPackage().withSessionId("zfjltfvnzcyjto") - .withDataFlow(new DataFlowDebugResource().withName("ufcohdxbz") - .withProperties(new DataFlow().withDescription("opv") - .withAnnotations(Arrays.asList("databzqgqqi", "dataedsvqwthmk", "dataibcysihsgqc")) - .withFolder(new DataFlowFolder().withName("ohsdtmcd")))) - .withDataFlows(Arrays.asList( - new DataFlowDebugResource().withName("jmygvk") - .withProperties(new DataFlow().withDescription("uapcvhdbevwqqxe") - .withAnnotations(Arrays.asList("dataonqzinkfkbgbzbow")) - .withFolder(new DataFlowFolder().withName("o"))), - new DataFlowDebugResource().withName("ptmcgsbostzelnd") - .withProperties(new DataFlow().withDescription("kjjeokbz") - .withAnnotations(Arrays.asList("datazrxcczurt", "datae", "datapqxbkwvzgnzvdf", "datazdix")) - .withFolder(new DataFlowFolder().withName("pnodawopqhe"))), - new DataFlowDebugResource().withName("bnwieholew") - .withProperties(new DataFlow().withDescription("tutmzl") - .withAnnotations( - Arrays.asList("datajlvfhrbbpneqv", "datawwyyurmoch", "dataprprsnmokay", "dataejnhlbkpb")) - .withFolder(new DataFlowFolder().withName("piljhahzvech"))))) - .withDatasets(Arrays.asList( - new DatasetDebugResource().withName("glka") - .withProperties(new Dataset().withDescription("ubwefqs") - .withStructure("datapaq") - .withSchema("datae") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rqwexjkmfxapjwog") - .withParameters(mapOf("pud", "datao", "yawbzasqbu", "datadabtqwp", "oguyaip", "dataljgkyex", - "waz", "datadsdaultxijjumf"))) - .withParameters(mapOf("usfzsvtuikzha", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("datacjngzqdqxtbjwgny"), - "qnzrd", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datalcfhmlrqryxy"), - "tgoe", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datavwxzn"))) - .withAnnotations(Arrays.asList("datab", "databp")) - .withFolder(new DatasetFolder().withName("f")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource().withName("mwwinhehfqpofv") - .withProperties(new Dataset().withDescription("onqjujeickpzvcpo") - .withStructure("dataxelnwc") - .withSchema("datayjede") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xm") - .withParameters(mapOf("uamwabzxrvxc", "datakqscazuawxtzx", "sphaivmxyasflvg", "datas"))) - .withParameters(mapOf("mjblmljhlny", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datawakoihkn"), - "mv", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datatqyryuzcbmqqv"))) - .withAnnotations(Arrays.asList("datatayx", "datansup", "dataujlzqnhcvsqltn", "dataoibgsxg")) - .withFolder(new DatasetFolder().withName("yqo")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource().withName("va") - .withProperties(new Dataset().withDescription("cblembnkbwv") - .withStructure("dataxk") - .withSchema("datavqihebwtswbzuwf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("duragegizvc") - .withParameters(mapOf("gkxkbsazgakg", "datalisdjubggbq", "apvu", "datacyrcmjdmspo"))) - .withParameters(mapOf("nlvxbcuii", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataiofrzgbzjedmstk"), - "v", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatwfans"))) - .withAnnotations(Arrays.asList("databmikost", "dataz", "datakiwbuqnyoph")) - .withFolder(new DatasetFolder().withName("l")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withLinkedServices( - Arrays - .asList( - new LinkedServiceDebugResource().withName("nersb") - .withProperties(new LinkedService().withVersion("rsqqwztcm") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("kchcxwa") - .withParameters(mapOf("jkjexf", "dataw", "hkbffmbm", "dataeqvhpsylkk", "gjxsnptfu", - "datazjrgyww"))) - .withDescription("icgaao") - .withParameters(mapOf("vru", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataqutdewemxs"), - "tixo", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datazjgehkfkim"), - "qepqwhixmon", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("dataqyinl"))) - .withAnnotations(Arrays.asList("datahiyxgvelfclduc")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withStaging(new DataFlowStagingInfo() - .withLinkedService(new LinkedServiceReference().withReferenceName("crwnamikz") - .withParameters(mapOf("ziqgfuh", "dataqbsms", "hczznvf", "datakzruswh", "wwixzvumw", "dataycjsx"))) - .withFolderPath("dataqhndvnoam")) - .withDebugSettings(new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("aohdjh") - .withRowLimit(1043529198) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("e") - .withRowLimit(1075307971) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("cxcjxgry") - .withRowLimit(1729978627) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("jaosrxuzv", "datanznthjtw", "xqdlyrtltlapr", "dataamktcqiosmgbzah")) - .withDatasetParameters("datazkatb")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("zfjltfvnzcyjto", model.sessionId()); - Assertions.assertEquals("ufcohdxbz", model.dataFlow().name()); - Assertions.assertEquals("opv", model.dataFlow().properties().description()); - Assertions.assertEquals("ohsdtmcd", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("jmygvk", model.dataFlows().get(0).name()); - Assertions.assertEquals("uapcvhdbevwqqxe", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("o", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("glka", model.datasets().get(0).name()); - Assertions.assertEquals("ubwefqs", model.datasets().get(0).properties().description()); - Assertions.assertEquals("rqwexjkmfxapjwog", - model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, - model.datasets().get(0).properties().parameters().get("usfzsvtuikzha").type()); - Assertions.assertEquals("f", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("nersb", model.linkedServices().get(0).name()); - Assertions.assertEquals("rsqqwztcm", model.linkedServices().get(0).properties().version()); - Assertions.assertEquals("kchcxwa", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("icgaao", model.linkedServices().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.linkedServices().get(0).properties().parameters().get("vru").type()); - Assertions.assertEquals("crwnamikz", model.staging().linkedService().referenceName()); - Assertions.assertEquals("aohdjh", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(1043529198, model.debugSettings().sourceSettings().get(0).rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java deleted file mode 100644 index c0b46d7951e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"kwr\",\"annotations\":[\"datakqbh\",\"datay\",\"dataqunjqh\"],\"folder\":{\"name\":\"xaulkpakdkifmjnn\"}},\"name\":\"tqabpxuckpgg\"}") - .toObject(DataFlowDebugResource.class); - Assertions.assertEquals("tqabpxuckpgg", model.name()); - Assertions.assertEquals("kwr", model.properties().description()); - Assertions.assertEquals("xaulkpakdkifmjnn", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugResource model = new DataFlowDebugResource().withName("tqabpxuckpgg") - .withProperties(new DataFlow().withDescription("kwr") - .withAnnotations(Arrays.asList("datakqbh", "datay", "dataqunjqh")) - .withFolder(new DataFlowFolder().withName("xaulkpakdkifmjnn"))); - model = BinaryData.fromObject(model).toObject(DataFlowDebugResource.class); - Assertions.assertEquals("tqabpxuckpgg", model.name()); - Assertions.assertEquals("kwr", model.properties().description()); - Assertions.assertEquals("xaulkpakdkifmjnn", model.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java deleted file mode 100644 index 80f1f3242e2d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugSessionInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugSessionInfoInner model = BinaryData.fromString( - "{\"dataFlowName\":\"itdfuxtyasiib\",\"computeType\":\"ybnnustg\",\"coreCount\":453653118,\"nodeCount\":1541221410,\"integrationRuntimeName\":\"g\",\"sessionId\":\"hcmavmqfo\",\"startTime\":\"or\",\"timeToLiveInMinutes\":199814192,\"lastActivityTime\":\"yprotwyp\",\"\":{\"gorbmftpm\":\"datambxhugcmjkav\"}}") - .toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("itdfuxtyasiib", model.dataFlowName()); - Assertions.assertEquals("ybnnustg", model.computeType()); - Assertions.assertEquals(453653118, model.coreCount()); - Assertions.assertEquals(1541221410, model.nodeCount()); - Assertions.assertEquals("g", model.integrationRuntimeName()); - Assertions.assertEquals("hcmavmqfo", model.sessionId()); - Assertions.assertEquals("or", model.startTime()); - Assertions.assertEquals(199814192, model.timeToLiveInMinutes()); - Assertions.assertEquals("yprotwyp", model.lastActivityTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugSessionInfoInner model = new DataFlowDebugSessionInfoInner().withDataFlowName("itdfuxtyasiib") - .withComputeType("ybnnustg") - .withCoreCount(453653118) - .withNodeCount(1541221410) - .withIntegrationRuntimeName("g") - .withSessionId("hcmavmqfo") - .withStartTime("or") - .withTimeToLiveInMinutes(199814192) - .withLastActivityTime("yprotwyp") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("itdfuxtyasiib", model.dataFlowName()); - Assertions.assertEquals("ybnnustg", model.computeType()); - Assertions.assertEquals(453653118, model.coreCount()); - Assertions.assertEquals(1541221410, model.nodeCount()); - Assertions.assertEquals("g", model.integrationRuntimeName()); - Assertions.assertEquals("hcmavmqfo", model.sessionId()); - Assertions.assertEquals("or", model.startTime()); - Assertions.assertEquals(199814192, model.timeToLiveInMinutes()); - Assertions.assertEquals("yprotwyp", model.lastActivityTime()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java deleted file mode 100644 index 601bdb1bb983..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.AddDataFlowToDebugSessionResponse; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsAddDataFlowWithResponseMockTests { - @Test - public void testAddDataFlowWithResponse() throws Exception { - String responseStr = "{\"jobVersion\":\"obpxfgp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AddDataFlowToDebugSessionResponse response = manager.dataFlowDebugSessions() - .addDataFlowWithResponse("afdlfkyirjbf", "rqivibzoqgut", - new DataFlowDebugPackage().withSessionId("awwmkgzsqr") - .withDataFlow(new DataFlowDebugResource().withName("aa") - .withProperties(new DataFlow().withDescription("cjmhaarkhlayer") - .withAnnotations(Arrays.asList("dataiuwne", "dataebheiywmxsxlmk")) - .withFolder(new DataFlowFolder().withName("nngwpgbfrtx")))) - .withDataFlows(Arrays.asList(new DataFlowDebugResource().withName("xgxohiw") - .withProperties(new DataFlow().withDescription("pmdnigajbxjnr") - .withAnnotations(Arrays.asList("dataqpafrwmxmdj", "datazhutcaqqdchmxr", "datahljqhoiqvkzm")) - .withFolder(new DataFlowFolder().withName("xzttgva"))))) - .withDatasets( - Arrays.asList(new DatasetDebugResource().withName("gqiybfskxuyosd") - .withProperties(new Dataset() - .withDescription("heukcla") - .withStructure("dataipwkxf") - .withSchema("dataharsvai") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hme") - .withParameters(mapOf("ajtqyevqtydxkpy", "dataakpr", "mlo", "dataxcjafhctqn", - "zucuaixvjv", "dataok"))) - .withParameters(mapOf("mq", new ParameterSpecification().withType(ParameterType.BOOL), - "bxexyydibfqrtpip", new ParameterSpecification().withType(ParameterType.FLOAT), - "zi", new ParameterSpecification().withType(ParameterType.STRING), "vudvpyba", - new ParameterSpecification().withType(ParameterType.OBJECT))) - .withAnnotations(Arrays.asList("datalnttgpblnxq", "datagecijrncvjs")) - .withFolder(new DatasetFolder().withName("urcxtyfbbomugubc")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withLinkedServices(Arrays.asList( - new LinkedServiceDebugResource().withName("qsb") - .withProperties(new LinkedService().withVersion("uclq") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("wpgipttpsedtwt") - .withParameters(mapOf("utonp", "datahuusr", "ls", "datatazpupkebwses"))) - .withDescription("wdfoprdytsgypvi") - .withParameters(mapOf("qzdoy", - new ParameterSpecification().withType(ParameterType.BOOL), "pkjpcgtgnhz", - new ParameterSpecification().withType(ParameterType.SECURE_STRING), "hwftjn", - new ParameterSpecification().withType(ParameterType.FLOAT), "ptqxksi", - new ParameterSpecification().withType(ParameterType.FLOAT))) - .withAnnotations(Arrays.asList("datafhaj")) - .withAdditionalProperties(mapOf("type", "LinkedService"))), - new LinkedServiceDebugResource().withName("xzhobtxub") - .withProperties(new LinkedService().withVersion("gncke") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("tqaomihrtbksd") - .withParameters(mapOf("oxnlvix", "dataxwficz", "xzaolzkoyniragb", "datadsi", "h", - "dataiukmkmthioae"))) - .withDescription("lcen") - .withParameters( - mapOf("lkvmftrqa", new ParameterSpecification().withType(ParameterType.INT), - "uqpoltqvnkofv", new ParameterSpecification().withType(ParameterType.INT))) - .withAnnotations( - Arrays.asList("dataddvqtruyzbrk", "datasax", "datahnsepdwxflm", "datacmfidr")) - .withAdditionalProperties(mapOf("type", "LinkedService"))), - new LinkedServiceDebugResource().withName("fewqnznctnmkits") - .withProperties( - new LinkedService().withVersion("berydeo") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("efgnibhqie") - .withParameters(mapOf("hz", "datapzx", "a", "datantoqfx", "b", "datawclvyxomug", - "xd", "dataygwfcwacch"))) - .withDescription("r") - .withParameters(mapOf("qzjzuonttfvjf", - new ParameterSpecification().withType(ParameterType.BOOL), "yzbgrgpuavka", - new ParameterSpecification().withType(ParameterType.STRING))) - .withAnnotations(Arrays.asList("datauxwgz", "datayjpmelvemybo", "datae")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withStaging(new DataFlowStagingInfo() - .withLinkedService(new LinkedServiceReference().withReferenceName("opevqsabo") - .withParameters(mapOf("vorzudys", "datanugxnzpqegga", "skwjmqn", "datadiex"))) - .withFolderPath("dataerggqaohax")) - .withDebugSettings(new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("eior") - .withRowLimit(1763863507) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("xgidjiijpdbwknbm") - .withRowLimit(1164476227) - .withAdditionalProperties(mapOf()))) - .withParameters( - mapOf("wbgbmp", "datahsltodl", "usq", "datatrsxhiuhgvgno", "wvieymkguvrd", "datadofnp")) - .withDatasetParameters("dataproytd")) - .withAdditionalProperties(mapOf()), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("obpxfgp", response.jobVersion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java deleted file mode 100644 index abd8337533c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionResponse; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr = "{\"status\":\"mpuqnvn\",\"sessionId\":\"awicou\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CreateDataFlowDebugSessionResponse response = manager.dataFlowDebugSessions() - .create("ixfosrwzhm", "klocyjpmbtnv", - new CreateDataFlowDebugSessionRequest().withComputeType("mhkfkvdmjjiqjv") - .withCoreCount(944548630) - .withTimeToLive(1599364288) - .withIntegrationRuntime(new IntegrationRuntimeDebugResource().withName("feyhny") - .withProperties(new IntegrationRuntime().withDescription("i") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mpuqnvn", response.status()); - Assertions.assertEquals("awicou", response.sessionId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java deleted file mode 100644 index b3b2c92d354f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.dataFlowDebugSessions() - .deleteWithResponse("dzdzswvfwiunj", "qx", new DeleteDataFlowDebugSessionRequest().withSessionId("tfzgdq"), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsExecuteCommandMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsExecuteCommandMockTests.java deleted file mode 100644 index 88e244de80c8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsExecuteCommandMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandResponse; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsExecuteCommandMockTests { - @Test - public void testExecuteCommand() throws Exception { - String responseStr = "{\"status\":\"lkflffo\",\"data\":\"skndwyw\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataFlowDebugCommandResponse response = manager.dataFlowDebugSessions() - .executeCommand("wvbiryxsaxwu", "pnsesxwkhkcdt", - new DataFlowDebugCommandRequest().withSessionId("a") - .withCommand(DataFlowDebugCommandType.EXECUTE_PREVIEW_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("qfzvvtifcqsuem") - .withRowLimits(271273488) - .withColumns(Arrays.asList("ovbpn", "fucxtmhmzcnpsd", "fwjcwwbunf", "mbwinura")) - .withExpression("bmjokttqgokhaj")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lkflffo", response.status()); - Assertions.assertEquals("skndwyw", response.data()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsQueryByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsQueryByFactoryMockTests.java deleted file mode 100644 index 1d7b80ddcdee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsQueryByFactoryMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessionInfo; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsQueryByFactoryMockTests { - @Test - public void testQueryByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"dataFlowName\":\"zqcymdj\",\"computeType\":\"ojykytpyirctdaoj\",\"coreCount\":733493660,\"nodeCount\":550438817,\"integrationRuntimeName\":\"ikqagmlhs\",\"sessionId\":\"pihenvhlpuobha\",\"startTime\":\"aowpm\",\"timeToLiveInMinutes\":701601830,\"lastActivityTime\":\"uziogboaimwxswfy\",\"\":{\"gtgc\":\"datacjhjrwn\",\"w\":\"datampjdrhxfg\"}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.dataFlowDebugSessions() - .queryByFactory("lbjccjorovr", "dfgdvifo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zqcymdj", response.iterator().next().dataFlowName()); - Assertions.assertEquals("ojykytpyirctdaoj", response.iterator().next().computeType()); - Assertions.assertEquals(733493660, response.iterator().next().coreCount()); - Assertions.assertEquals(550438817, response.iterator().next().nodeCount()); - Assertions.assertEquals("ikqagmlhs", response.iterator().next().integrationRuntimeName()); - Assertions.assertEquals("pihenvhlpuobha", response.iterator().next().sessionId()); - Assertions.assertEquals("aowpm", response.iterator().next().startTime()); - Assertions.assertEquals(701601830, response.iterator().next().timeToLiveInMinutes()); - Assertions.assertEquals("uziogboaimwxswfy", response.iterator().next().lastActivityTime()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java deleted file mode 100644 index 02b4edeb3906..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowFolder model = BinaryData.fromString("{\"name\":\"txjcsheafidlt\"}").toObject(DataFlowFolder.class); - Assertions.assertEquals("txjcsheafidlt", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowFolder model = new DataFlowFolder().withName("txjcsheafidlt"); - model = BinaryData.fromObject(model).toObject(DataFlowFolder.class); - Assertions.assertEquals("txjcsheafidlt", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java deleted file mode 100644 index b8ab23f5cecb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowListResponse; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"resmkssjhoiftxfk\",\"annotations\":[\"datagpr\",\"dataptil\",\"dataucb\"],\"folder\":{\"name\":\"gdqoh\"}},\"name\":\"wsldrizetpwbr\",\"type\":\"llibphbqzmizak\",\"etag\":\"ankjpdnjzh\",\"id\":\"oylhjlmuoyxprimr\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"pteecjme\",\"annotations\":[\"datastvasylwxdzaumw\"],\"folder\":{\"name\":\"hguuf\"}},\"name\":\"boyjathwt\",\"type\":\"lbaemwmdxmeb\",\"etag\":\"scjpahlxv\",\"id\":\"bfqxnmwmqtibxyi\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"dt\",\"annotations\":[\"datattadijae\",\"datakmr\"],\"folder\":{\"name\":\"ekpndzaapmudq\"}},\"name\":\"qwigpibudqwyxe\",\"type\":\"ybpmzznrtffyaq\",\"etag\":\"mhh\",\"id\":\"oqaqhvseufuq\"}],\"nextLink\":\"xpdlcgqlsis\"}") - .toObject(DataFlowListResponse.class); - Assertions.assertEquals("oylhjlmuoyxprimr", model.value().get(0).id()); - Assertions.assertEquals("resmkssjhoiftxfk", model.value().get(0).properties().description()); - Assertions.assertEquals("gdqoh", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("xpdlcgqlsis", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowListResponse model = new DataFlowListResponse().withValue(Arrays.asList( - new DataFlowResourceInner().withId("oylhjlmuoyxprimr") - .withProperties(new DataFlow().withDescription("resmkssjhoiftxfk") - .withAnnotations(Arrays.asList("datagpr", "dataptil", "dataucb")) - .withFolder(new DataFlowFolder().withName("gdqoh"))), - new DataFlowResourceInner().withId("bfqxnmwmqtibxyi") - .withProperties(new DataFlow().withDescription("pteecjme") - .withAnnotations(Arrays.asList("datastvasylwxdzaumw")) - .withFolder(new DataFlowFolder().withName("hguuf"))), - new DataFlowResourceInner().withId("oqaqhvseufuq") - .withProperties(new DataFlow().withDescription("dt") - .withAnnotations(Arrays.asList("datattadijae", "datakmr")) - .withFolder(new DataFlowFolder().withName("ekpndzaapmudq"))))) - .withNextLink("xpdlcgqlsis"); - model = BinaryData.fromObject(model).toObject(DataFlowListResponse.class); - Assertions.assertEquals("oylhjlmuoyxprimr", model.value().get(0).id()); - Assertions.assertEquals("resmkssjhoiftxfk", model.value().get(0).properties().description()); - Assertions.assertEquals("gdqoh", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("xpdlcgqlsis", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java deleted file mode 100644 index 402e00a8c89c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowReference model = BinaryData.fromString( - "{\"type\":\"DataFlowReference\",\"referenceName\":\"eqir\",\"datasetParameters\":\"datajclykcg\",\"parameters\":{\"punettepdjxq\":\"datapjlvczuoda\"},\"\":{\"uiylpc\":\"dataoy\",\"vesk\":\"dataaewse\",\"fn\":\"dataxegqphr\",\"bcbcpz\":\"datahctmjtsgh\"}}") - .toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("eqir", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowReference model = new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("eqir") - .withDatasetParameters("datajclykcg") - .withParameters(mapOf("punettepdjxq", "datapjlvczuoda")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("eqir", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java deleted file mode 100644 index 24469a1cefa2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"aeranokqgukkjqnv\",\"annotations\":[\"dataylaxxulcdi\",\"datadosfjbjsvgjrw\"],\"folder\":{\"name\":\"vyc\"}},\"name\":\"dclxgc\",\"type\":\"nfnw\",\"etag\":\"tmvpdvjdhtt\",\"id\":\"efedxihchrphkm\"}") - .toObject(DataFlowResourceInner.class); - Assertions.assertEquals("efedxihchrphkm", model.id()); - Assertions.assertEquals("aeranokqgukkjqnv", model.properties().description()); - Assertions.assertEquals("vyc", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowResourceInner model = new DataFlowResourceInner().withId("efedxihchrphkm") - .withProperties(new DataFlow().withDescription("aeranokqgukkjqnv") - .withAnnotations(Arrays.asList("dataylaxxulcdi", "datadosfjbjsvgjrw")) - .withFolder(new DataFlowFolder().withName("vyc"))); - model = BinaryData.fromObject(model).toObject(DataFlowResourceInner.class); - Assertions.assertEquals("efedxihchrphkm", model.id()); - Assertions.assertEquals("aeranokqgukkjqnv", model.properties().description()); - Assertions.assertEquals("vyc", model.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java deleted file mode 100644 index 1189967c51b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSink model = BinaryData.fromString( - "{\"schemaLinkedService\":{\"referenceName\":\"fki\",\"parameters\":{\"axikhfjqebglcxk\":\"datavsaaxwsp\",\"g\":\"datagzzromv\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"emtm\",\"parameters\":{\"pat\":\"datafsvpink\"}},\"name\":\"tdiswxspvckojaz\",\"description\":\"gspftesu\",\"dataset\":{\"referenceName\":\"pvpvd\",\"parameters\":{\"xzfxn\":\"datatcovqseusrfjb\",\"ihdcyyyzlw\":\"datamlbmuoswkjm\"}},\"linkedService\":{\"referenceName\":\"wzjnufz\",\"parameters\":{\"qgnnbz\":\"datam\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tedzu\",\"datasetParameters\":\"datajtvgjsx\",\"parameters\":{\"btdphti\":\"datajjvavdpww\"},\"\":{\"hks\":\"datafofwan\",\"riwgybjp\":\"dataauwazcgwd\"}}}") - .toObject(DataFlowSink.class); - Assertions.assertEquals("tdiswxspvckojaz", model.name()); - Assertions.assertEquals("gspftesu", model.description()); - Assertions.assertEquals("pvpvd", model.dataset().referenceName()); - Assertions.assertEquals("wzjnufz", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tedzu", model.flowlet().referenceName()); - Assertions.assertEquals("fki", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("emtm", model.rejectedDataLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSink model = new DataFlowSink().withName("tdiswxspvckojaz") - .withDescription("gspftesu") - .withDataset(new DatasetReference().withReferenceName("pvpvd") - .withParameters(mapOf("xzfxn", "datatcovqseusrfjb", "ihdcyyyzlw", "datamlbmuoswkjm"))) - .withLinkedService( - new LinkedServiceReference().withReferenceName("wzjnufz").withParameters(mapOf("qgnnbz", "datam"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tedzu") - .withDatasetParameters("datajtvgjsx") - .withParameters(mapOf("btdphti", "datajjvavdpww")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("fki") - .withParameters(mapOf("axikhfjqebglcxk", "datavsaaxwsp", "g", "datagzzromv"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("emtm").withParameters(mapOf("pat", "datafsvpink"))); - model = BinaryData.fromObject(model).toObject(DataFlowSink.class); - Assertions.assertEquals("tdiswxspvckojaz", model.name()); - Assertions.assertEquals("gspftesu", model.description()); - Assertions.assertEquals("pvpvd", model.dataset().referenceName()); - Assertions.assertEquals("wzjnufz", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tedzu", model.flowlet().referenceName()); - Assertions.assertEquals("fki", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("emtm", model.rejectedDataLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java deleted file mode 100644 index de5b9d95e889..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSourceSettingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSourceSetting model = BinaryData - .fromString("{\"sourceName\":\"auxofshfph\",\"rowLimit\":1830915171,\"\":{\"koj\":\"dataaiywzejywhsl\"}}") - .toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("auxofshfph", model.sourceName()); - Assertions.assertEquals(1830915171, model.rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSourceSetting model = new DataFlowSourceSetting().withSourceName("auxofshfph") - .withRowLimit(1830915171) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("auxofshfph", model.sourceName()); - Assertions.assertEquals(1830915171, model.rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java deleted file mode 100644 index c2a93b90a049..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSource model = BinaryData.fromString( - "{\"schemaLinkedService\":{\"referenceName\":\"vewuyqaeoh\",\"parameters\":{\"aurghooxa\":\"datagejkbvhh\",\"hxjxjoezlqxrkdkn\":\"dataxb\",\"tzamicbig\":\"dataobektmbozo\",\"euairaabmdlqjb\":\"datacdgzseznux\"}},\"name\":\"dp\",\"description\":\"xlhupmomihzbdnp\",\"dataset\":{\"referenceName\":\"kcdpreyxelyi\",\"parameters\":{\"fss\":\"dataflr\",\"rkbhammgmqfm\":\"datayghsf\",\"gquxweysland\":\"datafgvqcpdw\",\"hcgawn\":\"datadcdjhunh\"}},\"linkedService\":{\"referenceName\":\"nquoxsotireimse\",\"parameters\":{\"cjzlquzexokjxebj\":\"datasxstcyilbvzmm\",\"inzabwmvoglj\":\"datab\",\"pgidnw\":\"datav\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"aqidoyzltgiomqo\",\"datasetParameters\":\"dataepiaeapfsergd\",\"parameters\":{\"b\":\"dataqnacyheq\"},\"\":{\"jozfym\":\"datancjubk\",\"ipsejbsvsia\":\"datawmbupyvqyvliq\",\"zydisnuep\":\"dataeswhd\",\"nldpxottd\":\"datawyj\"}}}") - .toObject(DataFlowSource.class); - Assertions.assertEquals("dp", model.name()); - Assertions.assertEquals("xlhupmomihzbdnp", model.description()); - Assertions.assertEquals("kcdpreyxelyi", model.dataset().referenceName()); - Assertions.assertEquals("nquoxsotireimse", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("aqidoyzltgiomqo", model.flowlet().referenceName()); - Assertions.assertEquals("vewuyqaeoh", model.schemaLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSource model = new DataFlowSource().withName("dp") - .withDescription("xlhupmomihzbdnp") - .withDataset(new DatasetReference().withReferenceName("kcdpreyxelyi") - .withParameters(mapOf("fss", "dataflr", "rkbhammgmqfm", "datayghsf", "gquxweysland", "datafgvqcpdw", - "hcgawn", "datadcdjhunh"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("nquoxsotireimse") - .withParameters( - mapOf("cjzlquzexokjxebj", "datasxstcyilbvzmm", "inzabwmvoglj", "datab", "pgidnw", "datav"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("aqidoyzltgiomqo") - .withDatasetParameters("dataepiaeapfsergd") - .withParameters(mapOf("b", "dataqnacyheq")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("vewuyqaeoh") - .withParameters(mapOf("aurghooxa", "datagejkbvhh", "hxjxjoezlqxrkdkn", "dataxb", "tzamicbig", - "dataobektmbozo", "euairaabmdlqjb", "datacdgzseznux"))); - model = BinaryData.fromObject(model).toObject(DataFlowSource.class); - Assertions.assertEquals("dp", model.name()); - Assertions.assertEquals("xlhupmomihzbdnp", model.description()); - Assertions.assertEquals("kcdpreyxelyi", model.dataset().referenceName()); - Assertions.assertEquals("nquoxsotireimse", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("aqidoyzltgiomqo", model.flowlet().referenceName()); - Assertions.assertEquals("vewuyqaeoh", model.schemaLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java deleted file mode 100644 index 6a81a8b53fee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowStagingInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowStagingInfo model = BinaryData.fromString( - "{\"linkedService\":{\"referenceName\":\"ovmribiattg\",\"parameters\":{\"swvxwlmzqwmv\":\"datacfotangcfhnykzcu\",\"uqudtcvclxyn\":\"dataxnjmxm\",\"dugneiknp\":\"datadkvgfabuiyjibuzp\"}},\"folderPath\":\"dataxgjiuqh\"}") - .toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("ovmribiattg", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowStagingInfo model - = new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference().withReferenceName("ovmribiattg") - .withParameters(mapOf("swvxwlmzqwmv", "datacfotangcfhnykzcu", "uqudtcvclxyn", "dataxnjmxm", - "dugneiknp", "datadkvgfabuiyjibuzp"))) - .withFolderPath("dataxgjiuqh"); - model = BinaryData.fromObject(model).toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("ovmribiattg", model.linkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java deleted file mode 100644 index ba3401558e47..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlow model = BinaryData.fromString( - "{\"type\":\"DataFlow\",\"description\":\"jdqnsdfzpbgt\",\"annotations\":[\"datalkdghr\",\"dataeuutlwxezwzh\",\"datakvbwnhhtqlgeh\"],\"folder\":{\"name\":\"ipifhpfeoajvg\"}}") - .toObject(DataFlow.class); - Assertions.assertEquals("jdqnsdfzpbgt", model.description()); - Assertions.assertEquals("ipifhpfeoajvg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlow model = new DataFlow().withDescription("jdqnsdfzpbgt") - .withAnnotations(Arrays.asList("datalkdghr", "dataeuutlwxezwzh", "datakvbwnhhtqlgeh")) - .withFolder(new DataFlowFolder().withName("ipifhpfeoajvg")); - model = BinaryData.fromObject(model).toObject(DataFlow.class); - Assertions.assertEquals("jdqnsdfzpbgt", model.description()); - Assertions.assertEquals("ipifhpfeoajvg", model.folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 8d0120f03def..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"lcekonmcxriqfrrx\",\"annotations\":[\"datavrhcjhszmymfr\",\"dataosmic\",\"datakizqqdawmrk\"],\"folder\":{\"name\":\"xbbhjgnjlzdjzhx\"}},\"name\":\"bxsok\",\"type\":\"awr\",\"etag\":\"rodrtkw\",\"id\":\"gllnyohnhfu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataFlowResource response = manager.dataFlows() - .define("ya") - .withExistingFactory("iixnx", "cvyi") - .withProperties(new DataFlow().withDescription("wegijdejs") - .withAnnotations(Arrays.asList("datacggoqmblhcba")) - .withFolder(new DataFlowFolder().withName("waathdrbaaqt"))) - .withIfMatch("exxn") - .create(); - - Assertions.assertEquals("gllnyohnhfu", response.id()); - Assertions.assertEquals("lcekonmcxriqfrrx", response.properties().description()); - Assertions.assertEquals("xbbhjgnjlzdjzhx", response.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.java deleted file mode 100644 index 4fe1e25eb4c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.dataFlows() - .deleteWithResponse("vuj", "ukadzuftxfqddade", "nsaecdcvhxwegd", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetWithResponseMockTests.java deleted file mode 100644 index f79e68faddbf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetWithResponseMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"vmfosfpgqux\",\"annotations\":[\"datauuyehmnvfhyiax\",\"datazpwhczqjoov\",\"datapsgug\"],\"folder\":{\"name\":\"kbw\"}},\"name\":\"x\",\"type\":\"bvhhkabeoxh\",\"etag\":\"et\",\"id\":\"mtqnsigrqcxhwvz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataFlowResource response = manager.dataFlows() - .getWithResponse("wlejcxc", "xu", "orhrtihzwd", "flwlmh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mtqnsigrqcxhwvz", response.id()); - Assertions.assertEquals("vmfosfpgqux", response.properties().description()); - Assertions.assertEquals("kbw", response.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactoryMockTests.java deleted file mode 100644 index 2ef2f34e0df7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactoryMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"pwpmyftvejxm\",\"annotations\":[\"datanahhpnbvzdf\",\"dataxjbzwvnxwdu\",\"datawdvbnpyed\"],\"folder\":{\"name\":\"rtdaqlitoimta\"}},\"name\":\"fexkbmodbpc\",\"type\":\"yhhzcjzgij\",\"etag\":\"clloejshfc\",\"id\":\"zujcibvrfk\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dataFlows().listByFactory("mnyphvx", "lupsobqpd", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zujcibvrfk", response.iterator().next().id()); - Assertions.assertEquals("pwpmyftvejxm", response.iterator().next().properties().description()); - Assertions.assertEquals("rtdaqlitoimta", response.iterator().next().properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java deleted file mode 100644 index b70054b6678b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DataLakeAnalyticsUsqlActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeAnalyticsUsqlActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsUsqlActivity model = BinaryData.fromString( - "{\"type\":\"DataLakeAnalyticsU-SQL\",\"typeProperties\":{\"scriptPath\":\"datalfrwym\",\"scriptLinkedService\":{\"referenceName\":\"ujtnnd\",\"parameters\":{\"pljyt\":\"datayc\",\"fxhzvrsrgbfaqg\":\"dataqbtijybpfwgclppw\"}},\"degreeOfParallelism\":\"datakisipjgvm\",\"priority\":\"dataurr\",\"parameters\":{\"bwjopk\":\"datazbxu\",\"bwffgconiydgn\":\"datadubq\"},\"runtimeVersion\":\"datagyytn\",\"compilationMode\":\"datalankosd\"},\"linkedServiceName\":{\"referenceName\":\"mf\",\"parameters\":{\"ybdivxvxw\":\"dataefkhki\",\"czco\":\"datafmqzndlgqtuq\"}},\"policy\":{\"timeout\":\"datacwtxaafcvqhmsdo\",\"retry\":\"datarzsninkhbm\",\"retryIntervalInSeconds\":1593239802,\"secureInput\":false,\"secureOutput\":false,\"\":{\"mcp\":\"dataphz\",\"qzxkpxrful\":\"dataepkrdge\",\"bp\":\"datahhmnd\",\"jmel\":\"datadg\"}},\"name\":\"kzmfmgboyliopbo\",\"description\":\"faiyvmpfebsummy\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"xsdup\",\"dependencyConditions\":[\"Failed\",\"Skipped\"],\"\":{\"vh\":\"datahgb\",\"zvclzutvqkoi\":\"dataskos\"}}],\"userProperties\":[{\"name\":\"pfskqwjlohkaffyn\",\"value\":\"datawvbqbytyijxkuc\"},{\"name\":\"pqp\",\"value\":\"dataxkayvxegiufjnjg\"}],\"\":{\"unuvawmxx\":\"datajppbalcftiwbd\",\"pzqrb\":\"datao\",\"wrufiouafxp\":\"datayza\"}}") - .toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("kzmfmgboyliopbo", model.name()); - Assertions.assertEquals("faiyvmpfebsummy", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xsdup", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pfskqwjlohkaffyn", model.userProperties().get(0).name()); - Assertions.assertEquals("mf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1593239802, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ujtnnd", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivity model = new DataLakeAnalyticsUsqlActivity().withName("kzmfmgboyliopbo") - .withDescription("faiyvmpfebsummy") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("xsdup") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("pfskqwjlohkaffyn").withValue("datawvbqbytyijxkuc"), - new UserProperty().withName("pqp").withValue("dataxkayvxegiufjnjg"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mf") - .withParameters(mapOf("ybdivxvxw", "dataefkhki", "czco", "datafmqzndlgqtuq"))) - .withPolicy(new ActivityPolicy().withTimeout("datacwtxaafcvqhmsdo") - .withRetry("datarzsninkhbm") - .withRetryIntervalInSeconds(1593239802) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withScriptPath("datalfrwym") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("ujtnnd") - .withParameters(mapOf("pljyt", "datayc", "fxhzvrsrgbfaqg", "dataqbtijybpfwgclppw"))) - .withDegreeOfParallelism("datakisipjgvm") - .withPriority("dataurr") - .withParameters(mapOf("bwjopk", "datazbxu", "bwffgconiydgn", "datadubq")) - .withRuntimeVersion("datagyytn") - .withCompilationMode("datalankosd"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("kzmfmgboyliopbo", model.name()); - Assertions.assertEquals("faiyvmpfebsummy", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xsdup", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pfskqwjlohkaffyn", model.userProperties().get(0).name()); - Assertions.assertEquals("mf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1593239802, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ujtnnd", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java deleted file mode 100644 index ae8abfe86d2f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataLakeAnalyticsUsqlActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeAnalyticsUsqlActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsUsqlActivityTypeProperties model = BinaryData.fromString( - "{\"scriptPath\":\"dataqzmwxoogi\",\"scriptLinkedService\":{\"referenceName\":\"gnplzbtvpuigtnjy\",\"parameters\":{\"extlyyvebpykzhr\":\"datavvitxoitnqmiwlri\"}},\"degreeOfParallelism\":\"datasbtwpvmz\",\"priority\":\"dataxepapmv\",\"parameters\":{\"kylu\":\"datas\",\"tefbbr\":\"dataxndmtasxsnb\",\"oh\":\"datalofkvshozjkwjwv\"},\"runtimeVersion\":\"datasg\",\"compilationMode\":\"datafzstyacbekc\"}") - .toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("gnplzbtvpuigtnjy", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivityTypeProperties model - = new DataLakeAnalyticsUsqlActivityTypeProperties().withScriptPath("dataqzmwxoogi") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("gnplzbtvpuigtnjy") - .withParameters(mapOf("extlyyvebpykzhr", "datavvitxoitnqmiwlri"))) - .withDegreeOfParallelism("datasbtwpvmz") - .withPriority("dataxepapmv") - .withParameters(mapOf("kylu", "datas", "tefbbr", "dataxndmtasxsnb", "oh", "datalofkvshozjkwjwv")) - .withRuntimeVersion("datasg") - .withCompilationMode("datafzstyacbekc"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("gnplzbtvpuigtnjy", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java deleted file mode 100644 index d20be50438d6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataMapperMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMapperMapping model = BinaryData.fromString( - "{\"targetEntityName\":\"iucijjcea\",\"sourceEntityName\":\"ijjj\",\"sourceConnectionReference\":{\"connectionName\":\"am\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"kvccxetyvkunmig\",\"type\":\"Direct\",\"functionName\":\"k\",\"expression\":\"qo\",\"attributeReference\":{\"name\":\"pinde\",\"entity\":\"abbxbhmedeil\",\"entityConnectionReference\":{\"connectionName\":\"wfcfxzirzz\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"usuv\",\"entity\":\"lczwci\",\"entityConnectionReference\":{}},{\"name\":\"sllfryvdmvxad\",\"entity\":\"cfrgnawbabgfbkt\",\"entityConnectionReference\":{}},{\"name\":\"fczlfsyqkfrbzgow\",\"entity\":\"qmje\",\"entityConnectionReference\":{}},{\"name\":\"xnyqgxhlusr\",\"entity\":\"i\",\"entityConnectionReference\":{}}]},{\"name\":\"jceagb\",\"type\":\"Direct\",\"functionName\":\"sumywzashxgonoyj\",\"expression\":\"ipubyznclkfk\",\"attributeReference\":{\"name\":\"gv\",\"entity\":\"e\",\"entityConnectionReference\":{\"connectionName\":\"oqujlyegqavn\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"btnyjpy\",\"entity\":\"dbfvabmv\",\"entityConnectionReference\":{}},{\"name\":\"baevwjcnkottl\",\"entity\":\"hvajmailfemjjzak\",\"entityConnectionReference\":{}}]},{\"name\":\"iqullqxbdmvr\",\"type\":\"Aggregate\",\"functionName\":\"erndbrnyeofltfnn\",\"expression\":\"kadjf\",\"attributeReference\":{\"name\":\"fmu\",\"entity\":\"iripfohyk\",\"entityConnectionReference\":{\"connectionName\":\"bbcbrwji\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"zbeewoiymrvzbju\",\"entity\":\"srziuct\",\"entityConnectionReference\":{}},{\"name\":\"bdsuifr\",\"entity\":\"kaapezkiswqjmdg\",\"entityConnectionReference\":{}}]},{\"name\":\"parybjufpt\",\"type\":\"Direct\",\"functionName\":\"jnciui\",\"expression\":\"vldaswv\",\"attributeReference\":{\"name\":\"sqqzlgcndhz\",\"entity\":\"rfc\",\"entityConnectionReference\":{\"connectionName\":\"hkhg\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"kpphefsbzx\",\"entity\":\"zxomeikjclwz\",\"entityConnectionReference\":{}},{\"name\":\"mwpfs\",\"entity\":\"t\",\"entityConnectionReference\":{}},{\"name\":\"yqbxyxoyf\",\"entity\":\"qqi\",\"entityConnectionReference\":{}}]}]},\"sourceDenormalizeInfo\":\"dataxlhdj\"}") - .toObject(DataMapperMapping.class); - Assertions.assertEquals("iucijjcea", model.targetEntityName()); - Assertions.assertEquals("ijjj", model.sourceEntityName()); - Assertions.assertEquals("am", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("kvccxetyvkunmig", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("k", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("qo", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions.assertEquals("pinde", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("abbxbhmedeil", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("wfcfxzirzz", - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions.assertEquals("usuv", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("lczwci", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).entity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMapperMapping model = new DataMapperMapping().withTargetEntityName("iucijjcea") - .withSourceEntityName("ijjj") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("am").withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings(Arrays.asList( - new MapperAttributeMapping().withName("kvccxetyvkunmig") - .withType(MappingType.DIRECT) - .withFunctionName("k") - .withExpression("qo") - .withAttributeReference(new MapperAttributeReference().withName("pinde") - .withEntity("abbxbhmedeil") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("wfcfxzirzz") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("usuv") - .withEntity("lczwci") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("sllfryvdmvxad") - .withEntity("cfrgnawbabgfbkt") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("fczlfsyqkfrbzgow") - .withEntity("qmje") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("xnyqgxhlusr") - .withEntity("i") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("jceagb") - .withType(MappingType.DIRECT) - .withFunctionName("sumywzashxgonoyj") - .withExpression("ipubyznclkfk") - .withAttributeReference(new MapperAttributeReference().withName("gv") - .withEntity("e") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("oqujlyegqavn") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("btnyjpy") - .withEntity("dbfvabmv") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("baevwjcnkottl") - .withEntity("hvajmailfemjjzak") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("iqullqxbdmvr") - .withType(MappingType.AGGREGATE) - .withFunctionName("erndbrnyeofltfnn") - .withExpression("kadjf") - .withAttributeReference(new MapperAttributeReference().withName("fmu") - .withEntity("iripfohyk") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("bbcbrwji") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("zbeewoiymrvzbju") - .withEntity("srziuct") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("bdsuifr") - .withEntity("kaapezkiswqjmdg") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("parybjufpt") - .withType(MappingType.DIRECT) - .withFunctionName("jnciui") - .withExpression("vldaswv") - .withAttributeReference(new MapperAttributeReference().withName("sqqzlgcndhz") - .withEntity("rfc") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("hkhg") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("kpphefsbzx") - .withEntity("zxomeikjclwz") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("mwpfs") - .withEntity("t") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("yqbxyxoyf") - .withEntity("qqi") - .withEntityConnectionReference(new MapperConnectionReference())))))) - .withSourceDenormalizeInfo("dataxlhdj"); - model = BinaryData.fromObject(model).toObject(DataMapperMapping.class); - Assertions.assertEquals("iucijjcea", model.targetEntityName()); - Assertions.assertEquals("ijjj", model.sourceEntityName()); - Assertions.assertEquals("am", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("kvccxetyvkunmig", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("k", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("qo", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions.assertEquals("pinde", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("abbxbhmedeil", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("wfcfxzirzz", - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions.assertEquals("usuv", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("lczwci", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).entity()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java deleted file mode 100644 index 61a7b6bb1744..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksNotebookActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksNotebookActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksNotebookActivity model = BinaryData.fromString( - "{\"type\":\"DatabricksNotebook\",\"typeProperties\":{\"notebookPath\":\"datalzqmwmwoggbxias\",\"baseParameters\":{\"lfedwhvhlzpvpix\":\"dataucnp\",\"vc\":\"datajvycodfubnvdibb\",\"nmptxlrvkl\":\"databtmh\",\"sdi\":\"datapauqya\"},\"libraries\":[{\"bvahj\":\"datavksoxykrmalen\",\"gojopsgedsyyku\":\"datavbnlxe\"},{\"ntlf\":\"datafmt\",\"vazffzhbh\":\"dataiq\"},{\"cy\":\"datagwlrdgpudbimehd\",\"ut\":\"datayfhwkbhapfnyo\"}]},\"linkedServiceName\":{\"referenceName\":\"ehjrmf\",\"parameters\":{\"zcpyirngfujvx\":\"dataihnhwgzunbcv\"}},\"policy\":{\"timeout\":\"dataqqf\",\"retry\":\"datadobutkqwrsxxcaxg\",\"retryIntervalInSeconds\":1935871213,\"secureInput\":true,\"secureOutput\":false,\"\":{\"fcblv\":\"datanchrvsfnlgwpuas\",\"dhdiiwvz\":\"datakhdigxxtfvoa\",\"tm\":\"dataffm\",\"hxpmtz\":\"dataartpdyhbpfxm\"}},\"name\":\"vxfglilfjcowr\",\"description\":\"yocjxsgrtnita\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"vp\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"t\":\"datanffexzzijt\",\"plwyluvqp\":\"dataewniwt\"}},{\"activity\":\"wvoyqsnt\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\",\"Skipped\"],\"\":{\"sxcqto\":\"dataaldss\"}},{\"activity\":\"oanxinlm\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"s\":\"databuiv\"}}],\"userProperties\":[{\"name\":\"nenhyhdu\",\"value\":\"dataayk\"},{\"name\":\"jhwybbdaedq\",\"value\":\"datatzsltsxmdace\"}],\"\":{\"qjxdirdcxuiam\":\"dataapfieau\",\"fyivvtxqp\":\"dataxlhfxjcqofpwjjtd\",\"dbjd\":\"datamqogtohzfvysv\",\"mzjppblnervt\":\"datahtxvmnyslpdq\"}}") - .toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("vxfglilfjcowr", model.name()); - Assertions.assertEquals("yocjxsgrtnita", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("vp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nenhyhdu", model.userProperties().get(0).name()); - Assertions.assertEquals("ehjrmf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1935871213, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksNotebookActivity model - = new DatabricksNotebookActivity().withName("vxfglilfjcowr") - .withDescription("yocjxsgrtnita") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("vp") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wvoyqsnt") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("oanxinlm") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("nenhyhdu").withValue("dataayk"), - new UserProperty().withName("jhwybbdaedq").withValue("datatzsltsxmdace"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ehjrmf") - .withParameters(mapOf("zcpyirngfujvx", "dataihnhwgzunbcv"))) - .withPolicy(new ActivityPolicy().withTimeout("dataqqf") - .withRetry("datadobutkqwrsxxcaxg") - .withRetryIntervalInSeconds(1935871213) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withNotebookPath("datalzqmwmwoggbxias") - .withBaseParameters(mapOf("lfedwhvhlzpvpix", "dataucnp", "vc", "datajvycodfubnvdibb", "nmptxlrvkl", - "databtmh", "sdi", "datapauqya")) - .withLibraries(Arrays.asList(mapOf("bvahj", "datavksoxykrmalen", "gojopsgedsyyku", "datavbnlxe"), - mapOf("ntlf", "datafmt", "vazffzhbh", "dataiq"), - mapOf("cy", "datagwlrdgpudbimehd", "ut", "datayfhwkbhapfnyo"))); - model = BinaryData.fromObject(model).toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("vxfglilfjcowr", model.name()); - Assertions.assertEquals("yocjxsgrtnita", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("vp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nenhyhdu", model.userProperties().get(0).name()); - Assertions.assertEquals("ehjrmf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1935871213, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java deleted file mode 100644 index fd857bdaa253..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksNotebookActivityTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DatabricksNotebookActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksNotebookActivityTypeProperties model = BinaryData.fromString( - "{\"notebookPath\":\"datamz\",\"baseParameters\":{\"yyasildbqygnfxg\":\"datajxvt\",\"bkbjs\":\"datazqqwsvjhmqp\",\"pe\":\"datagkdvm\"},\"libraries\":[{\"nshoefdsgfz\":\"datagy\",\"uoavpoookhcurwg\":\"datamh\"},{\"hgsutseejtfnjrr\":\"datazznmjwqwy\",\"xnbbsjgvalowmmh\":\"datafbuywzp\",\"tceehqeahlfujp\":\"datauhywdckvcof\",\"uumldunalo\":\"datavtakijwkwed\"},{\"sszucdvhq\":\"datanikfqcbeu\",\"t\":\"datacqqiulwfzoszgb\"}]}") - .toObject(DatabricksNotebookActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksNotebookActivityTypeProperties model - = new DatabricksNotebookActivityTypeProperties().withNotebookPath("datamz") - .withBaseParameters(mapOf("yyasildbqygnfxg", "datajxvt", "bkbjs", "datazqqwsvjhmqp", "pe", "datagkdvm")) - .withLibraries(Arrays.asList(mapOf("nshoefdsgfz", "datagy", "uoavpoookhcurwg", "datamh"), - mapOf("hgsutseejtfnjrr", "datazznmjwqwy", "xnbbsjgvalowmmh", "datafbuywzp", "tceehqeahlfujp", - "datauhywdckvcof", "uumldunalo", "datavtakijwkwed"), - mapOf("sszucdvhq", "datanikfqcbeu", "t", "datacqqiulwfzoszgb"))); - model = BinaryData.fromObject(model).toObject(DatabricksNotebookActivityTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java deleted file mode 100644 index 918bc9aa7f49..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksSparkJarActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksSparkJarActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkJarActivity model = BinaryData.fromString( - "{\"type\":\"DatabricksSparkJar\",\"typeProperties\":{\"mainClassName\":\"dataaquiuzsnjjgnmpuq\",\"parameters\":[\"datavdaj\",\"dataczlvcxmtwtbr\"],\"libraries\":[{\"lszcwomayr\":\"datagkxzxwjzleeup\"},{\"fxnxtiwinn\":\"datatrjpar\",\"zgmfnpeluvxs\":\"dataowihsgt\"}]},\"linkedServiceName\":{\"referenceName\":\"p\",\"parameters\":{\"fjjg\":\"dataupngorwvayrgu\",\"fwgrubofhkbjgx\":\"dataf\"}},\"policy\":{\"timeout\":\"datapxjnrujdskkkzqla\",\"retry\":\"databsjirhaqedfua\",\"retryIntervalInSeconds\":1077893342,\"secureInput\":true,\"secureOutput\":true,\"\":{\"hjvmjfrp\":\"datapc\",\"gff\":\"datadxsjceyye\",\"ksmxvevudywnyuy\":\"datantrbnvwhqctqdyfu\"}},\"name\":\"naynlxwukpqcf\",\"description\":\"agtiyvdsl\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"zmzbaqrxz\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\",\"Completed\"],\"\":{\"qwhuepyrfjzyin\":\"dataykekbd\",\"sqk\":\"datauuabe\",\"hryrifhuya\":\"datatb\",\"nfakcchcnmzvhdu\":\"datahesqnvsqteprs\"}}],\"userProperties\":[{\"name\":\"adpqp\",\"value\":\"datahgvwggy\"},{\"name\":\"bmfrxofxuys\",\"value\":\"datawvdqzfgd\"},{\"name\":\"yrppsowdo\",\"value\":\"dataiotgfitbpaircn\"},{\"name\":\"pmzpitziejoebz\",\"value\":\"datafmmce\"}],\"\":{\"kpqnpdlcyjse\":\"datafhjrsxrmlxszx\",\"umlfdxetqknzev\":\"datadfhnhbktobeonl\"}}") - .toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("naynlxwukpqcf", model.name()); - Assertions.assertEquals("agtiyvdsl", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("zmzbaqrxz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("adpqp", model.userProperties().get(0).name()); - Assertions.assertEquals("p", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1077893342, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkJarActivity model = new DatabricksSparkJarActivity().withName("naynlxwukpqcf") - .withDescription("agtiyvdsl") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("zmzbaqrxz") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("adpqp").withValue("datahgvwggy"), - new UserProperty().withName("bmfrxofxuys").withValue("datawvdqzfgd"), - new UserProperty().withName("yrppsowdo").withValue("dataiotgfitbpaircn"), - new UserProperty().withName("pmzpitziejoebz").withValue("datafmmce"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("p") - .withParameters(mapOf("fjjg", "dataupngorwvayrgu", "fwgrubofhkbjgx", "dataf"))) - .withPolicy(new ActivityPolicy().withTimeout("datapxjnrujdskkkzqla") - .withRetry("databsjirhaqedfua") - .withRetryIntervalInSeconds(1077893342) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withMainClassName("dataaquiuzsnjjgnmpuq") - .withParameters(Arrays.asList("datavdaj", "dataczlvcxmtwtbr")) - .withLibraries(Arrays.asList(mapOf("lszcwomayr", "datagkxzxwjzleeup"), - mapOf("fxnxtiwinn", "datatrjpar", "zgmfnpeluvxs", "dataowihsgt"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("naynlxwukpqcf", model.name()); - Assertions.assertEquals("agtiyvdsl", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("zmzbaqrxz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("adpqp", model.userProperties().get(0).name()); - Assertions.assertEquals("p", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1077893342, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java deleted file mode 100644 index 0b379f7e3ef9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkJarActivityTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DatabricksSparkJarActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkJarActivityTypeProperties model = BinaryData.fromString( - "{\"mainClassName\":\"datay\",\"parameters\":[\"dataqneoezcrmngaq\",\"datainl\"],\"libraries\":[{\"xtkmdegmi\":\"dataxduxcto\"},{\"lpctlbuobi\":\"datau\"},{\"rkmktcs\":\"databt\"}]}") - .toObject(DatabricksSparkJarActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkJarActivityTypeProperties model - = new DatabricksSparkJarActivityTypeProperties().withMainClassName("datay") - .withParameters(Arrays.asList("dataqneoezcrmngaq", "datainl")) - .withLibraries(Arrays.asList(mapOf("xtkmdegmi", "dataxduxcto"), mapOf("lpctlbuobi", "datau"), - mapOf("rkmktcs", "databt"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkJarActivityTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java deleted file mode 100644 index e0d0fe019538..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksSparkPythonActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksSparkPythonActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkPythonActivity model = BinaryData.fromString( - "{\"type\":\"DatabricksSparkPython\",\"typeProperties\":{\"pythonFile\":\"dataktg\",\"parameters\":[\"datazzsohcaet\",\"dataepmhohq\",\"datalk\",\"dataatliwoodndub\"],\"libraries\":[{\"zdttgbsdaruwvrvx\":\"datazirgiyqzuhnb\",\"adeqslhz\":\"dataozyhu\",\"mqazolroqusrlkp\":\"datay\"},{\"ae\":\"datayqydrnws\"},{\"gzjmjdoqitfd\":\"databpdpkdlhuslqiko\"}]},\"linkedServiceName\":{\"referenceName\":\"ekbb\",\"parameters\":{\"zhrwpjtj\":\"dataoxddgjdpyhem\",\"gaiusglg\":\"datapoynbsttureqvxzl\",\"swmkxbbziffpvvg\":\"dataecsreo\"}},\"policy\":{\"timeout\":\"datamghe\",\"retry\":\"datamoetygevy\",\"retryIntervalInSeconds\":1499181439,\"secureInput\":false,\"secureOutput\":true,\"\":{\"mr\":\"datayjqklaihqrb\",\"tpydjsubtifb\":\"dataljqqbu\",\"jguwdfn\":\"datacveomdlr\"}},\"name\":\"qvuq\",\"description\":\"aowuib\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ynlvovjslxe\",\"dependencyConditions\":[\"Failed\"],\"\":{\"gzlrnfmme\":\"datahjawmrhp\",\"d\":\"datappjxtgffwq\",\"t\":\"datagfgirrzyngdvdr\",\"kqaqfbimfpnpmkdg\":\"dataqfrxggvstyxv\"}},{\"activity\":\"ndwtdorvxdwgpu\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Completed\"],\"\":{\"dzjmjkg\":\"datadwqr\",\"as\":\"dataupplcoqbouetfxza\"}},{\"activity\":\"dlokhimzfltxqpoz\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"jwjnvhu\":\"datakfevhgjk\"}},{\"activity\":\"wmwvqbpazjmfqu\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\",\"Failed\"],\"\":{\"hdyifjvfrg\":\"datagjaa\",\"cwpjpkaf\":\"datanquj\",\"vuyc\":\"datakaf\",\"qsmk\":\"datatlmnrdkiqsqbdvk\"}}],\"userProperties\":[{\"name\":\"ljxnkpd\",\"value\":\"datamexrofqh\"},{\"name\":\"ptsdlcsrhttmh\",\"value\":\"datagwov\"},{\"name\":\"duzqu\",\"value\":\"datakrcwnlyqq\"},{\"name\":\"knul\",\"value\":\"dataq\"}],\"\":{\"euifndgrjnzjyghq\":\"datausmosjawbnxci\",\"ln\":\"datafs\",\"ems\":\"datavgec\"}}") - .toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("qvuq", model.name()); - Assertions.assertEquals("aowuib", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ynlvovjslxe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ljxnkpd", model.userProperties().get(0).name()); - Assertions.assertEquals("ekbb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1499181439, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkPythonActivity model = new DatabricksSparkPythonActivity().withName("qvuq") - .withDescription("aowuib") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ynlvovjslxe") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ndwtdorvxdwgpu") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dlokhimzfltxqpoz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wmwvqbpazjmfqu") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ljxnkpd").withValue("datamexrofqh"), - new UserProperty().withName("ptsdlcsrhttmh").withValue("datagwov"), - new UserProperty().withName("duzqu").withValue("datakrcwnlyqq"), - new UserProperty().withName("knul").withValue("dataq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ekbb") - .withParameters(mapOf("zhrwpjtj", "dataoxddgjdpyhem", "gaiusglg", "datapoynbsttureqvxzl", - "swmkxbbziffpvvg", "dataecsreo"))) - .withPolicy(new ActivityPolicy().withTimeout("datamghe") - .withRetry("datamoetygevy") - .withRetryIntervalInSeconds(1499181439) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withPythonFile("dataktg") - .withParameters(Arrays.asList("datazzsohcaet", "dataepmhohq", "datalk", "dataatliwoodndub")) - .withLibraries(Arrays.asList( - mapOf("zdttgbsdaruwvrvx", "datazirgiyqzuhnb", "adeqslhz", "dataozyhu", "mqazolroqusrlkp", "datay"), - mapOf("ae", "datayqydrnws"), mapOf("gzjmjdoqitfd", "databpdpkdlhuslqiko"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("qvuq", model.name()); - Assertions.assertEquals("aowuib", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ynlvovjslxe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ljxnkpd", model.userProperties().get(0).name()); - Assertions.assertEquals("ekbb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1499181439, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java deleted file mode 100644 index 1548250f34d6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkPythonActivityTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DatabricksSparkPythonActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkPythonActivityTypeProperties model = BinaryData.fromString( - "{\"pythonFile\":\"datacgrkgt\",\"parameters\":[\"datalaywkbuved\",\"datatezeyfdgnaoi\",\"datarufdgtwxie\"],\"libraries\":[{\"eeqelmrp\":\"datagphfzdgs\",\"rgqskd\":\"datagg\",\"vgodekfefae\":\"datajwobegdxjxk\",\"jrakn\":\"dataulrfeqefqdvoo\"}]}") - .toObject(DatabricksSparkPythonActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkPythonActivityTypeProperties model - = new DatabricksSparkPythonActivityTypeProperties().withPythonFile("datacgrkgt") - .withParameters(Arrays.asList("datalaywkbuved", "datatezeyfdgnaoi", "datarufdgtwxie")) - .withLibraries(Arrays.asList(mapOf("eeqelmrp", "datagphfzdgs", "rgqskd", "datagg", "vgodekfefae", - "datajwobegdxjxk", "jrakn", "dataulrfeqefqdvoo"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkPythonActivityTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java deleted file mode 100644 index 9a3e3d9eff37..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetCompressionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetCompression model = BinaryData.fromString( - "{\"type\":\"dataqrslaate\",\"level\":\"datawuj\",\"\":{\"qqy\":\"dataxqgqwlxrhgtvhv\",\"ejogmkor\":\"databkkteo\",\"ofnqhlbs\":\"datavmvm\",\"yalhtgm\":\"dataosnqliwkmzojfe\"}}") - .toObject(DatasetCompression.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetCompression model - = new DatasetCompression().withType("dataqrslaate").withLevel("datawuj").withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DatasetCompression.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java deleted file mode 100644 index 9647970853d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"wey\",\"structure\":\"datadhlisngwflqqmpi\",\"schema\":\"datauwnpqxpxiwfcng\",\"linkedServiceName\":{\"referenceName\":\"saasiixtmkzj\",\"parameters\":{\"gratzvzbglbyvict\":\"dataiirhgfgrwsd\",\"rgxffmshkw\":\"datatbrxkjz\",\"qaclnapxbiy\":\"databkgozxwopdbydpi\"}},\"parameters\":{\"lq\":{\"type\":\"Int\",\"defaultValue\":\"dataknfsmfcttuxuuyil\"},\"hmrnjhvsuj\":{\"type\":\"SecureString\",\"defaultValue\":\"datauvr\"}},\"annotations\":[\"datazytqjtwhauunfpr\",\"datajletlxsmrpddo\",\"dataifamowazi\",\"datanknlqwzdvpi\"],\"folder\":{\"name\":\"qszdtmaajquhuxyl\"},\"\":{\"ygjbmzyospspsh\":\"datam\",\"sp\":\"datakfkyjp\"}},\"name\":\"ssdfpp\"}") - .toObject(DatasetDebugResource.class); - Assertions.assertEquals("ssdfpp", model.name()); - Assertions.assertEquals("wey", model.properties().description()); - Assertions.assertEquals("saasiixtmkzj", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("lq").type()); - Assertions.assertEquals("qszdtmaajquhuxyl", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetDebugResource model - = new DatasetDebugResource().withName("ssdfpp") - .withProperties(new Dataset().withDescription("wey") - .withStructure("datadhlisngwflqqmpi") - .withSchema("datauwnpqxpxiwfcng") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("saasiixtmkzj") - .withParameters(mapOf("gratzvzbglbyvict", "dataiirhgfgrwsd", "rgxffmshkw", "datatbrxkjz", - "qaclnapxbiy", "databkgozxwopdbydpi"))) - .withParameters(mapOf("lq", - new ParameterSpecification().withType(ParameterType.INT) - .withDefaultValue("dataknfsmfcttuxuuyil"), - "hmrnjhvsuj", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datauvr"))) - .withAnnotations( - Arrays.asList("datazytqjtwhauunfpr", "datajletlxsmrpddo", "dataifamowazi", "datanknlqwzdvpi")) - .withFolder(new DatasetFolder().withName("qszdtmaajquhuxyl")) - .withAdditionalProperties(mapOf("type", "Dataset"))); - model = BinaryData.fromObject(model).toObject(DatasetDebugResource.class); - Assertions.assertEquals("ssdfpp", model.name()); - Assertions.assertEquals("wey", model.properties().description()); - Assertions.assertEquals("saasiixtmkzj", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("lq").type()); - Assertions.assertEquals("qszdtmaajquhuxyl", model.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java deleted file mode 100644 index 37a313b683e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import org.junit.jupiter.api.Assertions; - -public final class DatasetFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetFolder model = BinaryData.fromString("{\"name\":\"wem\"}").toObject(DatasetFolder.class); - Assertions.assertEquals("wem", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetFolder model = new DatasetFolder().withName("wem"); - model = BinaryData.fromObject(model).toObject(DatasetFolder.class); - Assertions.assertEquals("wem", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java deleted file mode 100644 index 63328eb7c200..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetListResponse; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"yzvqt\",\"structure\":\"dataubex\",\"schema\":\"datazksmondj\",\"linkedServiceName\":{\"referenceName\":\"quxvypomgkop\",\"parameters\":{\"qgxy\":\"dataojvpa\",\"xozap\":\"datamocmbqfqvmk\",\"dd\":\"datahelxprglya\",\"rjxgciqib\":\"datakcbcue\"}},\"parameters\":{\"ibahwflus\":{\"type\":\"String\",\"defaultValue\":\"datasdqrhzoymibmrq\"}},\"annotations\":[\"datamhrkwofyyvoqacp\",\"dataexpbtg\",\"datawbwo\",\"datanwashrtd\"],\"folder\":{\"name\":\"nqxwbp\"},\"\":{\"ipqiiobyuqerpq\":\"datalpiujwaa\",\"fbtkuwhhmhyk\":\"datapqwcciuqgbdbutau\"}},\"name\":\"oxafn\",\"type\":\"lpichk\",\"etag\":\"mkcdyhbpkkpwdre\",\"id\":\"ovvqfovljxywsu\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"yrs\",\"structure\":\"datasytgadgvraea\",\"schema\":\"datae\",\"linkedServiceName\":{\"referenceName\":\"nzar\",\"parameters\":{\"uijfqk\":\"dataq\",\"ibwwiftohqkv\":\"datacewiipfpub\",\"ljphuopxodl\":\"datauvksgplsaknynfsy\",\"sjswsrms\":\"dataiyntorzihle\"}},\"parameters\":{\"uiizynke\":{\"type\":\"Object\",\"defaultValue\":\"datazbchckqqzqioxiy\"},\"yhwitsmypyynpcdp\":{\"type\":\"Bool\",\"defaultValue\":\"datatrwyhqmib\"}},\"annotations\":[\"datazgmwznmabikns\",\"datargjhxb\",\"datadtlwwrlkd\"],\"folder\":{\"name\":\"cvokotllxdyhg\"},\"\":{\"hadoocrk\":\"datacogjltdtbn\",\"amqgxqquezikyw\":\"datacikhnv\"}},\"name\":\"xkalla\",\"type\":\"elwuipi\",\"etag\":\"jzkzi\",\"id\":\"vvcnayr\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"rnxxmueed\",\"structure\":\"datardvstkwqqtch\",\"schema\":\"datalmfmtdaay\",\"linkedServiceName\":{\"referenceName\":\"dvwvgpio\",\"parameters\":{\"gyqagvrvmnpkuk\":\"dataxrtfudxep\"}},\"parameters\":{\"jhfjxwm\":{\"type\":\"Int\",\"defaultValue\":\"datablxgwimf\"}},\"annotations\":[\"datakfoqreyfkzikfj\",\"datawneaiv\"],\"folder\":{\"name\":\"zel\"},\"\":{\"lsfeaenwabfatkld\":\"datar\",\"oulpjrv\":\"dataxbjhwuaanozjosph\"}},\"name\":\"glrvimjwosytxi\",\"type\":\"skfc\",\"etag\":\"qumiek\",\"id\":\"zzikhlyfjhdg\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"gebdunygaeq\",\"structure\":\"databqfatpxllrxcyjmo\",\"schema\":\"datasu\",\"linkedServiceName\":{\"referenceName\":\"arm\",\"parameters\":{\"hhyxxrw\":\"datamjsjqb\",\"duhpk\":\"datayc\"}},\"parameters\":{\"xqugjhkycubedd\":{\"type\":\"Bool\",\"defaultValue\":\"dataareqna\"},\"zqalkrmnjijpx\":{\"type\":\"String\",\"defaultValue\":\"dataofwq\"}},\"annotations\":[\"dataqudf\"],\"folder\":{\"name\":\"xbaaabjyv\"},\"\":{\"nevfdnw\":\"datafimrzrtuzqogse\",\"euzsoi\":\"datawmewzsyy\",\"thzvaytdwkqbrqu\":\"datajudpfrxt\",\"xiilivpdtiirqt\":\"datapaxh\"}},\"name\":\"oaxoruzfgsqu\",\"type\":\"xrxxlep\",\"etag\":\"amxjezwlw\",\"id\":\"xuqlcvydypat\"}],\"nextLink\":\"oa\"}") - .toObject(DatasetListResponse.class); - Assertions.assertEquals("ovvqfovljxywsu", model.value().get(0).id()); - Assertions.assertEquals("yzvqt", model.value().get(0).properties().description()); - Assertions.assertEquals("quxvypomgkop", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, - model.value().get(0).properties().parameters().get("ibahwflus").type()); - Assertions.assertEquals("nqxwbp", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("oa", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetListResponse model = new DatasetListResponse().withValue(Arrays.asList( - new DatasetResourceInner().withId("ovvqfovljxywsu") - .withProperties( - new Dataset().withDescription("yzvqt") - .withStructure("dataubex") - .withSchema("datazksmondj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("quxvypomgkop") - .withParameters(mapOf("qgxy", "dataojvpa", "xozap", "datamocmbqfqvmk", "dd", - "datahelxprglya", "rjxgciqib", "datakcbcue"))) - .withParameters(mapOf("ibahwflus", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datasdqrhzoymibmrq"))) - .withAnnotations(Arrays.asList("datamhrkwofyyvoqacp", "dataexpbtg", "datawbwo", "datanwashrtd")) - .withFolder(new DatasetFolder().withName("nqxwbp")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetResourceInner().withId("vvcnayr") - .withProperties(new Dataset().withDescription("yrs") - .withStructure("datasytgadgvraea") - .withSchema("datae") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nzar") - .withParameters(mapOf("uijfqk", "dataq", "ibwwiftohqkv", "datacewiipfpub", "ljphuopxodl", - "datauvksgplsaknynfsy", "sjswsrms", "dataiyntorzihle"))) - .withParameters(mapOf("uiizynke", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datazbchckqqzqioxiy"), - "yhwitsmypyynpcdp", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datatrwyhqmib"))) - .withAnnotations(Arrays.asList("datazgmwznmabikns", "datargjhxb", "datadtlwwrlkd")) - .withFolder(new DatasetFolder().withName("cvokotllxdyhg")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetResourceInner().withId("zzikhlyfjhdg") - .withProperties(new Dataset().withDescription("rnxxmueed") - .withStructure("datardvstkwqqtch") - .withSchema("datalmfmtdaay") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dvwvgpio") - .withParameters(mapOf("gyqagvrvmnpkuk", "dataxrtfudxep"))) - .withParameters(mapOf("jhfjxwm", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datablxgwimf"))) - .withAnnotations(Arrays.asList("datakfoqreyfkzikfj", "datawneaiv")) - .withFolder(new DatasetFolder().withName("zel")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetResourceInner().withId("xuqlcvydypat") - .withProperties(new Dataset().withDescription("gebdunygaeq") - .withStructure("databqfatpxllrxcyjmo") - .withSchema("datasu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("arm") - .withParameters(mapOf("hhyxxrw", "datamjsjqb", "duhpk", "datayc"))) - .withParameters(mapOf("xqugjhkycubedd", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataareqna"), - "zqalkrmnjijpx", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataofwq"))) - .withAnnotations(Arrays.asList("dataqudf")) - .withFolder(new DatasetFolder().withName("xbaaabjyv")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withNextLink("oa"); - model = BinaryData.fromObject(model).toObject(DatasetListResponse.class); - Assertions.assertEquals("ovvqfovljxywsu", model.value().get(0).id()); - Assertions.assertEquals("yzvqt", model.value().get(0).properties().description()); - Assertions.assertEquals("quxvypomgkop", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, - model.value().get(0).properties().parameters().get("ibahwflus").type()); - Assertions.assertEquals("nqxwbp", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("oa", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java deleted file mode 100644 index d29f8ba1a6fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetLocation model = BinaryData.fromString( - "{\"type\":\"DatasetLocation\",\"folderPath\":\"datadhgjnaqyqi\",\"fileName\":\"datalzmvcdsvmwbi\",\"\":{\"bxqichgybfzdqe\":\"datadtfobvfi\",\"ulrqtbht\":\"dataivycpzcvdi\"}}") - .toObject(DatasetLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetLocation model = new DatasetLocation().withFolderPath("datadhgjnaqyqi") - .withFileName("datalzmvcdsvmwbi") - .withAdditionalProperties(mapOf("type", "DatasetLocation")); - model = BinaryData.fromObject(model).toObject(DatasetLocation.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java deleted file mode 100644 index fce4f5fd40e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetReference model = BinaryData.fromString( - "{\"referenceName\":\"kmyjmkxett\",\"parameters\":{\"dnqtoqxjhqx\":\"dataojfkq\",\"htkbtnq\":\"datas\",\"mbiipsnawwlqk\":\"datarngl\"}}") - .toObject(DatasetReference.class); - Assertions.assertEquals("kmyjmkxett", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetReference model = new DatasetReference().withReferenceName("kmyjmkxett") - .withParameters(mapOf("dnqtoqxjhqx", "dataojfkq", "htkbtnq", "datas", "mbiipsnawwlqk", "datarngl")); - model = BinaryData.fromObject(model).toObject(DatasetReference.class); - Assertions.assertEquals("kmyjmkxett", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java deleted file mode 100644 index b676b3dbac0a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"kniod\",\"structure\":\"dataoebwnujhemms\",\"schema\":\"datadkcrodt\",\"linkedServiceName\":{\"referenceName\":\"infwjlfltkacjve\",\"parameters\":{\"kfpagao\":\"datalfoakg\",\"jnsjervtiagxsd\":\"datapulpqblylsyxk\",\"beyvpnqicvinvkjj\":\"datazuempsbzkf\"}},\"parameters\":{\"aztz\":{\"type\":\"Int\",\"defaultValue\":\"datauukzclewyhmlw\"},\"fz\":{\"type\":\"Int\",\"defaultValue\":\"datancckw\"},\"xzfe\":{\"type\":\"Int\",\"defaultValue\":\"dataxxbuyq\"}},\"annotations\":[\"datappriol\"],\"folder\":{\"name\":\"jaltolmnc\"},\"\":{\"ucqdpfuvglsb\":\"databqwcsdbnwdcf\",\"cormr\":\"datajcanvxbvtvudut\",\"f\":\"dataxqtvcofu\",\"u\":\"datavkg\"}},\"name\":\"dknnqvsazn\",\"type\":\"tor\",\"etag\":\"sgsahmkycgr\",\"id\":\"wjue\"}") - .toObject(DatasetResourceInner.class); - Assertions.assertEquals("wjue", model.id()); - Assertions.assertEquals("kniod", model.properties().description()); - Assertions.assertEquals("infwjlfltkacjve", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("aztz").type()); - Assertions.assertEquals("jaltolmnc", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetResourceInner model = new DatasetResourceInner().withId("wjue") - .withProperties(new Dataset().withDescription("kniod") - .withStructure("dataoebwnujhemms") - .withSchema("datadkcrodt") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("infwjlfltkacjve") - .withParameters(mapOf("kfpagao", "datalfoakg", "jnsjervtiagxsd", "datapulpqblylsyxk", - "beyvpnqicvinvkjj", "datazuempsbzkf"))) - .withParameters(mapOf("aztz", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datauukzclewyhmlw"), - "fz", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datancckw"), - "xzfe", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataxxbuyq"))) - .withAnnotations(Arrays.asList("datappriol")) - .withFolder(new DatasetFolder().withName("jaltolmnc")) - .withAdditionalProperties(mapOf("type", "Dataset"))); - model = BinaryData.fromObject(model).toObject(DatasetResourceInner.class); - Assertions.assertEquals("wjue", model.id()); - Assertions.assertEquals("kniod", model.properties().description()); - Assertions.assertEquals("infwjlfltkacjve", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("aztz").type()); - Assertions.assertEquals("jaltolmnc", model.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java deleted file mode 100644 index dbaa16e0e52a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetSchemaDataElement; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetSchemaDataElementTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetSchemaDataElement model = BinaryData.fromString( - "{\"name\":\"datadnaryyinzk\",\"type\":\"datalrndwdbvxvza\",\"\":{\"hmcxqqxmyzkl\":\"dataoyqxlunkf\",\"rqra\":\"dataoanpohrvm\"}}") - .toObject(DatasetSchemaDataElement.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetSchemaDataElement model = new DatasetSchemaDataElement().withName("datadnaryyinzk") - .withType("datalrndwdbvxvza") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DatasetSchemaDataElement.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java deleted file mode 100644 index 232ad1ccffa3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetStorageFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetStorageFormat model = BinaryData.fromString( - "{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datadivznl\",\"deserializer\":\"dataslkskhjqjpvbai\",\"\":{\"ywbqgroigbsfsgs\":\"datatgzgta\",\"fmhl\":\"dataenwl\",\"tryldsxebuhsxr\":\"dataqlxspmrj\"}}") - .toObject(DatasetStorageFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetStorageFormat model = new DatasetStorageFormat().withSerializer("datadivznl") - .withDeserializer("dataslkskhjqjpvbai") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat")); - model = BinaryData.fromObject(model).toObject(DatasetStorageFormat.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java deleted file mode 100644 index 78cf3296e8ed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Dataset model = BinaryData.fromString( - "{\"type\":\"Dataset\",\"description\":\"eburu\",\"structure\":\"datamovsmzlxwabmqoe\",\"schema\":\"dataifrvtpu\",\"linkedServiceName\":{\"referenceName\":\"ujmqlgkfbtndoa\",\"parameters\":{\"ed\":\"databjcntujitc\",\"qouicybxarzgsz\":\"datatwwaezkojvdcpzf\",\"p\":\"datafoxciq\",\"xkhnzbonlwnto\":\"datadoamciodhkha\"}},\"parameters\":{\"kszzcmrvexztv\":{\"type\":\"Bool\",\"defaultValue\":\"datawbw\"},\"lmnguxaw\":{\"type\":\"Object\",\"defaultValue\":\"datagsfraoyzkoow\"}},\"annotations\":[\"datadsyuuximerqfob\",\"datayznkby\",\"datautwpfhp\",\"datagmhrskdsnfdsdoak\"],\"folder\":{\"name\":\"lmkk\"},\"\":{\"sdsttwvog\":\"datadlhewp\",\"akufgmjz\":\"databbejdcngqqm\",\"grtwae\":\"datawr\",\"zkopb\":\"datau\"}}") - .toObject(Dataset.class); - Assertions.assertEquals("eburu", model.description()); - Assertions.assertEquals("ujmqlgkfbtndoa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kszzcmrvexztv").type()); - Assertions.assertEquals("lmkk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dataset model = new Dataset().withDescription("eburu") - .withStructure("datamovsmzlxwabmqoe") - .withSchema("dataifrvtpu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ujmqlgkfbtndoa") - .withParameters(mapOf("ed", "databjcntujitc", "qouicybxarzgsz", "datatwwaezkojvdcpzf", "p", - "datafoxciq", "xkhnzbonlwnto", "datadoamciodhkha"))) - .withParameters(mapOf("kszzcmrvexztv", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawbw"), "lmnguxaw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datagsfraoyzkoow"))) - .withAnnotations(Arrays.asList("datadsyuuximerqfob", "datayznkby", "datautwpfhp", "datagmhrskdsnfdsdoak")) - .withFolder(new DatasetFolder().withName("lmkk")) - .withAdditionalProperties(mapOf("type", "Dataset")); - model = BinaryData.fromObject(model).toObject(Dataset.class); - Assertions.assertEquals("eburu", model.description()); - Assertions.assertEquals("ujmqlgkfbtndoa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kszzcmrvexztv").type()); - Assertions.assertEquals("lmkk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index e931bdc122a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatasetsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Dataset\",\"description\":\"yqgvofhpguj\",\"structure\":\"datakwwyfsq\",\"schema\":\"datass\",\"linkedServiceName\":{\"referenceName\":\"cxazvrmu\",\"parameters\":{\"bruszqmud\":\"dataegohpwnrmhlotk\",\"lowesixpwfvtwgn\":\"dataefsxmd\"}},\"parameters\":{\"hcjhinjnwpi\":{\"type\":\"Bool\",\"defaultValue\":\"dataxwkomjsfkdv\"}},\"annotations\":[\"datalbajqecngw\",\"datazuaxsrmadakj\"],\"folder\":{\"name\":\"uv\"},\"\":{\"hotwq\":\"databkkekldxclqjn\",\"utmsmdibzvytem\":\"datagvrzlimz\",\"kcxuvdcwtnz\":\"datasa\"}},\"name\":\"eghn\",\"type\":\"wjwwhsfjqxlbclvp\",\"etag\":\"utyrsravsscb\",\"id\":\"xmscafgdtuzcl\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatasetResource response = manager.datasets() - .define("gdgfjvitdp") - .withExistingFactory("iv", "ftjjmtk") - .withProperties(new Dataset().withDescription("oesx") - .withStructure("datavslhncasp") - .withSchema("dataglaxvn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qhatwxq") - .withParameters(mapOf("huudtiecnpka", "databirzjhaicyuplm", "osrywpfcqle", "datatjqjtoeaug"))) - .withParameters(mapOf("colwquxrrjud", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataizdecgiom"), - "twfmvpsvwwtncvn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datahgsd"), "icovvd", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datagnl"))) - .withAnnotations(Arrays.asList("datafnbdpaoijx", "datagfmftrv")) - .withFolder(new DatasetFolder().withName("jfkpuszsjayrl")) - .withAdditionalProperties(mapOf("type", "Dataset"))) - .withIfMatch("zipzkkleazkc") - .create(); - - Assertions.assertEquals("xmscafgdtuzcl", response.id()); - Assertions.assertEquals("yqgvofhpguj", response.properties().description()); - Assertions.assertEquals("cxazvrmu", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, response.properties().parameters().get("hcjhinjnwpi").type()); - Assertions.assertEquals("uv", response.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java deleted file mode 100644 index b8276e632b1d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatasetsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.datasets() - .deleteWithResponse("sjboiyqixb", "jhvkttusyxz", "vfwyoqjtt", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetWithResponseMockTests.java deleted file mode 100644 index 2cee64a765cf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatasetsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Dataset\",\"description\":\"tya\",\"structure\":\"datacznotggyg\",\"schema\":\"datasghafzdzdf\",\"linkedServiceName\":{\"referenceName\":\"udmiutzuriqlksba\",\"parameters\":{\"qzdxdal\":\"datatiqzjrxhelqh\"}},\"parameters\":{\"eipxdn\":{\"type\":\"Float\",\"defaultValue\":\"dataymdywjzqm\"},\"rdxquowe\":{\"type\":\"Int\",\"defaultValue\":\"dataxhpxsbhua\"}},\"annotations\":[\"dataxzduydnvvwoclmdc\",\"dataqwdme\"],\"folder\":{\"name\":\"jeuguvnwcvlmy\"},\"\":{\"mptxmuejlseumm\":\"datawrtub\",\"dmfrjqfem\":\"datapq\",\"vfyjvkmompwtevqb\":\"datadkxipr\"}},\"name\":\"jlnnvhbejutupgm\",\"type\":\"ityp\",\"etag\":\"qakpbkwqavxlja\",\"id\":\"gxxmxdrgxhrta\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatasetResource response = manager.datasets() - .getWithResponse("tc", "cdomzfw", "jt", "ox", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gxxmxdrgxhrta", response.id()); - Assertions.assertEquals("tya", response.properties().description()); - Assertions.assertEquals("udmiutzuriqlksba", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, response.properties().parameters().get("eipxdn").type()); - Assertions.assertEquals("jeuguvnwcvlmy", response.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactoryMockTests.java deleted file mode 100644 index 1d6e7dd8ac9a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactoryMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatasetsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"bxtabxdkboyqes\",\"structure\":\"datacvutarurfjp\",\"schema\":\"datailuikqzdqk\",\"linkedServiceName\":{\"referenceName\":\"jcqdnzhjlb\",\"parameters\":{\"ikxocfmkcnjzxezo\":\"datankvipjin\",\"tewthslzt\":\"datar\",\"weuxycbvefldfw\":\"dataixn\",\"znlscfbwkh\":\"datanbc\"}},\"parameters\":{\"oq\":{\"type\":\"String\",\"defaultValue\":\"databoprgxdcnbzpc\"},\"pdvnanxrkwzlaomt\":{\"type\":\"Array\",\"defaultValue\":\"datapzekm\"}},\"annotations\":[\"datattmhsrwqp\",\"dataxyfjeibcge\",\"dataipoequjkhu\"],\"folder\":{\"name\":\"xxcbptvvwfamhlj\"},\"\":{\"bczwd\":\"datamhccwmrckv\",\"ohxmzpfptt\":\"dataydbsrjofxoktokms\"}},\"name\":\"wqrbtadsdkbndkof\",\"type\":\"uycnayhodtugrwp\",\"etag\":\"fkgzgveud\",\"id\":\"dtnsqt\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.datasets().listByFactory("faagpjslrf", "xlutfbhsenn", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dtnsqt", response.iterator().next().id()); - Assertions.assertEquals("bxtabxdkboyqes", response.iterator().next().properties().description()); - Assertions.assertEquals("jcqdnzhjlb", - response.iterator().next().properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, - response.iterator().next().properties().parameters().get("oq").type()); - Assertions.assertEquals("xxcbptvvwfamhlj", response.iterator().next().properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java deleted file mode 100644 index 2b5c7065c823..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Db2Source; - -public final class Db2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2Source model = BinaryData.fromString( - "{\"type\":\"Db2Source\",\"query\":\"dataqyllcckgfo\",\"queryTimeout\":\"datarbfyjmenq\",\"additionalColumns\":\"datajfxqtvsfsvqy\",\"sourceRetryCount\":\"dataaweixnoblazwhda\",\"sourceRetryWait\":\"dataixfdu\",\"maxConcurrentConnections\":\"datas\",\"disableMetricsCollection\":\"dataitpcsmax\",\"\":{\"a\":\"dataubhmiuxypvua\"}}") - .toObject(Db2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2Source model = new Db2Source().withSourceRetryCount("dataaweixnoblazwhda") - .withSourceRetryWait("dataixfdu") - .withMaxConcurrentConnections("datas") - .withDisableMetricsCollection("dataitpcsmax") - .withQueryTimeout("datarbfyjmenq") - .withAdditionalColumns("datajfxqtvsfsvqy") - .withQuery("dataqyllcckgfo"); - model = BinaryData.fromObject(model).toObject(Db2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java deleted file mode 100644 index 7f5d46d8e535..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.Db2TableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class Db2TableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2TableDataset model = BinaryData.fromString( - "{\"type\":\"Db2Table\",\"typeProperties\":{\"tableName\":\"datak\",\"schema\":\"dataztirjvqxvwkiocxo\",\"table\":\"datajwbu\"},\"description\":\"qflm\",\"structure\":\"datarlqxbctatez\",\"schema\":\"datazdbcqqnlsjxcsc\",\"linkedServiceName\":{\"referenceName\":\"it\",\"parameters\":{\"t\":\"datarahjjidodnv\"}},\"parameters\":{\"hiclhyzhr\":{\"type\":\"Int\",\"defaultValue\":\"datapuwkupbb\"},\"nhlsforsimtfcqm\":{\"type\":\"SecureString\",\"defaultValue\":\"datafwbif\"}},\"annotations\":[\"databrpelpf\",\"datajt\",\"datazgxmpeszamadle\",\"dataz\"],\"folder\":{\"name\":\"ui\"},\"\":{\"lxswtdapsm\":\"datakt\"}}") - .toObject(Db2TableDataset.class); - Assertions.assertEquals("qflm", model.description()); - Assertions.assertEquals("it", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hiclhyzhr").type()); - Assertions.assertEquals("ui", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDataset model = new Db2TableDataset().withDescription("qflm") - .withStructure("datarlqxbctatez") - .withSchema("datazdbcqqnlsjxcsc") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("it").withParameters(mapOf("t", "datarahjjidodnv"))) - .withParameters(mapOf("hiclhyzhr", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datapuwkupbb"), - "nhlsforsimtfcqm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datafwbif"))) - .withAnnotations(Arrays.asList("databrpelpf", "datajt", "datazgxmpeszamadle", "dataz")) - .withFolder(new DatasetFolder().withName("ui")) - .withTableName("datak") - .withSchemaTypePropertiesSchema("dataztirjvqxvwkiocxo") - .withTable("datajwbu"); - model = BinaryData.fromObject(model).toObject(Db2TableDataset.class); - Assertions.assertEquals("qflm", model.description()); - Assertions.assertEquals("it", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hiclhyzhr").type()); - Assertions.assertEquals("ui", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java deleted file mode 100644 index e45a07cfe262..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Db2TableDatasetTypeProperties; - -public final class Db2TableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2TableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datamnrijefmrtw\",\"schema\":\"dataevdspthgffmwtbl\",\"table\":\"datakok\"}") - .toObject(Db2TableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDatasetTypeProperties model = new Db2TableDatasetTypeProperties().withTableName("datamnrijefmrtw") - .withSchema("dataevdspthgffmwtbl") - .withTable("datakok"); - model = BinaryData.fromObject(model).toObject(Db2TableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java deleted file mode 100644 index 68e77061f777..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DeleteActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DeleteActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteActivity model = BinaryData.fromString( - "{\"type\":\"Delete\",\"typeProperties\":{\"recursive\":\"datararzk\",\"maxConcurrentConnections\":1386173284,\"enableLogging\":\"datanvye\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"dvzomtzp\",\"parameters\":{\"twzesejdcpcpeu\":\"dataxgslzbpnlfzqwmxu\",\"jrptltytbqhejhn\":\"databofzmvtwyjc\",\"meeuuurx\":\"datajlbygq\",\"ob\":\"dataslxzwvygquiwcfq\"}},\"path\":\"datawdevq\",\"logLevel\":\"dataejhvggykirqkskyy\",\"enableReliableLogging\":\"datammim\",\"\":{\"qjb\":\"datawcd\",\"lvlfkwdtsbjmc\":\"datarxmlmibvczdjko\"}},\"dataset\":{\"referenceName\":\"sefezjyfaqdwfa\",\"parameters\":{\"hwlvh\":\"datadetslxe\",\"zil\":\"datalxxgelad\",\"jjupukhxpixuyy\":\"datarsycujnsznjsk\"}},\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datanfxsfjed\",\"disableMetricsCollection\":\"dataxicufxtcyteds\",\"\":{\"pjc\":\"datauhztvbgcflttes\",\"aqgtsbaht\":\"datauyttuindpmrijn\",\"mgulln\":\"dataopbnsbjzrnjcaga\",\"tzcdbqzwutakbva\":\"datashnoxrmabb\"}}},\"linkedServiceName\":{\"referenceName\":\"uaubmcwpll\",\"parameters\":{\"ewtddigmmjve\":\"dataccd\",\"nvgxg\":\"datajrcrbkw\",\"jcemkcwcb\":\"dataih\"}},\"policy\":{\"timeout\":\"datajpiafzwhrgmznt\",\"retry\":\"dataafzrqmogfojrryz\",\"retryIntervalInSeconds\":543157036,\"secureInput\":false,\"secureOutput\":false,\"\":{\"hecq\":\"datazuhuojjbkyddsdg\",\"shnksupchzspgby\":\"databetemam\",\"vuhgchtaea\":\"dataumxyqhctr\"}},\"name\":\"bqkx\",\"description\":\"ukajk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"awynslcfx\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"ugppiudhyl\":\"datairiedfyht\",\"umq\":\"dataqc\"}},{\"activity\":\"ri\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\",\"Skipped\"],\"\":{\"qlufojuexpkqhg\":\"datakbchnhexmg\",\"obcuy\":\"datawyzvnsnak\",\"xjfxu\":\"datamltdgxiqrgr\"}},{\"activity\":\"qyjeeoytgny\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"azncnh\":\"datapnzgnybuglal\",\"hx\":\"dataq\",\"galodfsbhphwt\":\"datascyykrzrjjernj\",\"ajh\":\"datagy\"}},{\"activity\":\"txarl\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"xjmw\":\"datanugpx\",\"gc\":\"datakafuv\",\"biwnyznaixjsfas\":\"dataarsbhjlcxvsmrxy\",\"nxejxwcojjmp\":\"datafamnpbyxbglqyb\"}}],\"userProperties\":[{\"name\":\"tqc\",\"value\":\"datauozjgkcxb\"},{\"name\":\"nwiignr\",\"value\":\"dataqvrxouoqtestr\"}],\"\":{\"yyzaalpwwcwie\":\"dataskmvr\",\"wqmundle\":\"datasswijqsndqjbdtcz\",\"hrygdp\":\"datadlcuedrmqkwkutbt\",\"tcfppjegctsatnry\":\"dataufmvozq\"}}") - .toObject(DeleteActivity.class); - Assertions.assertEquals("bqkx", model.name()); - Assertions.assertEquals("ukajk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("awynslcfx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("tqc", model.userProperties().get(0).name()); - Assertions.assertEquals("uaubmcwpll", model.linkedServiceName().referenceName()); - Assertions.assertEquals(543157036, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(1386173284, model.maxConcurrentConnections()); - Assertions.assertEquals("dvzomtzp", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("sefezjyfaqdwfa", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivity model - = new DeleteActivity().withName("bqkx") - .withDescription("ukajk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("awynslcfx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ri") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qyjeeoytgny") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("txarl") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("tqc").withValue("datauozjgkcxb"), - new UserProperty().withName("nwiignr").withValue("dataqvrxouoqtestr"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uaubmcwpll") - .withParameters(mapOf("ewtddigmmjve", "dataccd", "nvgxg", "datajrcrbkw", "jcemkcwcb", "dataih"))) - .withPolicy(new ActivityPolicy().withTimeout("datajpiafzwhrgmznt") - .withRetry("dataafzrqmogfojrryz") - .withRetryIntervalInSeconds(543157036) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withRecursive("datararzk") - .withMaxConcurrentConnections(1386173284) - .withEnableLogging("datanvye") - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dvzomtzp") - .withParameters(mapOf("twzesejdcpcpeu", "dataxgslzbpnlfzqwmxu", "jrptltytbqhejhn", - "databofzmvtwyjc", "meeuuurx", "datajlbygq", "ob", "dataslxzwvygquiwcfq"))) - .withPath("datawdevq") - .withLogLevel("dataejhvggykirqkskyy") - .withEnableReliableLogging("datammim") - .withAdditionalProperties(mapOf())) - .withDataset( - new DatasetReference().withReferenceName("sefezjyfaqdwfa") - .withParameters(mapOf("hwlvh", "datadetslxe", "zil", "datalxxgelad", "jjupukhxpixuyy", - "datarsycujnsznjsk"))) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datanfxsfjed") - .withDisableMetricsCollection("dataxicufxtcyteds") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))); - model = BinaryData.fromObject(model).toObject(DeleteActivity.class); - Assertions.assertEquals("bqkx", model.name()); - Assertions.assertEquals("ukajk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("awynslcfx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("tqc", model.userProperties().get(0).name()); - Assertions.assertEquals("uaubmcwpll", model.linkedServiceName().referenceName()); - Assertions.assertEquals(543157036, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(1386173284, model.maxConcurrentConnections()); - Assertions.assertEquals("dvzomtzp", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("sefezjyfaqdwfa", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java deleted file mode 100644 index c8ad6e89f6a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DeleteActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DeleteActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteActivityTypeProperties model = BinaryData.fromString( - "{\"recursive\":\"datauewrwcqrvtwv\",\"maxConcurrentConnections\":1816589211,\"enableLogging\":\"datarxhxqpm\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"nmnscswadvbwewwd\",\"parameters\":{\"h\":\"dataehwmaxlppagk\",\"pllodowsjcvpvt\":\"dataeneq\"}},\"path\":\"datallivcymnpb\",\"logLevel\":\"dataalmhcatpwq\",\"enableReliableLogging\":\"datanajmwpeaoegg\",\"\":{\"lugrumoprnbo\":\"datapglhlw\",\"wykeeocpswqzpkod\":\"datavixamhitqrp\"}},\"dataset\":{\"referenceName\":\"quvf\",\"parameters\":{\"gwfqtqbn\":\"dataaozpcc\",\"wfdgeqzkpergzs\":\"datakmgydfmkz\"}},\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datakankjkszudx\",\"disableMetricsCollection\":\"dataf\",\"\":{\"jfmvydjax\":\"dataoqbruymapjnfofxi\",\"vugb\":\"datastuhlwzcn\"}}}") - .toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(1816589211, model.maxConcurrentConnections()); - Assertions.assertEquals("nmnscswadvbwewwd", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("quvf", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivityTypeProperties model = new DeleteActivityTypeProperties().withRecursive("datauewrwcqrvtwv") - .withMaxConcurrentConnections(1816589211) - .withEnableLogging("datarxhxqpm") - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nmnscswadvbwewwd") - .withParameters(mapOf("h", "dataehwmaxlppagk", "pllodowsjcvpvt", "dataeneq"))) - .withPath("datallivcymnpb") - .withLogLevel("dataalmhcatpwq") - .withEnableReliableLogging("datanajmwpeaoegg") - .withAdditionalProperties(mapOf())) - .withDataset(new DatasetReference().withReferenceName("quvf") - .withParameters(mapOf("gwfqtqbn", "dataaozpcc", "wfdgeqzkpergzs", "datakmgydfmkz"))) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datakankjkszudx") - .withDisableMetricsCollection("dataf") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))); - model = BinaryData.fromObject(model).toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(1816589211, model.maxConcurrentConnections()); - Assertions.assertEquals("nmnscswadvbwewwd", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("quvf", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java deleted file mode 100644 index 6a7d7dd2e5cf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; -import org.junit.jupiter.api.Assertions; - -public final class DeleteDataFlowDebugSessionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteDataFlowDebugSessionRequest model - = BinaryData.fromString("{\"sessionId\":\"npdwr\"}").toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("npdwr", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteDataFlowDebugSessionRequest model = new DeleteDataFlowDebugSessionRequest().withSessionId("npdwr"); - model = BinaryData.fromObject(model).toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("npdwr", model.sessionId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java deleted file mode 100644 index 3432ee79278f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextReadSettings model = BinaryData.fromString( - "{\"type\":\"DelimitedTextReadSettings\",\"skipLineCount\":\"datawkesxvzcxxf\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"ycxmhorrecoiqw\":\"datagqwbrzkmgyl\",\"cyhjhrkfpt\":\"dataqliz\"}},\"\":{\"jdvfjvbwawymah\":\"datammisbfmbvmajcmpo\"}}") - .toObject(DelimitedTextReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextReadSettings model = new DelimitedTextReadSettings().withSkipLineCount("datawkesxvzcxxf") - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(DelimitedTextReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java deleted file mode 100644 index 5926d8196ca9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DelimitedTextSink; -import com.azure.resourcemanager.datafactory.models.DelimitedTextWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextSink model = BinaryData.fromString( - "{\"type\":\"DelimitedTextSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datab\",\"disableMetricsCollection\":\"datad\",\"copyBehavior\":\"dataluvcwu\",\"metadata\":[{\"name\":\"dataxoaq\",\"value\":\"dataqfpkrmlbkvqog\"},{\"name\":\"datawfoqdn\",\"value\":\"datame\"},{\"name\":\"datanvscyu\",\"value\":\"datawsynt\"},{\"name\":\"datarluqaqn\",\"value\":\"datag\"}],\"\":{\"pifvpsmv\":\"datafejbozkl\"}},\"formatSettings\":{\"type\":\"DelimitedTextWriteSettings\",\"quoteAllText\":\"datauw\",\"fileExtension\":\"datasnplqfi\",\"maxRowsPerFile\":\"datafqmdjz\",\"fileNamePrefix\":\"datavmkplrjkmpaxoey\",\"\":{\"qhwfskmkdr\":\"datafaogvmqzagrq\",\"ldwcxjvexlutxcmc\":\"datakdpn\",\"yypvhdulds\":\"datacotqocn\",\"zzbr\":\"datal\"}},\"writeBatchSize\":\"datakeylk\",\"writeBatchTimeout\":\"dataaagrdfwvgl\",\"sinkRetryCount\":\"datasphvosucry\",\"sinkRetryWait\":\"dataohthzfotfrf\",\"maxConcurrentConnections\":\"datajkahdofshgmqx\",\"disableMetricsCollection\":\"datappnitrmzvnrfkzn\",\"\":{\"rxhwpgkrnx\":\"datattbmo\",\"gcnz\":\"datajmil\"}}") - .toObject(DelimitedTextSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSink model = new DelimitedTextSink().withWriteBatchSize("datakeylk") - .withWriteBatchTimeout("dataaagrdfwvgl") - .withSinkRetryCount("datasphvosucry") - .withSinkRetryWait("dataohthzfotfrf") - .withMaxConcurrentConnections("datajkahdofshgmqx") - .withDisableMetricsCollection("datappnitrmzvnrfkzn") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datab") - .withDisableMetricsCollection("datad") - .withCopyBehavior("dataluvcwu") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataxoaq").withValue("dataqfpkrmlbkvqog"), - new MetadataItem().withName("datawfoqdn").withValue("datame"), - new MetadataItem().withName("datanvscyu").withValue("datawsynt"), - new MetadataItem().withName("datarluqaqn").withValue("datag"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new DelimitedTextWriteSettings().withQuoteAllText("datauw") - .withFileExtension("datasnplqfi") - .withMaxRowsPerFile("datafqmdjz") - .withFileNamePrefix("datavmkplrjkmpaxoey")); - model = BinaryData.fromObject(model).toObject(DelimitedTextSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java deleted file mode 100644 index 0f9ce989d568..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextSource model = BinaryData.fromString( - "{\"type\":\"DelimitedTextSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datapsnnnxhgdnsdxyln\",\"disableMetricsCollection\":\"datagaicjkqjz\",\"\":{\"kqlkaipfyvquas\":\"datahdnpnmrxjd\",\"vakqaho\":\"dataywkbiek\",\"voaoavezwclmzm\":\"datagnapkpaiedo\",\"rcdiqhvhcbukaw\":\"datarvlgh\"}},\"formatSettings\":{\"type\":\"DelimitedTextReadSettings\",\"skipLineCount\":\"datafjtockgqaawyysz\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"zsipkhqhvktc\":\"dataljlwfqrfyw\"}},\"\":{\"xemvl\":\"dataqdkhohspk\",\"rjzbxxxqfrntzbh\":\"dataa\"}},\"additionalColumns\":\"datalpxfauvgtoin\",\"sourceRetryCount\":\"datasmyvvfapfbm\",\"sourceRetryWait\":\"datahknefcoo\",\"maxConcurrentConnections\":\"datamdspd\",\"disableMetricsCollection\":\"datagupiosibg\",\"\":{\"kyrttnriks\":\"dataxuybxjwnyr\"}}") - .toObject(DelimitedTextSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSource model - = new DelimitedTextSource().withSourceRetryCount("datasmyvvfapfbm") - .withSourceRetryWait("datahknefcoo") - .withMaxConcurrentConnections("datamdspd") - .withDisableMetricsCollection("datagupiosibg") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datapsnnnxhgdnsdxyln") - .withDisableMetricsCollection("datagaicjkqjz") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new DelimitedTextReadSettings().withSkipLineCount("datafjtockgqaawyysz") - .withCompressionProperties(new CompressionReadSettings() - .withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("datalpxfauvgtoin"); - model = BinaryData.fromObject(model).toObject(DelimitedTextSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java deleted file mode 100644 index 3f1039ebb34f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DelimitedTextWriteSettings; - -public final class DelimitedTextWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextWriteSettings model = BinaryData.fromString( - "{\"type\":\"DelimitedTextWriteSettings\",\"quoteAllText\":\"datawyzxqhuhmldhnz\",\"fileExtension\":\"datackfu\",\"maxRowsPerFile\":\"datachotdzt\",\"fileNamePrefix\":\"dataqhwpuaermaww\",\"\":{\"qcemco\":\"datada\",\"hisxz\":\"datawfuo\",\"oj\":\"dataikvdfszxbupsx\",\"zlmwfncwlwov\":\"datagxcgqkhyvtajwkrx\"}}") - .toObject(DelimitedTextWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextWriteSettings model = new DelimitedTextWriteSettings().withQuoteAllText("datawyzxqhuhmldhnz") - .withFileExtension("datackfu") - .withMaxRowsPerFile("datachotdzt") - .withFileNamePrefix("dataqhwpuaermaww"); - model = BinaryData.fromObject(model).toObject(DelimitedTextWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java deleted file mode 100644 index 9872370dba56..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DependencyReference; - -public final class DependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DependencyReference model - = BinaryData.fromString("{\"type\":\"DependencyReference\"}").toObject(DependencyReference.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DependencyReference model = new DependencyReference(); - model = BinaryData.fromObject(model).toObject(DependencyReference.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java deleted file mode 100644 index 7c686832d295..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; - -public final class DistcpSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DistcpSettings model = BinaryData.fromString( - "{\"resourceManagerEndpoint\":\"datatrooaahhvs\",\"tempScriptPath\":\"datagywkin\",\"distcpOptions\":\"datavtx\"}") - .toObject(DistcpSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DistcpSettings model = new DistcpSettings().withResourceManagerEndpoint("datatrooaahhvs") - .withTempScriptPath("datagywkin") - .withDistcpOptions("datavtx"); - model = BinaryData.fromObject(model).toObject(DistcpSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java deleted file mode 100644 index cfb6784eaf32..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DocumentDbCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionDataset model = BinaryData.fromString( - "{\"type\":\"DocumentDbCollection\",\"typeProperties\":{\"collectionName\":\"dataghmmtbtdvucfvvra\"},\"description\":\"eurdeewlsuxp\",\"structure\":\"datawkdwjyjiznioroof\",\"schema\":\"datataspmcrei\",\"linkedServiceName\":{\"referenceName\":\"uftrni\",\"parameters\":{\"wfmsxj\":\"datainuwqxungrob\"}},\"parameters\":{\"ugeerclbltbhpwac\":{\"type\":\"Array\",\"defaultValue\":\"dataxmvzjow\"}},\"annotations\":[\"dataurjwmvwryvdifkii\",\"datagpruccwme\",\"databtxsytrtexeg\"],\"folder\":{\"name\":\"qjywi\"},\"\":{\"ndiloqkajwjuria\":\"dataycfjnc\",\"llanhzc\":\"datasb\",\"ygzkztxfexwacyy\":\"datanjxizbax\"}}") - .toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("eurdeewlsuxp", model.description()); - Assertions.assertEquals("uftrni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ugeerclbltbhpwac").type()); - Assertions.assertEquals("qjywi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDataset model = new DocumentDbCollectionDataset().withDescription("eurdeewlsuxp") - .withStructure("datawkdwjyjiznioroof") - .withSchema("datataspmcrei") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uftrni") - .withParameters(mapOf("wfmsxj", "datainuwqxungrob"))) - .withParameters(mapOf("ugeerclbltbhpwac", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataxmvzjow"))) - .withAnnotations(Arrays.asList("dataurjwmvwryvdifkii", "datagpruccwme", "databtxsytrtexeg")) - .withFolder(new DatasetFolder().withName("qjywi")) - .withCollectionName("dataghmmtbtdvucfvvra"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("eurdeewlsuxp", model.description()); - Assertions.assertEquals("uftrni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ugeerclbltbhpwac").type()); - Assertions.assertEquals("qjywi", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 5bed7c95f09d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DocumentDbCollectionDatasetTypeProperties; - -public final class DocumentDbCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collectionName\":\"datamlxppdndzkfevuii\"}") - .toObject(DocumentDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDatasetTypeProperties model - = new DocumentDbCollectionDatasetTypeProperties().withCollectionName("datamlxppdndzkfevuii"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java deleted file mode 100644 index 9d56b83f8af9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSink; - -public final class DocumentDbCollectionSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionSink model = BinaryData.fromString( - "{\"type\":\"DocumentDbCollectionSink\",\"nestingSeparator\":\"datazvveer\",\"writeBehavior\":\"dataehsnlmdosiyzfdc\",\"writeBatchSize\":\"datakggbmzdnyrmolm\",\"writeBatchTimeout\":\"datakcpumckcbsa\",\"sinkRetryCount\":\"dataucsscwdqilz\",\"sinkRetryWait\":\"datai\",\"maxConcurrentConnections\":\"datarqzwypwh\",\"disableMetricsCollection\":\"databflrpvcgqqxek\",\"\":{\"vfjkxxnqrqdx\":\"datapsqvuisedeq\",\"lsvicvpagwohkro\":\"databtpvwx\",\"mlozjyovrllvhbgk\":\"datazss\"}}") - .toObject(DocumentDbCollectionSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSink model = new DocumentDbCollectionSink().withWriteBatchSize("datakggbmzdnyrmolm") - .withWriteBatchTimeout("datakcpumckcbsa") - .withSinkRetryCount("dataucsscwdqilz") - .withSinkRetryWait("datai") - .withMaxConcurrentConnections("datarqzwypwh") - .withDisableMetricsCollection("databflrpvcgqqxek") - .withNestingSeparator("datazvveer") - .withWriteBehavior("dataehsnlmdosiyzfdc"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java deleted file mode 100644 index ac91cd84efe9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSource; - -public final class DocumentDbCollectionSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionSource model = BinaryData.fromString( - "{\"type\":\"DocumentDbCollectionSource\",\"query\":\"datadljqjstncjwz\",\"nestingSeparator\":\"datatezltlundkj\",\"queryTimeout\":\"datavhhxivshjuxm\",\"additionalColumns\":\"dataythxearlp\",\"sourceRetryCount\":\"datajjticly\",\"sourceRetryWait\":\"dataduxbungmpn\",\"maxConcurrentConnections\":\"datatgucdfxglrcj\",\"disableMetricsCollection\":\"dataoaz\",\"\":{\"nyhzestt\":\"datajcwuzanpoyrqjoni\"}}") - .toObject(DocumentDbCollectionSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSource model = new DocumentDbCollectionSource().withSourceRetryCount("datajjticly") - .withSourceRetryWait("dataduxbungmpn") - .withMaxConcurrentConnections("datatgucdfxglrcj") - .withDisableMetricsCollection("dataoaz") - .withQuery("datadljqjstncjwz") - .withNestingSeparator("datatezltlundkj") - .withQueryTimeout("datavhhxivshjuxm") - .withAdditionalColumns("dataythxearlp"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java deleted file mode 100644 index da98cb9dfc12..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DrillDatasetTypeProperties; - -public final class DrillDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datanyfowyj\",\"table\":\"dataakkiub\",\"schema\":\"datakittlrgl\"}") - .toObject(DrillDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillDatasetTypeProperties model = new DrillDatasetTypeProperties().withTableName("datanyfowyj") - .withTable("dataakkiub") - .withSchema("datakittlrgl"); - model = BinaryData.fromObject(model).toObject(DrillDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java deleted file mode 100644 index 88fe2c5482fe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DrillSource; - -public final class DrillSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillSource model = BinaryData.fromString( - "{\"type\":\"DrillSource\",\"query\":\"datafn\",\"queryTimeout\":\"dataeyavldovpwrq\",\"additionalColumns\":\"datazokplzliizb\",\"sourceRetryCount\":\"datajumulhfq\",\"sourceRetryWait\":\"datanchah\",\"maxConcurrentConnections\":\"datanrptrqcap\",\"disableMetricsCollection\":\"datafvowzbk\",\"\":{\"qzzkplqmca\":\"datapzdpujywjmo\",\"jgfpqwwugfwpvj\":\"dataseiauveeng\"}}") - .toObject(DrillSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillSource model = new DrillSource().withSourceRetryCount("datajumulhfq") - .withSourceRetryWait("datanchah") - .withMaxConcurrentConnections("datanrptrqcap") - .withDisableMetricsCollection("datafvowzbk") - .withQueryTimeout("dataeyavldovpwrq") - .withAdditionalColumns("datazokplzliizb") - .withQuery("datafn"); - model = BinaryData.fromObject(model).toObject(DrillSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java deleted file mode 100644 index 8ca81f05e310..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DrillTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DrillTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillTableDataset model = BinaryData.fromString( - "{\"type\":\"DrillTable\",\"typeProperties\":{\"tableName\":\"datafvkywzrqeiad\",\"table\":\"datakhuvnl\",\"schema\":\"datacnuti\"},\"description\":\"mizunzbqvioync\",\"structure\":\"dataqhhvvwz\",\"schema\":\"datajaaaiaibtvavly\",\"linkedServiceName\":{\"referenceName\":\"qtlocnwmef\",\"parameters\":{\"bzgy\":\"datauzqcrlkor\",\"nozf\":\"dataenfsfyqncowm\",\"agwaakktbjort\":\"dataywjiaaosla\"}},\"parameters\":{\"zbkd\":{\"type\":\"Bool\",\"defaultValue\":\"dataqhsnsejplislxyl\"},\"rpea\":{\"type\":\"Object\",\"defaultValue\":\"datajwxgvtkjct\"},\"aitrms\":{\"type\":\"Float\",\"defaultValue\":\"datakvfccozvqxspht\"},\"poegyckm\":{\"type\":\"SecureString\",\"defaultValue\":\"datatuytgcptct\"}},\"annotations\":[\"datavrcclclfkfv\",\"dataj\"],\"folder\":{\"name\":\"wrvp\"},\"\":{\"b\":\"datajylxt\",\"aysqwh\":\"datasewfzvv\",\"tcvpvdfmo\":\"datadcyandblkb\",\"sqpffapjpjmsbzz\":\"dataqctfvxu\"}}") - .toObject(DrillTableDataset.class); - Assertions.assertEquals("mizunzbqvioync", model.description()); - Assertions.assertEquals("qtlocnwmef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zbkd").type()); - Assertions.assertEquals("wrvp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillTableDataset model = new DrillTableDataset().withDescription("mizunzbqvioync") - .withStructure("dataqhhvvwz") - .withSchema("datajaaaiaibtvavly") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qtlocnwmef") - .withParameters( - mapOf("bzgy", "datauzqcrlkor", "nozf", "dataenfsfyqncowm", "agwaakktbjort", "dataywjiaaosla"))) - .withParameters(mapOf("zbkd", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqhsnsejplislxyl"), - "rpea", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datajwxgvtkjct"), - "aitrms", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakvfccozvqxspht"), - "poegyckm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatuytgcptct"))) - .withAnnotations(Arrays.asList("datavrcclclfkfv", "dataj")) - .withFolder(new DatasetFolder().withName("wrvp")) - .withTableName("datafvkywzrqeiad") - .withTable("datakhuvnl") - .withSchemaTypePropertiesSchema("datacnuti"); - model = BinaryData.fromObject(model).toObject(DrillTableDataset.class); - Assertions.assertEquals("mizunzbqvioync", model.description()); - Assertions.assertEquals("qtlocnwmef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zbkd").type()); - Assertions.assertEquals("wrvp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java deleted file mode 100644 index 66bf7a0fc7a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsAXResourceDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsAXResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXResourceDataset model = BinaryData.fromString( - "{\"type\":\"DynamicsAXResource\",\"typeProperties\":{\"path\":\"datamv\"},\"description\":\"flhdhoxu\",\"structure\":\"datacnnkvthwtam\",\"schema\":\"databgy\",\"linkedServiceName\":{\"referenceName\":\"xh\",\"parameters\":{\"beqzjdwxtutpdwne\":\"datahkezuucqicocdx\"}},\"parameters\":{\"rwvn\":{\"type\":\"Bool\",\"defaultValue\":\"datalxug\"}},\"annotations\":[\"dataofkvfruxz\",\"datafbvhgykzov\",\"datatvymdqaymqmyrn\",\"datagubqkfnoxhvoyj\"],\"folder\":{\"name\":\"krqs\"},\"\":{\"eexweju\":\"datapakxr\",\"zoytkbeadyfenro\":\"datauvnxbohpzur\",\"cbtaxdrpanhsxwhx\":\"dataoijoxcbpkiwse\"}}") - .toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("flhdhoxu", model.description()); - Assertions.assertEquals("xh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rwvn").type()); - Assertions.assertEquals("krqs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDataset model = new DynamicsAXResourceDataset().withDescription("flhdhoxu") - .withStructure("datacnnkvthwtam") - .withSchema("databgy") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xh") - .withParameters(mapOf("beqzjdwxtutpdwne", "datahkezuucqicocdx"))) - .withParameters( - mapOf("rwvn", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datalxug"))) - .withAnnotations( - Arrays.asList("dataofkvfruxz", "datafbvhgykzov", "datatvymdqaymqmyrn", "datagubqkfnoxhvoyj")) - .withFolder(new DatasetFolder().withName("krqs")) - .withPath("datamv"); - model = BinaryData.fromObject(model).toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("flhdhoxu", model.description()); - Assertions.assertEquals("xh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rwvn").type()); - Assertions.assertEquals("krqs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java deleted file mode 100644 index d1649de74873..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXResourceDatasetTypeProperties; - -public final class DynamicsAXResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXResourceDatasetTypeProperties model = BinaryData.fromString("{\"path\":\"dataztdacrqcwkk\"}") - .toObject(DynamicsAXResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDatasetTypeProperties model - = new DynamicsAXResourceDatasetTypeProperties().withPath("dataztdacrqcwkk"); - model = BinaryData.fromObject(model).toObject(DynamicsAXResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java deleted file mode 100644 index 97186b4f308a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsAXSource; - -public final class DynamicsAXSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXSource model = BinaryData.fromString( - "{\"type\":\"DynamicsAXSource\",\"query\":\"datalyi\",\"httpRequestTimeout\":\"datazgmxqa\",\"queryTimeout\":\"dataypxgoypo\",\"additionalColumns\":\"dataoyyfysn\",\"sourceRetryCount\":\"datajnl\",\"sourceRetryWait\":\"datacmhonojese\",\"maxConcurrentConnections\":\"dataxel\",\"disableMetricsCollection\":\"dataxwmpziy\",\"\":{\"wpcutzlvx\":\"datajswedkfofyfwpu\",\"vddwgozr\":\"dataolvedzrjkrpor\",\"dyhcwcgvyuuse\":\"dataglkmgcxmkrldfo\"}}") - .toObject(DynamicsAXSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXSource model = new DynamicsAXSource().withSourceRetryCount("datajnl") - .withSourceRetryWait("datacmhonojese") - .withMaxConcurrentConnections("dataxel") - .withDisableMetricsCollection("dataxwmpziy") - .withQueryTimeout("dataypxgoypo") - .withAdditionalColumns("dataoyyfysn") - .withQuery("datalyi") - .withHttpRequestTimeout("datazgmxqa"); - model = BinaryData.fromObject(model).toObject(DynamicsAXSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java deleted file mode 100644 index cd45b03ba7ce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsCrmEntityDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsCrmEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmEntityDataset model = BinaryData.fromString( - "{\"type\":\"DynamicsCrmEntity\",\"typeProperties\":{\"entityName\":\"dataeepfh\"},\"description\":\"nn\",\"structure\":\"dataxqhpjhuboh\",\"schema\":\"datazgaybvr\",\"linkedServiceName\":{\"referenceName\":\"hogalg\",\"parameters\":{\"pamqxfcssanybz\":\"datafmzvztaue\",\"svcdhlywkh\":\"dataghvdfeumy\",\"nzxezriwgo\":\"dataokj\"}},\"parameters\":{\"ap\":{\"type\":\"Bool\",\"defaultValue\":\"dataqksa\"},\"benwsdfp\":{\"type\":\"SecureString\",\"defaultValue\":\"datacit\"},\"pmvzpireszya\":{\"type\":\"Int\",\"defaultValue\":\"dataahlfrcqk\"},\"cjjlwkyeahhhut\":{\"type\":\"Float\",\"defaultValue\":\"datamlbmfggeokfe\"}},\"annotations\":[\"datanrfcqu\",\"datam\",\"dataihpinow\"],\"folder\":{\"name\":\"jpxp\"},\"\":{\"lgbbfjmdgjvxlh\":\"datadwyqqidqi\",\"eftyaphqeofytl\":\"datapm\",\"qvjfdgfqpmquxpjh\":\"datanlowmcmcqixuanc\",\"dcio\":\"datafaar\"}}") - .toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("nn", model.description()); - Assertions.assertEquals("hogalg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ap").type()); - Assertions.assertEquals("jpxp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDataset model - = new DynamicsCrmEntityDataset().withDescription("nn") - .withStructure("dataxqhpjhuboh") - .withSchema("datazgaybvr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hogalg") - .withParameters(mapOf("pamqxfcssanybz", "datafmzvztaue", "svcdhlywkh", "dataghvdfeumy", - "nzxezriwgo", "dataokj"))) - .withParameters(mapOf("ap", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqksa"), "benwsdfp", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datacit"), - "pmvzpireszya", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataahlfrcqk"), - "cjjlwkyeahhhut", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datamlbmfggeokfe"))) - .withAnnotations(Arrays.asList("datanrfcqu", "datam", "dataihpinow")) - .withFolder(new DatasetFolder().withName("jpxp")) - .withEntityName("dataeepfh"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("nn", model.description()); - Assertions.assertEquals("hogalg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ap").type()); - Assertions.assertEquals("jpxp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java deleted file mode 100644 index eb9c451be676..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmEntityDatasetTypeProperties; - -public final class DynamicsCrmEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model = BinaryData.fromString("{\"entityName\":\"dataufzg\"}") - .toObject(DynamicsCrmEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model - = new DynamicsCrmEntityDatasetTypeProperties().withEntityName("dataufzg"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java deleted file mode 100644 index ded7f0c6db5c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsCrmSource; - -public final class DynamicsCrmSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmSource model = BinaryData.fromString( - "{\"type\":\"DynamicsCrmSource\",\"query\":\"datauutkwwtymbc\",\"additionalColumns\":\"datawsyfsgikgcbjclf\",\"sourceRetryCount\":\"datafdsatrzqmtuxwtda\",\"sourceRetryWait\":\"databifktnxugiorb\",\"maxConcurrentConnections\":\"dataeyrnbubyabtowbu\",\"disableMetricsCollection\":\"datalwbgvzuxfsmf\",\"\":{\"vnoylmfjylh\":\"datauoqpzw\"}}") - .toObject(DynamicsCrmSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmSource model = new DynamicsCrmSource().withSourceRetryCount("datafdsatrzqmtuxwtda") - .withSourceRetryWait("databifktnxugiorb") - .withMaxConcurrentConnections("dataeyrnbubyabtowbu") - .withDisableMetricsCollection("datalwbgvzuxfsmf") - .withQuery("datauutkwwtymbc") - .withAdditionalColumns("datawsyfsgikgcbjclf"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java deleted file mode 100644 index 04be415dad73..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsEntityDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsEntityDataset model = BinaryData.fromString( - "{\"type\":\"DynamicsEntity\",\"typeProperties\":{\"entityName\":\"datab\"},\"description\":\"cjy\",\"structure\":\"datadcizeqqfop\",\"schema\":\"dataopmotdsf\",\"linkedServiceName\":{\"referenceName\":\"o\",\"parameters\":{\"ldzmxojzsvmaigb\":\"datayoazyfbkm\"}},\"parameters\":{\"ihba\":{\"type\":\"String\",\"defaultValue\":\"dataejthgeecbpergwlc\"},\"jixiujzkc\":{\"type\":\"String\",\"defaultValue\":\"datasokknpugzjwdizc\"},\"w\":{\"type\":\"String\",\"defaultValue\":\"datagkr\"},\"okn\":{\"type\":\"Int\",\"defaultValue\":\"datakkbxktxbbwlmnw\"}},\"annotations\":[\"dataddlggb\",\"dataa\"],\"folder\":{\"name\":\"zubak\"},\"\":{\"ffetp\":\"datavggcmfn\",\"wewzlscgsme\":\"datami\",\"thhx\":\"datanqvxgvohd\"}}") - .toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("cjy", model.description()); - Assertions.assertEquals("o", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ihba").type()); - Assertions.assertEquals("zubak", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDataset model - = new DynamicsEntityDataset().withDescription("cjy") - .withStructure("datadcizeqqfop") - .withSchema("dataopmotdsf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("o") - .withParameters(mapOf("ldzmxojzsvmaigb", "datayoazyfbkm"))) - .withParameters(mapOf("ihba", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("dataejthgeecbpergwlc"), - "jixiujzkc", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datasokknpugzjwdizc"), - "w", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datagkr"), "okn", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datakkbxktxbbwlmnw"))) - .withAnnotations(Arrays.asList("dataddlggb", "dataa")) - .withFolder(new DatasetFolder().withName("zubak")) - .withEntityName("datab"); - model = BinaryData.fromObject(model).toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("cjy", model.description()); - Assertions.assertEquals("o", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ihba").type()); - Assertions.assertEquals("zubak", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java deleted file mode 100644 index 713752bdd943..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsEntityDatasetTypeProperties; - -public final class DynamicsEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsEntityDatasetTypeProperties model - = BinaryData.fromString("{\"entityName\":\"dataev\"}").toObject(DynamicsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDatasetTypeProperties model = new DynamicsEntityDatasetTypeProperties().withEntityName("dataev"); - model = BinaryData.fromObject(model).toObject(DynamicsEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java deleted file mode 100644 index f4410d39ca20..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsSource; - -public final class DynamicsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsSource model = BinaryData.fromString( - "{\"type\":\"DynamicsSource\",\"query\":\"datadhdtt\",\"additionalColumns\":\"datakeculxvkuxvccpda\",\"sourceRetryCount\":\"dataasi\",\"sourceRetryWait\":\"datatyvvgxe\",\"maxConcurrentConnections\":\"dataqoswjwbh\",\"disableMetricsCollection\":\"datawbchybne\",\"\":{\"jcywyrzxipxhl\":\"dataeikadhusgxkbg\",\"avxgmogcnwxk\":\"dataxkviyjruqyej\",\"thnlceggyqlvn\":\"dataqxpnjqtzdahv\"}}") - .toObject(DynamicsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsSource model = new DynamicsSource().withSourceRetryCount("dataasi") - .withSourceRetryWait("datatyvvgxe") - .withMaxConcurrentConnections("dataqoswjwbh") - .withDisableMetricsCollection("datawbchybne") - .withQuery("datadhdtt") - .withAdditionalColumns("datakeculxvkuxvccpda"); - model = BinaryData.fromObject(model).toObject(DynamicsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java deleted file mode 100644 index 2beadd771f50..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.EloquaObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class EloquaObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EloquaObjectDataset model = BinaryData.fromString( - "{\"type\":\"EloquaObject\",\"typeProperties\":{\"tableName\":\"datao\"},\"description\":\"guhbnhogsezreneg\",\"structure\":\"datadtyzpx\",\"schema\":\"datatwkejmgem\",\"linkedServiceName\":{\"referenceName\":\"dupe\",\"parameters\":{\"mmpkapvnpeukg\":\"datavsdfvhrypez\"}},\"parameters\":{\"omlcsvkt\":{\"type\":\"String\",\"defaultValue\":\"dataeqnit\"},\"fxjtxla\":{\"type\":\"SecureString\",\"defaultValue\":\"datarowsh\"},\"fqdmll\":{\"type\":\"Float\",\"defaultValue\":\"datadyqabjrop\"}},\"annotations\":[\"datajyuwq\",\"datazwgdpvhwiril\",\"datamqtr\"],\"folder\":{\"name\":\"oxdegacdedpkwd\"},\"\":{\"aqermnddlir\":\"datapgdcidp\",\"lsaqifepdureeviv\":\"dataq\",\"xeswctl\":\"dataiglioklsuff\"}}") - .toObject(EloquaObjectDataset.class); - Assertions.assertEquals("guhbnhogsezreneg", model.description()); - Assertions.assertEquals("dupe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("omlcsvkt").type()); - Assertions.assertEquals("oxdegacdedpkwd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaObjectDataset model = new EloquaObjectDataset().withDescription("guhbnhogsezreneg") - .withStructure("datadtyzpx") - .withSchema("datatwkejmgem") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dupe") - .withParameters(mapOf("mmpkapvnpeukg", "datavsdfvhrypez"))) - .withParameters(mapOf("omlcsvkt", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataeqnit"), "fxjtxla", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datarowsh"), - "fqdmll", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datadyqabjrop"))) - .withAnnotations(Arrays.asList("datajyuwq", "datazwgdpvhwiril", "datamqtr")) - .withFolder(new DatasetFolder().withName("oxdegacdedpkwd")) - .withTableName("datao"); - model = BinaryData.fromObject(model).toObject(EloquaObjectDataset.class); - Assertions.assertEquals("guhbnhogsezreneg", model.description()); - Assertions.assertEquals("dupe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("omlcsvkt").type()); - Assertions.assertEquals("oxdegacdedpkwd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java deleted file mode 100644 index 1242e2316599..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EloquaSource; - -public final class EloquaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EloquaSource model = BinaryData.fromString( - "{\"type\":\"EloquaSource\",\"query\":\"datawbqaibkyeysf\",\"queryTimeout\":\"datahdydyybztlylh\",\"additionalColumns\":\"datacjq\",\"sourceRetryCount\":\"datacie\",\"sourceRetryWait\":\"datak\",\"maxConcurrentConnections\":\"dataxf\",\"disableMetricsCollection\":\"datahvecjhbttmhneqd\",\"\":{\"kna\":\"dataeyxxidabqla\",\"ljsfcryqrrsjqt\":\"datacseqo\"}}") - .toObject(EloquaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaSource model = new EloquaSource().withSourceRetryCount("datacie") - .withSourceRetryWait("datak") - .withMaxConcurrentConnections("dataxf") - .withDisableMetricsCollection("datahvecjhbttmhneqd") - .withQueryTimeout("datahdydyybztlylh") - .withAdditionalColumns("datacjq") - .withQuery("datawbqaibkyeysf"); - model = BinaryData.fromObject(model).toObject(EloquaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.java deleted file mode 100644 index 928e7cc1d8c3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EntityReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class EntityReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EntityReference model - = BinaryData.fromString("{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"enintz\"}") - .toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("enintz", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EntityReference model - = new EntityReference().withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("enintz"); - model = BinaryData.fromObject(model).toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("enintz", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java deleted file mode 100644 index 2110abbce7e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EnvironmentVariableSetup; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableSetupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariableSetup model = BinaryData.fromString( - "{\"type\":\"EnvironmentVariableSetup\",\"typeProperties\":{\"variableName\":\"dwdmuvya\",\"variableValue\":\"rbqpwx\"}}") - .toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("dwdmuvya", model.variableName()); - Assertions.assertEquals("rbqpwx", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetup model - = new EnvironmentVariableSetup().withVariableName("dwdmuvya").withVariableValue("rbqpwx"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("dwdmuvya", model.variableName()); - Assertions.assertEquals("rbqpwx", model.variableValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.java deleted file mode 100644 index 6f6e84b47934..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.EnvironmentVariableSetupTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableSetupTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariableSetupTypeProperties model - = BinaryData.fromString("{\"variableName\":\"blzrmiukothyfjbp\",\"variableValue\":\"hdhfrvsizfwgn\"}") - .toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("blzrmiukothyfjbp", model.variableName()); - Assertions.assertEquals("hdhfrvsizfwgn", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetupTypeProperties model - = new EnvironmentVariableSetupTypeProperties().withVariableName("blzrmiukothyfjbp") - .withVariableValue("hdhfrvsizfwgn"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("blzrmiukothyfjbp", model.variableName()); - Assertions.assertEquals("hdhfrvsizfwgn", model.variableValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java deleted file mode 100644 index ead97245877a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.ExcelDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExcelDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelDataset model = BinaryData.fromString( - "{\"type\":\"Excel\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataybydhui\",\"fileName\":\"dataouwudhuaorh\",\"\":{\"amqprlo\":\"datahwvumosqir\",\"zcmtagelajdyolj\":\"datarugejcvjkjy\",\"qfmzsizzhravrc\":\"dataqy\"}},\"sheetName\":\"datajymgqbgcxhn\",\"sheetIndex\":\"datagzxlermkmerghski\",\"range\":\"datanpupkcbkfuk\",\"firstRowAsHeader\":\"datajqnvtsdyd\",\"compression\":{\"type\":\"datakpafyaloowwziz\",\"level\":\"datayuf\",\"\":{\"kqiyvnd\":\"datastifgufyjf\",\"symzqhrqpf\":\"dataokgw\",\"tznxlu\":\"datalpe\"}},\"nullValue\":\"dataujqbbgsimwejl\"},\"description\":\"kbpjzobdwbcpra\",\"structure\":\"datakuhydtnaczkfwfat\",\"schema\":\"datawphn\",\"linkedServiceName\":{\"referenceName\":\"kivdwgtqcume\",\"parameters\":{\"iuycsbskowk\":\"dataaqgoqb\",\"rb\":\"databhz\",\"asfgqgucyhfaimqv\":\"datahtmqowi\",\"oehgfmqmskkixvlz\":\"dataruozkgyfp\"}},\"parameters\":{\"vzjyielb\":{\"type\":\"String\",\"defaultValue\":\"datapevasyn\"},\"nmpecqxgiqasifub\":{\"type\":\"Int\",\"defaultValue\":\"datavbqv\"},\"nxjkhtupsvyouw\":{\"type\":\"Int\",\"defaultValue\":\"datastlpwqp\"}},\"annotations\":[\"datayxfwkztsmsfb\",\"datavy\",\"datalznfhkqytkztado\",\"datagfzdgjfcycrsvl\"],\"folder\":{\"name\":\"h\"},\"\":{\"wqajquzxpixhy\":\"datakzju\",\"soscien\":\"dataipnfdb\",\"rtek\":\"datazfvbennmfkbpj\"}}") - .toObject(ExcelDataset.class); - Assertions.assertEquals("kbpjzobdwbcpra", model.description()); - Assertions.assertEquals("kivdwgtqcume", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vzjyielb").type()); - Assertions.assertEquals("h", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDataset model = new ExcelDataset().withDescription("kbpjzobdwbcpra") - .withStructure("datakuhydtnaczkfwfat") - .withSchema("datawphn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kivdwgtqcume") - .withParameters(mapOf("iuycsbskowk", "dataaqgoqb", "rb", "databhz", "asfgqgucyhfaimqv", "datahtmqowi", - "oehgfmqmskkixvlz", "dataruozkgyfp"))) - .withParameters(mapOf("vzjyielb", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datapevasyn"), - "nmpecqxgiqasifub", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datavbqv"), "nxjkhtupsvyouw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datastlpwqp"))) - .withAnnotations(Arrays.asList("datayxfwkztsmsfb", "datavy", "datalznfhkqytkztado", "datagfzdgjfcycrsvl")) - .withFolder(new DatasetFolder().withName("h")) - .withLocation(new DatasetLocation().withFolderPath("dataybydhui") - .withFileName("dataouwudhuaorh") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withSheetName("datajymgqbgcxhn") - .withSheetIndex("datagzxlermkmerghski") - .withRange("datanpupkcbkfuk") - .withFirstRowAsHeader("datajqnvtsdyd") - .withCompression(new DatasetCompression().withType("datakpafyaloowwziz") - .withLevel("datayuf") - .withAdditionalProperties(mapOf())) - .withNullValue("dataujqbbgsimwejl"); - model = BinaryData.fromObject(model).toObject(ExcelDataset.class); - Assertions.assertEquals("kbpjzobdwbcpra", model.description()); - Assertions.assertEquals("kivdwgtqcume", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vzjyielb").type()); - Assertions.assertEquals("h", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java deleted file mode 100644 index de7131ecc7ac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExcelDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class ExcelDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datanthropmdudsyiu\",\"fileName\":\"datatvktjhffecqko\",\"\":{\"hfdyldhgye\":\"datauergaghpuzxkpye\",\"iyuq\":\"datazfz\",\"pjlwyxe\":\"datatdereunokakzw\"}},\"sheetName\":\"datanmxrfomckewvmyi\",\"sheetIndex\":\"datapx\",\"range\":\"datajt\",\"firstRowAsHeader\":\"datayzoutxfptofh\",\"compression\":{\"type\":\"datauywezygvadg\",\"level\":\"dataqwvkgjpytpmpv\",\"\":{\"k\":\"datagehlufbortbnu\",\"bx\":\"dataaxzs\"}},\"nullValue\":\"datajisskob\"}") - .toObject(ExcelDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDatasetTypeProperties model = new ExcelDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datanthropmdudsyiu") - .withFileName("datatvktjhffecqko") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withSheetName("datanmxrfomckewvmyi") - .withSheetIndex("datapx") - .withRange("datajt") - .withFirstRowAsHeader("datayzoutxfptofh") - .withCompression(new DatasetCompression().withType("datauywezygvadg") - .withLevel("dataqwvkgjpytpmpv") - .withAdditionalProperties(mapOf())) - .withNullValue("datajisskob"); - model = BinaryData.fromObject(model).toObject(ExcelDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java deleted file mode 100644 index 66c1db347f80..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExcelSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ExcelSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelSource model = BinaryData.fromString( - "{\"type\":\"ExcelSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datadvhokxxfawhoos\",\"disableMetricsCollection\":\"dataolhhvmfoejbgi\",\"\":{\"fie\":\"datapelnud\",\"jllfgmdoaihl\":\"dataxxorsdvuirqfk\",\"cv\":\"datarsqcivmirybwga\"}},\"additionalColumns\":\"datay\",\"sourceRetryCount\":\"datamazgtbyn\",\"sourceRetryWait\":\"datahcawexgeqojzvu\",\"maxConcurrentConnections\":\"dataxkojjp\",\"disableMetricsCollection\":\"dataobuovsvwnpcxdk\",\"\":{\"devotucnzbpocum\":\"dataparyubnyhmlp\",\"t\":\"dataz\"}}") - .toObject(ExcelSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelSource model = new ExcelSource().withSourceRetryCount("datamazgtbyn") - .withSourceRetryWait("datahcawexgeqojzvu") - .withMaxConcurrentConnections("dataxkojjp") - .withDisableMetricsCollection("dataobuovsvwnpcxdk") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datadvhokxxfawhoos") - .withDisableMetricsCollection("dataolhhvmfoejbgi") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("datay"); - model = BinaryData.fromObject(model).toObject(ExcelSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java deleted file mode 100644 index 844e22cc531c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; - -public final class ExecuteDataFlowActivityTypePropertiesComputeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteDataFlowActivityTypePropertiesCompute model - = BinaryData.fromString("{\"computeType\":\"datanma\",\"coreCount\":\"datasuqarmijuldojo\"}") - .toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivityTypePropertiesCompute model - = new ExecuteDataFlowActivityTypePropertiesCompute().withComputeType("datanma") - .withCoreCount("datasuqarmijuldojo"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java deleted file mode 100644 index 6737a684c02f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivityPolicy; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivityPolicy model = BinaryData.fromString( - "{\"secureInput\":false,\"\":{\"rbmfobtmljobg\":\"dataqgwvxwqqmv\",\"hebyc\":\"dataoyownygbralc\",\"dp\":\"datawegt\"}}") - .toObject(ExecutePipelineActivityPolicy.class); - Assertions.assertEquals(false, model.secureInput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivityPolicy model - = new ExecutePipelineActivityPolicy().withSecureInput(false).withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivityPolicy.class); - Assertions.assertEquals(false, model.secureInput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java deleted file mode 100644 index 32e8aa78d46f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivity; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivityPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivity model = BinaryData.fromString( - "{\"type\":\"ExecutePipeline\",\"policy\":{\"secureInput\":false,\"\":{\"bwpdvedm\":\"datascmfnk\",\"onkfb\":\"datackbgxgykxszet\",\"szn\":\"datawfkczldepz\"}},\"typeProperties\":{\"pipeline\":{\"referenceName\":\"wdcisceiauoy\",\"name\":\"dnxawf\"},\"parameters\":{\"xjiz\":\"datambvccuikpavi\",\"tltcrtmebrssrl\":\"datajsuiou\"},\"waitOnCompletion\":false},\"name\":\"qpth\",\"description\":\"j\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"nsogdvhqqxggncg\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"brhkdemax\":\"dataxcjqrvpgukscr\",\"gkcac\":\"dataaj\",\"jgageyxajk\":\"datas\",\"gfxwynzbeemlsrtg\":\"datazkzprjqb\"}},{\"activity\":\"gcmutuk\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"fdrxy\":\"dataufuhbdm\",\"tpdxpoxogvpsmx\":\"datajjqctqvbahii\",\"aqpwxuyik\":\"datachnhj\"}},{\"activity\":\"mlplqgp\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Skipped\",\"Succeeded\"],\"\":{\"zhi\":\"datakvnlvwtslzblgv\"}},{\"activity\":\"xiyqwlx\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Failed\"],\"\":{\"edz\":\"datatn\",\"nmcaprxhixmybl\":\"dataovt\"}}],\"userProperties\":[{\"name\":\"u\",\"value\":\"dataaggkrumpunw\"},{\"name\":\"fyvhcbo\",\"value\":\"datapxh\"},{\"name\":\"hi\",\"value\":\"datawvhjdrvjktv\"}],\"\":{\"isew\":\"datanooytils\",\"zgluqacebcnhz\":\"dataljmmoquic\",\"lvwkgcpfz\":\"datasaumjuruspflv\"}}") - .toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("qpth", model.name()); - Assertions.assertEquals("j", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("nsogdvhqqxggncg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("u", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals("wdcisceiauoy", model.pipeline().referenceName()); - Assertions.assertEquals("dnxawf", model.pipeline().name()); - Assertions.assertEquals(false, model.waitOnCompletion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivity model - = new ExecutePipelineActivity().withName("qpth") - .withDescription("j") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("nsogdvhqqxggncg") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gcmutuk") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mlplqgp") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xiyqwlx") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("u").withValue("dataaggkrumpunw"), - new UserProperty().withName("fyvhcbo").withValue("datapxh"), - new UserProperty().withName("hi").withValue("datawvhjdrvjktv"))) - .withPolicy( - new ExecutePipelineActivityPolicy().withSecureInput(false).withAdditionalProperties(mapOf())) - .withPipeline(new PipelineReference().withReferenceName("wdcisceiauoy").withName("dnxawf")) - .withParameters(mapOf("xjiz", "datambvccuikpavi", "tltcrtmebrssrl", "datajsuiou")) - .withWaitOnCompletion(false); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("qpth", model.name()); - Assertions.assertEquals("j", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("nsogdvhqqxggncg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("u", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals("wdcisceiauoy", model.pipeline().referenceName()); - Assertions.assertEquals("dnxawf", model.pipeline().name()); - Assertions.assertEquals(false, model.waitOnCompletion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java deleted file mode 100644 index 8e5d699b3a48..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePipelineActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivityTypeProperties model = BinaryData.fromString( - "{\"pipeline\":{\"referenceName\":\"az\",\"name\":\"xvksqifrgmid\"},\"parameters\":{\"l\":\"datardglecmeg\",\"ryhztwxuizakejo\":\"datadlt\",\"gqezgbqiiweoa\":\"datajnlxjhrzgnfqq\"},\"waitOnCompletion\":true}") - .toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("az", model.pipeline().referenceName()); - Assertions.assertEquals("xvksqifrgmid", model.pipeline().name()); - Assertions.assertEquals(true, model.waitOnCompletion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivityTypeProperties model = new ExecutePipelineActivityTypeProperties() - .withPipeline(new PipelineReference().withReferenceName("az").withName("xvksqifrgmid")) - .withParameters( - mapOf("l", "datardglecmeg", "ryhztwxuizakejo", "datadlt", "gqezgbqiiweoa", "datajnlxjhrzgnfqq")) - .withWaitOnCompletion(true); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("az", model.pipeline().referenceName()); - Assertions.assertEquals("xvksqifrgmid", model.pipeline().name()); - Assertions.assertEquals(true, model.waitOnCompletion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java deleted file mode 100644 index 349fb1ac4c5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecutionActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutionActivity model = BinaryData.fromString( - "{\"type\":\"Execution\",\"linkedServiceName\":{\"referenceName\":\"behv\",\"parameters\":{\"zgnyfhqyli\":\"datahltnds\",\"eninaf\":\"datagnbhz\",\"tzkcol\":\"dataagaocv\"}},\"policy\":{\"timeout\":\"dataspqvxzicurufn\",\"retry\":\"databvdl\",\"retryIntervalInSeconds\":1565631474,\"secureInput\":true,\"secureOutput\":false,\"\":{\"xranbtqej\":\"dataenvxuhz\",\"ajbcbrtiqpjlakam\":\"dataqghgadrvxbcye\",\"icrqxqjzmosmlhc\":\"datadql\",\"pkpmdlt\":\"datapfgtnsxdjhztn\"}},\"name\":\"mfhde\",\"description\":\"iaaiqyxlromxpe\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"acbtyorlrda\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"ygj\":\"databbaxnym\"}}],\"userProperties\":[{\"name\":\"kakgwlqzn\",\"value\":\"databsdgyheyayktutf\"},{\"name\":\"hegoxef\",\"value\":\"dataahmdco\"}],\"\":{\"ihkhjldw\":\"datawgzszjqzmqjhg\",\"bjvmdkgvu\":\"datadqtjhtgnc\"}}") - .toObject(ExecutionActivity.class); - Assertions.assertEquals("mfhde", model.name()); - Assertions.assertEquals("iaaiqyxlromxpe", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("acbtyorlrda", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kakgwlqzn", model.userProperties().get(0).name()); - Assertions.assertEquals("behv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1565631474, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutionActivity model = new ExecutionActivity().withName("mfhde") - .withDescription("iaaiqyxlromxpe") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("acbtyorlrda") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("kakgwlqzn").withValue("databsdgyheyayktutf"), - new UserProperty().withName("hegoxef").withValue("dataahmdco"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("behv") - .withParameters(mapOf("zgnyfhqyli", "datahltnds", "eninaf", "datagnbhz", "tzkcol", "dataagaocv"))) - .withPolicy(new ActivityPolicy().withTimeout("dataspqvxzicurufn") - .withRetry("databvdl") - .withRetryIntervalInSeconds(1565631474) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ExecutionActivity.class); - Assertions.assertEquals("mfhde", model.name()); - Assertions.assertEquals("iaaiqyxlromxpe", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("acbtyorlrda", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kakgwlqzn", model.userProperties().get(0).name()); - Assertions.assertEquals("behv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1565631474, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java deleted file mode 100644 index b1fce8873d7a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExportSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ExportSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExportSettings model = BinaryData.fromString( - "{\"type\":\"ExportSettings\",\"\":{\"bf\":\"datandwoyqvcyqjjxhi\",\"birhgjmphyacd\":\"datayuhoxulevp\",\"hljtkuyvytfuq\":\"datajmpnvgkxs\",\"kf\":\"datastqbxpyfawkjei\"}}") - .toObject(ExportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportSettings model = new ExportSettings().withAdditionalProperties(mapOf("type", "ExportSettings")); - model = BinaryData.fromObject(model).toObject(ExportSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java deleted file mode 100644 index d84f84957610..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ExposureControlBatchRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlBatchRequest model = BinaryData - .fromString("{\"exposureControlRequests\":[{\"featureName\":\"fbuhfmvfaxkffe\",\"featureType\":\"th\"}]}") - .toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("fbuhfmvfaxkffe", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("th", model.exposureControlRequests().get(0).featureType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlBatchRequest model = new ExposureControlBatchRequest().withExposureControlRequests( - Arrays.asList(new ExposureControlRequest().withFeatureName("fbuhfmvfaxkffe").withFeatureType("th"))); - model = BinaryData.fromObject(model).toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("fbuhfmvfaxkffe", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("th", model.exposureControlRequests().get(0).featureType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java deleted file mode 100644 index c5db19883a28..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import java.util.Arrays; - -public final class ExposureControlBatchResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlBatchResponseInner model = BinaryData.fromString( - "{\"exposureControlResponses\":[{\"featureName\":\"ez\",\"value\":\"shxmzsbbzoggigrx\"},{\"featureName\":\"ur\",\"value\":\"xxjnspydptk\"}]}") - .toObject(ExposureControlBatchResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlBatchResponseInner model = new ExposureControlBatchResponseInner().withExposureControlResponses( - Arrays.asList(new ExposureControlResponseInner(), new ExposureControlResponseInner())); - model = BinaryData.fromObject(model).toObject(ExposureControlBatchResponseInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java deleted file mode 100644 index a33d034da583..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import org.junit.jupiter.api.Assertions; - -public final class ExposureControlRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlRequest model - = BinaryData.fromString("{\"featureName\":\"mvxi\",\"featureType\":\"uugidyjrrfby\"}") - .toObject(ExposureControlRequest.class); - Assertions.assertEquals("mvxi", model.featureName()); - Assertions.assertEquals("uugidyjrrfby", model.featureType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlRequest model - = new ExposureControlRequest().withFeatureName("mvxi").withFeatureType("uugidyjrrfby"); - model = BinaryData.fromObject(model).toObject(ExposureControlRequest.class); - Assertions.assertEquals("mvxi", model.featureName()); - Assertions.assertEquals("uugidyjrrfby", model.featureType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java deleted file mode 100644 index dec1e0d826d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; - -public final class ExposureControlResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlResponseInner model - = BinaryData.fromString("{\"featureName\":\"svexcsonpclhoco\",\"value\":\"lkevle\"}") - .toObject(ExposureControlResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlResponseInner model = new ExposureControlResponseInner(); - model = BinaryData.fromObject(model).toObject(ExposureControlResponseInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java deleted file mode 100644 index 83957af39966..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ExposureControlsGetFeatureValueByFactoryWithResponseMockTests { - @Test - public void testGetFeatureValueByFactoryWithResponse() throws Exception { - String responseStr = "{\"featureName\":\"zlvmx\",\"value\":\"pcnm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ExposureControlResponse response = manager.exposureControls() - .getFeatureValueByFactoryWithResponse("stqsrtzgvwhj", "uoipstvcqh", - new ExposureControlRequest().withFeatureName("j").withFeatureType("okhlopygrsvyjrq"), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueWithResponseMockTests.java deleted file mode 100644 index d11564d80438..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ExposureControlsGetFeatureValueWithResponseMockTests { - @Test - public void testGetFeatureValueWithResponse() throws Exception { - String responseStr = "{\"featureName\":\"cdvwnpt\",\"value\":\"iqeaugidsz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ExposureControlResponse response = manager.exposureControls() - .getFeatureValueWithResponse("iafgbfkmqhzjsh", - new ExposureControlRequest().withFeatureName("jnrjr").withFeatureType("ksleurjynezpew"), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests.java deleted file mode 100644 index efd878459258..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchResponse; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests { - @Test - public void testQueryFeatureValuesByFactoryWithResponse() throws Exception { - String responseStr - = "{\"exposureControlResponses\":[{\"featureName\":\"tchigubsidwgy\",\"value\":\"ppefsdoodcmjfiey\"},{\"featureName\":\"npqtwohfhscke\",\"value\":\"m\"},{\"featureName\":\"goaxtwtkkmuir\",\"value\":\"oaxstqqjq\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ExposureControlBatchResponse response = manager.exposureControls() - .queryFeatureValuesByFactoryWithResponse("syzk", "entiprriqwf", - new ExposureControlBatchRequest().withExposureControlRequests(Arrays.asList( - new ExposureControlRequest().withFeatureName("dyingrcjoycqndg").withFeatureType("tzytesz"))), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java deleted file mode 100644 index 7f25808298d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Expression; -import org.junit.jupiter.api.Assertions; - -public final class ExpressionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Expression model = BinaryData.fromString("{\"value\":\"ywmhmptyrilkfbnr\"}").toObject(Expression.class); - Assertions.assertEquals("ywmhmptyrilkfbnr", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Expression model = new Expression().withValue("ywmhmptyrilkfbnr"); - model = BinaryData.fromObject(model).toObject(Expression.class); - Assertions.assertEquals("ywmhmptyrilkfbnr", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.java deleted file mode 100644 index 14a6e1168be6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExpressionV2; -import com.azure.resourcemanager.datafactory.models.ExpressionV2Type; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ExpressionV2Tests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExpressionV2 model = BinaryData.fromString( - "{\"type\":\"Binary\",\"value\":\"cvkmedrkolpneb\",\"operators\":[\"fvkskjd\",\"djxvcxepjfxcmrhi\"],\"operands\":[{\"type\":\"Binary\",\"value\":\"etflirbvqkbxg\",\"operators\":[\"inyursqf\",\"rz\",\"yxmfipvg\"],\"operands\":[{\"type\":\"Field\",\"value\":\"f\",\"operators\":[\"xa\",\"xvftllsu\"],\"operands\":[{},{},{}]}]}]}") - .toObject(ExpressionV2.class); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.type()); - Assertions.assertEquals("cvkmedrkolpneb", model.value()); - Assertions.assertEquals("fvkskjd", model.operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.operands().get(0).type()); - Assertions.assertEquals("etflirbvqkbxg", model.operands().get(0).value()); - Assertions.assertEquals("inyursqf", model.operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.operands().get(0).operands().get(0).type()); - Assertions.assertEquals("f", model.operands().get(0).operands().get(0).value()); - Assertions.assertEquals("xa", model.operands().get(0).operands().get(0).operators().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExpressionV2 model = new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("cvkmedrkolpneb") - .withOperators(Arrays.asList("fvkskjd", "djxvcxepjfxcmrhi")) - .withOperands(Arrays.asList(new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("etflirbvqkbxg") - .withOperators(Arrays.asList("inyursqf", "rz", "yxmfipvg")) - .withOperands(Arrays.asList(new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("f") - .withOperators(Arrays.asList("xa", "xvftllsu")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), new ExpressionV2())))))); - model = BinaryData.fromObject(model).toObject(ExpressionV2.class); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.type()); - Assertions.assertEquals("cvkmedrkolpneb", model.value()); - Assertions.assertEquals("fvkskjd", model.operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.operands().get(0).type()); - Assertions.assertEquals("etflirbvqkbxg", model.operands().get(0).value()); - Assertions.assertEquals("inyursqf", model.operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.operands().get(0).operands().get(0).type()); - Assertions.assertEquals("f", model.operands().get(0).operands().get(0).value()); - Assertions.assertEquals("xa", model.operands().get(0).operands().get(0).operators().get(0)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index cceb883fb550..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class FactoriesDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.factories().deleteByResourceGroupWithResponse("pnt", "pgwriyxyelzm", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java deleted file mode 100644 index eb99f85430f5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryIdentityType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FactoryIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryIdentity model = BinaryData.fromString( - "{\"type\":\"SystemAssigned\",\"principalId\":\"2ffd519b-7921-43a8-b545-158a4038b111\",\"tenantId\":\"8fa182c0-3361-4b09-a470-d687353b1a2c\",\"userAssignedIdentities\":{\"qjpkcattpngjcrc\":\"dataleyyvx\"}}") - .toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryIdentity model = new FactoryIdentity().withType(FactoryIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("qjpkcattpngjcrc", "dataleyyvx")); - model = BinaryData.fromObject(model).toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java deleted file mode 100644 index f2c5e67cc70b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class FactoryRepoConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryRepoConfiguration model = BinaryData.fromString( - "{\"type\":\"FactoryRepoConfiguration\",\"accountName\":\"o\",\"repositoryName\":\"rq\",\"collaborationBranch\":\"b\",\"rootFolder\":\"oczvy\",\"lastCommitId\":\"qrvkdv\",\"disablePublish\":false}") - .toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("o", model.accountName()); - Assertions.assertEquals("rq", model.repositoryName()); - Assertions.assertEquals("b", model.collaborationBranch()); - Assertions.assertEquals("oczvy", model.rootFolder()); - Assertions.assertEquals("qrvkdv", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoConfiguration model = new FactoryRepoConfiguration().withAccountName("o") - .withRepositoryName("rq") - .withCollaborationBranch("b") - .withRootFolder("oczvy") - .withLastCommitId("qrvkdv") - .withDisablePublish(false); - model = BinaryData.fromObject(model).toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("o", model.accountName()); - Assertions.assertEquals("rq", model.repositoryName()); - Assertions.assertEquals("b", model.collaborationBranch()); - Assertions.assertEquals("oczvy", model.rootFolder()); - Assertions.assertEquals("qrvkdv", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java deleted file mode 100644 index 97fe44a9e3db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import org.junit.jupiter.api.Assertions; - -public final class FactoryRepoUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryRepoUpdate model = BinaryData.fromString( - "{\"factoryResourceId\":\"qzbqjvsov\",\"repoConfiguration\":{\"type\":\"FactoryRepoConfiguration\",\"accountName\":\"okacspk\",\"repositoryName\":\"lhzdobp\",\"collaborationBranch\":\"jmflbvvnch\",\"rootFolder\":\"kcciwwzjuqkhr\",\"lastCommitId\":\"jiwkuofoskghsau\",\"disablePublish\":true}}") - .toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("qzbqjvsov", model.factoryResourceId()); - Assertions.assertEquals("okacspk", model.repoConfiguration().accountName()); - Assertions.assertEquals("lhzdobp", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("jmflbvvnch", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("kcciwwzjuqkhr", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("jiwkuofoskghsau", model.repoConfiguration().lastCommitId()); - Assertions.assertEquals(true, model.repoConfiguration().disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoUpdate model = new FactoryRepoUpdate().withFactoryResourceId("qzbqjvsov") - .withRepoConfiguration(new FactoryRepoConfiguration().withAccountName("okacspk") - .withRepositoryName("lhzdobp") - .withCollaborationBranch("jmflbvvnch") - .withRootFolder("kcciwwzjuqkhr") - .withLastCommitId("jiwkuofoskghsau") - .withDisablePublish(true)); - model = BinaryData.fromObject(model).toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("qzbqjvsov", model.factoryResourceId()); - Assertions.assertEquals("okacspk", model.repoConfiguration().accountName()); - Assertions.assertEquals("lhzdobp", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("jmflbvvnch", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("kcciwwzjuqkhr", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("jiwkuofoskghsau", model.repoConfiguration().lastCommitId()); - Assertions.assertEquals(true, model.repoConfiguration().disablePublish()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java deleted file mode 100644 index 29d81cfbfb39..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryIdentityType; -import com.azure.resourcemanager.datafactory.models.FactoryUpdateParameters; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FactoryUpdateParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryUpdateParameters model = BinaryData.fromString( - "{\"tags\":{\"bldngkpoc\":\"kouknvudwtiu\",\"npiucgygevqznty\":\"pazyxoegukg\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"b08cd623-dce9-4dbd-aa8f-5d12b6dd3164\",\"tenantId\":\"6abb9869-8693-4fa2-a0f8-ca0839cfe7a3\",\"userAssignedIdentities\":{\"r\":\"datac\",\"dpydn\":\"dataj\",\"sjttgzfbish\":\"datayhxdeoejzicwi\",\"jdeyeamdpha\":\"databkh\"}},\"properties\":{\"publicNetworkAccess\":\"Disabled\"}}") - .toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("kouknvudwtiu", model.tags().get("bldngkpoc")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryUpdateParameters model = new FactoryUpdateParameters() - .withTags(mapOf("bldngkpoc", "kouknvudwtiu", "npiucgygevqznty", "pazyxoegukg")) - .withIdentity(new FactoryIdentity().withType(FactoryIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("r", "datac", "dpydn", "dataj", "sjttgzfbish", "datayhxdeoejzicwi", - "jdeyeamdpha", "databkh"))) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("kouknvudwtiu", model.tags().get("bldngkpoc")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java deleted file mode 100644 index 3f0fc96403a5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryUpdateProperties; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import org.junit.jupiter.api.Assertions; - -public final class FactoryUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryUpdateProperties model - = BinaryData.fromString("{\"publicNetworkAccess\":\"Disabled\"}").toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryUpdateProperties model - = new FactoryUpdateProperties().withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java deleted file mode 100644 index a5a3a6391f5c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class FactoryVstsConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryVstsConfiguration model = BinaryData.fromString( - "{\"type\":\"FactoryVSTSConfiguration\",\"projectName\":\"tnkjjwgcwnphb\",\"tenantId\":\"fyrtogmhmjp\",\"accountName\":\"scdfpdqw\",\"repositoryName\":\"ygevgwmseharx\",\"collaborationBranch\":\"fv\",\"rootFolder\":\"n\",\"lastCommitId\":\"tmbpjp\",\"disablePublish\":true}") - .toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("scdfpdqw", model.accountName()); - Assertions.assertEquals("ygevgwmseharx", model.repositoryName()); - Assertions.assertEquals("fv", model.collaborationBranch()); - Assertions.assertEquals("n", model.rootFolder()); - Assertions.assertEquals("tmbpjp", model.lastCommitId()); - Assertions.assertEquals(true, model.disablePublish()); - Assertions.assertEquals("tnkjjwgcwnphb", model.projectName()); - Assertions.assertEquals("fyrtogmhmjp", model.tenantId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryVstsConfiguration model = new FactoryVstsConfiguration().withAccountName("scdfpdqw") - .withRepositoryName("ygevgwmseharx") - .withCollaborationBranch("fv") - .withRootFolder("n") - .withLastCommitId("tmbpjp") - .withDisablePublish(true) - .withProjectName("tnkjjwgcwnphb") - .withTenantId("fyrtogmhmjp"); - model = BinaryData.fromObject(model).toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("scdfpdqw", model.accountName()); - Assertions.assertEquals("ygevgwmseharx", model.repositoryName()); - Assertions.assertEquals("fv", model.collaborationBranch()); - Assertions.assertEquals("n", model.rootFolder()); - Assertions.assertEquals("tmbpjp", model.lastCommitId()); - Assertions.assertEquals(true, model.disablePublish()); - Assertions.assertEquals("tnkjjwgcwnphb", model.projectName()); - Assertions.assertEquals("fyrtogmhmjp", model.tenantId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java deleted file mode 100644 index 50d2d37ffe58..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerLocation; - -public final class FileServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerLocation model = BinaryData.fromString( - "{\"type\":\"FileServerLocation\",\"folderPath\":\"datapxmib\",\"fileName\":\"datanupoyryefqmwovyz\",\"\":{\"kutnjillukkrehy\":\"datanomfpbjceegvyiez\",\"xfaryrvj\":\"datatmjoduifvu\"}}") - .toObject(FileServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerLocation model - = new FileServerLocation().withFolderPath("datapxmib").withFileName("datanupoyryefqmwovyz"); - model = BinaryData.fromObject(model).toObject(FileServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java deleted file mode 100644 index 454380313218..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerReadSettings; - -public final class FileServerReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerReadSettings model = BinaryData.fromString( - "{\"type\":\"FileServerReadSettings\",\"recursive\":\"dataiyujn\",\"wildcardFolderPath\":\"datawjxmwalhlj\",\"wildcardFileName\":\"datasnbpiuvqhodfm\",\"fileListPath\":\"datatrsnpbsungnjkkm\",\"enablePartitionDiscovery\":\"datafbjuc\",\"partitionRootPath\":\"datagzjyrdiiwhmrhz\",\"deleteFilesAfterCompletion\":\"datavpjydwmaqeytjp\",\"modifiedDatetimeStart\":\"datadp\",\"modifiedDatetimeEnd\":\"datapdcsvzugiurhgqlv\",\"fileFilter\":\"datajzscrjtnq\",\"maxConcurrentConnections\":\"datapobjufksddxk\",\"disableMetricsCollection\":\"datawxlylxfpvoylf\",\"\":{\"ime\":\"datarguecbthauivg\"}}") - .toObject(FileServerReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerReadSettings model = new FileServerReadSettings().withMaxConcurrentConnections("datapobjufksddxk") - .withDisableMetricsCollection("datawxlylxfpvoylf") - .withRecursive("dataiyujn") - .withWildcardFolderPath("datawjxmwalhlj") - .withWildcardFileName("datasnbpiuvqhodfm") - .withFileListPath("datatrsnpbsungnjkkm") - .withEnablePartitionDiscovery("datafbjuc") - .withPartitionRootPath("datagzjyrdiiwhmrhz") - .withDeleteFilesAfterCompletion("datavpjydwmaqeytjp") - .withModifiedDatetimeStart("datadp") - .withModifiedDatetimeEnd("datapdcsvzugiurhgqlv") - .withFileFilter("datajzscrjtnq"); - model = BinaryData.fromObject(model).toObject(FileServerReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.java deleted file mode 100644 index 9f1117663605..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class FileServerWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerWriteSettings model = BinaryData.fromString( - "{\"type\":\"FileServerWriteSettings\",\"maxConcurrentConnections\":\"dataeegzhhfnaqc\",\"disableMetricsCollection\":\"datapcklowuthfwphn\",\"copyBehavior\":\"datalbljehw\",\"metadata\":[{\"name\":\"dataofneaqahz\",\"value\":\"datanapxhtqwsd\"},{\"name\":\"dataaovubfl\",\"value\":\"datakeub\"},{\"name\":\"dataibuabpvdwhvn\",\"value\":\"databu\"},{\"name\":\"datadkqo\",\"value\":\"dataukvink\"}],\"\":{\"fhdyasklmy\":\"datazqbo\",\"awljatvfddq\":\"datahclxwede\"}}") - .toObject(FileServerWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerWriteSettings model = new FileServerWriteSettings().withMaxConcurrentConnections("dataeegzhhfnaqc") - .withDisableMetricsCollection("datapcklowuthfwphn") - .withCopyBehavior("datalbljehw") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataofneaqahz").withValue("datanapxhtqwsd"), - new MetadataItem().withName("dataaovubfl").withValue("datakeub"), - new MetadataItem().withName("dataibuabpvdwhvn").withValue("databu"), - new MetadataItem().withName("datadkqo").withValue("dataukvink"))); - model = BinaryData.fromObject(model).toObject(FileServerWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java deleted file mode 100644 index 9c2adb494279..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.FileShareDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FileShareDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareDataset model = BinaryData.fromString( - "{\"type\":\"FileShare\",\"typeProperties\":{\"folderPath\":\"dataeyobqaj\",\"fileName\":\"datairv\",\"modifiedDatetimeStart\":\"datarvkgpogplbjuvl\",\"modifiedDatetimeEnd\":\"dataxnrnjh\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"dataegesbxne\",\"deserializer\":\"datamjmoplu\",\"\":{\"mwqpdkesjqbzkqm\":\"datakkfhsovadkrmj\",\"tspzjnrr\":\"datavporiwbwggi\",\"htrgz\":\"dataikwsbzrhdugq\",\"jfhrjhiycbause\":\"dataru\"}},\"fileFilter\":\"dataczkvihvtuw\",\"compression\":{\"type\":\"datasqwzszoszjgzu\",\"level\":\"datafnyskwwu\",\"\":{\"slhip\":\"dataczavoj\",\"vchyluqalpcufj\":\"dataukvbljpxpr\",\"tiztqds\":\"dataf\"}}},\"description\":\"h\",\"structure\":\"datasaaxxsrit\",\"schema\":\"datawbaaes\",\"linkedServiceName\":{\"referenceName\":\"yefmxwoqotii\",\"parameters\":{\"sty\":\"datapasrvrmt\",\"k\":\"datakjhorlxkpy\",\"b\":\"datannycntrqxxwtd\",\"oxtdyqavfx\":\"datajtsuhqh\"}},\"parameters\":{\"bgh\":{\"type\":\"SecureString\",\"defaultValue\":\"datasyaksinpaamih\"},\"iys\":{\"type\":\"Array\",\"defaultValue\":\"datagpbgchcgsfzhbj\"},\"sgw\":{\"type\":\"SecureString\",\"defaultValue\":\"datasdjpgxe\"},\"f\":{\"type\":\"Int\",\"defaultValue\":\"dataferznzcbivoveomk\"}},\"annotations\":[\"dataooplfpohim\",\"datackycjpeebzn\"],\"folder\":{\"name\":\"xsuloutnpb\"},\"\":{\"cdmwk\":\"dataoqohgp\",\"sl\":\"dataupf\"}}") - .toObject(FileShareDataset.class); - Assertions.assertEquals("h", model.description()); - Assertions.assertEquals("yefmxwoqotii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("bgh").type()); - Assertions.assertEquals("xsuloutnpb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDataset model = new FileShareDataset().withDescription("h") - .withStructure("datasaaxxsrit") - .withSchema("datawbaaes") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("yefmxwoqotii") - .withParameters(mapOf("sty", "datapasrvrmt", "k", "datakjhorlxkpy", "b", "datannycntrqxxwtd", - "oxtdyqavfx", "datajtsuhqh"))) - .withParameters(mapOf("bgh", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datasyaksinpaamih"), - "iys", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datagpbgchcgsfzhbj"), - "sgw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datasdjpgxe"), "f", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataferznzcbivoveomk"))) - .withAnnotations(Arrays.asList("dataooplfpohim", "datackycjpeebzn")) - .withFolder(new DatasetFolder().withName("xsuloutnpb")) - .withFolderPath("dataeyobqaj") - .withFileName("datairv") - .withModifiedDatetimeStart("datarvkgpogplbjuvl") - .withModifiedDatetimeEnd("dataxnrnjh") - .withFormat(new DatasetStorageFormat().withSerializer("dataegesbxne") - .withDeserializer("datamjmoplu") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withFileFilter("dataczkvihvtuw") - .withCompression(new DatasetCompression().withType("datasqwzszoszjgzu") - .withLevel("datafnyskwwu") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(FileShareDataset.class); - Assertions.assertEquals("h", model.description()); - Assertions.assertEquals("yefmxwoqotii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("bgh").type()); - Assertions.assertEquals("xsuloutnpb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java deleted file mode 100644 index d340ff6ea065..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FileShareDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class FileShareDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"datadzauiunyev\",\"fileName\":\"datazdsytciks\",\"modifiedDatetimeStart\":\"datacamwuynfxkcgs\",\"modifiedDatetimeEnd\":\"datamvhadrpbatvy\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datajqkqws\",\"deserializer\":\"datatvjkowggxawwdm\",\"\":{\"g\":\"datankteiidlbovwbclp\",\"kjcnerek\":\"datagani\",\"gpwxtvce\":\"datajulskwwnqhql\",\"vxwve\":\"dataavv\"}},\"fileFilter\":\"datanlrjcsmwevguyfln\",\"compression\":{\"type\":\"datalr\",\"level\":\"datafzcde\",\"\":{\"csfqbirtybce\":\"datawezhyfkdilbwqlq\",\"dvuelumodpegqxso\":\"datafjnxodnjyhzfaxs\",\"hlbeqvhs\":\"datachazrqoxz\"}}}") - .toObject(FileShareDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDatasetTypeProperties model = new FileShareDatasetTypeProperties().withFolderPath("datadzauiunyev") - .withFileName("datazdsytciks") - .withModifiedDatetimeStart("datacamwuynfxkcgs") - .withModifiedDatetimeEnd("datamvhadrpbatvy") - .withFormat(new DatasetStorageFormat().withSerializer("datajqkqws") - .withDeserializer("datatvjkowggxawwdm") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withFileFilter("datanlrjcsmwevguyfln") - .withCompression( - new DatasetCompression().withType("datalr").withLevel("datafzcde").withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(FileShareDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java deleted file mode 100644 index c5adf2313178..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileSystemSink; - -public final class FileSystemSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileSystemSink model = BinaryData.fromString( - "{\"type\":\"FileSystemSink\",\"copyBehavior\":\"dataapgqx\",\"writeBatchSize\":\"databvwxyumqoqw\",\"writeBatchTimeout\":\"datab\",\"sinkRetryCount\":\"datayeigngrzvegxmx\",\"sinkRetryWait\":\"datahqxzewlwwdmp\",\"maxConcurrentConnections\":\"datacpccovzkwhdtf\",\"disableMetricsCollection\":\"datafctsfujdap\",\"\":{\"atexkwcolnae\":\"dataamgbnktgotddyd\",\"d\":\"datawsdyvahn\",\"mekgtkojrr\":\"datacpmvnzhdsa\"}}") - .toObject(FileSystemSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSink model = new FileSystemSink().withWriteBatchSize("databvwxyumqoqw") - .withWriteBatchTimeout("datab") - .withSinkRetryCount("datayeigngrzvegxmx") - .withSinkRetryWait("datahqxzewlwwdmp") - .withMaxConcurrentConnections("datacpccovzkwhdtf") - .withDisableMetricsCollection("datafctsfujdap") - .withCopyBehavior("dataapgqx"); - model = BinaryData.fromObject(model).toObject(FileSystemSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java deleted file mode 100644 index b1d5df3e4708..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileSystemSource; - -public final class FileSystemSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileSystemSource model = BinaryData.fromString( - "{\"type\":\"FileSystemSource\",\"recursive\":\"datamihgksqwzuosyyx\",\"additionalColumns\":\"datadxzudfar\",\"sourceRetryCount\":\"datayrdy\",\"sourceRetryWait\":\"datawgikpdpudqiwhvx\",\"maxConcurrentConnections\":\"datavpoeuufw\",\"disableMetricsCollection\":\"datadeffrbxzjedy\",\"\":{\"lnomqbdvjl\":\"datasxspnmfydphl\",\"lbpehvjpgllrhnlx\":\"dataf\",\"dchdsxvkmgppxz\":\"datatpgzybezmyjq\"}}") - .toObject(FileSystemSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSource model = new FileSystemSource().withSourceRetryCount("datayrdy") - .withSourceRetryWait("datawgikpdpudqiwhvx") - .withMaxConcurrentConnections("datavpoeuufw") - .withDisableMetricsCollection("datadeffrbxzjedy") - .withRecursive("datamihgksqwzuosyyx") - .withAdditionalColumns("datadxzudfar"); - model = BinaryData.fromObject(model).toObject(FileSystemSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java deleted file mode 100644 index 035886df0cfd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.FilterActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FilterActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FilterActivity model = BinaryData.fromString( - "{\"type\":\"Filter\",\"typeProperties\":{\"items\":{\"value\":\"ckhqooqniqv\"},\"condition\":{\"value\":\"qsudtmkmgc\"}},\"name\":\"pv\",\"description\":\"ngvpsuk\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"gf\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\",\"Skipped\"],\"\":{\"tjtiidozfrgvqurr\":\"dataekoxylcbp\",\"vohjg\":\"datanijdr\",\"lzsgpoiccbzqko\":\"dataoiikr\"}},{\"activity\":\"ja\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"ttpvtwgbf\":\"datakqnlzytazqsu\"}},{\"activity\":\"osdizpgcq\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Skipped\"],\"\":{\"lhetgwv\":\"datap\",\"oqhamr\":\"dataenmue\",\"oixiduzrdvhgyj\":\"datatrny\"}},{\"activity\":\"mbj\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\"],\"\":{\"zzym\":\"datalrungsolxlxl\",\"iudelm\":\"datazz\",\"yxaj\":\"databx\"}}],\"userProperties\":[{\"name\":\"cgxwa\",\"value\":\"datauudnygtsjafvzd\"}],\"\":{\"vbnmzjwh\":\"datahuzybmsyzz\"}}") - .toObject(FilterActivity.class); - Assertions.assertEquals("pv", model.name()); - Assertions.assertEquals("ngvpsuk", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cgxwa", model.userProperties().get(0).name()); - Assertions.assertEquals("ckhqooqniqv", model.items().value()); - Assertions.assertEquals("qsudtmkmgc", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivity model = new FilterActivity().withName("pv") - .withDescription("ngvpsuk") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ja") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("osdizpgcq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mbj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("cgxwa").withValue("datauudnygtsjafvzd"))) - .withItems(new Expression().withValue("ckhqooqniqv")) - .withCondition(new Expression().withValue("qsudtmkmgc")); - model = BinaryData.fromObject(model).toObject(FilterActivity.class); - Assertions.assertEquals("pv", model.name()); - Assertions.assertEquals("ngvpsuk", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cgxwa", model.userProperties().get(0).name()); - Assertions.assertEquals("ckhqooqniqv", model.items().value()); - Assertions.assertEquals("qsudtmkmgc", model.condition().value()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTypePropertiesTests.java deleted file mode 100644 index 57d38acd8eb0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTypePropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FilterActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Expression; -import org.junit.jupiter.api.Assertions; - -public final class FilterActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FilterActivityTypeProperties model - = BinaryData.fromString("{\"items\":{\"value\":\"bsgzewyfh\"},\"condition\":{\"value\":\"z\"}}") - .toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("bsgzewyfh", model.items().value()); - Assertions.assertEquals("z", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivityTypeProperties model - = new FilterActivityTypeProperties().withItems(new Expression().withValue("bsgzewyfh")) - .withCondition(new Expression().withValue("z")); - model = BinaryData.fromObject(model).toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("bsgzewyfh", model.items().value()); - Assertions.assertEquals("z", model.condition().value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java deleted file mode 100644 index 1da5be63072e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.Flowlet; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FlowletTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Flowlet model = BinaryData.fromString( - "{\"type\":\"Flowlet\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"cvgllixdg\",\"parameters\":{\"hu\":\"datagwewqkjvxprwpxso\"}},\"name\":\"xlcskltez\",\"description\":\"ggg\",\"dataset\":{\"referenceName\":\"fbgrdcgubsrt\",\"parameters\":{\"fcm\":\"datalperpilttjzgc\"}},\"linkedService\":{\"referenceName\":\"fbodetresrgvts\",\"parameters\":{\"ai\":\"dataft\",\"pdxxzetwwz\":\"datamuqkevzgjypanhx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tnxlkfhglhr\",\"datasetParameters\":\"datax\",\"parameters\":{\"elqxovppqi\":\"datacrsnhpc\",\"l\":\"dataukklvzrlr\"},\"\":{\"dsyenzsieuscpl\":\"dataetjsczivfqbqna\",\"itdshezsvkolru\":\"datayvdgxlyzk\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ovmozsayebraz\",\"parameters\":{\"kipfsdyepf\":\"datapzbtzuyk\",\"ztgaz\":\"dataocmbezacf\",\"okctgkppgkqzkc\":\"datayqejga\",\"cqvhoejgoiutgwrm\":\"datazmffngdyfcixrh\"}},\"name\":\"a\",\"description\":\"qha\",\"dataset\":{\"referenceName\":\"ntacih\",\"parameters\":{\"aqgrv\":\"datagmipnmliqmvlbhik\",\"dtsdfjy\":\"datapomxpu\",\"mpyzgleo\":\"dataesocwiqbuou\",\"bwwzvdajf\":\"datajsb\"}},\"linkedService\":{\"referenceName\":\"n\",\"parameters\":{\"jjrlhiqlwix\":\"dataaciq\",\"pg\":\"datatbouguxtnd\",\"alapdlndbe\":\"datattbas\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"kixvvlwy\",\"datasetParameters\":\"databb\",\"parameters\":{\"gzfeuzj\":\"datazfjmsp\",\"mi\":\"datajmphfkyezolgj\"},\"\":{\"iadhbatec\":\"datadoccnxshanzb\",\"wiinjdllw\":\"dataatsdohzniucbdaom\",\"g\":\"datatlepowavvqxua\",\"si\":\"dataqwulynkgfcfdru\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xtclhuulriqbyok\",\"parameters\":{\"cdjwsu\":\"databzsxebrslttfy\",\"holhujbfw\":\"dataardnagttpufpbpgn\",\"whdmcvhtbbz\":\"dataiplkysolsyjprxs\"}},\"name\":\"hfvhuwzbxpcqz\",\"description\":\"hotjec\",\"dataset\":{\"referenceName\":\"mx\",\"parameters\":{\"derltfokyksyim\":\"datarrskapbxwieexuy\",\"i\":\"dataccgrvkcxzznn\"}},\"linkedService\":{\"referenceName\":\"rsejegprkj\",\"parameters\":{\"wgxql\":\"datarjmwvvbtuqkxxi\",\"qfkyfhiwvjaqu\":\"dataekotjgxi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ynvskpajbmgeume\",\"datasetParameters\":\"datajbxcbccwkqmtxa\",\"parameters\":{\"ilg\":\"dataiscr\"},\"\":{\"uqimldahlfxl\":\"dataqrejdaa\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ifmuadjnfsncsk\",\"parameters\":{\"tlcgctjchfjvmy\":\"datashjgczetybnxg\",\"ebecuvlbefv\":\"dataj\"}},\"name\":\"cljkxpyl\",\"description\":\"oxz\",\"dataset\":{\"referenceName\":\"psyxjije\",\"parameters\":{\"wjxildfkcefeyg\":\"datavrbkerdkdkgaw\",\"jo\":\"dataq\"}},\"linkedService\":{\"referenceName\":\"fmn\",\"parameters\":{\"on\":\"datadjnxument\",\"xym\":\"datawhy\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"i\",\"datasetParameters\":\"datatowlhlsycoyb\",\"parameters\":{\"qwmchqohtfxc\":\"datasqubfajcywh\"},\"\":{\"wsmosao\":\"dataukiymjzpwdlvwt\",\"amppultassaekewn\":\"datahq\",\"jlcyizy\":\"datazeajbk\",\"e\":\"datadcvxodkrvfsxxby\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"gecpwgoljtzx\",\"parameters\":{\"pjxvazyjf\":\"datasdobygoogxq\",\"djnosdkvibf\":\"datacsa\",\"trnzpducdaaktu\":\"datasgm\",\"oimyfpqd\":\"dataktz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"kpp\",\"parameters\":{\"ffffg\":\"dataytfvpctfji\",\"ejjk\":\"datauhznwhvuldbk\"}},\"name\":\"igaw\",\"description\":\"zmxjqif\",\"dataset\":{\"referenceName\":\"jjsbcmlzaahzbhur\",\"parameters\":{\"ojusuzgfjzcva\":\"datakolirhh\",\"ahfxwccok\":\"dataxoia\",\"c\":\"dataxkukm\"}},\"linkedService\":{\"referenceName\":\"nuhhoqeqshav\",\"parameters\":{\"yrqolnthbbnkgz\":\"datak\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"drnzkjthf\",\"datasetParameters\":\"datayjncjm\",\"parameters\":{\"pfiddhl\":\"datayfj\",\"ocuselqk\":\"dataufzcqyjmqrfu\",\"sjmrkkhm\":\"datasazrhxuddqmdtff\",\"jawh\":\"datadmdlgyqixokw\"},\"\":{\"qdlcvmyolc\":\"datanqf\",\"tvsnvl\":\"dataymjc\",\"atuwqkokbc\":\"dataqdnzyza\",\"msn\":\"dataothymgobl\"}}},{\"schemaLinkedService\":{\"referenceName\":\"wimaaneakhtmh\",\"parameters\":{\"vkhgv\":\"datayanrfvq\",\"ymhcctopuo\":\"dataogxkfnaoa\",\"hquhczygxvhajp\":\"datayrnskb\",\"xqnwhscoz\":\"datae\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"mvgxsmpknpwir\",\"parameters\":{\"dnmckap\":\"datafewxqouox\",\"cdgmoqu\":\"datahknqiijge\",\"kyow\":\"dataqih\"}},\"name\":\"tjouwhldxwhi\",\"description\":\"roqksmfxm\",\"dataset\":{\"referenceName\":\"prstvkitbfj\",\"parameters\":{\"rqxw\":\"dataotnplfacqocc\",\"a\":\"datatjtdrhutfd\",\"eh\":\"datatxop\"}},\"linkedService\":{\"referenceName\":\"dkmdzgsszx\",\"parameters\":{\"rlsirnccla\":\"datakbbxuh\",\"suxxc\":\"datavoyn\",\"dsaidjanormovdxx\":\"databmyqjog\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tujmoil\",\"datasetParameters\":\"datawemhdee\",\"parameters\":{\"egrhrh\":\"datalkyozdsfzj\",\"xvgjbfi\":\"dataslejtvxj\"},\"\":{\"moxsa\":\"datanjodfcbjqqwmtq\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xej\",\"parameters\":{\"zsinqbdnddb\":\"datacywnfyszza\",\"jmyitrchwudl\":\"dataozsyvrm\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"eihtpmnoejh\",\"parameters\":{\"rfgxkyd\":\"datamsibzo\",\"hl\":\"datamypgfqvmty\",\"jpewpyjlfx\":\"datakxp\",\"qcrzgeuqxbpia\":\"datam\"}},\"name\":\"w\",\"description\":\"ujegqdtadra\",\"dataset\":{\"referenceName\":\"ddhjkr\",\"parameters\":{\"fpjbqggwe\":\"datazyhgsqtnqsktx\"}},\"linkedService\":{\"referenceName\":\"w\",\"parameters\":{\"bf\":\"datamnc\",\"dfb\":\"datauscstunmlh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"iichgjsysmvxodgw\",\"datasetParameters\":\"datakzsifcuvb\",\"parameters\":{\"ec\":\"datagcwx\"},\"\":{\"zagbbgiarksykp\":\"datajtrdxr\",\"cdosqkptj\":\"datadqxwabzrwiqrxhac\",\"d\":\"datagkifmmainwh\"}}},{\"schemaLinkedService\":{\"referenceName\":\"pbqwuntobu\",\"parameters\":{\"lw\":\"datazz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"ydjufbnklbl\",\"parameters\":{\"ytlbtlqhopxouvm\":\"dataegjwdabalfdxaglz\"}},\"name\":\"siflikyypzkgxf\",\"description\":\"myrqsdbpokszan\",\"dataset\":{\"referenceName\":\"wgpterdiuw\",\"parameters\":{\"tsdetjygowifcq\":\"datakskw\",\"gzyy\":\"dataolzkgys\",\"tvdxxhe\":\"datazoxlvoc\",\"zbwaybfmdafbgym\":\"datagmlilwzghjhjvmab\"}},\"linkedService\":{\"referenceName\":\"napreojxrjnbsco\",\"parameters\":{\"neychbjizq\":\"datavi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nwdxzedpqlrfbor\",\"datasetParameters\":\"datap\",\"parameters\":{\"pdjtaqh\":\"datafyzavfrbypicdb\"},\"\":{\"njhx\":\"dataazpdg\"}}}],\"transformations\":[{\"name\":\"hmgpczqulpt\",\"description\":\"vcpxtzhigqqbtimp\",\"dataset\":{\"referenceName\":\"blornsih\",\"parameters\":{\"fczmnn\":\"datadsmusuaawjakxwj\"}},\"linkedService\":{\"referenceName\":\"xyxvqban\",\"parameters\":{\"mgm\":\"datatgirnb\",\"p\":\"datadorgmynltw\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"foeajogsy\",\"datasetParameters\":\"dataetamfddrvlkpzwb\",\"parameters\":{\"edbiucvkhhwmjpjb\":\"dataecchdidrmuhkahm\",\"ppiybxv\":\"dataeunxcqrrihufoi\",\"bgk\":\"datanzuz\"},\"\":{\"nhdimjuktirz\":\"datacpiuzvk\",\"gpucdocfq\":\"dataa\"}}},{\"name\":\"lwgofm\",\"description\":\"wrjlvzkl\",\"dataset\":{\"referenceName\":\"bgikyjtkakvlbi\",\"parameters\":{\"ptuoska\":\"datavpz\",\"y\":\"dataizjixwfgcd\",\"mdmuqoh\":\"datakcxwnujvqynvavi\",\"wjc\":\"dataihraxqudd\"}},\"linkedService\":{\"referenceName\":\"brhlhpvzadb\",\"parameters\":{\"rmvzti\":\"dataninafhxrz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"viqlluk\",\"datasetParameters\":\"datarcqxgcbvzarmqc\",\"parameters\":{\"invagovjyhd\":\"datakst\",\"txnmxgnmguz\":\"dataxbrdvcehqwh\",\"kbd\":\"datauwvorbalkjn\",\"gxiynecovagzk\":\"datalltqstqkqs\"},\"\":{\"awzlzklaslgaciz\":\"databanlxunpqcckq\",\"jtighsxj\":\"dataxlrarwpewsaudo\",\"lahovuuwx\":\"dataytnkqb\"}}},{\"name\":\"mehjnhjioti\",\"description\":\"bbcngkeg\",\"dataset\":{\"referenceName\":\"y\",\"parameters\":{\"zox\":\"databfetwily\"}},\"linkedService\":{\"referenceName\":\"xql\",\"parameters\":{\"ewnahwkxjjmzt\":\"datalqownkiua\",\"dhdyswcrptveaj\":\"datalmsoodtmve\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vlgsrgkrfiz\",\"datasetParameters\":\"dataywlptyuqh\",\"parameters\":{\"ykpfu\":\"datacs\"},\"\":{\"cf\":\"dataxcn\",\"pjprdpwr\":\"datakkpyycpaw\"}}}],\"script\":\"fpcfjf\",\"scriptLines\":[\"gzawk\",\"yep\",\"yamnnidmdiawp\",\"xkzrn\"]},\"description\":\"kctd\",\"annotations\":[\"datasgwqpsqaz\",\"datahqodv\",\"datagcnbhcbmjk\",\"datati\"],\"folder\":{\"name\":\"ynts\"}}") - .toObject(Flowlet.class); - Assertions.assertEquals("kctd", model.description()); - Assertions.assertEquals("ynts", model.folder().name()); - Assertions.assertEquals("xlcskltez", model.sources().get(0).name()); - Assertions.assertEquals("ggg", model.sources().get(0).description()); - Assertions.assertEquals("fbgrdcgubsrt", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("fbodetresrgvts", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("tnxlkfhglhr", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("cvgllixdg", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("igaw", model.sinks().get(0).name()); - Assertions.assertEquals("zmxjqif", model.sinks().get(0).description()); - Assertions.assertEquals("jjsbcmlzaahzbhur", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("nuhhoqeqshav", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("drnzkjthf", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("gecpwgoljtzx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kpp", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("hmgpczqulpt", model.transformations().get(0).name()); - Assertions.assertEquals("vcpxtzhigqqbtimp", model.transformations().get(0).description()); - Assertions.assertEquals("blornsih", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("xyxvqban", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("foeajogsy", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("fpcfjf", model.script()); - Assertions.assertEquals("gzawk", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Flowlet model = new Flowlet().withDescription("kctd") - .withAnnotations(Arrays.asList("datasgwqpsqaz", "datahqodv", "datagcnbhcbmjk", "datati")) - .withFolder(new DataFlowFolder().withName("ynts")) - .withSources(Arrays.asList( - new DataFlowSource().withName("xlcskltez") - .withDescription("ggg") - .withDataset(new DatasetReference().withReferenceName("fbgrdcgubsrt") - .withParameters(mapOf("fcm", "datalperpilttjzgc"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("fbodetresrgvts") - .withParameters(mapOf("ai", "dataft", "pdxxzetwwz", "datamuqkevzgjypanhx"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tnxlkfhglhr") - .withDatasetParameters("datax") - .withParameters(mapOf("elqxovppqi", "datacrsnhpc", "l", "dataukklvzrlr")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("cvgllixdg") - .withParameters(mapOf("hu", "datagwewqkjvxprwpxso"))), - new DataFlowSource().withName("a") - .withDescription("qha") - .withDataset(new DatasetReference().withReferenceName("ntacih") - .withParameters(mapOf("aqgrv", "datagmipnmliqmvlbhik", "dtsdfjy", "datapomxpu", "mpyzgleo", - "dataesocwiqbuou", "bwwzvdajf", "datajsb"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("n") - .withParameters( - mapOf("jjrlhiqlwix", "dataaciq", "pg", "datatbouguxtnd", "alapdlndbe", "datattbas"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("kixvvlwy") - .withDatasetParameters("databb") - .withParameters(mapOf("gzfeuzj", "datazfjmsp", "mi", "datajmphfkyezolgj")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ovmozsayebraz") - .withParameters(mapOf("kipfsdyepf", "datapzbtzuyk", "ztgaz", "dataocmbezacf", "okctgkppgkqzkc", - "datayqejga", "cqvhoejgoiutgwrm", "datazmffngdyfcixrh"))), - new DataFlowSource().withName("hfvhuwzbxpcqz") - .withDescription("hotjec") - .withDataset(new DatasetReference().withReferenceName("mx") - .withParameters(mapOf("derltfokyksyim", "datarrskapbxwieexuy", "i", "dataccgrvkcxzznn"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("rsejegprkj") - .withParameters(mapOf("wgxql", "datarjmwvvbtuqkxxi", "qfkyfhiwvjaqu", "dataekotjgxi"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ynvskpajbmgeume") - .withDatasetParameters("datajbxcbccwkqmtxa") - .withParameters(mapOf("ilg", "dataiscr")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xtclhuulriqbyok") - .withParameters(mapOf("cdjwsu", "databzsxebrslttfy", "holhujbfw", "dataardnagttpufpbpgn", - "whdmcvhtbbz", "dataiplkysolsyjprxs"))), - new DataFlowSource().withName("cljkxpyl") - .withDescription("oxz") - .withDataset(new DatasetReference().withReferenceName("psyxjije") - .withParameters(mapOf("wjxildfkcefeyg", "datavrbkerdkdkgaw", "jo", "dataq"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("fmn") - .withParameters(mapOf("on", "datadjnxument", "xym", "datawhy"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("i") - .withDatasetParameters("datatowlhlsycoyb") - .withParameters(mapOf("qwmchqohtfxc", "datasqubfajcywh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ifmuadjnfsncsk") - .withParameters(mapOf("tlcgctjchfjvmy", "datashjgczetybnxg", "ebecuvlbefv", "dataj"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink().withName("igaw") - .withDescription("zmxjqif") - .withDataset( - new DatasetReference().withReferenceName("jjsbcmlzaahzbhur") - .withParameters(mapOf("ojusuzgfjzcva", "datakolirhh", "ahfxwccok", "dataxoia", "c", - "dataxkukm"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("nuhhoqeqshav") - .withParameters(mapOf("yrqolnthbbnkgz", "datak"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("drnzkjthf") - .withDatasetParameters("datayjncjm") - .withParameters(mapOf("pfiddhl", "datayfj", "ocuselqk", "dataufzcqyjmqrfu", "sjmrkkhm", - "datasazrhxuddqmdtff", "jawh", "datadmdlgyqixokw")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("gecpwgoljtzx") - .withParameters(mapOf("pjxvazyjf", "datasdobygoogxq", "djnosdkvibf", "datacsa", - "trnzpducdaaktu", "datasgm", "oimyfpqd", "dataktz"))) - .withRejectedDataLinkedService(new LinkedServiceReference() - .withReferenceName("kpp") - .withParameters(mapOf("ffffg", "dataytfvpctfji", "ejjk", "datauhznwhvuldbk"))), - new DataFlowSink().withName("tjouwhldxwhi") - .withDescription("roqksmfxm") - .withDataset(new DatasetReference().withReferenceName("prstvkitbfj") - .withParameters( - mapOf("rqxw", "dataotnplfacqocc", "a", "datatjtdrhutfd", "eh", "datatxop"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("dkmdzgsszx") - .withParameters(mapOf("rlsirnccla", "datakbbxuh", "suxxc", "datavoyn", - "dsaidjanormovdxx", "databmyqjog"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tujmoil") - .withDatasetParameters("datawemhdee") - .withParameters(mapOf("egrhrh", "datalkyozdsfzj", "xvgjbfi", "dataslejtvxj")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("wimaaneakhtmh") - .withParameters(mapOf("vkhgv", "datayanrfvq", "ymhcctopuo", "dataogxkfnaoa", - "hquhczygxvhajp", "datayrnskb", "xqnwhscoz", "datae"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("mvgxsmpknpwir") - .withParameters(mapOf("dnmckap", "datafewxqouox", "cdgmoqu", "datahknqiijge", - "kyow", "dataqih"))), - new DataFlowSink().withName("w") - .withDescription("ujegqdtadra") - .withDataset(new DatasetReference().withReferenceName("ddhjkr") - .withParameters(mapOf("fpjbqggwe", "datazyhgsqtnqsktx"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("w") - .withParameters(mapOf("bf", "datamnc", "dfb", "datauscstunmlh"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("iichgjsysmvxodgw") - .withDatasetParameters("datakzsifcuvb") - .withParameters(mapOf("ec", "datagcwx")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xej") - .withParameters(mapOf("zsinqbdnddb", "datacywnfyszza", "jmyitrchwudl", "dataozsyvrm"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("eihtpmnoejh") - .withParameters(mapOf("rfgxkyd", "datamsibzo", "hl", "datamypgfqvmty", "jpewpyjlfx", - "datakxp", "qcrzgeuqxbpia", "datam"))), - new DataFlowSink().withName("siflikyypzkgxf") - .withDescription("myrqsdbpokszan") - .withDataset(new DatasetReference().withReferenceName("wgpterdiuw") - .withParameters(mapOf("tsdetjygowifcq", "datakskw", "gzyy", "dataolzkgys", "tvdxxhe", - "datazoxlvoc", "zbwaybfmdafbgym", "datagmlilwzghjhjvmab"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("napreojxrjnbsco") - .withParameters(mapOf("neychbjizq", "datavi"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nwdxzedpqlrfbor") - .withDatasetParameters("datap") - .withParameters(mapOf("pdjtaqh", "datafyzavfrbypicdb")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("pbqwuntobu") - .withParameters(mapOf("lw", "datazz"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("ydjufbnklbl") - .withParameters(mapOf("ytlbtlqhopxouvm", "dataegjwdabalfdxaglz"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("hmgpczqulpt") - .withDescription("vcpxtzhigqqbtimp") - .withDataset(new DatasetReference().withReferenceName("blornsih") - .withParameters(mapOf("fczmnn", "datadsmusuaawjakxwj"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("xyxvqban") - .withParameters(mapOf("mgm", "datatgirnb", "p", "datadorgmynltw"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("foeajogsy") - .withDatasetParameters("dataetamfddrvlkpzwb") - .withParameters(mapOf("edbiucvkhhwmjpjb", "dataecchdidrmuhkahm", "ppiybxv", - "dataeunxcqrrihufoi", "bgk", "datanzuz")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("lwgofm") - .withDescription("wrjlvzkl") - .withDataset(new DatasetReference().withReferenceName("bgikyjtkakvlbi") - .withParameters(mapOf("ptuoska", "datavpz", "y", "dataizjixwfgcd", "mdmuqoh", - "datakcxwnujvqynvavi", "wjc", "dataihraxqudd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("brhlhpvzadb") - .withParameters(mapOf("rmvzti", "dataninafhxrz"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("viqlluk") - .withDatasetParameters("datarcqxgcbvzarmqc") - .withParameters(mapOf("invagovjyhd", "datakst", "txnmxgnmguz", "dataxbrdvcehqwh", "kbd", - "datauwvorbalkjn", "gxiynecovagzk", "datalltqstqkqs")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("mehjnhjioti") - .withDescription("bbcngkeg") - .withDataset( - new DatasetReference().withReferenceName("y").withParameters(mapOf("zox", "databfetwily"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("xql") - .withParameters(mapOf("ewnahwkxjjmzt", "datalqownkiua", "dhdyswcrptveaj", "datalmsoodtmve"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vlgsrgkrfiz") - .withDatasetParameters("dataywlptyuqh") - .withParameters(mapOf("ykpfu", "datacs")) - .withAdditionalProperties(mapOf())))) - .withScript("fpcfjf") - .withScriptLines(Arrays.asList("gzawk", "yep", "yamnnidmdiawp", "xkzrn")); - model = BinaryData.fromObject(model).toObject(Flowlet.class); - Assertions.assertEquals("kctd", model.description()); - Assertions.assertEquals("ynts", model.folder().name()); - Assertions.assertEquals("xlcskltez", model.sources().get(0).name()); - Assertions.assertEquals("ggg", model.sources().get(0).description()); - Assertions.assertEquals("fbgrdcgubsrt", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("fbodetresrgvts", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("tnxlkfhglhr", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("cvgllixdg", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("igaw", model.sinks().get(0).name()); - Assertions.assertEquals("zmxjqif", model.sinks().get(0).description()); - Assertions.assertEquals("jjsbcmlzaahzbhur", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("nuhhoqeqshav", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("drnzkjthf", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("gecpwgoljtzx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kpp", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("hmgpczqulpt", model.transformations().get(0).name()); - Assertions.assertEquals("vcpxtzhigqqbtimp", model.transformations().get(0).description()); - Assertions.assertEquals("blornsih", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("xyxvqban", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("foeajogsy", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("fpcfjf", model.script()); - Assertions.assertEquals("gzawk", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java deleted file mode 100644 index 30e6dac4dd0f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java +++ /dev/null @@ -1,243 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FlowletTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FlowletTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FlowletTypeProperties model = BinaryData.fromString( - "{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"mef\",\"parameters\":{\"bwgmjgrul\":\"datakmoogjrhs\"}},\"name\":\"fogxhcxnw\",\"description\":\"pfdzxcouzfwofw\",\"dataset\":{\"referenceName\":\"ukz\",\"parameters\":{\"glihezomucmq\":\"datazxsoednl\",\"xkgtlzlmtrlxcznn\":\"dataisnionetbzdrdpue\",\"mwt\":\"datazkbnbmxl\",\"qzusitoq\":\"datag\"}},\"linkedService\":{\"referenceName\":\"hf\",\"parameters\":{\"lisolntfxxc\":\"datajmlreesrfwsszvlc\",\"foygizmshxxba\":\"dataqmipfj\",\"toxjdzj\":\"datazabulnvgsk\",\"paydhfn\":\"datajznvhxqqmq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xmtf\",\"datasetParameters\":\"datak\",\"parameters\":{\"nlslcef\":\"datazmspamwbwm\",\"liwoyngu\":\"dataqdktwtkvihlp\",\"adpcmhjhausy\":\"datazhwv\",\"qs\":\"datakekymffztsilsc\"},\"\":{\"fymkouih\":\"datai\",\"zhogsmgbvmtdw\":\"dataeseuugci\",\"jnfveg\":\"dataqbe\"}}},{\"schemaLinkedService\":{\"referenceName\":\"btvkbi\",\"parameters\":{\"muhbcakznho\":\"datahtfgficudyhizpac\",\"nckidbjpg\":\"datahoitwhrjsdmmaz\"}},\"name\":\"hzqpxzbawkikcdgf\",\"description\":\"ssdpjeyoqxded\",\"dataset\":{\"referenceName\":\"f\",\"parameters\":{\"rshzzbgullcxiqqz\":\"dataagxsurej\",\"ouigdmfivjqte\":\"datakoxdupnamgl\"}},\"linkedService\":{\"referenceName\":\"qq\",\"parameters\":{\"rwqirvtktyhhmvf\":\"dataydkghpc\",\"krrwepgqvqokql\":\"datalapjajod\",\"bwlyvxc\":\"datajqgir\",\"stvzuzhasupml\":\"datapqvctsfaeuhwwsk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pgzvzqazvbka\",\"datasetParameters\":\"dataptgongruat\",\"parameters\":{\"jqhenigb\":\"datay\",\"yjdeayscseyd\":\"dataqnguba\"},\"\":{\"muwrx\":\"datamexmnvk\",\"wmcpmrrdlhvdvm\":\"datan\",\"hkdcl\":\"dataphbeaeqjz\",\"unerke\":\"datacroczf\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xzs\",\"parameters\":{\"udl\":\"dataezbzu\",\"cgwfsgqkstyecu\":\"datavzske\"}},\"name\":\"yu\",\"description\":\"p\",\"dataset\":{\"referenceName\":\"davsjcfmazpz\",\"parameters\":{\"izekuvfrj\":\"datauzvcmcok\",\"ajbvbn\":\"dataucaonz\",\"idgzwdydamis\":\"datardemdidack\",\"xkqejtpjfojiunr\":\"datapztdivyk\"}},\"linkedService\":{\"referenceName\":\"hxuk\",\"parameters\":{\"o\":\"datakdtoiboancdr\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xu\",\"datasetParameters\":\"dataxonckbnlblfxlup\",\"parameters\":{\"izxzpzweghl\":\"dataq\",\"dve\":\"datawbogvgfklqiy\"},\"\":{\"vlrdsmovpi\":\"datasbfvdstrkzxsgtzn\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"noxaxnrqaqotnndx\",\"parameters\":{\"qmawzjdrpizfu\":\"datausdvrgp\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"yctsdbtqgkuj\",\"parameters\":{\"eurbtigapdyarik\":\"dataoxrqw\",\"kfqbriqulwwt\":\"dataejdpdfhtwm\",\"zokpoy\":\"datajmeqkvy\"}},\"name\":\"ohuen\",\"description\":\"aaj\",\"dataset\":{\"referenceName\":\"mpoejnglpwsada\",\"parameters\":{\"yjrmfqzwqd\":\"dataumxpezcoi\",\"xfqzkvemyzd\":\"dataxkeedcnwmy\",\"wtxzuisam\":\"dataczaqpqifdbmpt\",\"rmthsplwst\":\"datanatnizexroqsqjg\"}},\"linkedService\":{\"referenceName\":\"srgxfq\",\"parameters\":{\"sxyr\":\"dataiceovxgzw\",\"ik\":\"datajmtikes\",\"dseipnquwzxhrp\":\"dataohzixyqhfnkvycqq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"dl\",\"datasetParameters\":\"datafktltdds\",\"parameters\":{\"saluzyi\":\"dataopnouhbqezkq\",\"dgsjsat\":\"datafcvcewbwq\",\"qmr\":\"datarncmazdfsqxh\"},\"\":{\"bwtdr\":\"dataarnpvgrsz\"}}},{\"schemaLinkedService\":{\"referenceName\":\"gz\",\"parameters\":{\"fi\":\"dataxzlh\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"cfculzj\",\"parameters\":{\"ldqpzf\":\"datapfywv\"}},\"name\":\"xsoxi\",\"description\":\"nj\",\"dataset\":{\"referenceName\":\"k\",\"parameters\":{\"w\":\"datacqsxytqqtcmiw\",\"ftpzcrryklleyn\":\"datasvnmeylajamcajy\"}},\"linkedService\":{\"referenceName\":\"nhkigg\",\"parameters\":{\"zphetxdqcm\":\"datawalhvubh\",\"qzjval\":\"datacta\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"bibiwks\",\"datasetParameters\":\"datagyxs\",\"parameters\":{\"wushlcxpbl\":\"datazvoikvntwczf\",\"zpfkis\":\"datalhh\"},\"\":{\"otxjqfiafcnlrtbf\":\"datadqzsaaoqdsgp\",\"ijolbuauktwieope\":\"datajzzca\",\"xq\":\"datae\",\"bkgx\":\"datawrswyiljp\"}}},{\"schemaLinkedService\":{\"referenceName\":\"yauxr\",\"parameters\":{\"ltmwytku\":\"dataobmc\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"qycmmoxf\",\"parameters\":{\"ali\":\"dataqgpwbmwhr\",\"tsbbibtic\":\"datarycgnwplrrbph\",\"eqbbewfcuqfpy\":\"datahqvumspbfs\",\"eyyjshcybwfuppox\":\"dataxmzrmtmvwitu\"}},\"name\":\"rcmvouujx\",\"description\":\"i\",\"dataset\":{\"referenceName\":\"oxrezsvavlrxik\",\"parameters\":{\"fncn\":\"dataywlunpipcwybs\",\"saebwfwhxorpwal\":\"dataatpf\",\"ojfccylhtrht\":\"datazwuge\",\"zp\":\"datavazjpwexcd\"}},\"linkedService\":{\"referenceName\":\"bzzxezm\",\"parameters\":{\"hlokfpmijpdvzv\":\"datajgpjeuxs\",\"rwyambhbafebzxfk\":\"databhwbdqufvcgnrgla\",\"nntrvrkps\":\"dataqutibhl\",\"lpyeu\":\"databduxvzmlghnys\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pdixqbolxv\",\"datasetParameters\":\"datayqqegatxgrznm\",\"parameters\":{\"bmgjymncjc\":\"datamtsdixchwk\",\"cqzoofjnqjsve\":\"datagair\"},\"\":{\"fqnwjjqx\":\"datahtleberpyljek\",\"pnowawonoehrguql\":\"datawkdnjrxgkrhwiehy\",\"pyrgu\":\"datafwafbjz\"}}}],\"transformations\":[{\"name\":\"zbkocbygvthrmxkb\",\"description\":\"wwdxomrawp\",\"dataset\":{\"referenceName\":\"eboozflyacagaed\",\"parameters\":{\"f\":\"dataqclmgdtwgabd\"}},\"linkedService\":{\"referenceName\":\"zbwjecooyvht\",\"parameters\":{\"gagdvcdqh\":\"datapelniibn\",\"df\":\"datatzbpyfao\",\"iz\":\"datahtncwmhjobzrfp\",\"gwhgkgsoau\":\"datacqhyftcvbz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ssatfybipufdmx\",\"datasetParameters\":\"databd\",\"parameters\":{\"fqayopbtsix\":\"datasttuxv\"},\"\":{\"arxneibpgbr\":\"databhxmndztgsqjayq\"}}},{\"name\":\"bjdqkn\",\"description\":\"nmotpuwnnoh\",\"dataset\":{\"referenceName\":\"zngocfrjuypwyiul\",\"parameters\":{\"ttpfsmwgsgh\":\"dataosugkfha\"}},\"linkedService\":{\"referenceName\":\"cum\",\"parameters\":{\"uarigrj\":\"dataauqmllfeoth\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"lkqhvkrbzkua\",\"datasetParameters\":\"dataaxklpruulh\",\"parameters\":{\"ksgfyyskyekg\":\"dataoizwxvs\"},\"\":{\"wrtwletyveszr\":\"dataczvfcc\",\"mbbfnv\":\"datalhpdhwynctaczcnj\",\"tzo\":\"datax\",\"mn\":\"datankrtikl\"}}},{\"name\":\"hql\",\"description\":\"qksyiibhyxwbgbu\",\"dataset\":{\"referenceName\":\"vqdorbccqcd\",\"parameters\":{\"dtnagzlgpyaix\":\"dataojvlirknucosaw\",\"cybdueurgm\":\"datahzqjjtsmuydqfttk\",\"lojermhzicsbfd\":\"datadcpks\"}},\"linkedService\":{\"referenceName\":\"yaaknyukibxiglhp\",\"parameters\":{\"z\":\"dataxqtejpiilhvt\",\"k\":\"dataagjjn\",\"f\":\"dataylhyyx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vqzrwtrd\",\"datasetParameters\":\"datacnvqeons\",\"parameters\":{\"ezyohxpthceopv\":\"dataxlw\",\"lc\":\"datavtwfvesobpbokhm\"},\"\":{\"lqhxkasmcolmu\":\"datarnggcjfw\",\"ygz\":\"datapyvaosdkluwzx\",\"nobguqisqsqkpdmi\":\"datatyevjhu\",\"pnml\":\"datay\"}}},{\"name\":\"iqcpszpmcvq\",\"description\":\"rdmvxyrxdhgv\",\"dataset\":{\"referenceName\":\"jbxaotcgbz\",\"parameters\":{\"lef\":\"datat\",\"dtmuuvd\":\"dataioyidoxznvg\"}},\"linkedService\":{\"referenceName\":\"sxmrszbknimxlp\",\"parameters\":{\"zutylcu\":\"datax\",\"mnb\":\"dataza\",\"bjmbnvynfaooeac\":\"dataqaeht\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"cglskakdd\",\"datasetParameters\":\"dataahzllrqmtlpb\",\"parameters\":{\"noiicsu\":\"dataoiduyqypff\"},\"\":{\"oluqwgusxxhdo\":\"databrjjtalxrdsjr\"}}}],\"script\":\"jwyblvtbdmvsb\",\"scriptLines\":[\"aelqpvekmkwjf\",\"o\"]}") - .toObject(FlowletTypeProperties.class); - Assertions.assertEquals("fogxhcxnw", model.sources().get(0).name()); - Assertions.assertEquals("pfdzxcouzfwofw", model.sources().get(0).description()); - Assertions.assertEquals("ukz", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("hf", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("xmtf", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("mef", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ohuen", model.sinks().get(0).name()); - Assertions.assertEquals("aaj", model.sinks().get(0).description()); - Assertions.assertEquals("mpoejnglpwsada", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("srgxfq", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("dl", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("noxaxnrqaqotnndx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("yctsdbtqgkuj", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("zbkocbygvthrmxkb", model.transformations().get(0).name()); - Assertions.assertEquals("wwdxomrawp", model.transformations().get(0).description()); - Assertions.assertEquals("eboozflyacagaed", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("zbwjecooyvht", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("ssatfybipufdmx", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("jwyblvtbdmvsb", model.script()); - Assertions.assertEquals("aelqpvekmkwjf", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FlowletTypeProperties model = new FlowletTypeProperties() - .withSources(Arrays.asList( - new DataFlowSource().withName("fogxhcxnw") - .withDescription("pfdzxcouzfwofw") - .withDataset(new DatasetReference().withReferenceName("ukz") - .withParameters(mapOf("glihezomucmq", "datazxsoednl", "xkgtlzlmtrlxcznn", - "dataisnionetbzdrdpue", "mwt", "datazkbnbmxl", "qzusitoq", "datag"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("hf") - .withParameters(mapOf("lisolntfxxc", "datajmlreesrfwsszvlc", "foygizmshxxba", "dataqmipfj", - "toxjdzj", "datazabulnvgsk", "paydhfn", "datajznvhxqqmq"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xmtf") - .withDatasetParameters("datak") - .withParameters(mapOf("nlslcef", "datazmspamwbwm", "liwoyngu", "dataqdktwtkvihlp", - "adpcmhjhausy", "datazhwv", "qs", "datakekymffztsilsc")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference() - .withReferenceName("mef") - .withParameters(mapOf("bwgmjgrul", "datakmoogjrhs"))), - new DataFlowSource().withName("hzqpxzbawkikcdgf") - .withDescription("ssdpjeyoqxded") - .withDataset(new DatasetReference().withReferenceName("f") - .withParameters(mapOf("rshzzbgullcxiqqz", "dataagxsurej", "ouigdmfivjqte", "datakoxdupnamgl"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("qq") - .withParameters(mapOf("rwqirvtktyhhmvf", "dataydkghpc", "krrwepgqvqokql", "datalapjajod", - "bwlyvxc", "datajqgir", "stvzuzhasupml", "datapqvctsfaeuhwwsk"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pgzvzqazvbka") - .withDatasetParameters("dataptgongruat") - .withParameters(mapOf("jqhenigb", "datay", "yjdeayscseyd", "dataqnguba")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("btvkbi") - .withParameters( - mapOf("muhbcakznho", "datahtfgficudyhizpac", "nckidbjpg", "datahoitwhrjsdmmaz"))), - new DataFlowSource().withName("yu") - .withDescription("p") - .withDataset(new DatasetReference().withReferenceName("davsjcfmazpz") - .withParameters(mapOf("izekuvfrj", "datauzvcmcok", "ajbvbn", "dataucaonz", "idgzwdydamis", - "datardemdidack", "xkqejtpjfojiunr", "datapztdivyk"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("hxuk") - .withParameters(mapOf("o", "datakdtoiboancdr"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xu") - .withDatasetParameters("dataxonckbnlblfxlup") - .withParameters(mapOf("izxzpzweghl", "dataq", "dve", "datawbogvgfklqiy")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xzs") - .withParameters(mapOf("udl", "dataezbzu", "cgwfsgqkstyecu", "datavzske"))))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("ohuen") - .withDescription("aaj") - .withDataset(new DatasetReference().withReferenceName("mpoejnglpwsada") - .withParameters(mapOf("yjrmfqzwqd", "dataumxpezcoi", "xfqzkvemyzd", "dataxkeedcnwmy", - "wtxzuisam", "dataczaqpqifdbmpt", "rmthsplwst", "datanatnizexroqsqjg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("srgxfq") - .withParameters(mapOf("sxyr", "dataiceovxgzw", "ik", "datajmtikes", "dseipnquwzxhrp", - "dataohzixyqhfnkvycqq"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dl") - .withDatasetParameters("datafktltdds") - .withParameters( - mapOf("saluzyi", "dataopnouhbqezkq", "dgsjsat", "datafcvcewbwq", "qmr", "datarncmazdfsqxh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("noxaxnrqaqotnndx") - .withParameters(mapOf("qmawzjdrpizfu", "datausdvrgp"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("yctsdbtqgkuj") - .withParameters(mapOf("eurbtigapdyarik", "dataoxrqw", "kfqbriqulwwt", "dataejdpdfhtwm", - "zokpoy", "datajmeqkvy"))), - new DataFlowSink().withName("xsoxi") - .withDescription("nj") - .withDataset(new DatasetReference().withReferenceName("k") - .withParameters(mapOf("w", "datacqsxytqqtcmiw", "ftpzcrryklleyn", "datasvnmeylajamcajy"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("nhkigg") - .withParameters(mapOf("zphetxdqcm", "datawalhvubh", "qzjval", "datacta"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("bibiwks") - .withDatasetParameters("datagyxs") - .withParameters(mapOf("wushlcxpbl", "datazvoikvntwczf", "zpfkis", "datalhh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("gz").withParameters(mapOf("fi", "dataxzlh"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("cfculzj") - .withParameters(mapOf("ldqpzf", "datapfywv"))), - new DataFlowSink().withName("rcmvouujx") - .withDescription("i") - .withDataset(new DatasetReference().withReferenceName("oxrezsvavlrxik") - .withParameters(mapOf("fncn", "dataywlunpipcwybs", "saebwfwhxorpwal", "dataatpf", - "ojfccylhtrht", "datazwuge", "zp", "datavazjpwexcd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("bzzxezm") - .withParameters(mapOf("hlokfpmijpdvzv", "datajgpjeuxs", "rwyambhbafebzxfk", - "databhwbdqufvcgnrgla", "nntrvrkps", "dataqutibhl", "lpyeu", "databduxvzmlghnys"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pdixqbolxv") - .withDatasetParameters("datayqqegatxgrznm") - .withParameters(mapOf("bmgjymncjc", "datamtsdixchwk", "cqzoofjnqjsve", "datagair")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("yauxr") - .withParameters(mapOf("ltmwytku", "dataobmc"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("qycmmoxf") - .withParameters(mapOf("ali", "dataqgpwbmwhr", "tsbbibtic", "datarycgnwplrrbph", "eqbbewfcuqfpy", - "datahqvumspbfs", "eyyjshcybwfuppox", "dataxmzrmtmvwitu"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("zbkocbygvthrmxkb") - .withDescription("wwdxomrawp") - .withDataset(new DatasetReference().withReferenceName("eboozflyacagaed") - .withParameters(mapOf("f", "dataqclmgdtwgabd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("zbwjecooyvht") - .withParameters(mapOf("gagdvcdqh", "datapelniibn", "df", "datatzbpyfao", "iz", - "datahtncwmhjobzrfp", "gwhgkgsoau", "datacqhyftcvbz"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ssatfybipufdmx") - .withDatasetParameters("databd") - .withParameters(mapOf("fqayopbtsix", "datasttuxv")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("bjdqkn") - .withDescription("nmotpuwnnoh") - .withDataset(new DatasetReference().withReferenceName("zngocfrjuypwyiul") - .withParameters(mapOf("ttpfsmwgsgh", "dataosugkfha"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("cum") - .withParameters(mapOf("uarigrj", "dataauqmllfeoth"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("lkqhvkrbzkua") - .withDatasetParameters("dataaxklpruulh") - .withParameters(mapOf("ksgfyyskyekg", "dataoizwxvs")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("hql") - .withDescription("qksyiibhyxwbgbu") - .withDataset(new DatasetReference().withReferenceName("vqdorbccqcd") - .withParameters(mapOf("dtnagzlgpyaix", "dataojvlirknucosaw", "cybdueurgm", - "datahzqjjtsmuydqfttk", "lojermhzicsbfd", "datadcpks"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("yaaknyukibxiglhp") - .withParameters(mapOf("z", "dataxqtejpiilhvt", "k", "dataagjjn", "f", "dataylhyyx"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vqzrwtrd") - .withDatasetParameters("datacnvqeons") - .withParameters(mapOf("ezyohxpthceopv", "dataxlw", "lc", "datavtwfvesobpbokhm")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("iqcpszpmcvq") - .withDescription("rdmvxyrxdhgv") - .withDataset(new DatasetReference().withReferenceName("jbxaotcgbz") - .withParameters(mapOf("lef", "datat", "dtmuuvd", "dataioyidoxznvg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("sxmrszbknimxlp") - .withParameters(mapOf("zutylcu", "datax", "mnb", "dataza", "bjmbnvynfaooeac", "dataqaeht"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("cglskakdd") - .withDatasetParameters("dataahzllrqmtlpb") - .withParameters(mapOf("noiicsu", "dataoiduyqypff")) - .withAdditionalProperties(mapOf())))) - .withScript("jwyblvtbdmvsb") - .withScriptLines(Arrays.asList("aelqpvekmkwjf", "o")); - model = BinaryData.fromObject(model).toObject(FlowletTypeProperties.class); - Assertions.assertEquals("fogxhcxnw", model.sources().get(0).name()); - Assertions.assertEquals("pfdzxcouzfwofw", model.sources().get(0).description()); - Assertions.assertEquals("ukz", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("hf", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("xmtf", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("mef", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ohuen", model.sinks().get(0).name()); - Assertions.assertEquals("aaj", model.sinks().get(0).description()); - Assertions.assertEquals("mpoejnglpwsada", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("srgxfq", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("dl", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("noxaxnrqaqotnndx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("yctsdbtqgkuj", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("zbkocbygvthrmxkb", model.transformations().get(0).name()); - Assertions.assertEquals("wwdxomrawp", model.transformations().get(0).description()); - Assertions.assertEquals("eboozflyacagaed", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("zbwjecooyvht", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("ssatfybipufdmx", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("jwyblvtbdmvsb", model.script()); - Assertions.assertEquals("aelqpvekmkwjf", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java deleted file mode 100644 index 03018866450d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.ForEachActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ForEachActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForEachActivity model = BinaryData.fromString( - "{\"type\":\"ForEach\",\"typeProperties\":{\"isSequential\":true,\"batchCount\":797541414,\"items\":{\"value\":\"sgrcrknnr\"},\"activities\":[{\"type\":\"Activity\",\"name\":\"euwfmrckatnjik\",\"description\":\"htovsyi\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"kprv\",\"dependencyConditions\":[\"Failed\"],\"\":{\"mavtndgfmtximnpc\":\"datasd\"}},{\"activity\":\"hcfu\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Skipped\",\"Succeeded\"],\"\":{\"diajeeahweru\":\"dataurgery\",\"lahdwxyitezf\":\"datauoeyyxcdwlkk\"}},{\"activity\":\"ekaxh\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"y\":\"dataoqg\",\"s\":\"datafohuxpfxkjrhgw\",\"uzifsguolfkup\":\"dataaewkkqv\"}}],\"userProperties\":[{\"name\":\"zsirhp\",\"value\":\"datagqdz\"},{\"name\":\"drcj\",\"value\":\"dataywbssli\"},{\"name\":\"hcpuddbzxi\",\"value\":\"dataqqeslnaoxke\"},{\"name\":\"utrlzzztg\",\"value\":\"datafzyxamyjhp\"}],\"\":{\"lqmddtpwilyg\":\"datavsj\",\"oqtscduuywg\":\"datao\"}},{\"type\":\"Activity\",\"name\":\"uvcfmtmmpvoa\",\"description\":\"tlx\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"t\",\"dependencyConditions\":[\"Failed\",\"Succeeded\"],\"\":{\"erbwa\":\"dataylostrcbqo\",\"elphauldalspe\":\"dataqsubzi\",\"llqyvblfprskxhg\":\"datanhesw\",\"tuficip\":\"datavgviycjulun\"}},{\"activity\":\"bnjpivoizxkh\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Completed\",\"Skipped\"],\"\":{\"bmjheyntsdwxpa\":\"dataahdplicivoduda\",\"crkf\":\"dataubgrjkgkoxuedml\",\"bvvjyenwvgvhhouh\":\"datagjywp\"}},{\"activity\":\"tih\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"mjoycyvxbrthw\":\"datajooiiviwl\",\"uoghvkzmgvtem\":\"dataitrwwkofoqrvnh\",\"hwypdhrq\":\"datayfj\"}},{\"activity\":\"jlsatoxsga\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"ftlbtotu\":\"dataxmxgqgquulyrtk\",\"cwrykwmvcxyu\":\"datazasrwoxumnucqew\"}}],\"userProperties\":[{\"name\":\"idcytnzy\",\"value\":\"datasydwgq\"},{\"name\":\"srlhxfmvngdrnt\",\"value\":\"datavn\"}],\"\":{\"rcojwiigtdj\":\"datahnbwdborjy\",\"iftm\":\"dataczoqpkpib\",\"hlnaymsgbyho\":\"datazofont\",\"ennobjixoqqjbsag\":\"dataqugycorgnxmn\"}},{\"type\":\"Activity\",\"name\":\"lpuqfmrimwlpa\",\"description\":\"wxuiakt\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"hwysieoe\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"ylsuiyvbildwqlx\":\"datarhpgavropkoezcab\",\"qei\":\"datav\",\"axswiind\":\"datapylpmtwdvdtzdr\",\"hacvsj\":\"dataurwzrx\"}},{\"activity\":\"mbtvcdsl\",\"dependencyConditions\":[\"Completed\"],\"\":{\"kzkaoonbziklqyzr\":\"datanxhszrotunnkb\",\"zvvkehasxjmf\":\"dataawjk\",\"qxwcimamtqfrdfo\":\"databs\"}},{\"activity\":\"qfvczuuanrjcrpx\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Succeeded\",\"Succeeded\"],\"\":{\"kmlfcgk\":\"dataroxvsclmt\"}}],\"userProperties\":[{\"name\":\"tp\",\"value\":\"datazuaznsbvubbe\"},{\"name\":\"tyymljotimpuwgrn\",\"value\":\"dataxrizse\"}],\"\":{\"dcfwawzj\":\"datadran\",\"hic\":\"datafauubcvnafx\",\"grufbzgnrjfzba\":\"datacmviclhommhaxt\"}},{\"type\":\"Activity\",\"name\":\"qmmkmqdfjeu\",\"description\":\"qstczpsk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"uqvywolc\",\"dependencyConditions\":[\"Failed\"],\"\":{\"osaxg\":\"datakheh\",\"hhhexgxnmfo\":\"datamspnzq\",\"tycfostzdxb\":\"dataxiyzvfo\"}},{\"activity\":\"pglcbhahxsjxurrh\",\"dependencyConditions\":[\"Failed\",\"Succeeded\"],\"\":{\"mz\":\"datajzifyhujgrb\",\"scrfbdttcfwjzquw\":\"datagxjoimozsef\"}}],\"userProperties\":[{\"name\":\"ihlolau\",\"value\":\"datar\"}],\"\":{\"yajijzrt\":\"datafefxvggkjbhsnyy\",\"ki\":\"datafngonhmblkkelz\",\"h\":\"datamne\",\"qvcfzr\":\"dataynencaf\"}}]},\"name\":\"wxgczwxyghsppm\",\"description\":\"c\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"chygbeofiwbtfkiu\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"fkukaa\":\"datasxjrafh\",\"gqhefeasm\":\"datawnqijphhuvflg\",\"pcxxpyrtajlyde\":\"datadguodoujpwqbotlv\"}},{\"activity\":\"qfvrqru\",\"dependencyConditions\":[\"Failed\"],\"\":{\"jzvceyxvfoyuyk\":\"datauxbqdwbjh\"}},{\"activity\":\"dggyhpuhcc\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"abdkbkblop\":\"datatpt\",\"zsfvri\":\"datamorfzuhvycdndcz\",\"pqcqinvkm\":\"datakplnd\",\"qabvwbgsanv\":\"databtpbwthz\"}}],\"userProperties\":[{\"name\":\"mbxshrae\",\"value\":\"dataclhzmegqtzhr\"},{\"name\":\"eibku\",\"value\":\"dataolu\"}],\"\":{\"keuraylygclwbu\":\"dataeqdmolmcyba\",\"fnhzgtydllauno\":\"dataqamvdnexqvt\",\"pglgkeaz\":\"datalkny\"}}") - .toObject(ForEachActivity.class); - Assertions.assertEquals("wxgczwxyghsppm", model.name()); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("chygbeofiwbtfkiu", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mbxshrae", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(797541414, model.batchCount()); - Assertions.assertEquals("sgrcrknnr", model.items().value()); - Assertions.assertEquals("euwfmrckatnjik", model.activities().get(0).name()); - Assertions.assertEquals("htovsyi", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("kprv", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zsirhp", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivity model - = new ForEachActivity().withName("wxgczwxyghsppm") - .withDescription("c") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("chygbeofiwbtfkiu") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qfvrqru") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dggyhpuhcc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("mbxshrae").withValue("dataclhzmegqtzhr"), - new UserProperty().withName("eibku").withValue("dataolu"))) - .withIsSequential(true) - .withBatchCount(797541414) - .withItems(new Expression().withValue("sgrcrknnr")) - .withActivities( - Arrays - .asList( - new Activity().withName("euwfmrckatnjik") - .withDescription("htovsyi") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("kprv") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hcfu") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ekaxh") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList(new UserProperty().withName("zsirhp").withValue("datagqdz"), - new UserProperty().withName("drcj").withValue("dataywbssli"), - new UserProperty().withName("hcpuddbzxi").withValue("dataqqeslnaoxke"), - new UserProperty().withName("utrlzzztg").withValue("datafzyxamyjhp"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("uvcfmtmmpvoa") - .withDescription("tlx") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("t") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bnjpivoizxkh") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tih") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jlsatoxsga") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("idcytnzy").withValue("datasydwgq"), - new UserProperty().withName("srlhxfmvngdrnt").withValue("datavn"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("lpuqfmrimwlpa") - .withDescription("wxuiakt") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("hwysieoe") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mbtvcdsl") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qfvczuuanrjcrpx") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("tp").withValue("datazuaznsbvubbe"), - new UserProperty().withName("tyymljotimpuwgrn").withValue("dataxrizse"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("qmmkmqdfjeu") - .withDescription("qstczpsk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("uqvywolc") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pglcbhahxsjxurrh") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ihlolau").withValue("datar"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(ForEachActivity.class); - Assertions.assertEquals("wxgczwxyghsppm", model.name()); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("chygbeofiwbtfkiu", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mbxshrae", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(797541414, model.batchCount()); - Assertions.assertEquals("sgrcrknnr", model.items().value()); - Assertions.assertEquals("euwfmrckatnjik", model.activities().get(0).name()); - Assertions.assertEquals("htovsyi", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("kprv", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zsirhp", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java deleted file mode 100644 index 71ab70163ac4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ForEachActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ForEachActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForEachActivityTypeProperties model = BinaryData.fromString( - "{\"isSequential\":false,\"batchCount\":371055937,\"items\":{\"value\":\"jahhcbzoaryhcxmf\"},\"activities\":[{\"type\":\"Activity\",\"name\":\"mqlcooyxfrrdbdy\",\"description\":\"fmycgucccb\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"turlnbmj\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\"],\"\":{\"hltgteg\":\"dataamoz\"}},{\"activity\":\"nguvjryfcxscrs\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Failed\",\"Failed\"],\"\":{\"j\":\"dataemkxmvqaimnfgf\",\"mrawmchcd\":\"datatbysvweuetoeqfn\"}},{\"activity\":\"gw\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"ahnimkndujywg\":\"datawfjwfkwrthpgqm\",\"ttjducosxcdhtovt\":\"datafylymuwafslyt\",\"vkiwjbufz\":\"datafwpmpapwmpd\"}}],\"userProperties\":[{\"name\":\"jfvud\",\"value\":\"datagwkyykhe\"},{\"name\":\"gapraafjxgoj\",\"value\":\"dataiupjgeb\"},{\"name\":\"suiklncqoyghrba\",\"value\":\"dataxywojux\"},{\"name\":\"fpcvblyeoyn\",\"value\":\"datahxkq\"}],\"\":{\"kkhrphvmezdfa\":\"datafuhsupifgizkv\",\"kwem\":\"datart\",\"eklgunpa\":\"dataonu\"}},{\"type\":\"Activity\",\"name\":\"w\",\"description\":\"xctdpj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"mookh\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"iacvttdyv\":\"datatxulnntjiucno\"}},{\"activity\":\"flt\",\"dependencyConditions\":[\"Failed\"],\"\":{\"xztjece\":\"datafyllkunwinqywlvx\",\"jlkjhmugyayhp\":\"dataqhpkqkxjl\",\"soi\":\"datastlsdgiqgeeqcgu\",\"wkkykaz\":\"dataevrglzx\"}},{\"activity\":\"daqxnkdqsyhm\",\"dependencyConditions\":[\"Failed\"],\"\":{\"xjezystirrhbkzz\":\"datafgvhwkw\",\"dazmmgsx\":\"datawikqkxduhydxahj\",\"myludflf\":\"datalwofo\"}}],\"userProperties\":[{\"name\":\"whtpykfc\",\"value\":\"datacaujgacckjq\"},{\"name\":\"pj\",\"value\":\"datadbgmgxbvge\"}],\"\":{\"digx\":\"datantdynpi\",\"vliqgawen\":\"datafscsrwliuteusu\",\"q\":\"datatmvzzs\",\"oc\":\"datavwgizvvtdr\"}},{\"type\":\"Activity\",\"name\":\"zgfnphfppjzmpxam\",\"description\":\"dostvxtk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"rbkko\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Failed\",\"Succeeded\"],\"\":{\"dr\":\"datafzerkpaivk\"}},{\"activity\":\"kvn\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Skipped\",\"Failed\"],\"\":{\"hz\":\"datanfwslvspar\"}},{\"activity\":\"ynbxwzixmv\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Failed\",\"Failed\"],\"\":{\"xsjygig\":\"dataawzxn\",\"hpqeyzzydpv\":\"datapfokslcns\"}}],\"userProperties\":[{\"name\":\"hdjarfdfnq\",\"value\":\"datavrs\"},{\"name\":\"lhgnlbvbdq\",\"value\":\"datajcedfpubnxoohy\"},{\"name\":\"smlscvhra\",\"value\":\"dataybbor\"},{\"name\":\"dxhkdy\",\"value\":\"datadkufqzuduq\"}],\"\":{\"xtplpg\":\"datai\",\"bszcvcegl\":\"datatzugkfabvekkxl\"}},{\"type\":\"Activity\",\"name\":\"zh\",\"description\":\"vv\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"azaoytkubmv\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Failed\",\"Failed\"],\"\":{\"iitzbyue\":\"datasqesspwutkjrqspw\"}},{\"activity\":\"umqmor\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"isrvlunyqen\":\"datamwd\",\"cfqzmjmf\":\"datarerzthcfnrlesgh\",\"kgklqucxewcd\":\"dataczzlkmtrrcbulvau\"}}],\"userProperties\":[{\"name\":\"jsm\",\"value\":\"datakqz\"}],\"\":{\"xzabxhmdorxbuap\":\"dataqiqydllhimvnvx\",\"oe\":\"datak\",\"cy\":\"dataicrtibad\"}}]}") - .toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(false, model.isSequential()); - Assertions.assertEquals(371055937, model.batchCount()); - Assertions.assertEquals("jahhcbzoaryhcxmf", model.items().value()); - Assertions.assertEquals("mqlcooyxfrrdbdy", model.activities().get(0).name()); - Assertions.assertEquals("fmycgucccb", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("turlnbmj", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jfvud", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivityTypeProperties model = new ForEachActivityTypeProperties().withIsSequential(false) - .withBatchCount(371055937) - .withItems(new Expression().withValue("jahhcbzoaryhcxmf")) - .withActivities(Arrays.asList( - new Activity().withName("mqlcooyxfrrdbdy") - .withDescription("fmycgucccb") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("turlnbmj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nguvjryfcxscrs") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gw") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("jfvud").withValue("datagwkyykhe"), - new UserProperty().withName("gapraafjxgoj").withValue("dataiupjgeb"), - new UserProperty().withName("suiklncqoyghrba").withValue("dataxywojux"), - new UserProperty().withName("fpcvblyeoyn").withValue("datahxkq"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("w") - .withDescription("xctdpj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("mookh") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("flt") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("daqxnkdqsyhm") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("whtpykfc").withValue("datacaujgacckjq"), - new UserProperty().withName("pj").withValue("datadbgmgxbvge"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("zgfnphfppjzmpxam") - .withDescription("dostvxtk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("rbkko") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kvn") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ynbxwzixmv") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("hdjarfdfnq").withValue("datavrs"), - new UserProperty().withName("lhgnlbvbdq").withValue("datajcedfpubnxoohy"), - new UserProperty().withName("smlscvhra").withValue("dataybbor"), - new UserProperty().withName("dxhkdy").withValue("datadkufqzuduq"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("zh") - .withDescription("vv") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("azaoytkubmv") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("umqmor") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("jsm").withValue("datakqz"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(false, model.isSequential()); - Assertions.assertEquals(371055937, model.batchCount()); - Assertions.assertEquals("jahhcbzoaryhcxmf", model.items().value()); - Assertions.assertEquals("mqlcooyxfrrdbdy", model.activities().get(0).name()); - Assertions.assertEquals("fmycgucccb", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("turlnbmj", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jfvud", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java deleted file mode 100644 index 4bcc13b9fd14..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class FormatReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FormatReadSettings model = BinaryData.fromString( - "{\"type\":\"FormatReadSettings\",\"\":{\"ebtjg\":\"datapkooaolthowcs\",\"exar\":\"dataeuimtxmd\",\"ivftl\":\"dataukoir\",\"p\":\"dataskinmxanjguadh\"}}") - .toObject(FormatReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatReadSettings model - = new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings")); - model = BinaryData.fromObject(model).toObject(FormatReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java deleted file mode 100644 index af0753d280d5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FormatWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class FormatWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FormatWriteSettings model - = BinaryData.fromString("{\"type\":\"FormatWriteSettings\",\"\":{\"wwexbotbrepef\":\"datahbzetss\"}}") - .toObject(FormatWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatWriteSettings model - = new FormatWriteSettings().withAdditionalProperties(mapOf("type", "FormatWriteSettings")); - model = BinaryData.fromObject(model).toObject(FormatWriteSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java deleted file mode 100644 index 68f238831fe7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FtpReadSettings; - -public final class FtpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FtpReadSettings model = BinaryData.fromString( - "{\"type\":\"FtpReadSettings\",\"recursive\":\"dataarmtuprqtcxqkoh\",\"wildcardFolderPath\":\"datayajkdejpar\",\"wildcardFileName\":\"datasbozfjbdyyxhjf\",\"enablePartitionDiscovery\":\"databwmrdl\",\"partitionRootPath\":\"dataklhwrikrulj\",\"deleteFilesAfterCompletion\":\"datagzffemryoia\",\"fileListPath\":\"databz\",\"useBinaryTransfer\":\"datalc\",\"disableChunking\":\"dataumvbhbli\",\"maxConcurrentConnections\":\"dataxolzinxxjfixr\",\"disableMetricsCollection\":\"datawxcaa\",\"\":{\"hacfiyrywfry\":\"dataqosgzgsgzlbunm\",\"iiarlldy\":\"datarreebjmslbxf\",\"wuebrvrh\":\"datafjdtykhsafrf\",\"ybwh\":\"dataqkfffvgbklei\"}}") - .toObject(FtpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpReadSettings model = new FtpReadSettings().withMaxConcurrentConnections("dataxolzinxxjfixr") - .withDisableMetricsCollection("datawxcaa") - .withRecursive("dataarmtuprqtcxqkoh") - .withWildcardFolderPath("datayajkdejpar") - .withWildcardFileName("datasbozfjbdyyxhjf") - .withEnablePartitionDiscovery("databwmrdl") - .withPartitionRootPath("dataklhwrikrulj") - .withDeleteFilesAfterCompletion("datagzffemryoia") - .withFileListPath("databz") - .withUseBinaryTransfer("datalc") - .withDisableChunking("dataumvbhbli"); - model = BinaryData.fromObject(model).toObject(FtpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java deleted file mode 100644 index ba3fd0f443c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FtpServerLocation; - -public final class FtpServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FtpServerLocation model = BinaryData.fromString( - "{\"type\":\"FtpServerLocation\",\"folderPath\":\"datamssgpgvokyejidbd\",\"fileName\":\"datasqunycwztlv\",\"\":{\"cauxuvavcpfpdofu\":\"datanmrkkyjtrepwpwf\"}}") - .toObject(FtpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpServerLocation model - = new FtpServerLocation().withFolderPath("datamssgpgvokyejidbd").withFileName("datasqunycwztlv"); - model = BinaryData.fromObject(model).toObject(FtpServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java deleted file mode 100644 index 0c933c4130d5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; - -public final class GenericDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GenericDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datajijzqjhljsazm\"}") - .toObject(GenericDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GenericDatasetTypeProperties model = new GenericDatasetTypeProperties().withTableName("datajijzqjhljsazm"); - model = BinaryData.fromObject(model).toObject(GenericDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java deleted file mode 100644 index 140624b93e0f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GetDataFactoryOperationStatusResponse; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetDataFactoryOperationStatusResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetDataFactoryOperationStatusResponse model = BinaryData.fromString( - "{\"status\":\"xhhllxricct\",\"\":{\"eiyglesrwvaexhdc\":\"datauqqoaj\",\"hdmljz\":\"datarceqnkbrupob\",\"nzpphepife\":\"datacvumepjpbi\"}}") - .toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("xhhllxricct", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetDataFactoryOperationStatusResponse model - = new GetDataFactoryOperationStatusResponse().withStatus("xhhllxricct").withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("xhhllxricct", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java deleted file mode 100644 index c3043c73b614..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import com.azure.resourcemanager.datafactory.models.GetMetadataActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetMetadataActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetMetadataActivity model = BinaryData.fromString( - "{\"type\":\"GetMetadata\",\"typeProperties\":{\"dataset\":{\"referenceName\":\"khe\",\"parameters\":{\"fxmbxqzczcc\":\"dataegczcpoyda\",\"aoiid\":\"datalpigpzpl\",\"gvanpjv\":\"dataknsqdr\",\"gwq\":\"datarwlseeuyxxrwo\"}},\"fieldList\":[\"datagsbwq\",\"dataotpvyt\",\"datazsqbckq\",\"datateminzn\"],\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataicjzkgyuv\",\"disableMetricsCollection\":\"dataeskindgmk\",\"\":{\"lxrnsyvmueik\":\"datavyuzzwphuli\",\"im\":\"datavcogq\"}},\"formatSettings\":{\"type\":\"FormatReadSettings\",\"\":{\"nu\":\"datarrxrk\",\"ufxuug\":\"datadhbmizbevje\",\"cmavln\":\"datadbpjoycpys\"}}},\"linkedServiceName\":{\"referenceName\":\"mvnvfg\",\"parameters\":{\"kezoxhazafmq\":\"dataxfd\",\"ammpeakdhebzquq\":\"databifpc\"}},\"policy\":{\"timeout\":\"dataxklojd\",\"retry\":\"datahajfj\",\"retryIntervalInSeconds\":1912893320,\"secureInput\":false,\"secureOutput\":true,\"\":{\"o\":\"datanxoxjghumvptb\",\"cjuzzzil\":\"datallvfea\",\"novbgdbao\":\"datauc\",\"ilqojdmzejcpzzq\":\"datanxsyh\"}},\"name\":\"inrymzlq\",\"description\":\"civxaqzmvgxqt\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ye\",\"dependencyConditions\":[\"Completed\",\"Succeeded\"],\"\":{\"utesqkklzyhav\":\"datagxelzuvdyztn\",\"ltc\":\"dataivefs\",\"vsidmcoxobrvzder\":\"datahpntewv\"}},{\"activity\":\"nnfi\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"brslbzcyubqemrxm\":\"dataguehggeea\",\"wwqnwxohbmvg\":\"dataibexaxu\",\"runkyuzcpi\":\"datagdnzvohrnqn\",\"fdtiocs\":\"dataas\"}}],\"userProperties\":[{\"name\":\"yyicascv\",\"value\":\"datamthukboryn\"},{\"name\":\"adtyhmoph\",\"value\":\"dataemhvnqwdphncftbq\"},{\"name\":\"jeqfoatqnhrhxhmt\",\"value\":\"datapxdtmrwjknt\"},{\"name\":\"znvijdtmjybbkdh\",\"value\":\"dataadnccunrviqrzw\"}],\"\":{\"exqnpnpggbua\":\"dataouc\",\"qztkxfhixfuuzacz\":\"datawrrgqudnmuirt\",\"d\":\"dataejfiieg\",\"qhzyswchbvejg\":\"dataitytketwdskoc\"}}") - .toObject(GetMetadataActivity.class); - Assertions.assertEquals("inrymzlq", model.name()); - Assertions.assertEquals("civxaqzmvgxqt", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ye", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("yyicascv", model.userProperties().get(0).name()); - Assertions.assertEquals("mvnvfg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1912893320, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("khe", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivity model = new GetMetadataActivity().withName("inrymzlq") - .withDescription("civxaqzmvgxqt") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ye") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nnfi") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("yyicascv").withValue("datamthukboryn"), - new UserProperty().withName("adtyhmoph").withValue("dataemhvnqwdphncftbq"), - new UserProperty().withName("jeqfoatqnhrhxhmt").withValue("datapxdtmrwjknt"), - new UserProperty().withName("znvijdtmjybbkdh").withValue("dataadnccunrviqrzw"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mvnvfg") - .withParameters(mapOf("kezoxhazafmq", "dataxfd", "ammpeakdhebzquq", "databifpc"))) - .withPolicy(new ActivityPolicy().withTimeout("dataxklojd") - .withRetry("datahajfj") - .withRetryIntervalInSeconds(1912893320) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withDataset(new DatasetReference().withReferenceName("khe") - .withParameters(mapOf("fxmbxqzczcc", "dataegczcpoyda", "aoiid", "datalpigpzpl", "gvanpjv", "dataknsqdr", - "gwq", "datarwlseeuyxxrwo"))) - .withFieldList(Arrays.asList("datagsbwq", "dataotpvyt", "datazsqbckq", "datateminzn")) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataicjzkgyuv") - .withDisableMetricsCollection("dataeskindgmk") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivity.class); - Assertions.assertEquals("inrymzlq", model.name()); - Assertions.assertEquals("civxaqzmvgxqt", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ye", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("yyicascv", model.userProperties().get(0).name()); - Assertions.assertEquals("mvnvfg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1912893320, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("khe", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTypePropertiesTests.java deleted file mode 100644 index 74a1be4296d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTypePropertiesTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GetMetadataActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetMetadataActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetMetadataActivityTypeProperties model = BinaryData.fromString( - "{\"dataset\":{\"referenceName\":\"xvjqevmzhkocyngd\",\"parameters\":{\"lvcbcxb\":\"datapnxylhrlbohdxln\",\"iuuetmqzuen\":\"dataisnhqqqaedgwghq\",\"mj\":\"datallqvroopk\"}},\"fieldList\":[\"dataibaxky\",\"dataqspnrcuvlfzdkpfe\"],\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datacahlsavinoora\",\"disableMetricsCollection\":\"datapfinyijmwqgmhfv\",\"\":{\"ucwmdmbysvqbg\":\"datazdhedmfidropf\"}},\"formatSettings\":{\"type\":\"FormatReadSettings\",\"\":{\"xeusioawrorexi\":\"dataheyxc\",\"tmyc\":\"datawbquppkzuxsbbmxf\",\"ezadkfmpiffgtqhg\":\"dataelyopobgzluukiw\"}}}") - .toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("xvjqevmzhkocyngd", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivityTypeProperties model = new GetMetadataActivityTypeProperties() - .withDataset(new DatasetReference().withReferenceName("xvjqevmzhkocyngd") - .withParameters(mapOf("lvcbcxb", "datapnxylhrlbohdxln", "iuuetmqzuen", "dataisnhqqqaedgwghq", "mj", - "datallqvroopk"))) - .withFieldList(Arrays.asList("dataibaxky", "dataqspnrcuvlfzdkpfe")) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datacahlsavinoora") - .withDisableMetricsCollection("datapfinyijmwqgmhfv") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("xvjqevmzhkocyngd", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java deleted file mode 100644 index f13cc9b45f10..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetSsisObjectMetadataRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetSsisObjectMetadataRequest model = BinaryData.fromString("{\"metadataPath\":\"jriplrbpbewtghf\"}") - .toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("jriplrbpbewtghf", model.metadataPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetSsisObjectMetadataRequest model = new GetSsisObjectMetadataRequest().withMetadataPath("jriplrbpbewtghf"); - model = BinaryData.fromObject(model).toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("jriplrbpbewtghf", model.metadataPath()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java deleted file mode 100644 index 2529828e8318..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner; -import com.azure.resourcemanager.datafactory.models.GlobalParameterListResponse; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"n\":{\"type\":\"Float\",\"value\":\"datattuiaclkiexhajl\"},\"gbpvnwswmtxkyct\":{\"type\":\"Array\",\"value\":\"dataiqfyuttdi\"},\"l\":{\"type\":\"Object\",\"value\":\"datagzwx\"}},\"name\":\"cvogygzyvne\",\"type\":\"aifghtmoqqt\",\"etag\":\"fhzbkr\",\"id\":\"jjavfq\"}],\"nextLink\":\"hnqoewdo\"}") - .toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("jjavfq", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, model.value().get(0).properties().get("n").type()); - Assertions.assertEquals("hnqoewdo", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterListResponse model = new GlobalParameterListResponse() - .withValue(Arrays.asList(new GlobalParameterResourceInner().withId("jjavfq") - .withProperties(mapOf("n", - new GlobalParameterSpecification().withType(GlobalParameterType.FLOAT) - .withValue("datattuiaclkiexhajl"), - "gbpvnwswmtxkyct", - new GlobalParameterSpecification().withType(GlobalParameterType.ARRAY).withValue("dataiqfyuttdi"), - "l", - new GlobalParameterSpecification().withType(GlobalParameterType.OBJECT).withValue("datagzwx"))))) - .withNextLink("hnqoewdo"); - model = BinaryData.fromObject(model).toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("jjavfq", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, model.value().get(0).properties().get("n").type()); - Assertions.assertEquals("hnqoewdo", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java deleted file mode 100644 index 662e1812a381..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterResourceInner model = BinaryData.fromString( - "{\"properties\":{\"b\":{\"type\":\"Int\",\"value\":\"dataetesypvidbztjhqt\"}},\"name\":\"nynkbwet\",\"type\":\"uhpsprkzyaupia\",\"etag\":\"xnafbw\",\"id\":\"oohtuovmaonurjtu\"}") - .toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("oohtuovmaonurjtu", model.id()); - Assertions.assertEquals(GlobalParameterType.INT, model.properties().get("b").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterResourceInner model = new GlobalParameterResourceInner().withId("oohtuovmaonurjtu") - .withProperties(mapOf("b", new GlobalParameterSpecification().withType(GlobalParameterType.INT) - .withValue("dataetesypvidbztjhqt"))); - model = BinaryData.fromObject(model).toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("oohtuovmaonurjtu", model.id()); - Assertions.assertEquals(GlobalParameterType.INT, model.properties().get("b").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java deleted file mode 100644 index 4c2a63edd827..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterSpecification model = BinaryData.fromString("{\"type\":\"String\",\"value\":\"datarm\"}") - .toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.STRING, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterSpecification model - = new GlobalParameterSpecification().withType(GlobalParameterType.STRING).withValue("datarm"); - model = BinaryData.fromObject(model).toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.STRING, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 0dfa026ff519..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GlobalParametersCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"glcktraeraql\":{\"type\":\"Object\",\"value\":\"datathfas\"}},\"name\":\"yhwdogchdqtlbnkr\",\"type\":\"oxlwpeksrhkmzs\",\"etag\":\"p\",\"id\":\"sbp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GlobalParameterResource response = manager.globalParameters() - .define("aqlbdez") - .withExistingFactory("javpmokaqnuycd", "ymbefvuutlirz") - .withProperties(mapOf("ycdryjgxwd", - new GlobalParameterSpecification().withType(GlobalParameterType.INT).withValue("datauhearhkchyugj"))) - .create(); - - Assertions.assertEquals("sbp", response.id()); - Assertions.assertEquals(GlobalParameterType.OBJECT, response.properties().get("glcktraeraql").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteWithResponseMockTests.java deleted file mode 100644 index d4807bbad892..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteWithResponseMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GlobalParametersDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.globalParameters().deleteWithResponse("yrs", "ifcwjbyfdjzefk", "c", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.java deleted file mode 100644 index 84cd9eeacce5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GlobalParametersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"uzyyniv\":{\"type\":\"Int\",\"value\":\"datanlpjivtzs\"},\"mtxvnelw\":{\"type\":\"Array\",\"value\":\"dataqiijkvops\"},\"ytdborujflt\":{\"type\":\"String\",\"value\":\"datadm\"},\"gugvrwnweiwkbkh\":{\"type\":\"Bool\",\"value\":\"datawfwlfq\"}},\"name\":\"qacc\",\"type\":\"bdjott\",\"etag\":\"kqsxgaojwulat\",\"id\":\"jzv\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GlobalParameterResource response - = manager.globalParameters().getWithResponse("lf", "ftz", "g", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("jzv", response.id()); - Assertions.assertEquals(GlobalParameterType.INT, response.properties().get("uzyyniv").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.java deleted file mode 100644 index c7eaa46535c8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GlobalParametersListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"gjkzulihdhfcc\":{\"type\":\"Float\",\"value\":\"datas\"},\"ilhcca\":{\"type\":\"Float\",\"value\":\"datahztqiaydmblpdjtl\"},\"ydcslyd\":{\"type\":\"Int\",\"value\":\"dataiifvindcakansjrz\"},\"iyngupphvo\":{\"type\":\"Array\",\"value\":\"datawtkce\"}},\"name\":\"ocjsadbuvvpdj\",\"type\":\"nndvvgs\",\"etag\":\"vz\",\"id\":\"dfikduwqkhmabgzc\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.globalParameters().listByFactory("tbflechgiqxknjr", "rvnq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dfikduwqkhmabgzc", response.iterator().next().id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, - response.iterator().next().properties().get("gjkzulihdhfcc").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java deleted file mode 100644 index 97f4ea5f05f9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleAdWordsObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleAdWordsObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleAdWordsObjectDataset model = BinaryData.fromString( - "{\"type\":\"GoogleAdWordsObject\",\"typeProperties\":{\"tableName\":\"datainrkj\"},\"description\":\"gzfsu\",\"structure\":\"dataybhozlsbufnhb\",\"schema\":\"datantpoe\",\"linkedServiceName\":{\"referenceName\":\"ytrsljzmzui\",\"parameters\":{\"p\":\"datagsxzn\",\"ma\":\"datamkqbylbbnjldicq\"}},\"parameters\":{\"fzoidy\":{\"type\":\"Int\",\"defaultValue\":\"dataenitvkyahfo\"}},\"annotations\":[\"datarev\"],\"folder\":{\"name\":\"kfalw\"},\"\":{\"ucnusnylfhicrj\":\"datachcayvqbeq\"}}") - .toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("gzfsu", model.description()); - Assertions.assertEquals("ytrsljzmzui", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("fzoidy").type()); - Assertions.assertEquals("kfalw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsObjectDataset model = new GoogleAdWordsObjectDataset().withDescription("gzfsu") - .withStructure("dataybhozlsbufnhb") - .withSchema("datantpoe") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ytrsljzmzui") - .withParameters(mapOf("p", "datagsxzn", "ma", "datamkqbylbbnjldicq"))) - .withParameters(mapOf("fzoidy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataenitvkyahfo"))) - .withAnnotations(Arrays.asList("datarev")) - .withFolder(new DatasetFolder().withName("kfalw")) - .withTableName("datainrkj"); - model = BinaryData.fromObject(model).toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("gzfsu", model.description()); - Assertions.assertEquals("ytrsljzmzui", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("fzoidy").type()); - Assertions.assertEquals("kfalw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java deleted file mode 100644 index 9f14d9eade9a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleAdWordsSource; - -public final class GoogleAdWordsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleAdWordsSource model = BinaryData.fromString( - "{\"type\":\"GoogleAdWordsSource\",\"query\":\"dataxkwrvtlb\",\"queryTimeout\":\"datakbdtmr\",\"additionalColumns\":\"datatuzfhvb\",\"sourceRetryCount\":\"datai\",\"sourceRetryWait\":\"datauluilgmovadn\",\"maxConcurrentConnections\":\"datasmjxgqsbjc\",\"disableMetricsCollection\":\"dataaruvbzcqgtzxtlr\",\"\":{\"pswlepttabrkn\":\"datadznvjgovyqp\",\"keuyxgpcrvvmrdl\":\"datafw\",\"ysdharswhq\":\"datakpznoveabwpaiqik\",\"nndfplksdiehraj\":\"datarpdxnrdvtvtyqlt\"}}") - .toObject(GoogleAdWordsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsSource model = new GoogleAdWordsSource().withSourceRetryCount("datai") - .withSourceRetryWait("datauluilgmovadn") - .withMaxConcurrentConnections("datasmjxgqsbjc") - .withDisableMetricsCollection("dataaruvbzcqgtzxtlr") - .withQueryTimeout("datakbdtmr") - .withAdditionalColumns("datatuzfhvb") - .withQuery("dataxkwrvtlb"); - model = BinaryData.fromObject(model).toObject(GoogleAdWordsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java deleted file mode 100644 index 73f1fdd3a349..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryDatasetTypeProperties; - -public final class GoogleBigQueryDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datahxfpzc\",\"table\":\"datadq\",\"dataset\":\"datadxjvvlyibweuaugt\"}") - .toObject(GoogleBigQueryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryDatasetTypeProperties model - = new GoogleBigQueryDatasetTypeProperties().withTableName("datahxfpzc") - .withTable("datadq") - .withDataset("datadxjvvlyibweuaugt"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java deleted file mode 100644 index 2b21104a812c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleBigQueryObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryObjectDataset model = BinaryData.fromString( - "{\"type\":\"GoogleBigQueryObject\",\"typeProperties\":{\"tableName\":\"datablt\",\"table\":\"datavnpbgcesfddfclmo\",\"dataset\":\"datarofofkbcjzzw\"},\"description\":\"oblbtdqzhixccnkf\",\"structure\":\"datagvyoxmyqzyqe\",\"schema\":\"databbzdsluokcevox\",\"linkedServiceName\":{\"referenceName\":\"ddpwmgw\",\"parameters\":{\"vvvgyphheovejk\":\"datakfjvqglaxsei\",\"thrtzpuv\":\"dataaleczt\"}},\"parameters\":{\"zembqqiehdhjofyw\":{\"type\":\"String\",\"defaultValue\":\"datarqefnquollouurm\"},\"hvpaglyyhrgma\":{\"type\":\"Float\",\"defaultValue\":\"dataxoxlorxgslqcxu\"},\"tocrbfgqicmdrgcu\":{\"type\":\"Array\",\"defaultValue\":\"datamlutyjukkedp\"},\"cmljzksqimybqj\":{\"type\":\"Bool\",\"defaultValue\":\"datavkrwrjcqh\"}},\"annotations\":[\"dataomhcaqpv\",\"dataszopeuku\"],\"folder\":{\"name\":\"wbsskgqjemo\"},\"\":{\"gipdzym\":\"datafsjbpwjwz\"}}") - .toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("oblbtdqzhixccnkf", model.description()); - Assertions.assertEquals("ddpwmgw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zembqqiehdhjofyw").type()); - Assertions.assertEquals("wbsskgqjemo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryObjectDataset model = new GoogleBigQueryObjectDataset().withDescription("oblbtdqzhixccnkf") - .withStructure("datagvyoxmyqzyqe") - .withSchema("databbzdsluokcevox") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ddpwmgw") - .withParameters(mapOf("vvvgyphheovejk", "datakfjvqglaxsei", "thrtzpuv", "dataaleczt"))) - .withParameters(mapOf("zembqqiehdhjofyw", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datarqefnquollouurm"), - "hvpaglyyhrgma", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxoxlorxgslqcxu"), - "tocrbfgqicmdrgcu", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamlutyjukkedp"), - "cmljzksqimybqj", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datavkrwrjcqh"))) - .withAnnotations(Arrays.asList("dataomhcaqpv", "dataszopeuku")) - .withFolder(new DatasetFolder().withName("wbsskgqjemo")) - .withTableName("datablt") - .withTable("datavnpbgcesfddfclmo") - .withDataset("datarofofkbcjzzw"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("oblbtdqzhixccnkf", model.description()); - Assertions.assertEquals("ddpwmgw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zembqqiehdhjofyw").type()); - Assertions.assertEquals("wbsskgqjemo", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java deleted file mode 100644 index 24bccc0e248e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleBigQuerySource; - -public final class GoogleBigQuerySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQuerySource model = BinaryData.fromString( - "{\"type\":\"GoogleBigQuerySource\",\"query\":\"dataeydmeuimlhyze\",\"queryTimeout\":\"dataivkzrvya\",\"additionalColumns\":\"dataqgyui\",\"sourceRetryCount\":\"dataelyjduzapnopoto\",\"sourceRetryWait\":\"datarrqcaglyt\",\"maxConcurrentConnections\":\"datacbdpczmzuwr\",\"disableMetricsCollection\":\"datahfwce\",\"\":{\"cyfccnwmdpbso\":\"dataaqaviqskylwpq\",\"fxpveruuckrzw\":\"datakn\"}}") - .toObject(GoogleBigQuerySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQuerySource model = new GoogleBigQuerySource().withSourceRetryCount("dataelyjduzapnopoto") - .withSourceRetryWait("datarrqcaglyt") - .withMaxConcurrentConnections("datacbdpczmzuwr") - .withDisableMetricsCollection("datahfwce") - .withQueryTimeout("dataivkzrvya") - .withAdditionalColumns("dataqgyui") - .withQuery("dataeydmeuimlhyze"); - model = BinaryData.fromObject(model).toObject(GoogleBigQuerySource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.java deleted file mode 100644 index e100f8ede502..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryV2DatasetTypeProperties; - -public final class GoogleBigQueryV2DatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryV2DatasetTypeProperties model - = BinaryData.fromString("{\"table\":\"dataowqrzvuxn\",\"dataset\":\"datauohshzultdbvm\"}") - .toObject(GoogleBigQueryV2DatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2DatasetTypeProperties model - = new GoogleBigQueryV2DatasetTypeProperties().withTable("dataowqrzvuxn").withDataset("datauohshzultdbvm"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryV2DatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.java deleted file mode 100644 index d3442cbb1a54..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryV2ObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleBigQueryV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"GoogleBigQueryV2Object\",\"typeProperties\":{\"table\":\"datancoqxtvytzq\",\"dataset\":\"dataldjvzmxy\"},\"description\":\"zz\",\"structure\":\"datajv\",\"schema\":\"datazbdbrlbo\",\"linkedServiceName\":{\"referenceName\":\"ltyo\",\"parameters\":{\"sokrlnrpeyl\":\"databibtkeiecupmwx\",\"dgiql\":\"dataiiul\"}},\"parameters\":{\"vunknsgvxhxr\":{\"type\":\"Object\",\"defaultValue\":\"dataw\"},\"yfjvifbmojtehq\":{\"type\":\"SecureString\",\"defaultValue\":\"datatrtc\"},\"mbhukdfpknvk\":{\"type\":\"Int\",\"defaultValue\":\"datatrcoufk\"}},\"annotations\":[\"datazje\"],\"folder\":{\"name\":\"meo\"},\"\":{\"knckkfxmuqeqkw\":\"datajl\",\"hdtezgfctu\":\"dataphfvsftsstwlpxca\"}}") - .toObject(GoogleBigQueryV2ObjectDataset.class); - Assertions.assertEquals("zz", model.description()); - Assertions.assertEquals("ltyo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vunknsgvxhxr").type()); - Assertions.assertEquals("meo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2ObjectDataset model = new GoogleBigQueryV2ObjectDataset().withDescription("zz") - .withStructure("datajv") - .withSchema("datazbdbrlbo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ltyo") - .withParameters(mapOf("sokrlnrpeyl", "databibtkeiecupmwx", "dgiql", "dataiiul"))) - .withParameters(mapOf("vunknsgvxhxr", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataw"), "yfjvifbmojtehq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatrtc"), - "mbhukdfpknvk", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datatrcoufk"))) - .withAnnotations(Arrays.asList("datazje")) - .withFolder(new DatasetFolder().withName("meo")) - .withTable("datancoqxtvytzq") - .withDataset("dataldjvzmxy"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryV2ObjectDataset.class); - Assertions.assertEquals("zz", model.description()); - Assertions.assertEquals("ltyo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vunknsgvxhxr").type()); - Assertions.assertEquals("meo", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2SourceTests.java deleted file mode 100644 index e20b582d39d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2SourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryV2Source; - -public final class GoogleBigQueryV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryV2Source model = BinaryData.fromString( - "{\"type\":\"GoogleBigQueryV2Source\",\"query\":\"dataqaptqyrnlyuyopww\",\"queryTimeout\":\"dataoubwbssvfzjjf\",\"additionalColumns\":\"dataxeosyl\",\"sourceRetryCount\":\"datappqjujbqrfw\",\"sourceRetryWait\":\"datawvpnbgyxo\",\"maxConcurrentConnections\":\"datakzeaiaycauvlfsc\",\"disableMetricsCollection\":\"dataqpzqivfgemvuicxw\",\"\":{\"atjm\":\"dataydlvfnucgwflj\"}}") - .toObject(GoogleBigQueryV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2Source model = new GoogleBigQueryV2Source().withSourceRetryCount("datappqjujbqrfw") - .withSourceRetryWait("datawvpnbgyxo") - .withMaxConcurrentConnections("datakzeaiaycauvlfsc") - .withDisableMetricsCollection("dataqpzqivfgemvuicxw") - .withQueryTimeout("dataoubwbssvfzjjf") - .withAdditionalColumns("dataxeosyl") - .withQuery("dataqaptqyrnlyuyopww"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryV2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java deleted file mode 100644 index c47646de84fc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleCloudStorageLocation; - -public final class GoogleCloudStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleCloudStorageLocation model = BinaryData.fromString( - "{\"type\":\"GoogleCloudStorageLocation\",\"bucketName\":\"datadirdammtzjgc\",\"version\":\"datafxtbwjjirmuydg\",\"folderPath\":\"datatmdofgeoag\",\"fileName\":\"dataoftnxodwxm\",\"\":{\"stgfczl\":\"datawiygmgsevmdmzenl\",\"cidt\":\"datad\",\"cvucgytoxu\":\"datavamyyznmrgcdo\",\"qmebgszplusdekpd\":\"datahttnzqs\"}}") - .toObject(GoogleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageLocation model = new GoogleCloudStorageLocation().withFolderPath("datatmdofgeoag") - .withFileName("dataoftnxodwxm") - .withBucketName("datadirdammtzjgc") - .withVersion("datafxtbwjjirmuydg"); - model = BinaryData.fromObject(model).toObject(GoogleCloudStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java deleted file mode 100644 index 97a76fded024..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleCloudStorageReadSettings; - -public final class GoogleCloudStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleCloudStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"GoogleCloudStorageReadSettings\",\"recursive\":\"datazfvxdkwvceqly\",\"wildcardFolderPath\":\"datayqqonkre\",\"wildcardFileName\":\"dataojusmdod\",\"prefix\":\"datak\",\"fileListPath\":\"datantaovlyyk\",\"enablePartitionDiscovery\":\"datafpkdsldyw\",\"partitionRootPath\":\"datavswlhj\",\"deleteFilesAfterCompletion\":\"datakqygszhpnatltj\",\"modifiedDatetimeStart\":\"dataqz\",\"modifiedDatetimeEnd\":\"datalkyrn\",\"maxConcurrentConnections\":\"datasbubzfayy\",\"disableMetricsCollection\":\"dataec\",\"\":{\"vsmvvfpkym\":\"datarederzsnfgmohhcg\",\"wghfg\":\"datanvvwfaorulboawzp\"}}") - .toObject(GoogleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageReadSettings model - = new GoogleCloudStorageReadSettings().withMaxConcurrentConnections("datasbubzfayy") - .withDisableMetricsCollection("dataec") - .withRecursive("datazfvxdkwvceqly") - .withWildcardFolderPath("datayqqonkre") - .withWildcardFileName("dataojusmdod") - .withPrefix("datak") - .withFileListPath("datantaovlyyk") - .withEnablePartitionDiscovery("datafpkdsldyw") - .withPartitionRootPath("datavswlhj") - .withDeleteFilesAfterCompletion("datakqygszhpnatltj") - .withModifiedDatetimeStart("dataqz") - .withModifiedDatetimeEnd("datalkyrn"); - model = BinaryData.fromObject(model).toObject(GoogleCloudStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java deleted file mode 100644 index bd0a57eaed4a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GreenplumDatasetTypeProperties; - -public final class GreenplumDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumDatasetTypeProperties model = BinaryData - .fromString( - "{\"tableName\":\"datamqeumzyyhmgqa\",\"table\":\"datavjqutxrbgbzgfhzd\",\"schema\":\"datahk\"}") - .toObject(GreenplumDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumDatasetTypeProperties model = new GreenplumDatasetTypeProperties().withTableName("datamqeumzyyhmgqa") - .withTable("datavjqutxrbgbzgfhzd") - .withSchema("datahk"); - model = BinaryData.fromObject(model).toObject(GreenplumDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java deleted file mode 100644 index 30611e058d05..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GreenplumSource; - -public final class GreenplumSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumSource model = BinaryData.fromString( - "{\"type\":\"GreenplumSource\",\"query\":\"databrcdumkqhatckom\",\"queryTimeout\":\"datafjs\",\"additionalColumns\":\"datavzvkddaeiepvjr\",\"sourceRetryCount\":\"dataksx\",\"sourceRetryWait\":\"datakb\",\"maxConcurrentConnections\":\"datauawokrhhj\",\"disableMetricsCollection\":\"datahrmuwvs\",\"\":{\"imgg\":\"datauosidtxmbnm\"}}") - .toObject(GreenplumSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumSource model = new GreenplumSource().withSourceRetryCount("dataksx") - .withSourceRetryWait("datakb") - .withMaxConcurrentConnections("datauawokrhhj") - .withDisableMetricsCollection("datahrmuwvs") - .withQueryTimeout("datafjs") - .withAdditionalColumns("datavzvkddaeiepvjr") - .withQuery("databrcdumkqhatckom"); - model = BinaryData.fromObject(model).toObject(GreenplumSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java deleted file mode 100644 index 19074a2bda67..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GreenplumTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GreenplumTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumTableDataset model = BinaryData.fromString( - "{\"type\":\"GreenplumTable\",\"typeProperties\":{\"tableName\":\"dataypngocbd\",\"table\":\"datarivptbczsu\",\"schema\":\"datarzukekytkzvtv\"},\"description\":\"atvogpycein\",\"structure\":\"datarhbd\",\"schema\":\"databyp\",\"linkedServiceName\":{\"referenceName\":\"s\",\"parameters\":{\"bqpsezsggd\":\"datafjuda\"}},\"parameters\":{\"fzrguzliyv\":{\"type\":\"String\",\"defaultValue\":\"databrtsrdplqdyzacia\"},\"djuljgxotuda\":{\"type\":\"SecureString\",\"defaultValue\":\"datasinva\"},\"ifgs\":{\"type\":\"Bool\",\"defaultValue\":\"datayaosthulzu\"},\"cygimizl\":{\"type\":\"Int\",\"defaultValue\":\"datadlnoc\"}},\"annotations\":[\"databwmgksrlmspp\",\"dataoeszthjtryjsk\",\"dataiylgzzu\",\"dataixpsybqowgvmxw\"],\"folder\":{\"name\":\"xdhkoex\"},\"\":{\"wscmneev\":\"datagnaka\"}}") - .toObject(GreenplumTableDataset.class); - Assertions.assertEquals("atvogpycein", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("fzrguzliyv").type()); - Assertions.assertEquals("xdhkoex", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumTableDataset model = new GreenplumTableDataset().withDescription("atvogpycein") - .withStructure("datarhbd") - .withSchema("databyp") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("s").withParameters(mapOf("bqpsezsggd", "datafjuda"))) - .withParameters(mapOf("fzrguzliyv", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databrtsrdplqdyzacia"), - "djuljgxotuda", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datasinva"), - "ifgs", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datayaosthulzu"), - "cygimizl", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datadlnoc"))) - .withAnnotations( - Arrays.asList("databwmgksrlmspp", "dataoeszthjtryjsk", "dataiylgzzu", "dataixpsybqowgvmxw")) - .withFolder(new DatasetFolder().withName("xdhkoex")) - .withTableName("dataypngocbd") - .withTable("datarivptbczsu") - .withSchemaTypePropertiesSchema("datarzukekytkzvtv"); - model = BinaryData.fromObject(model).toObject(GreenplumTableDataset.class); - Assertions.assertEquals("atvogpycein", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("fzrguzliyv").type()); - Assertions.assertEquals("xdhkoex", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java deleted file mode 100644 index 53cd9c23a81c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HBaseObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HBaseObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HBaseObjectDataset model = BinaryData.fromString( - "{\"type\":\"HBaseObject\",\"typeProperties\":{\"tableName\":\"datacbicfecthotb\"},\"description\":\"whz\",\"structure\":\"dataxjvtwkyjdpayxo\",\"schema\":\"dataiwuzrgqztjfkgbtq\",\"linkedServiceName\":{\"referenceName\":\"jobsynn\",\"parameters\":{\"wfudmpf\":\"dataonjqhdheosx\"}},\"parameters\":{\"bb\":{\"type\":\"Array\",\"defaultValue\":\"datahtjtntcwgp\"},\"spkvrmp\":{\"type\":\"Array\",\"defaultValue\":\"dataecctokfspvjr\"},\"djmvphwfnu\":{\"type\":\"String\",\"defaultValue\":\"datayptwjwiyyeohgmc\"},\"ueprpmofxnwc\":{\"type\":\"SecureString\",\"defaultValue\":\"datavfzzioxbgom\"}},\"annotations\":[\"dataoxi\",\"datatxxxajse\",\"datab\",\"datannrnkyj\"],\"folder\":{\"name\":\"pcbs\"},\"\":{\"pkjealkdbewhotv\":\"dataehczbnivcohsxv\",\"dktrjtoqszh\":\"datamyzuqfd\"}}") - .toObject(HBaseObjectDataset.class); - Assertions.assertEquals("whz", model.description()); - Assertions.assertEquals("jobsynn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bb").type()); - Assertions.assertEquals("pcbs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseObjectDataset model = new HBaseObjectDataset().withDescription("whz") - .withStructure("dataxjvtwkyjdpayxo") - .withSchema("dataiwuzrgqztjfkgbtq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jobsynn") - .withParameters(mapOf("wfudmpf", "dataonjqhdheosx"))) - .withParameters(mapOf("bb", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahtjtntcwgp"), - "spkvrmp", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataecctokfspvjr"), - "djmvphwfnu", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayptwjwiyyeohgmc"), - "ueprpmofxnwc", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datavfzzioxbgom"))) - .withAnnotations(Arrays.asList("dataoxi", "datatxxxajse", "datab", "datannrnkyj")) - .withFolder(new DatasetFolder().withName("pcbs")) - .withTableName("datacbicfecthotb"); - model = BinaryData.fromObject(model).toObject(HBaseObjectDataset.class); - Assertions.assertEquals("whz", model.description()); - Assertions.assertEquals("jobsynn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bb").type()); - Assertions.assertEquals("pcbs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java deleted file mode 100644 index ce004c092703..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HBaseSource; - -public final class HBaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HBaseSource model = BinaryData.fromString( - "{\"type\":\"HBaseSource\",\"query\":\"dataqgpldrn\",\"queryTimeout\":\"datahdb\",\"additionalColumns\":\"databmsbetzufkvx\",\"sourceRetryCount\":\"databddrtngdc\",\"sourceRetryWait\":\"datajzgzaeuu\",\"maxConcurrentConnections\":\"datavheqzl\",\"disableMetricsCollection\":\"datavaskrgoodfhpyue\",\"\":{\"lizlzxh\":\"datanyddp\",\"sjwawl\":\"datacuglgmfznholaf\",\"yk\":\"dataqmznkcwiok\"}}") - .toObject(HBaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseSource model = new HBaseSource().withSourceRetryCount("databddrtngdc") - .withSourceRetryWait("datajzgzaeuu") - .withMaxConcurrentConnections("datavheqzl") - .withDisableMetricsCollection("datavaskrgoodfhpyue") - .withQueryTimeout("datahdb") - .withAdditionalColumns("databmsbetzufkvx") - .withQuery("dataqgpldrn"); - model = BinaryData.fromObject(model).toObject(HBaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java deleted file mode 100644 index 358f82f341d7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightHiveActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightHiveActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightHiveActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightHive\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"ghloemqapvn\",\"parameters\":{\"bqadtv\":\"dataqkrsnxuezw\"}},{\"referenceName\":\"gug\",\"parameters\":{\"xxe\":\"datagkriv\",\"odvzjkz\":\"dataplphkiyiqpi\"}},{\"referenceName\":\"lvxdpopubbwps\",\"parameters\":{\"w\":\"datab\",\"mmgf\":\"datahjqakacbcbrsnnv\",\"qmty\":\"datat\",\"jkbisjurilqc\":\"dataqut\"}}],\"arguments\":[\"datadorbufog\",\"datackbizqqajs\"],\"getDebugInfo\":\"Always\",\"scriptPath\":\"dataojgv\",\"scriptLinkedService\":{\"referenceName\":\"zvtgwlzqcyvrbg\",\"parameters\":{\"zzcbc\":\"datardekjbljfkqubnn\"}},\"defines\":{\"lwfd\":\"datan\",\"bwjtnfaumqkgccld\":\"dataxxaoyiskyoasxakb\"},\"variables\":{\"zwsnryfaprhfc\":\"dataeweeeg\"},\"queryTimeout\":124430894},\"linkedServiceName\":{\"referenceName\":\"r\",\"parameters\":{\"nfrhbkn\":\"datadszuxhaqlywty\",\"xhfg\":\"dataagpnmcqud\"}},\"policy\":{\"timeout\":\"dataegm\",\"retry\":\"dataebzoujhijlduuvxk\",\"retryIntervalInSeconds\":1813397068,\"secureInput\":false,\"secureOutput\":true,\"\":{\"exgnfjwfo\":\"datadzwbsk\",\"pmowlsrxytev\":\"datazlia\",\"nzzhyl\":\"dataqxpmfhehtrpql\",\"m\":\"datazuxqqrmck\"}},\"name\":\"sueutby\",\"description\":\"zg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"jpiecnrivsiwws\",\"dependencyConditions\":[\"Failed\",\"Skipped\"],\"\":{\"mjtanrirrnqloom\":\"dataikouvpcjyhsz\",\"dvknqui\":\"dataywyqgaskap\"}},{\"activity\":\"ipgvfchzcpv\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Skipped\"],\"\":{\"bfpte\":\"datazpfgkslvbrxlsbg\"}}],\"userProperties\":[{\"name\":\"neopxdbhcfswpdar\",\"value\":\"datacabsmrfx\"}],\"\":{\"seexdboatvsfyxdf\":\"datavzgwvmhbiziij\",\"gfxacojca\":\"dataqrnawnqy\",\"j\":\"dataaxor\",\"dtnaptwmawypk\":\"dataoyngxogqvwchyn\"}}") - .toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("sueutby", model.name()); - Assertions.assertEquals("zg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("jpiecnrivsiwws", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("neopxdbhcfswpdar", model.userProperties().get(0).name()); - Assertions.assertEquals("r", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1813397068, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("ghloemqapvn", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("zvtgwlzqcyvrbg", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(124430894, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivity model - = new HDInsightHiveActivity().withName("sueutby") - .withDescription("zg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jpiecnrivsiwws") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ipgvfchzcpv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("neopxdbhcfswpdar").withValue("datacabsmrfx"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("r") - .withParameters(mapOf("nfrhbkn", "datadszuxhaqlywty", "xhfg", "dataagpnmcqud"))) - .withPolicy(new ActivityPolicy().withTimeout("dataegm") - .withRetry("dataebzoujhijlduuvxk") - .withRetryIntervalInSeconds(1813397068) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("ghloemqapvn") - .withParameters(mapOf("bqadtv", "dataqkrsnxuezw")), - new LinkedServiceReference().withReferenceName("gug") - .withParameters(mapOf("xxe", "datagkriv", "odvzjkz", "dataplphkiyiqpi")), - new LinkedServiceReference().withReferenceName("lvxdpopubbwps") - .withParameters(mapOf("w", "datab", "mmgf", "datahjqakacbcbrsnnv", "qmty", "datat", - "jkbisjurilqc", "dataqut")))) - .withArguments(Arrays.asList("datadorbufog", "datackbizqqajs")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withScriptPath("dataojgv") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("zvtgwlzqcyvrbg") - .withParameters(mapOf("zzcbc", "datardekjbljfkqubnn"))) - .withDefines(mapOf("lwfd", "datan", "bwjtnfaumqkgccld", "dataxxaoyiskyoasxakb")) - .withVariables(mapOf("zwsnryfaprhfc", "dataeweeeg")) - .withQueryTimeout(124430894); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("sueutby", model.name()); - Assertions.assertEquals("zg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("jpiecnrivsiwws", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("neopxdbhcfswpdar", model.userProperties().get(0).name()); - Assertions.assertEquals("r", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1813397068, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("ghloemqapvn", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("zvtgwlzqcyvrbg", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(124430894, model.queryTimeout()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java deleted file mode 100644 index c2f7b3faf4ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightHiveActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightHiveActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightHiveActivityTypeProperties model = BinaryData.fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"idoqvcjspjpmt\",\"parameters\":{\"cgzvqpnjqpwx\":\"datavizaygtbmluy\",\"pa\":\"datakui\",\"dleegwlhanyueizh\":\"datavlnzwicqopwm\"}},{\"referenceName\":\"djkmxbghxiotlfzb\",\"parameters\":{\"dicoaysar\":\"datauqkb\"}},{\"referenceName\":\"qkgausc\",\"parameters\":{\"fejdgojavqezek\":\"datayfyjeexmlkx\",\"s\":\"datavayyyowjpsmnxcc\"}},{\"referenceName\":\"hlokhmkqy\",\"parameters\":{\"lmwzkxaglwd\":\"dataddwfhfjfato\",\"hvioccszdaxafu\":\"datatjfnmxzu\"}}],\"arguments\":[\"datanqfwobnbluutm\",\"dataimlozlfdxjirfye\"],\"getDebugInfo\":\"None\",\"scriptPath\":\"datadc\",\"scriptLinkedService\":{\"referenceName\":\"ormxipwcqha\",\"parameters\":{\"wiocuhas\":\"datafnfa\",\"whotjcgdpqk\":\"dataielhtukhei\"}},\"defines\":{\"vrglqlvmkeseyqo\":\"dataqm\",\"hmzlet\":\"datamjuqq\",\"uefjbmowqwodm\":\"datackjuwkkvarff\",\"ciapvcsw\":\"datardtywajqwa\"},\"variables\":{\"tftaqmrimletjvz\":\"datapcpgc\",\"wgszxupwriz\":\"datatfgabiblhzfglp\"},\"queryTimeout\":948481905}") - .toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("idoqvcjspjpmt", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("ormxipwcqha", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(948481905, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivityTypeProperties model = new HDInsightHiveActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("idoqvcjspjpmt") - .withParameters(mapOf("cgzvqpnjqpwx", "datavizaygtbmluy", "pa", "datakui", "dleegwlhanyueizh", - "datavlnzwicqopwm")), - new LinkedServiceReference().withReferenceName("djkmxbghxiotlfzb") - .withParameters(mapOf("dicoaysar", "datauqkb")), - new LinkedServiceReference().withReferenceName("qkgausc") - .withParameters(mapOf("fejdgojavqezek", "datayfyjeexmlkx", "s", "datavayyyowjpsmnxcc")), - new LinkedServiceReference().withReferenceName("hlokhmkqy") - .withParameters(mapOf("lmwzkxaglwd", "dataddwfhfjfato", "hvioccszdaxafu", "datatjfnmxzu")))) - .withArguments(Arrays.asList("datanqfwobnbluutm", "dataimlozlfdxjirfye")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withScriptPath("datadc") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("ormxipwcqha") - .withParameters(mapOf("wiocuhas", "datafnfa", "whotjcgdpqk", "dataielhtukhei"))) - .withDefines(mapOf("vrglqlvmkeseyqo", "dataqm", "hmzlet", "datamjuqq", "uefjbmowqwodm", "datackjuwkkvarff", - "ciapvcsw", "datardtywajqwa")) - .withVariables(mapOf("tftaqmrimletjvz", "datapcpgc", "wgszxupwriz", "datatfgabiblhzfglp")) - .withQueryTimeout(948481905); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("idoqvcjspjpmt", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("ormxipwcqha", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(948481905, model.queryTimeout()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java deleted file mode 100644 index 07ab67b6a5da..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightMapReduceActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightMapReduceActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightMapReduceActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightMapReduce\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"rnlbfnuppwqkskns\",\"parameters\":{\"cx\":\"datakjboyggrmz\",\"gmtgoeayhojdgwez\":\"dataphdkxwstabgejopv\"}},{\"referenceName\":\"r\",\"parameters\":{\"dtj\":\"databdjzcfdpxbwqgkfx\",\"bc\":\"datayevvuddnwj\"}},{\"referenceName\":\"flemxbmaiiv\",\"parameters\":{\"o\":\"datatzbkevh\",\"sis\":\"datajpumpqlugzydylf\"}},{\"referenceName\":\"dmfo\",\"parameters\":{\"tkprbm\":\"datasvfnxxkmrfz\"}}],\"arguments\":[\"datarfhfjwikva\",\"datajx\"],\"getDebugInfo\":\"Always\",\"className\":\"dataqilvajc\",\"jarFilePath\":\"datapwlf\",\"jarLinkedService\":{\"referenceName\":\"ardjqwdrooo\",\"parameters\":{\"vdqcmegwajjzxcq\":\"datasyd\"}},\"jarLibs\":[\"dataxewocwmadyelwo\",\"datalxa\",\"datahanfjrdcaw\",\"datazqldakbijcxctn\"],\"defines\":{\"yhnoll\":\"datayczzwhwsidnqiav\",\"eoxoe\":\"datauhocb\",\"fcurn\":\"dataprtz\",\"stok\":\"dataujcunyua\"}},\"linkedServiceName\":{\"referenceName\":\"myayblmcenjc\",\"parameters\":{\"yubytslfmajswrf\":\"dataamuplxksph\",\"gvkqz\":\"datas\"}},\"policy\":{\"timeout\":\"datas\",\"retry\":\"dataufnhejualug\",\"retryIntervalInSeconds\":1662073469,\"secureInput\":false,\"secureOutput\":true,\"\":{\"s\":\"datalvi\"}},\"name\":\"zwtzdyz\",\"description\":\"gnnsojdmesox\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"h\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\"],\"\":{\"xtwsreadghlokvis\":\"databiouuqox\",\"kegrtvwff\":\"datazmheimsioonnfjgr\"}}],\"userProperties\":[{\"name\":\"uxpyveavstzbz\",\"value\":\"datakksdjkanizdcjx\"},{\"name\":\"zpmwxvfrmvtwwb\",\"value\":\"datahivfosbrqeywhlq\"}],\"\":{\"hbqjlly\":\"datahypuvhucaw\",\"dioumgvwb\":\"databqvnbxgk\"}}") - .toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("zwtzdyz", model.name()); - Assertions.assertEquals("gnnsojdmesox", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("h", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("uxpyveavstzbz", model.userProperties().get(0).name()); - Assertions.assertEquals("myayblmcenjc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1662073469, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("rnlbfnuppwqkskns", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("ardjqwdrooo", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivity model = new HDInsightMapReduceActivity().withName("zwtzdyz") - .withDescription("gnnsojdmesox") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("h") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("uxpyveavstzbz").withValue("datakksdjkanizdcjx"), - new UserProperty().withName("zpmwxvfrmvtwwb").withValue("datahivfosbrqeywhlq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("myayblmcenjc") - .withParameters(mapOf("yubytslfmajswrf", "dataamuplxksph", "gvkqz", "datas"))) - .withPolicy(new ActivityPolicy().withTimeout("datas") - .withRetry("dataufnhejualug") - .withRetryIntervalInSeconds(1662073469) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("rnlbfnuppwqkskns") - .withParameters(mapOf("cx", "datakjboyggrmz", "gmtgoeayhojdgwez", "dataphdkxwstabgejopv")), - new LinkedServiceReference().withReferenceName("r") - .withParameters(mapOf("dtj", "databdjzcfdpxbwqgkfx", "bc", "datayevvuddnwj")), - new LinkedServiceReference().withReferenceName("flemxbmaiiv") - .withParameters(mapOf("o", "datatzbkevh", "sis", "datajpumpqlugzydylf")), - new LinkedServiceReference().withReferenceName("dmfo") - .withParameters(mapOf("tkprbm", "datasvfnxxkmrfz")))) - .withArguments(Arrays.asList("datarfhfjwikva", "datajx")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withClassName("dataqilvajc") - .withJarFilePath("datapwlf") - .withJarLinkedService(new LinkedServiceReference().withReferenceName("ardjqwdrooo") - .withParameters(mapOf("vdqcmegwajjzxcq", "datasyd"))) - .withJarLibs(Arrays.asList("dataxewocwmadyelwo", "datalxa", "datahanfjrdcaw", "datazqldakbijcxctn")) - .withDefines(mapOf("yhnoll", "datayczzwhwsidnqiav", "eoxoe", "datauhocb", "fcurn", "dataprtz", "stok", - "dataujcunyua")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("zwtzdyz", model.name()); - Assertions.assertEquals("gnnsojdmesox", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("h", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("uxpyveavstzbz", model.userProperties().get(0).name()); - Assertions.assertEquals("myayblmcenjc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1662073469, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("rnlbfnuppwqkskns", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("ardjqwdrooo", model.jarLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.java deleted file mode 100644 index 0de66e452918..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightMapReduceActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightMapReduceActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightMapReduceActivityTypeProperties model = BinaryData.fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"heqvzwummwuaxxcb\",\"parameters\":{\"qrbtrmi\":\"datacdujhzaiw\"}},{\"referenceName\":\"l\",\"parameters\":{\"ubyfspliw\":\"datadukamtfkufvabci\",\"ajpyuwrggfgll\":\"datakozlpsf\"}},{\"referenceName\":\"su\",\"parameters\":{\"qhugjeaetgmmf\":\"datavytbqqmxkuyyrcqs\",\"upkpyzaenarfy\":\"datafdqoepwyy\"}}],\"arguments\":[\"datai\",\"datakhoygfgchlc\"],\"getDebugInfo\":\"Always\",\"className\":\"datacsskgug\",\"jarFilePath\":\"datakl\",\"jarLinkedService\":{\"referenceName\":\"mymkccclefawfeea\",\"parameters\":{\"gowfqrykikhf\":\"datamm\"}},\"jarLibs\":[\"datacllz\",\"dataazi\",\"dataohtsmkfyox\"],\"defines\":{\"fbiboyex\":\"datafsehbxbqionnqsz\",\"cqjgwtiasfbp\":\"datacrwwdteyvpv\",\"xxhbrysnszsehoe\":\"datamv\"}}") - .toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("heqvzwummwuaxxcb", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("mymkccclefawfeea", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivityTypeProperties model = new HDInsightMapReduceActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("heqvzwummwuaxxcb") - .withParameters(mapOf("qrbtrmi", "datacdujhzaiw")), - new LinkedServiceReference().withReferenceName("l") - .withParameters(mapOf("ubyfspliw", "datadukamtfkufvabci", "ajpyuwrggfgll", "datakozlpsf")), - new LinkedServiceReference().withReferenceName("su") - .withParameters(mapOf("qhugjeaetgmmf", "datavytbqqmxkuyyrcqs", "upkpyzaenarfy", "datafdqoepwyy")))) - .withArguments(Arrays.asList("datai", "datakhoygfgchlc")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withClassName("datacsskgug") - .withJarFilePath("datakl") - .withJarLinkedService(new LinkedServiceReference().withReferenceName("mymkccclefawfeea") - .withParameters(mapOf("gowfqrykikhf", "datamm"))) - .withJarLibs(Arrays.asList("datacllz", "dataazi", "dataohtsmkfyox")) - .withDefines(mapOf("fbiboyex", "datafsehbxbqionnqsz", "cqjgwtiasfbp", "datacrwwdteyvpv", "xxhbrysnszsehoe", - "datamv")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("heqvzwummwuaxxcb", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("mymkccclefawfeea", model.jarLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java deleted file mode 100644 index 0b8a33b99ac4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightPigActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightPigActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightPigActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightPig\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"iandhsjpqhas\",\"parameters\":{\"uhvdrfh\":\"dataosltch\",\"nojfdiijch\":\"datarcx\",\"ruomwyoktzffp\":\"dataaaabtxrhemnkyk\"}}],\"arguments\":\"dataqhjpze\",\"getDebugInfo\":\"Failure\",\"scriptPath\":\"datauv\",\"scriptLinkedService\":{\"referenceName\":\"i\",\"parameters\":{\"ikstapkbd\":\"dataokolc\",\"mugkugwtg\":\"datay\"}},\"defines\":{\"tb\":\"datawayhauhqvxeyliis\",\"xxq\":\"dataghtkdcuf\"}},\"linkedServiceName\":{\"referenceName\":\"tv\",\"parameters\":{\"yyysvtjoxw\":\"datavernqke\",\"pddzzdw\":\"datagdzwoczfizfc\",\"ocnfzmuyykxlfl\":\"dataev\"}},\"policy\":{\"timeout\":\"datawunsnyqpmn\",\"retry\":\"datanbmgpomcrev\",\"retryIntervalInSeconds\":1913060476,\"secureInput\":false,\"secureOutput\":true,\"\":{\"cdxpnraeodixo\":\"dataeisdnob\",\"sf\":\"datalxvsuhxrctcozf\",\"rwbcycwasmrfbwsi\":\"databjrbqcb\",\"gd\":\"datamhhvbovblxfyle\"}},\"name\":\"iurfemnykfzsouo\",\"description\":\"zszlrv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"jnpkxprbutyjfhj\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Skipped\"],\"\":{\"scbmdrbtgm\":\"dataqlruhhkkbfgr\",\"qjyrqouyfcfdedeu\":\"datapdredcvwsbsdy\",\"elksghsowm\":\"datahgnfaanubjeb\"}},{\"activity\":\"t\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"b\":\"datan\",\"c\":\"datahhpfj\"}}],\"userProperties\":[{\"name\":\"pwavdope\",\"value\":\"datajmovrsrtldijgrbi\"},{\"name\":\"udwuoxirzi\",\"value\":\"datau\"},{\"name\":\"okxphcj\",\"value\":\"datawhwgbajmgctwamjj\"}],\"\":{\"hhopedmkxtdyxz\":\"dataugistnyz\",\"tgfbmocvblrvkqx\":\"dataf\"}}") - .toObject(HDInsightPigActivity.class); - Assertions.assertEquals("iurfemnykfzsouo", model.name()); - Assertions.assertEquals("zszlrv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("jnpkxprbutyjfhj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pwavdope", model.userProperties().get(0).name()); - Assertions.assertEquals("tv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1913060476, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("iandhsjpqhas", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("i", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivity model = new HDInsightPigActivity().withName("iurfemnykfzsouo") - .withDescription("zszlrv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jnpkxprbutyjfhj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("t") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("pwavdope").withValue("datajmovrsrtldijgrbi"), - new UserProperty().withName("udwuoxirzi").withValue("datau"), - new UserProperty().withName("okxphcj").withValue("datawhwgbajmgctwamjj"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tv") - .withParameters( - mapOf("yyysvtjoxw", "datavernqke", "pddzzdw", "datagdzwoczfizfc", "ocnfzmuyykxlfl", "dataev"))) - .withPolicy(new ActivityPolicy().withTimeout("datawunsnyqpmn") - .withRetry("datanbmgpomcrev") - .withRetryIntervalInSeconds(1913060476) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices( - Arrays.asList(new LinkedServiceReference().withReferenceName("iandhsjpqhas") - .withParameters(mapOf("uhvdrfh", "dataosltch", "nojfdiijch", "datarcx", "ruomwyoktzffp", - "dataaaabtxrhemnkyk")))) - .withArguments("dataqhjpze") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("datauv") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("i") - .withParameters(mapOf("ikstapkbd", "dataokolc", "mugkugwtg", "datay"))) - .withDefines(mapOf("tb", "datawayhauhqvxeyliis", "xxq", "dataghtkdcuf")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivity.class); - Assertions.assertEquals("iurfemnykfzsouo", model.name()); - Assertions.assertEquals("zszlrv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("jnpkxprbutyjfhj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pwavdope", model.userProperties().get(0).name()); - Assertions.assertEquals("tv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1913060476, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("iandhsjpqhas", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("i", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.java deleted file mode 100644 index cd4511f523e9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightPigActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightPigActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightPigActivityTypeProperties model = BinaryData.fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"jsrcqpxaajt\",\"parameters\":{\"azmxssbv\":\"dataqtuztzmubxngs\"}},{\"referenceName\":\"jnatbecuhwcakke\",\"parameters\":{\"q\":\"dataaousj\",\"wezcknpmeva\":\"datajj\"}}],\"arguments\":\"datajdihjoldwah\",\"getDebugInfo\":\"Failure\",\"scriptPath\":\"dataicxolmmhf\",\"scriptLinkedService\":{\"referenceName\":\"vxoiwb\",\"parameters\":{\"zcjvogrripopzy\":\"datavm\"}},\"defines\":{\"rgwy\":\"datapwwkdmsnezdumjqd\",\"sveaerg\":\"databqmelmqkbepie\"}}") - .toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("jsrcqpxaajt", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("vxoiwb", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivityTypeProperties model = new HDInsightPigActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("jsrcqpxaajt") - .withParameters(mapOf("azmxssbv", "dataqtuztzmubxngs")), - new LinkedServiceReference().withReferenceName("jnatbecuhwcakke") - .withParameters(mapOf("q", "dataaousj", "wezcknpmeva", "datajj")))) - .withArguments("datajdihjoldwah") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("dataicxolmmhf") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("vxoiwb") - .withParameters(mapOf("zcjvogrripopzy", "datavm"))) - .withDefines(mapOf("rgwy", "datapwwkdmsnezdumjqd", "sveaerg", "databqmelmqkbepie")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("jsrcqpxaajt", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("vxoiwb", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java deleted file mode 100644 index 090e75608109..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightSparkActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightSparkActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightSparkActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightSpark\",\"typeProperties\":{\"rootPath\":\"datafkte\",\"entryFilePath\":\"datablb\",\"arguments\":[\"datarkjb\",\"dataaxttoenfohipijfy\",\"datammqzbznrjw\",\"dataecktcwgnkxjd\"],\"getDebugInfo\":\"Always\",\"sparkJobLinkedService\":{\"referenceName\":\"u\",\"parameters\":{\"bfnt\":\"dataawotpiaklefwai\",\"feudcg\":\"datamkeaw\",\"ffnngiu\":\"dataljbnfw\"}},\"className\":\"pgskgpw\",\"proxyUser\":\"dataxh\",\"sparkConfig\":{\"dlwefstizemakgzc\":\"dataxpzjtiktg\"}},\"linkedServiceName\":{\"referenceName\":\"gwllnmddflckumjj\",\"parameters\":{\"agoeillsz\":\"datawxabvxw\",\"ozkm\":\"datagy\",\"yrwdmgrfhvew\":\"databzuilynbdvbuxlji\"}},\"policy\":{\"timeout\":\"datamybokqpfhswbpjz\",\"retry\":\"datazydlyszthpn\",\"retryIntervalInSeconds\":1123609839,\"secureInput\":false,\"secureOutput\":true,\"\":{\"umerkgmg\":\"datagd\",\"kas\":\"dataynej\"}},\"name\":\"iczvfxoihcqxe\",\"description\":\"ksafn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"uujyespcg\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\",\"Completed\"],\"\":{\"iwiaqrc\":\"dataieyyww\",\"w\":\"datafybktbviaqvzzszc\",\"vygdefpy\":\"datarxo\",\"grdsmravxtgl\":\"datatwwaxx\"}},{\"activity\":\"xmd\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Succeeded\",\"Skipped\"],\"\":{\"ypcwbyrkx\":\"datamnqcgbi\",\"chegeog\":\"dataebvxu\",\"wzzeumadl\":\"datakcrc\"}}],\"userProperties\":[{\"name\":\"rewhuqkic\",\"value\":\"datamyykmk\"},{\"name\":\"lbq\",\"value\":\"datanrmgefxkattpkkw\"},{\"name\":\"dvksigxak\",\"value\":\"dataoptb\"}],\"\":{\"bxk\":\"dataqobpnkvnuwjrx\",\"tglo\":\"dataveqbx\",\"jhyiey\":\"datafmlbhlimgzimtzz\",\"xalvdhmumsmnub\":\"datarwfu\"}}") - .toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("iczvfxoihcqxe", model.name()); - Assertions.assertEquals("ksafn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("uujyespcg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rewhuqkic", model.userProperties().get(0).name()); - Assertions.assertEquals("gwllnmddflckumjj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1123609839, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("u", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("pgskgpw", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivity model = new HDInsightSparkActivity().withName("iczvfxoihcqxe") - .withDescription("ksafn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("uujyespcg") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xmd") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("rewhuqkic").withValue("datamyykmk"), - new UserProperty().withName("lbq").withValue("datanrmgefxkattpkkw"), - new UserProperty().withName("dvksigxak").withValue("dataoptb"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("gwllnmddflckumjj") - .withParameters( - mapOf("agoeillsz", "datawxabvxw", "ozkm", "datagy", "yrwdmgrfhvew", "databzuilynbdvbuxlji"))) - .withPolicy(new ActivityPolicy().withTimeout("datamybokqpfhswbpjz") - .withRetry("datazydlyszthpn") - .withRetryIntervalInSeconds(1123609839) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withRootPath("datafkte") - .withEntryFilePath("datablb") - .withArguments(Arrays.asList("datarkjb", "dataaxttoenfohipijfy", "datammqzbznrjw", "dataecktcwgnkxjd")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withSparkJobLinkedService(new LinkedServiceReference().withReferenceName("u") - .withParameters(mapOf("bfnt", "dataawotpiaklefwai", "feudcg", "datamkeaw", "ffnngiu", "dataljbnfw"))) - .withClassName("pgskgpw") - .withProxyUser("dataxh") - .withSparkConfig(mapOf("dlwefstizemakgzc", "dataxpzjtiktg")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("iczvfxoihcqxe", model.name()); - Assertions.assertEquals("ksafn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("uujyespcg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rewhuqkic", model.userProperties().get(0).name()); - Assertions.assertEquals("gwllnmddflckumjj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1123609839, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("u", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("pgskgpw", model.className()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.java deleted file mode 100644 index a5daf76c94c3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightSparkActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightSparkActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightSparkActivityTypeProperties model = BinaryData.fromString( - "{\"rootPath\":\"datanxrpsty\",\"entryFilePath\":\"dataxidqnvhrbfepf\",\"arguments\":[\"datantaaftdysev\",\"datappxthsfux\",\"datalgoexudnbfoorgtx\",\"datalewhbxvr\"],\"getDebugInfo\":\"Failure\",\"sparkJobLinkedService\":{\"referenceName\":\"kwoommqvzz\",\"parameters\":{\"fh\":\"datawfo\"}},\"className\":\"p\",\"proxyUser\":\"dataljajz\",\"sparkConfig\":{\"odgisfejs\":\"datawarbvblatvbjkqy\",\"wi\":\"datap\",\"jwktiyhiyk\":\"dataujyn\"}}") - .toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("kwoommqvzz", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("p", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivityTypeProperties model = new HDInsightSparkActivityTypeProperties() - .withRootPath("datanxrpsty") - .withEntryFilePath("dataxidqnvhrbfepf") - .withArguments(Arrays.asList("datantaaftdysev", "datappxthsfux", "datalgoexudnbfoorgtx", "datalewhbxvr")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withSparkJobLinkedService( - new LinkedServiceReference().withReferenceName("kwoommqvzz").withParameters(mapOf("fh", "datawfo"))) - .withClassName("p") - .withProxyUser("dataljajz") - .withSparkConfig(mapOf("odgisfejs", "datawarbvblatvbjkqy", "wi", "datap", "jwktiyhiyk", "dataujyn")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("kwoommqvzz", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("p", model.className()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java deleted file mode 100644 index ed2b6b7cfb4d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightStreamingActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightStreamingActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightStreamingActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightStreaming\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"bykrndxbkvzwqgm\",\"parameters\":{\"yfzuw\":\"datanqyedhyfncw\"}},{\"referenceName\":\"saaxstnzi\",\"parameters\":{\"dhcx\":\"datacgtujiwzbz\",\"clnyo\":\"datagj\",\"brxmxqskemtajjf\":\"datatcgmcthj\",\"qpgbticn\":\"datak\"}}],\"arguments\":[\"databocmji\",\"databtvwalha\",\"dataoptiqfui\"],\"getDebugInfo\":\"Failure\",\"mapper\":\"dataap\",\"reducer\":\"dataxsmapd\",\"input\":\"datammwylrv\",\"output\":\"datataelpuxhkuemcbt\",\"filePaths\":[\"datatnrc\",\"dataovhyqexujllewe\",\"datagvqbsyth\",\"datacdckcpf\"],\"fileLinkedService\":{\"referenceName\":\"mgfwxthrcmg\",\"parameters\":{\"senyehmwzgfanke\":\"datagosclhjgckkbn\",\"g\":\"datalorosa\"}},\"combiner\":\"datahzuapkhfhuuizyey\",\"commandEnvironment\":[\"datanidyjffpuuy\"],\"defines\":{\"yml\":\"databpn\",\"fijvaxuv\":\"datatnnsjc\",\"ldaaxglx\":\"datazzp\",\"kebtvnedcclp\":\"databnqyewinlenht\"}},\"linkedServiceName\":{\"referenceName\":\"ntoiviuerrieho\",\"parameters\":{\"tnllkyiqjtxv\":\"datakcayy\",\"idkjo\":\"datagrf\"}},\"policy\":{\"timeout\":\"dataivvo\",\"retry\":\"datasrypfviiwjjqps\",\"retryIntervalInSeconds\":1579312050,\"secureInput\":true,\"secureOutput\":true,\"\":{\"ekhfdlbcucwfc\":\"datanuyusnhn\"}},\"name\":\"ugtcccydldavozmi\",\"description\":\"kvftpgllsrr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"nrrohlkgzcz\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"ldttggc\":\"dataulrkw\",\"kpobenaahdjn\":\"dataq\",\"tvpeirhstwpbvw\":\"datayc\",\"cqpqkpnvsuaizxdl\":\"dataqhpphjimo\"}}],\"userProperties\":[{\"name\":\"px\",\"value\":\"datatyjgxu\"},{\"name\":\"fejiurldsft\",\"value\":\"datallcdqvunvnggqacf\"}],\"\":{\"uscbsttjdioevif\":\"datawqbendzr\",\"vduuzpiooac\":\"dataqqsvofocppph\",\"qqpynr\":\"dataxsofsirit\"}}") - .toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("ugtcccydldavozmi", model.name()); - Assertions.assertEquals("kvftpgllsrr", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("nrrohlkgzcz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("px", model.userProperties().get(0).name()); - Assertions.assertEquals("ntoiviuerrieho", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1579312050, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("bykrndxbkvzwqgm", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("mgfwxthrcmg", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivity model = new HDInsightStreamingActivity().withName("ugtcccydldavozmi") - .withDescription("kvftpgllsrr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("nrrohlkgzcz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("px").withValue("datatyjgxu"), - new UserProperty().withName("fejiurldsft").withValue("datallcdqvunvnggqacf"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ntoiviuerrieho") - .withParameters(mapOf("tnllkyiqjtxv", "datakcayy", "idkjo", "datagrf"))) - .withPolicy(new ActivityPolicy().withTimeout("dataivvo") - .withRetry("datasrypfviiwjjqps") - .withRetryIntervalInSeconds(1579312050) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("bykrndxbkvzwqgm") - .withParameters(mapOf("yfzuw", "datanqyedhyfncw")), - new LinkedServiceReference().withReferenceName("saaxstnzi") - .withParameters(mapOf("dhcx", "datacgtujiwzbz", "clnyo", "datagj", "brxmxqskemtajjf", - "datatcgmcthj", "qpgbticn", "datak")))) - .withArguments(Arrays.asList("databocmji", "databtvwalha", "dataoptiqfui")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withMapper("dataap") - .withReducer("dataxsmapd") - .withInput("datammwylrv") - .withOutput("datataelpuxhkuemcbt") - .withFilePaths(Arrays.asList("datatnrc", "dataovhyqexujllewe", "datagvqbsyth", "datacdckcpf")) - .withFileLinkedService(new LinkedServiceReference().withReferenceName("mgfwxthrcmg") - .withParameters(mapOf("senyehmwzgfanke", "datagosclhjgckkbn", "g", "datalorosa"))) - .withCombiner("datahzuapkhfhuuizyey") - .withCommandEnvironment(Arrays.asList("datanidyjffpuuy")) - .withDefines(mapOf("yml", "databpn", "fijvaxuv", "datatnnsjc", "ldaaxglx", "datazzp", "kebtvnedcclp", - "databnqyewinlenht")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("ugtcccydldavozmi", model.name()); - Assertions.assertEquals("kvftpgllsrr", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("nrrohlkgzcz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("px", model.userProperties().get(0).name()); - Assertions.assertEquals("ntoiviuerrieho", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1579312050, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("bykrndxbkvzwqgm", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("mgfwxthrcmg", model.fileLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java deleted file mode 100644 index 32b8b061d0fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightStreamingActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightStreamingActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightStreamingActivityTypeProperties model = BinaryData.fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"u\",\"parameters\":{\"cjnfyubc\":\"dataiz\"}}],\"arguments\":[\"datafnqqnum\",\"datanavfpkleie\"],\"getDebugInfo\":\"Failure\",\"mapper\":\"datavbs\",\"reducer\":\"datalyoriad\",\"input\":\"datanbofeucctppbgzf\",\"output\":\"datauylsk\",\"filePaths\":[\"datavwdftrqso\"],\"fileLinkedService\":{\"referenceName\":\"surxvj\",\"parameters\":{\"nskcksfxtknywx\":\"datab\"}},\"combiner\":\"datae\",\"commandEnvironment\":[\"dataccbvchozkmi\",\"datayxdnugbisfnbt\",\"datadrkwridroidhbu\",\"datavki\"],\"defines\":{\"ddeahfgdjahnsmk\":\"datanfqnekpx\",\"ob\":\"datakhlqdxjdo\",\"aurviynt\":\"datazrgxn\",\"zoqtfbjk\":\"datablp\"}}") - .toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("u", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("surxvj", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivityTypeProperties model = new HDInsightStreamingActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("u").withParameters(mapOf("cjnfyubc", "dataiz")))) - .withArguments(Arrays.asList("datafnqqnum", "datanavfpkleie")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withMapper("datavbs") - .withReducer("datalyoriad") - .withInput("datanbofeucctppbgzf") - .withOutput("datauylsk") - .withFilePaths(Arrays.asList("datavwdftrqso")) - .withFileLinkedService(new LinkedServiceReference().withReferenceName("surxvj") - .withParameters(mapOf("nskcksfxtknywx", "datab"))) - .withCombiner("datae") - .withCommandEnvironment( - Arrays.asList("dataccbvchozkmi", "datayxdnugbisfnbt", "datadrkwridroidhbu", "datavki")) - .withDefines(mapOf("ddeahfgdjahnsmk", "datanfqnekpx", "ob", "datakhlqdxjdo", "aurviynt", "datazrgxn", - "zoqtfbjk", "datablp")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("u", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("surxvj", model.fileLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java deleted file mode 100644 index f59c4c6f7bf4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HdfsLocation; - -public final class HdfsLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsLocation model = BinaryData.fromString( - "{\"type\":\"HdfsLocation\",\"folderPath\":\"datajztivfwjlofzek\",\"fileName\":\"datarmauklaj\",\"\":{\"xnhwh\":\"dataoczhapejovtk\"}}") - .toObject(HdfsLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsLocation model = new HdfsLocation().withFolderPath("datajztivfwjlofzek").withFileName("datarmauklaj"); - model = BinaryData.fromObject(model).toObject(HdfsLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java deleted file mode 100644 index 8018c4ea9339..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; -import com.azure.resourcemanager.datafactory.models.HdfsReadSettings; - -public final class HdfsReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsReadSettings model = BinaryData.fromString( - "{\"type\":\"HdfsReadSettings\",\"recursive\":\"datamyfrmfclky\",\"wildcardFolderPath\":\"datajyafzzcbohbbavod\",\"wildcardFileName\":\"dataduabqbverbjcts\",\"fileListPath\":\"datavhxnjo\",\"enablePartitionDiscovery\":\"datapc\",\"partitionRootPath\":\"datadlppuk\",\"modifiedDatetimeStart\":\"datamnp\",\"modifiedDatetimeEnd\":\"datanm\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"dataydhbefivozr\",\"tempScriptPath\":\"datazrikwiucvvr\",\"distcpOptions\":\"datapbjgozo\"},\"deleteFilesAfterCompletion\":\"dataamer\",\"maxConcurrentConnections\":\"datactrwrvnsc\",\"disableMetricsCollection\":\"datac\",\"\":{\"fajlgxrsn\":\"datawqqezt\"}}") - .toObject(HdfsReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsReadSettings model = new HdfsReadSettings().withMaxConcurrentConnections("datactrwrvnsc") - .withDisableMetricsCollection("datac") - .withRecursive("datamyfrmfclky") - .withWildcardFolderPath("datajyafzzcbohbbavod") - .withWildcardFileName("dataduabqbverbjcts") - .withFileListPath("datavhxnjo") - .withEnablePartitionDiscovery("datapc") - .withPartitionRootPath("datadlppuk") - .withModifiedDatetimeStart("datamnp") - .withModifiedDatetimeEnd("datanm") - .withDistcpSettings(new DistcpSettings().withResourceManagerEndpoint("dataydhbefivozr") - .withTempScriptPath("datazrikwiucvvr") - .withDistcpOptions("datapbjgozo")) - .withDeleteFilesAfterCompletion("dataamer"); - model = BinaryData.fromObject(model).toObject(HdfsReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java deleted file mode 100644 index 86451663a47a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; -import com.azure.resourcemanager.datafactory.models.HdfsSource; - -public final class HdfsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsSource model = BinaryData.fromString( - "{\"type\":\"HdfsSource\",\"recursive\":\"datay\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"datatsktousybwddpj\",\"tempScriptPath\":\"dataokosugrfizf\",\"distcpOptions\":\"datamaenwhqafzgzmo\"},\"sourceRetryCount\":\"dataqnienctwbimhf\",\"sourceRetryWait\":\"datagnnwxrdl\",\"maxConcurrentConnections\":\"dataqam\",\"disableMetricsCollection\":\"datayyrfpnbyxyg\",\"\":{\"pskdzssxh\":\"datai\"}}") - .toObject(HdfsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsSource model = new HdfsSource().withSourceRetryCount("dataqnienctwbimhf") - .withSourceRetryWait("datagnnwxrdl") - .withMaxConcurrentConnections("dataqam") - .withDisableMetricsCollection("datayyrfpnbyxyg") - .withRecursive("datay") - .withDistcpSettings(new DistcpSettings().withResourceManagerEndpoint("datatsktousybwddpj") - .withTempScriptPath("dataokosugrfizf") - .withDistcpOptions("datamaenwhqafzgzmo")); - model = BinaryData.fromObject(model).toObject(HdfsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java deleted file mode 100644 index 51bd37fcf5ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HiveDatasetTypeProperties; - -public final class HiveDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datauklx\",\"table\":\"datalmzpyq\",\"schema\":\"datahuecxhgs\"}") - .toObject(HiveDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveDatasetTypeProperties model = new HiveDatasetTypeProperties().withTableName("datauklx") - .withTable("datalmzpyq") - .withSchema("datahuecxhgs"); - model = BinaryData.fromObject(model).toObject(HiveDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java deleted file mode 100644 index b82d62e5ca05..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HiveObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HiveObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveObjectDataset model = BinaryData.fromString( - "{\"type\":\"HiveObject\",\"typeProperties\":{\"tableName\":\"datagjndkvzmxl\",\"table\":\"dataqgdodn\",\"schema\":\"datayipgkmjt\"},\"description\":\"zmdzesimeft\",\"structure\":\"datarfzjlflzagvdavab\",\"schema\":\"dataefcor\",\"linkedServiceName\":{\"referenceName\":\"bidaeb\",\"parameters\":{\"fajw\":\"dataicew\",\"wwsr\":\"dataylciobb\"}},\"parameters\":{\"mnteevfg\":{\"type\":\"Object\",\"defaultValue\":\"dataecuuuex\"}},\"annotations\":[\"dataezraqsddkod\",\"datagxqfkyr\"],\"folder\":{\"name\":\"zzeglwdzfss\"},\"\":{\"ddkkraj\":\"datagaok\"}}") - .toObject(HiveObjectDataset.class); - Assertions.assertEquals("zmdzesimeft", model.description()); - Assertions.assertEquals("bidaeb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("mnteevfg").type()); - Assertions.assertEquals("zzeglwdzfss", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveObjectDataset model = new HiveObjectDataset().withDescription("zmdzesimeft") - .withStructure("datarfzjlflzagvdavab") - .withSchema("dataefcor") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bidaeb") - .withParameters(mapOf("fajw", "dataicew", "wwsr", "dataylciobb"))) - .withParameters(mapOf("mnteevfg", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataecuuuex"))) - .withAnnotations(Arrays.asList("dataezraqsddkod", "datagxqfkyr")) - .withFolder(new DatasetFolder().withName("zzeglwdzfss")) - .withTableName("datagjndkvzmxl") - .withTable("dataqgdodn") - .withSchemaTypePropertiesSchema("datayipgkmjt"); - model = BinaryData.fromObject(model).toObject(HiveObjectDataset.class); - Assertions.assertEquals("zmdzesimeft", model.description()); - Assertions.assertEquals("bidaeb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("mnteevfg").type()); - Assertions.assertEquals("zzeglwdzfss", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java deleted file mode 100644 index 7cf45258506e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HiveSource; - -public final class HiveSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveSource model = BinaryData.fromString( - "{\"type\":\"HiveSource\",\"query\":\"dataxmobnehbbchtcoel\",\"queryTimeout\":\"datafnpxumgnjmsk\",\"additionalColumns\":\"dataeuogjiowande\",\"sourceRetryCount\":\"dataebpalz\",\"sourceRetryWait\":\"dataptg\",\"maxConcurrentConnections\":\"datarz\",\"disableMetricsCollection\":\"datacfdsvmptnrz\",\"\":{\"ovqpnxpufvggv\":\"datacncdazwtlgora\"}}") - .toObject(HiveSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveSource model = new HiveSource().withSourceRetryCount("dataebpalz") - .withSourceRetryWait("dataptg") - .withMaxConcurrentConnections("datarz") - .withDisableMetricsCollection("datacfdsvmptnrz") - .withQueryTimeout("datafnpxumgnjmsk") - .withAdditionalColumns("dataeuogjiowande") - .withQuery("dataxmobnehbbchtcoel"); - model = BinaryData.fromObject(model).toObject(HiveSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java deleted file mode 100644 index d1dc744af4b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.HttpDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HttpDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpDataset model = BinaryData.fromString( - "{\"type\":\"HttpFile\",\"typeProperties\":{\"relativeUrl\":\"datayhbceevogir\",\"requestMethod\":\"dataw\",\"requestBody\":\"datatvuxeu\",\"additionalHeaders\":\"datadssijuaxxf\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datapkcpws\",\"deserializer\":\"datannmjun\",\"\":{\"bcyc\":\"dataxcltj\",\"sihxvtac\":\"dataqak\",\"pxpry\":\"datawf\"}},\"compression\":{\"type\":\"datasbubwhzqqgugwlux\",\"level\":\"datatqmmkdhwq\",\"\":{\"ucosvkkeer\":\"dataebagmfpkephuj\",\"lgnuee\":\"datavypaxpjpyi\",\"cgmbg\":\"datafpffbuqxknv\",\"zoksgqhb\":\"datayojfchicpare\"}}},\"description\":\"juxilozbl\",\"structure\":\"datarfldfljwtkbptsfl\",\"schema\":\"dataumbmwgftshfg\",\"linkedServiceName\":{\"referenceName\":\"uxuqiagskoi\",\"parameters\":{\"hskxpa\":\"datai\",\"rjugcfeb\":\"datawkgvnlfueyxfzibr\",\"bvr\":\"dataiuce\"}},\"parameters\":{\"qjzlwrduxntp\":{\"type\":\"String\",\"defaultValue\":\"dataknbdzwilsxry\"}},\"annotations\":[\"datagj\"],\"folder\":{\"name\":\"xfwf\"},\"\":{\"upjckiehdm\":\"dataveyfbkqynlzxeme\"}}") - .toObject(HttpDataset.class); - Assertions.assertEquals("juxilozbl", model.description()); - Assertions.assertEquals("uxuqiagskoi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("qjzlwrduxntp").type()); - Assertions.assertEquals("xfwf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDataset model = new HttpDataset().withDescription("juxilozbl") - .withStructure("datarfldfljwtkbptsfl") - .withSchema("dataumbmwgftshfg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uxuqiagskoi") - .withParameters(mapOf("hskxpa", "datai", "rjugcfeb", "datawkgvnlfueyxfzibr", "bvr", "dataiuce"))) - .withParameters(mapOf("qjzlwrduxntp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataknbdzwilsxry"))) - .withAnnotations(Arrays.asList("datagj")) - .withFolder(new DatasetFolder().withName("xfwf")) - .withRelativeUrl("datayhbceevogir") - .withRequestMethod("dataw") - .withRequestBody("datatvuxeu") - .withAdditionalHeaders("datadssijuaxxf") - .withFormat(new DatasetStorageFormat().withSerializer("datapkcpws") - .withDeserializer("datannmjun") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datasbubwhzqqgugwlux") - .withLevel("datatqmmkdhwq") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(HttpDataset.class); - Assertions.assertEquals("juxilozbl", model.description()); - Assertions.assertEquals("uxuqiagskoi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("qjzlwrduxntp").type()); - Assertions.assertEquals("xfwf", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java deleted file mode 100644 index 2ccc5937e9b1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HttpDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class HttpDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpDatasetTypeProperties model = BinaryData.fromString( - "{\"relativeUrl\":\"datao\",\"requestMethod\":\"dataxxxffgmcuanszee\",\"requestBody\":\"datagcgcsapvbcq\",\"additionalHeaders\":\"datausekijhm\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datank\",\"deserializer\":\"datavpyr\",\"\":{\"j\":\"datarlfqm\",\"vurkmjufavvln\":\"datawynbfvvc\"}},\"compression\":{\"type\":\"datasotmynklnmrz\",\"level\":\"datatvrkkfcwxizkstx\",\"\":{\"vriuvnfazxtvs\":\"datakeipxutc\",\"kqtjwrv\":\"datayyaeiivj\",\"qetxtdqiuspguzlj\":\"datawojoqf\"}}}") - .toObject(HttpDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDatasetTypeProperties model = new HttpDatasetTypeProperties().withRelativeUrl("datao") - .withRequestMethod("dataxxxffgmcuanszee") - .withRequestBody("datagcgcsapvbcq") - .withAdditionalHeaders("datausekijhm") - .withFormat(new DatasetStorageFormat().withSerializer("datank") - .withDeserializer("datavpyr") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datasotmynklnmrz") - .withLevel("datatvrkkfcwxizkstx") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(HttpDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java deleted file mode 100644 index 9f6bffc5a87d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpReadSettings; - -public final class HttpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpReadSettings model = BinaryData.fromString( - "{\"type\":\"HttpReadSettings\",\"requestMethod\":\"datavgwvfvsqlyah\",\"requestBody\":\"dataoqk\",\"additionalHeaders\":\"datatnbuzvaxlt\",\"requestTimeout\":\"datanwhictsauv\",\"additionalColumns\":\"dataqzpfpbxljddkk\",\"maxConcurrentConnections\":\"datazsy\",\"disableMetricsCollection\":\"datakcld\",\"\":{\"xewnlpchhczqm\":\"dataeka\"}}") - .toObject(HttpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpReadSettings model = new HttpReadSettings().withMaxConcurrentConnections("datazsy") - .withDisableMetricsCollection("datakcld") - .withRequestMethod("datavgwvfvsqlyah") - .withRequestBody("dataoqk") - .withAdditionalHeaders("datatnbuzvaxlt") - .withRequestTimeout("datanwhictsauv") - .withAdditionalColumns("dataqzpfpbxljddkk"); - model = BinaryData.fromObject(model).toObject(HttpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java deleted file mode 100644 index 5b9f8d32339a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpServerLocation; - -public final class HttpServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpServerLocation model = BinaryData.fromString( - "{\"type\":\"HttpServerLocation\",\"relativeUrl\":\"datazzxljbkhxsdpla\",\"folderPath\":\"datay\",\"fileName\":\"datahweqjfyxydgtok\",\"\":{\"akglhpsesrfga\":\"datavwglgwzpv\",\"vxcgdhyhgoqgs\":\"dataqiy\",\"glqjoxtdahneaoov\":\"datayqyxyjrcbqpbis\"}}") - .toObject(HttpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpServerLocation model = new HttpServerLocation().withFolderPath("datay") - .withFileName("datahweqjfyxydgtok") - .withRelativeUrl("datazzxljbkhxsdpla"); - model = BinaryData.fromObject(model).toObject(HttpServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java deleted file mode 100644 index 5d6330961931..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpSource; - -public final class HttpSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpSource model = BinaryData.fromString( - "{\"type\":\"HttpSource\",\"httpRequestTimeout\":\"dataqtfyuyg\",\"sourceRetryCount\":\"datashchxueaitzgew\",\"sourceRetryWait\":\"datawibtkr\",\"maxConcurrentConnections\":\"datagbzrlfsewusqupkr\",\"disableMetricsCollection\":\"datapmwo\",\"\":{\"rtecfvzslttkp\":\"datainx\"}}") - .toObject(HttpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpSource model = new HttpSource().withSourceRetryCount("datashchxueaitzgew") - .withSourceRetryWait("datawibtkr") - .withMaxConcurrentConnections("datagbzrlfsewusqupkr") - .withDisableMetricsCollection("datapmwo") - .withHttpRequestTimeout("dataqtfyuyg"); - model = BinaryData.fromObject(model).toObject(HttpSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java deleted file mode 100644 index 075b82266391..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HubspotObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HubspotObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HubspotObjectDataset model = BinaryData.fromString( - "{\"type\":\"HubspotObject\",\"typeProperties\":{\"tableName\":\"datamhp\"},\"description\":\"sfgvrvq\",\"structure\":\"datawbdrwroqkljnzpqh\",\"schema\":\"datasarkyulfa\",\"linkedServiceName\":{\"referenceName\":\"ea\",\"parameters\":{\"geytlplslfc\":\"dataqenhekzaz\",\"ksuowt\":\"datae\",\"rhnxzmfvmw\":\"datalkyqfnjo\",\"rawwhyxf\":\"datanrtc\"}},\"parameters\":{\"uns\":{\"type\":\"String\",\"defaultValue\":\"datadmvwn\"}},\"annotations\":[\"dataevzshqykebmps\",\"dataaezc\",\"datadkckr\"],\"folder\":{\"name\":\"qdmhcejstfs\"},\"\":{\"wxqd\":\"datajakgk\",\"wdjox\":\"dataoqzh\",\"sobvcnsb\":\"datakbd\"}}") - .toObject(HubspotObjectDataset.class); - Assertions.assertEquals("sfgvrvq", model.description()); - Assertions.assertEquals("ea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uns").type()); - Assertions.assertEquals("qdmhcejstfs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotObjectDataset model = new HubspotObjectDataset().withDescription("sfgvrvq") - .withStructure("datawbdrwroqkljnzpqh") - .withSchema("datasarkyulfa") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ea") - .withParameters(mapOf("geytlplslfc", "dataqenhekzaz", "ksuowt", "datae", "rhnxzmfvmw", "datalkyqfnjo", - "rawwhyxf", "datanrtc"))) - .withParameters( - mapOf("uns", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datadmvwn"))) - .withAnnotations(Arrays.asList("dataevzshqykebmps", "dataaezc", "datadkckr")) - .withFolder(new DatasetFolder().withName("qdmhcejstfs")) - .withTableName("datamhp"); - model = BinaryData.fromObject(model).toObject(HubspotObjectDataset.class); - Assertions.assertEquals("sfgvrvq", model.description()); - Assertions.assertEquals("ea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uns").type()); - Assertions.assertEquals("qdmhcejstfs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java deleted file mode 100644 index 0e13c640a7ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HubspotSource; - -public final class HubspotSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HubspotSource model = BinaryData.fromString( - "{\"type\":\"HubspotSource\",\"query\":\"datamezfyelf\",\"queryTimeout\":\"databkbhjdkqfj\",\"additionalColumns\":\"datayzj\",\"sourceRetryCount\":\"dataa\",\"sourceRetryWait\":\"datagatynkihb\",\"maxConcurrentConnections\":\"dataxybtowjz\",\"disableMetricsCollection\":\"datapzaenlzjxztg\",\"\":{\"tczzv\":\"dataunvwvaolfg\"}}") - .toObject(HubspotSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotSource model = new HubspotSource().withSourceRetryCount("dataa") - .withSourceRetryWait("datagatynkihb") - .withMaxConcurrentConnections("dataxybtowjz") - .withDisableMetricsCollection("datapzaenlzjxztg") - .withQueryTimeout("databkbhjdkqfj") - .withAdditionalColumns("datayzj") - .withQuery("datamezfyelf"); - model = BinaryData.fromObject(model).toObject(HubspotSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTests.java deleted file mode 100644 index 5cc710e719b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.IcebergDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IcebergDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergDataset model = BinaryData.fromString( - "{\"type\":\"Iceberg\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataufpnezsjzaymld\",\"fileName\":\"datar\",\"\":{\"uwdhtq\":\"datagzmsimehtc\",\"gi\":\"datahyhnimxtns\",\"ymicjixx\":\"datanomwnwnghojovke\",\"ebdvey\":\"datasfpcrtnuguefxxij\"}}},\"description\":\"tkrhlolmc\",\"structure\":\"dataepfgsvbbvaqdl\",\"schema\":\"datapetlrn\",\"linkedServiceName\":{\"referenceName\":\"detawevxehue\",\"parameters\":{\"zvdov\":\"datal\",\"dcb\":\"datarblerlprdaqcc\",\"ykdigqzlrznda\":\"dataygdjccxwbpw\"}},\"parameters\":{\"tgkiqlarh\":{\"type\":\"Int\",\"defaultValue\":\"datamjqmv\"},\"azekdzdzffzjwzts\":{\"type\":\"Int\",\"defaultValue\":\"datav\"},\"atig\":{\"type\":\"String\",\"defaultValue\":\"datahggryelgf\"}},\"annotations\":[\"datarrkdknczgor\",\"datawnvojtvmdev\",\"datalhqvbk\",\"datarbpyhssrl\"],\"folder\":{\"name\":\"kpkocm\"},\"\":{\"vspeslhwyykgvr\":\"dataebxxopyic\",\"gajkrdyddtpfcud\":\"datacpumdd\"}}") - .toObject(IcebergDataset.class); - Assertions.assertEquals("tkrhlolmc", model.description()); - Assertions.assertEquals("detawevxehue", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("tgkiqlarh").type()); - Assertions.assertEquals("kpkocm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergDataset model = new IcebergDataset().withDescription("tkrhlolmc") - .withStructure("dataepfgsvbbvaqdl") - .withSchema("datapetlrn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("detawevxehue") - .withParameters( - mapOf("zvdov", "datal", "dcb", "datarblerlprdaqcc", "ykdigqzlrznda", "dataygdjccxwbpw"))) - .withParameters(mapOf("tgkiqlarh", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datamjqmv"), - "azekdzdzffzjwzts", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datav"), - "atig", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahggryelgf"))) - .withAnnotations(Arrays.asList("datarrkdknczgor", "datawnvojtvmdev", "datalhqvbk", "datarbpyhssrl")) - .withFolder(new DatasetFolder().withName("kpkocm")) - .withLocation(new DatasetLocation().withFolderPath("dataufpnezsjzaymld") - .withFileName("datar") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))); - model = BinaryData.fromObject(model).toObject(IcebergDataset.class); - Assertions.assertEquals("tkrhlolmc", model.description()); - Assertions.assertEquals("detawevxehue", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("tgkiqlarh").type()); - Assertions.assertEquals("kpkocm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTypePropertiesTests.java deleted file mode 100644 index bc30d8276bcf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTypePropertiesTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IcebergDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class IcebergDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datafnbfbq\",\"fileName\":\"datanqnxhgkordwzej\",\"\":{\"cmbpwdlu\":\"datawz\",\"mtffbvtzldzchuba\":\"dataayprldid\"}}}") - .toObject(IcebergDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergDatasetTypeProperties model - = new IcebergDatasetTypeProperties().withLocation(new DatasetLocation().withFolderPath("datafnbfbq") - .withFileName("datanqnxhgkordwzej") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))); - model = BinaryData.fromObject(model).toObject(IcebergDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergSinkTests.java deleted file mode 100644 index 322fc3260340..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergSinkTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IcebergSink; -import com.azure.resourcemanager.datafactory.models.IcebergWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class IcebergSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergSink model = BinaryData.fromString( - "{\"type\":\"IcebergSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"databznjngerwo\",\"disableMetricsCollection\":\"dataps\",\"copyBehavior\":\"dataoslqmftkqzafjy\",\"metadata\":[{\"name\":\"databzbaboeeg\",\"value\":\"dataecqyzdyzilo\"}],\"\":{\"hyvnqbhclbbk\":\"databtnhiaqegj\",\"xmjmhclhcqcjn\":\"dataoqzzyrovvna\",\"lrjggvydtjebbacs\":\"datawmbwqgsidaso\",\"apxxbkxwh\":\"datairzt\"}},\"formatSettings\":{\"type\":\"IcebergWriteSettings\",\"\":{\"kbslyqmlgsghcnyb\":\"datacpstf\",\"zogs\":\"datavzltbgwjaepjmkr\",\"sirotj\":\"datazoqjbnfaxcdcmqej\",\"kgqyuvhlpmjpzgjn\":\"dataltugobscpt\"}},\"writeBatchSize\":\"datafozn\",\"writeBatchTimeout\":\"databoumpksxkdjpfsm\",\"sinkRetryCount\":\"datar\",\"sinkRetryWait\":\"datalwlehhqxyjlbk\",\"maxConcurrentConnections\":\"datarrptblsatakz\",\"disableMetricsCollection\":\"datay\",\"\":{\"eyv\":\"datawq\",\"uimvz\":\"datadnjmjies\",\"nxcimalvzxu\":\"datayic\",\"ifbi\":\"datanpaesraire\"}}") - .toObject(IcebergSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergSink model = new IcebergSink().withWriteBatchSize("datafozn") - .withWriteBatchTimeout("databoumpksxkdjpfsm") - .withSinkRetryCount("datar") - .withSinkRetryWait("datalwlehhqxyjlbk") - .withMaxConcurrentConnections("datarrptblsatakz") - .withDisableMetricsCollection("datay") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("databznjngerwo") - .withDisableMetricsCollection("dataps") - .withCopyBehavior("dataoslqmftkqzafjy") - .withMetadata(Arrays.asList(new MetadataItem().withName("databzbaboeeg").withValue("dataecqyzdyzilo"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new IcebergWriteSettings()); - model = BinaryData.fromObject(model).toObject(IcebergSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergWriteSettingsTests.java deleted file mode 100644 index 7eabc9739141..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergWriteSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IcebergWriteSettings; - -public final class IcebergWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergWriteSettings model - = BinaryData.fromString("{\"type\":\"IcebergWriteSettings\",\"\":{\"djbyfdfuaj\":\"datauobzz\"}}") - .toObject(IcebergWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergWriteSettings model = new IcebergWriteSettings(); - model = BinaryData.fromObject(model).toObject(IcebergWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java deleted file mode 100644 index 74e0fdfd30a3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.IfConditionActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IfConditionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IfConditionActivity model = BinaryData.fromString( - "{\"type\":\"IfCondition\",\"typeProperties\":{\"expression\":{\"value\":\"ygzaya\"},\"ifTrueActivities\":[{\"type\":\"Activity\",\"name\":\"mlae\",\"description\":\"hucxmybuqjpgbiya\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"inhpvbmbfi\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"wasl\":\"dataydkdcv\",\"otief\":\"datawwgzyvo\",\"kjblmypuonuvmym\":\"datahaqqavhfdezom\"}},{\"activity\":\"aiwxlrphaddsxs\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"roedwipauclety\":\"datayzd\"}}],\"userProperties\":[{\"name\":\"iavguskvvnzngh\",\"value\":\"dataoqe\"}],\"\":{\"jkkvacizdaejn\":\"datayfl\",\"wyfuqqbafrbhr\":\"datab\",\"kvok\":\"datap\"}},{\"type\":\"Activity\",\"name\":\"mere\",\"description\":\"oessuwkcnhdecxbi\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"fdojxbyxfxdnt\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"aidqzflasvah\":\"datageg\",\"ojdnmrxjlumrzfd\":\"dataq\",\"nkadanl\":\"datao\"}},{\"activity\":\"qlrmbgiaoxpfko\",\"dependencyConditions\":[\"Failed\"],\"\":{\"azvyftklb\":\"dataezurhgucnsspbl\",\"dkwibdri\":\"dataribgczkkmrlp\",\"cztmwwmybviwkrje\":\"dataedshuxlh\"}},{\"activity\":\"sjglpon\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Skipped\"],\"\":{\"kcad\":\"dataiud\",\"rbfa\":\"datayoouvqpc\",\"wzufmyanectf\":\"dataduzzyxlyuw\"}}],\"userProperties\":[{\"name\":\"g\",\"value\":\"dataghohoxcontsrv\"}],\"\":{\"lqlib\":\"datarrkcv\",\"zs\":\"datamfn\",\"gzljgrtfic\":\"datahkkktlodsyyzmf\"}}],\"ifFalseActivities\":[{\"type\":\"Activity\",\"name\":\"mzbasxapcegtcdu\",\"description\":\"tpkttjnney\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"gh\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"jafcfidd\":\"datavfdo\",\"jzuqhyqvmob\":\"dataktutwczdwmt\"}},{\"activity\":\"judpeedzowve\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"pobmfmdsi\":\"datatsrrle\",\"qgluhr\":\"datall\"}},{\"activity\":\"imojozhdcptxxb\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"cvqeowe\":\"datacmwnyu\",\"fsntopfqgu\":\"datavnrngi\",\"wvzagurgurpc\":\"datavqqrcyeu\",\"yuzhkefownc\":\"datau\"}},{\"activity\":\"dcrwoiqsrqebjgo\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"gchkmqfkm\":\"datad\"}}],\"userProperties\":[{\"name\":\"omq\",\"value\":\"databslwxcf\"},{\"name\":\"vedxyeba\",\"value\":\"datawnmnxppgfep\"},{\"name\":\"nedjvataeao\",\"value\":\"datakn\"},{\"name\":\"ynvv\",\"value\":\"datafbmrppjfceab\"}],\"\":{\"ewi\":\"datazs\",\"vdjmvzcycg\":\"datan\",\"pyexjrguziglr\":\"datatelimqxwih\",\"mrvgcbf\":\"datahz\"}}]},\"name\":\"isklotwnppstpq\",\"description\":\"deawolhl\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"mhqylrsywiscoq\",\"dependencyConditions\":[\"Completed\"],\"\":{\"qkcikfeshxo\":\"datapchdpdevcmp\",\"d\":\"datatvkxpsxlpypzgdet\",\"sutspocrskkraap\":\"datagyhu\"}},{\"activity\":\"zmziiftjig\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Skipped\"],\"\":{\"lciooxybmktbwdfj\":\"datayywc\",\"j\":\"dataepycpw\"}}],\"userProperties\":[{\"name\":\"hrtqnbdgc\",\"value\":\"dataicknsbbc\"},{\"name\":\"bqxwojvejxh\",\"value\":\"dataeolzftfyjcen\"}],\"\":{\"zbmlhgytkthevod\":\"datalpmlxhzwyyye\",\"jftcrjoh\":\"datadnegwsyxdf\",\"bh\":\"datai\"}}") - .toObject(IfConditionActivity.class); - Assertions.assertEquals("isklotwnppstpq", model.name()); - Assertions.assertEquals("deawolhl", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("mhqylrsywiscoq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hrtqnbdgc", model.userProperties().get(0).name()); - Assertions.assertEquals("ygzaya", model.expression().value()); - Assertions.assertEquals("mlae", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("hucxmybuqjpgbiya", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("inhpvbmbfi", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iavguskvvnzngh", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("mzbasxapcegtcdu", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("tpkttjnney", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gh", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("omq", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IfConditionActivity model - = new IfConditionActivity().withName("isklotwnppstpq") - .withDescription("deawolhl") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("mhqylrsywiscoq") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zmziiftjig") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("hrtqnbdgc").withValue("dataicknsbbc"), - new UserProperty().withName("bqxwojvejxh").withValue("dataeolzftfyjcen"))) - .withExpression(new Expression().withValue("ygzaya")) - .withIfTrueActivities( - Arrays - .asList( - new Activity().withName("mlae") - .withDescription("hucxmybuqjpgbiya") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("inhpvbmbfi") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("aiwxlrphaddsxs") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("iavguskvvnzngh").withValue("dataoqe"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("mere") - .withDescription("oessuwkcnhdecxbi") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("fdojxbyxfxdnt") - .withDependencyConditions(Arrays - .asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qlrmbgiaoxpfko") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("sjglpon") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("g").withValue("dataghohoxcontsrv"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withIfFalseActivities(Arrays.asList(new Activity().withName("mzbasxapcegtcdu") - .withDescription("tpkttjnney") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("gh") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("judpeedzowve") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("imojozhdcptxxb") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dcrwoiqsrqebjgo") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("omq").withValue("databslwxcf"), - new UserProperty().withName("vedxyeba").withValue("datawnmnxppgfep"), - new UserProperty().withName("nedjvataeao").withValue("datakn"), - new UserProperty().withName("ynvv").withValue("datafbmrppjfceab"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivity.class); - Assertions.assertEquals("isklotwnppstpq", model.name()); - Assertions.assertEquals("deawolhl", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("mhqylrsywiscoq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hrtqnbdgc", model.userProperties().get(0).name()); - Assertions.assertEquals("ygzaya", model.expression().value()); - Assertions.assertEquals("mlae", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("hucxmybuqjpgbiya", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("inhpvbmbfi", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iavguskvvnzngh", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("mzbasxapcegtcdu", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("tpkttjnney", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gh", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("omq", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java deleted file mode 100644 index 64f370255fb1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IfConditionActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IfConditionActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IfConditionActivityTypeProperties model = BinaryData.fromString( - "{\"expression\":{\"value\":\"x\"},\"ifTrueActivities\":[{\"type\":\"Activity\",\"name\":\"jgcdl\",\"description\":\"lpuurjxkp\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"uf\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\",\"Completed\"],\"\":{\"yerjrc\":\"datazaavvuv\",\"spli\":\"datayxepllbneepfjib\",\"qpgncscw\":\"datafqjweigywj\"}},{\"activity\":\"efdqnsuaoml\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"mcrllecquo\":\"datanane\"}}],\"userProperties\":[{\"name\":\"hkv\",\"value\":\"dataofxkelwvcyprpog\"},{\"name\":\"qvuftkiyghcmpyki\",\"value\":\"dataochpzcgs\"},{\"name\":\"pklfnst\",\"value\":\"datat\"}],\"\":{\"esf\":\"datawotk\",\"d\":\"datarsgfpds\",\"fun\":\"dataivepmtt\",\"oczoiduk\":\"datakcji\"}},{\"type\":\"Activity\",\"name\":\"jjfne\",\"description\":\"qalwjcqbnvbzem\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"cehlgryvkubfotgi\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"fttsdtnqlggtrjzi\":\"datakirxy\",\"cinjej\":\"dataxzbu\",\"jzenagmhhmgtbqzf\":\"datainlysguladd\",\"qcprbwsndloldx\":\"datampgibmngb\"}}],\"userProperties\":[{\"name\":\"j\",\"value\":\"datajyx\"},{\"name\":\"euqcbgbs\",\"value\":\"datagxak\"},{\"name\":\"kbryolzbmdntajgg\",\"value\":\"datauyokctymsbhdi\"}],\"\":{\"pwwfei\":\"dataobsenxgkjfuwtluk\"}},{\"type\":\"Activity\",\"name\":\"mueuwpivsltlyq\",\"description\":\"pwndcjr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"rcddlzgaopt\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Completed\",\"Succeeded\"],\"\":{\"optrudpm\":\"datand\",\"oflcilrafkrvvd\":\"datazl\"}}],\"userProperties\":[{\"name\":\"ymqzmuinu\",\"value\":\"datatgjgpc\"}],\"\":{\"slzrbzzfevwcjrb\":\"datainu\",\"wamcv\":\"datagd\"}},{\"type\":\"Activity\",\"name\":\"nevkfkm\",\"description\":\"awsvximqkuyflz\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ktfvemwfw\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"byklw\":\"datawz\",\"csnfeybk\":\"dataojxpkpsqk\"}},{\"activity\":\"yqo\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Failed\"],\"\":{\"lhnmydshgfdvwsh\":\"datadzsnv\",\"nfsjnrfpzlvae\":\"dataczy\",\"vvrk\":\"datajnskekhmo\"}},{\"activity\":\"sqfazsiiz\",\"dependencyConditions\":[\"Completed\"],\"\":{\"ismacacdyajy\":\"datajhaetyeafj\",\"bjavnkyqrjbzrz\":\"datawvqlrzobvkgfp\",\"aeabbxkldtw\":\"datahthukuypyeof\"}},{\"activity\":\"ryc\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"d\":\"datagbguaxil\",\"pxyrfkslg\":\"dataudfwlp\",\"ilcntmueemexa\":\"dataladqcmkdhgpzqib\",\"ntkokndjwpxe\":\"datajxaaw\"}}],\"userProperties\":[{\"name\":\"qfwxicbvw\",\"value\":\"datanvtlbc\"},{\"name\":\"grk\",\"value\":\"datawof\"},{\"name\":\"eayowzp\",\"value\":\"dataxpeodbmuzpd\"},{\"name\":\"thpsycasx\",\"value\":\"datahi\"}],\"\":{\"snfpxrzqagmci\":\"datamiipffjgjm\",\"tkfvdjgw\":\"datasqawiabyfzadeu\"}}],\"ifFalseActivities\":[{\"type\":\"Activity\",\"name\":\"qgabrbsuxgnwuy\",\"description\":\"lozdoilhrxjiwjiv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"cwnbqlaubazyri\",\"dependencyConditions\":[\"Completed\",\"Succeeded\"],\"\":{\"sllfkcroviim\":\"datavftqahj\",\"w\":\"datadlmag\",\"endfpdoxtif\":\"datagfx\",\"tklojlgsbystznwj\":\"datasxxk\"}},{\"activity\":\"svllefliriq\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Failed\",\"Skipped\"],\"\":{\"ppdntunbpeepr\":\"datawuzasdztufmujad\",\"crqrovboz\":\"dataebvxma\",\"ug\":\"datacesmrc\",\"jxyv\":\"datat\"}},{\"activity\":\"dbuz\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Completed\"],\"\":{\"ozzvygolz\":\"datacmguelrasdrr\",\"k\":\"datanjkbmfcrysvcab\"}}],\"userProperties\":[{\"name\":\"zqn\",\"value\":\"datawnloozahrpv\"},{\"name\":\"xutcoqclypbrnjor\",\"value\":\"datacrgrjxit\"}],\"\":{\"rdefhbzic\":\"databuvxxlo\",\"lzwvmwjuqchc\":\"datafdwgbgenwesxzu\"}},{\"type\":\"Activity\",\"name\":\"otyscarjmhiewv\",\"description\":\"ysk\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"bvycl\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Succeeded\",\"Completed\"],\"\":{\"akglygeuoolywjvd\":\"datarxtfwvngwcsn\"}},{\"activity\":\"jlgwzbrggntqp\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"hv\":\"datathfcpzd\",\"pojhdxchaogaw\":\"datahku\",\"iulfxgzyr\":\"datavrnwxolfhiq\",\"tekixouhca\":\"dataqux\"}}],\"userProperties\":[{\"name\":\"sodpb\",\"value\":\"dataqcwjxatghui\"},{\"name\":\"czy\",\"value\":\"dataifdrjrywrib\"},{\"name\":\"euukko\",\"value\":\"datawtucmhpjmnxlfkm\"},{\"name\":\"wzgb\",\"value\":\"databwmiap\"}],\"\":{\"mxm\":\"datap\",\"fhbpbqimjnx\":\"datas\"}},{\"type\":\"Activity\",\"name\":\"fv\",\"description\":\"tmoqn\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"rigdebsins\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"rpouhlhlud\":\"datae\",\"hjxbteakdr\":\"datamqjcagxrozcfcxk\",\"lphlkxdanlycc\":\"datakgepmnxvahqvc\",\"d\":\"datamkpohgatq\"}},{\"activity\":\"dizd\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"yrxloxaym\":\"datagfzpstwmdmwsflr\",\"nlhsdtcgflevndl\":\"datanmxkmdl\"}},{\"activity\":\"hwrfcflhwfrjyuh\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Failed\",\"Failed\"],\"\":{\"uqve\":\"dataizloyqjrkted\",\"zxcf\":\"datajsogesrmah\",\"vupnd\":\"datapyrelbzwxxsowdnu\"}}],\"userProperties\":[{\"name\":\"faeisboeap\",\"value\":\"dataraydlpu\"},{\"name\":\"kmakkwqrkaym\",\"value\":\"datagzbkliokuwhrpam\"},{\"name\":\"vx\",\"value\":\"datarl\"}],\"\":{\"dw\":\"databbacixlirolaoo\"}},{\"type\":\"Activity\",\"name\":\"jerm\",\"description\":\"kikgp\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"kcczb\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"iqvqbvfihna\":\"datakwjhkjvsvywnz\"}}],\"userProperties\":[{\"name\":\"ukegkludfdh\",\"value\":\"dataorihqzfjyqadtq\"},{\"name\":\"tsa\",\"value\":\"datajjfa\"},{\"name\":\"plywtgilhxaa\",\"value\":\"datanuufenp\"}],\"\":{\"exqyroqklgvyce\":\"dataktnfeghcmxi\",\"twhyznlhak\":\"dataywuioi\"}}]}") - .toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("x", model.expression().value()); - Assertions.assertEquals("jgcdl", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("lpuurjxkp", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("uf", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hkv", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qgabrbsuxgnwuy", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("lozdoilhrxjiwjiv", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("cwnbqlaubazyri", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zqn", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IfConditionActivityTypeProperties model = new IfConditionActivityTypeProperties() - .withExpression(new Expression().withValue("x")) - .withIfTrueActivities(Arrays.asList( - new Activity().withName("jgcdl") - .withDescription("lpuurjxkp") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency() - .withActivity("uf") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("efdqnsuaoml") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hkv").withValue("dataofxkelwvcyprpog"), - new UserProperty().withName("qvuftkiyghcmpyki").withValue("dataochpzcgs"), - new UserProperty().withName("pklfnst").withValue("datat"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("jjfne") - .withDescription("qalwjcqbnvbzem") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("cehlgryvkubfotgi") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("j").withValue("datajyx"), - new UserProperty().withName("euqcbgbs").withValue("datagxak"), - new UserProperty().withName("kbryolzbmdntajgg").withValue("datauyokctymsbhdi"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("mueuwpivsltlyq") - .withDescription("pwndcjr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("rcddlzgaopt") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ymqzmuinu").withValue("datatgjgpc"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("nevkfkm") - .withDescription("awsvximqkuyflz") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ktfvemwfw") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yqo") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("sqfazsiiz") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ryc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("qfwxicbvw").withValue("datanvtlbc"), - new UserProperty().withName("grk").withValue("datawof"), - new UserProperty().withName("eayowzp").withValue("dataxpeodbmuzpd"), - new UserProperty().withName("thpsycasx").withValue("datahi"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withIfFalseActivities(Arrays.asList( - new Activity().withName("qgabrbsuxgnwuy") - .withDescription("lozdoilhrxjiwjiv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cwnbqlaubazyri") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("svllefliriq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dbuz") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("zqn").withValue("datawnloozahrpv"), - new UserProperty().withName("xutcoqclypbrnjor").withValue("datacrgrjxit"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("otyscarjmhiewv") - .withDescription("ysk") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("bvycl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jlgwzbrggntqp") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("sodpb").withValue("dataqcwjxatghui"), - new UserProperty().withName("czy").withValue("dataifdrjrywrib"), - new UserProperty().withName("euukko").withValue("datawtucmhpjmnxlfkm"), - new UserProperty().withName("wzgb").withValue("databwmiap"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("fv") - .withDescription("tmoqn") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("rigdebsins") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dizd") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hwrfcflhwfrjyuh") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("faeisboeap").withValue("dataraydlpu"), - new UserProperty().withName("kmakkwqrkaym").withValue("datagzbkliokuwhrpam"), - new UserProperty().withName("vx").withValue("datarl"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("jerm") - .withDescription("kikgp") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("kcczb") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ukegkludfdh").withValue("dataorihqzfjyqadtq"), - new UserProperty().withName("tsa").withValue("datajjfa"), - new UserProperty().withName("plywtgilhxaa").withValue("datanuufenp"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("x", model.expression().value()); - Assertions.assertEquals("jgcdl", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("lpuurjxkp", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("uf", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hkv", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qgabrbsuxgnwuy", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("lozdoilhrxjiwjiv", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("cwnbqlaubazyri", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zqn", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java deleted file mode 100644 index 749530eaaf33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ImpalaDatasetTypeProperties; - -public final class ImpalaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datautfz\",\"table\":\"datarcdzytrtf\",\"schema\":\"datapkdx\"}") - .toObject(ImpalaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaDatasetTypeProperties model = new ImpalaDatasetTypeProperties().withTableName("datautfz") - .withTable("datarcdzytrtf") - .withSchema("datapkdx"); - model = BinaryData.fromObject(model).toObject(ImpalaDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java deleted file mode 100644 index 4fe22834d4e9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.ImpalaObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ImpalaObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaObjectDataset model = BinaryData.fromString( - "{\"type\":\"ImpalaObject\",\"typeProperties\":{\"tableName\":\"dataznlf\",\"table\":\"datafzx\",\"schema\":\"dataz\"},\"description\":\"ugtkxncwdytnlr\",\"structure\":\"datamwbe\",\"schema\":\"dataww\",\"linkedServiceName\":{\"referenceName\":\"vnhwwkrmqe\",\"parameters\":{\"gnjxiakgyjm\":\"datahafqfudfyziruq\"}},\"parameters\":{\"c\":{\"type\":\"Array\",\"defaultValue\":\"dataikyluyugmbr\"}},\"annotations\":[\"dataoxtv\",\"datac\"],\"folder\":{\"name\":\"yhmmglvnbenkps\"},\"\":{\"nkxvcptf\":\"dataky\",\"gazhlrdxpc\":\"datafbhnkxasomaf\"}}") - .toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("ugtkxncwdytnlr", model.description()); - Assertions.assertEquals("vnhwwkrmqe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("c").type()); - Assertions.assertEquals("yhmmglvnbenkps", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaObjectDataset model = new ImpalaObjectDataset().withDescription("ugtkxncwdytnlr") - .withStructure("datamwbe") - .withSchema("dataww") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vnhwwkrmqe") - .withParameters(mapOf("gnjxiakgyjm", "datahafqfudfyziruq"))) - .withParameters(mapOf("c", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataikyluyugmbr"))) - .withAnnotations(Arrays.asList("dataoxtv", "datac")) - .withFolder(new DatasetFolder().withName("yhmmglvnbenkps")) - .withTableName("dataznlf") - .withTable("datafzx") - .withSchemaTypePropertiesSchema("dataz"); - model = BinaryData.fromObject(model).toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("ugtkxncwdytnlr", model.description()); - Assertions.assertEquals("vnhwwkrmqe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("c").type()); - Assertions.assertEquals("yhmmglvnbenkps", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java deleted file mode 100644 index bb3ea463c962..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ImpalaSource; - -public final class ImpalaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaSource model = BinaryData.fromString( - "{\"type\":\"ImpalaSource\",\"query\":\"dataht\",\"queryTimeout\":\"datauiptudw\",\"additionalColumns\":\"datasrpsjkqfabju\",\"sourceRetryCount\":\"datats\",\"sourceRetryWait\":\"dataupcio\",\"maxConcurrentConnections\":\"datarjdeyfnqanbadkzp\",\"disableMetricsCollection\":\"datatuplpkjexq\",\"\":{\"goeftrbxomaa\":\"datazlal\",\"gvjmllzykalbaumm\":\"datavarfqverxelquqze\",\"r\":\"datadwqiucpj\",\"ftt\":\"databssjtjwzelx\"}}") - .toObject(ImpalaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaSource model = new ImpalaSource().withSourceRetryCount("datats") - .withSourceRetryWait("dataupcio") - .withMaxConcurrentConnections("datarjdeyfnqanbadkzp") - .withDisableMetricsCollection("datatuplpkjexq") - .withQueryTimeout("datauiptudw") - .withAdditionalColumns("datasrpsjkqfabju") - .withQuery("dataht"); - model = BinaryData.fromObject(model).toObject(ImpalaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java deleted file mode 100644 index 9dd7be03a4a8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ImportSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ImportSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImportSettings model - = BinaryData.fromString("{\"type\":\"ImportSettings\",\"\":{\"ngca\":\"databemxmuygmrenr\"}}") - .toObject(ImportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImportSettings model = new ImportSettings().withAdditionalProperties(mapOf("type", "ImportSettings")); - model = BinaryData.fromObject(model).toObject(ImportSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java deleted file mode 100644 index 6fe9f489e2c4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.InformixSink; - -public final class InformixSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixSink model = BinaryData.fromString( - "{\"type\":\"InformixSink\",\"preCopyScript\":\"dataxvjjwlwysrs\",\"writeBatchSize\":\"datahciazwebts\",\"writeBatchTimeout\":\"dataqkanuxjud\",\"sinkRetryCount\":\"datazodnxlcdgkc\",\"sinkRetryWait\":\"dataancjlkrskzw\",\"maxConcurrentConnections\":\"databafqzihmvw\",\"disableMetricsCollection\":\"datajwvqiahoqjz\",\"\":{\"hgwzbystwuuwe\":\"datawdlrtcfulmz\",\"qichzcajity\":\"datantjssjbpnatpym\"}}") - .toObject(InformixSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSink model = new InformixSink().withWriteBatchSize("datahciazwebts") - .withWriteBatchTimeout("dataqkanuxjud") - .withSinkRetryCount("datazodnxlcdgkc") - .withSinkRetryWait("dataancjlkrskzw") - .withMaxConcurrentConnections("databafqzihmvw") - .withDisableMetricsCollection("datajwvqiahoqjz") - .withPreCopyScript("dataxvjjwlwysrs"); - model = BinaryData.fromObject(model).toObject(InformixSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java deleted file mode 100644 index d85c994fd05f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.InformixSource; - -public final class InformixSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixSource model = BinaryData.fromString( - "{\"type\":\"InformixSource\",\"query\":\"datavjutckfhmdcvlb\",\"queryTimeout\":\"dataezvujpbmz\",\"additionalColumns\":\"datalgm\",\"sourceRetryCount\":\"dataxwkkbnhmdtj\",\"sourceRetryWait\":\"datapfoispchhvvmvs\",\"maxConcurrentConnections\":\"datayqdhaz\",\"disableMetricsCollection\":\"dataug\",\"\":{\"ubobqqnwhcmvdow\":\"dataovozyepkrncjrqhu\"}}") - .toObject(InformixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSource model = new InformixSource().withSourceRetryCount("dataxwkkbnhmdtj") - .withSourceRetryWait("datapfoispchhvvmvs") - .withMaxConcurrentConnections("datayqdhaz") - .withDisableMetricsCollection("dataug") - .withQueryTimeout("dataezvujpbmz") - .withAdditionalColumns("datalgm") - .withQuery("datavjutckfhmdcvlb"); - model = BinaryData.fromObject(model).toObject(InformixSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java deleted file mode 100644 index 5d2b6f3571da..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.InformixTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class InformixTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixTableDataset model = BinaryData.fromString( - "{\"type\":\"InformixTable\",\"typeProperties\":{\"tableName\":\"datazizyxdu\"},\"description\":\"nqzbrq\",\"structure\":\"datak\",\"schema\":\"datackviyjucamns\",\"linkedServiceName\":{\"referenceName\":\"qoitwhmucjiu\",\"parameters\":{\"elyqdvpqfbxg\":\"datayvehyk\"}},\"parameters\":{\"yw\":{\"type\":\"Array\",\"defaultValue\":\"datasdmtxqlefnoh\"},\"ey\":{\"type\":\"String\",\"defaultValue\":\"datapkyll\"},\"vcneqswxhqhgk\":{\"type\":\"Int\",\"defaultValue\":\"datapwdmsfwtwrsv\"},\"ncpmyh\":{\"type\":\"Array\",\"defaultValue\":\"datazvulqevv\"}},\"annotations\":[\"datadmvghcmi\",\"datamlwkfefbcyj\",\"datatalqee\",\"dataudfyimooaez\"],\"folder\":{\"name\":\"ms\"},\"\":{\"zbaeeek\":\"datahlqwbywa\"}}") - .toObject(InformixTableDataset.class); - Assertions.assertEquals("nqzbrq", model.description()); - Assertions.assertEquals("qoitwhmucjiu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("yw").type()); - Assertions.assertEquals("ms", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDataset model = new InformixTableDataset().withDescription("nqzbrq") - .withStructure("datak") - .withSchema("datackviyjucamns") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qoitwhmucjiu") - .withParameters(mapOf("elyqdvpqfbxg", "datayvehyk"))) - .withParameters(mapOf("yw", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datasdmtxqlefnoh"), "ey", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datapkyll"), - "vcneqswxhqhgk", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datapwdmsfwtwrsv"), "ncpmyh", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazvulqevv"))) - .withAnnotations(Arrays.asList("datadmvghcmi", "datamlwkfefbcyj", "datatalqee", "dataudfyimooaez")) - .withFolder(new DatasetFolder().withName("ms")) - .withTableName("datazizyxdu"); - model = BinaryData.fromObject(model).toObject(InformixTableDataset.class); - Assertions.assertEquals("nqzbrq", model.description()); - Assertions.assertEquals("qoitwhmucjiu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("yw").type()); - Assertions.assertEquals("ms", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java deleted file mode 100644 index b4fed1136467..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.InformixTableDatasetTypeProperties; - -public final class InformixTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datat\"}").toObject(InformixTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDatasetTypeProperties model = new InformixTableDatasetTypeProperties().withTableName("datat"); - model = BinaryData.fromObject(model).toObject(InformixTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java deleted file mode 100644 index e4b1c32cf7b2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyComputeScaleProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowComputeType; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeVNetProperties; -import com.azure.resourcemanager.datafactory.models.PipelineExternalComputeScaleProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeComputePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeComputeProperties model = BinaryData.fromString( - "{\"location\":\"c\",\"nodeSize\":\"xevlt\",\"numberOfNodes\":1736990485,\"maxParallelExecutionsPerNode\":1753770104,\"dataFlowProperties\":{\"computeType\":\"General\",\"coreCount\":2045958196,\"timeToLive\":492843137,\"cleanup\":true,\"customProperties\":[{\"name\":\"fmftwr\",\"value\":\"mriipzgfofuad\"},{\"name\":\"qneaqkgttbarg\",\"value\":\"ynqlsnr\"}],\"\":{\"yxhsppv\":\"dataoyvgjjp\",\"geqeapaseq\":\"datasduouoqtenqsomu\"}},\"vNetProperties\":{\"vNetId\":\"ypfreuwvzhn\",\"subnet\":\"vtoiqofzttqg\",\"publicIPs\":[\"w\",\"oxzuhellit\",\"qv\",\"ivrsgqbmolxeom\"],\"subnetId\":\"zvtvxxfs\",\"\":{\"edybkbgdwbmi\":\"dataacgihnalpc\",\"i\":\"datazikatywedb\"}},\"copyComputeScaleProperties\":{\"dataIntegrationUnit\":785813210,\"timeToLive\":95344421,\"\":{\"pave\":\"databhxncszd\"}},\"pipelineExternalComputeScaleProperties\":{\"timeToLive\":862321993,\"numberOfPipelineNodes\":922478953,\"numberOfExternalNodes\":1537232280,\"\":{\"erffhgvcym\":\"datadltniuii\",\"eudbobmol\":\"datadoeilhggaj\",\"ua\":\"datairchhwlzihvcc\"}},\"\":{\"toiwfsz\":\"dataipdjxyotgvraxh\",\"etsluqfgk\":\"datarlkosjwr\",\"imioixviobuwbnge\":\"datad\",\"gqamhbmggnqxnex\":\"datawhdq\"}}") - .toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("c", model.location()); - Assertions.assertEquals("xevlt", model.nodeSize()); - Assertions.assertEquals(1736990485, model.numberOfNodes()); - Assertions.assertEquals(1753770104, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); - Assertions.assertEquals(2045958196, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(492843137, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("fmftwr", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("mriipzgfofuad", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("ypfreuwvzhn", model.vNetProperties().vNetId()); - Assertions.assertEquals("vtoiqofzttqg", model.vNetProperties().subnet()); - Assertions.assertEquals("w", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("zvtvxxfs", model.vNetProperties().subnetId()); - Assertions.assertEquals(785813210, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(95344421, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(862321993, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(922478953, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(1537232280, model.pipelineExternalComputeScaleProperties().numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeComputeProperties model = new IntegrationRuntimeComputeProperties().withLocation("c") - .withNodeSize("xevlt") - .withNumberOfNodes(1736990485) - .withMaxParallelExecutionsPerNode(1753770104) - .withDataFlowProperties( - new IntegrationRuntimeDataFlowProperties().withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(2045958196) - .withTimeToLive(492843137) - .withCleanup(true) - .withCustomProperties(Arrays.asList( - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("fmftwr") - .withValue("mriipzgfofuad"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("qneaqkgttbarg") - .withValue("ynqlsnr"))) - .withAdditionalProperties(mapOf())) - .withVNetProperties(new IntegrationRuntimeVNetProperties().withVNetId("ypfreuwvzhn") - .withSubnet("vtoiqofzttqg") - .withPublicIPs(Arrays.asList("w", "oxzuhellit", "qv", "ivrsgqbmolxeom")) - .withSubnetId("zvtvxxfs") - .withAdditionalProperties(mapOf())) - .withCopyComputeScaleProperties(new CopyComputeScaleProperties().withDataIntegrationUnit(785813210) - .withTimeToLive(95344421) - .withAdditionalProperties(mapOf())) - .withPipelineExternalComputeScaleProperties( - new PipelineExternalComputeScaleProperties().withTimeToLive(862321993) - .withNumberOfPipelineNodes(922478953) - .withNumberOfExternalNodes(1537232280) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("c", model.location()); - Assertions.assertEquals("xevlt", model.nodeSize()); - Assertions.assertEquals(1736990485, model.numberOfNodes()); - Assertions.assertEquals(1753770104, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); - Assertions.assertEquals(2045958196, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(492843137, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("fmftwr", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("mriipzgfofuad", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("ypfreuwvzhn", model.vNetProperties().vNetId()); - Assertions.assertEquals("vtoiqofzttqg", model.vNetProperties().subnet()); - Assertions.assertEquals("w", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("zvtvxxfs", model.vNetProperties().subnetId()); - Assertions.assertEquals(785813210, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(95344421, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(862321993, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(922478953, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(1537232280, model.pipelineExternalComputeScaleProperties().numberOfExternalNodes()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeCustomerVirtualNetworkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeCustomerVirtualNetworkTests.java deleted file mode 100644 index 46145353993a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeCustomerVirtualNetworkTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeCustomerVirtualNetworkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeCustomerVirtualNetwork model = BinaryData.fromString("{\"subnetId\":\"sfvijnubxfiiy\"}") - .toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("sfvijnubxfiiy", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeCustomerVirtualNetwork model - = new IntegrationRuntimeCustomerVirtualNetwork().withSubnetId("sfvijnubxfiiy"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("sfvijnubxfiiy", model.subnetId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests.java deleted file mode 100644 index a4e9e11a5453..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem model - = BinaryData.fromString("{\"name\":\"kubzq\",\"value\":\"dlrkvitzk\"}") - .toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("kubzq", model.name()); - Assertions.assertEquals("dlrkvitzk", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem model - = new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("kubzq").withValue("dlrkvitzk"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("kubzq", model.name()); - Assertions.assertEquals("dlrkvitzk", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.java deleted file mode 100644 index 327a1ae22558..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowComputeType; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataFlowPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataFlowProperties model = BinaryData.fromString( - "{\"computeType\":\"ComputeOptimized\",\"coreCount\":2008818770,\"timeToLive\":759424327,\"cleanup\":false,\"customProperties\":[{\"name\":\"tkvomdqxnoyzqipa\",\"value\":\"fccydbjgh\"},{\"name\":\"qnttrw\",\"value\":\"bzvvxdvp\"}],\"\":{\"ai\":\"datawwvx\",\"ogsfovkmam\":\"databic\",\"gunrukcyyaa\":\"datay\"}}") - .toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.COMPUTE_OPTIMIZED, model.computeType()); - Assertions.assertEquals(2008818770, model.coreCount()); - Assertions.assertEquals(759424327, model.timeToLive()); - Assertions.assertEquals(false, model.cleanup()); - Assertions.assertEquals("tkvomdqxnoyzqipa", model.customProperties().get(0).name()); - Assertions.assertEquals("fccydbjgh", model.customProperties().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowProperties model - = new IntegrationRuntimeDataFlowProperties().withComputeType(DataFlowComputeType.COMPUTE_OPTIMIZED) - .withCoreCount(2008818770) - .withTimeToLive(759424327) - .withCleanup(false) - .withCustomProperties(Arrays.asList( - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("tkvomdqxnoyzqipa") - .withValue("fccydbjgh"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("qnttrw") - .withValue("bzvvxdvp"))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.COMPUTE_OPTIMIZED, model.computeType()); - Assertions.assertEquals(2008818770, model.coreCount()); - Assertions.assertEquals(759424327, model.timeToLive()); - Assertions.assertEquals(false, model.cleanup()); - Assertions.assertEquals("tkvomdqxnoyzqipa", model.customProperties().get(0).name()); - Assertions.assertEquals("fccydbjgh", model.customProperties().get(0).value()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java deleted file mode 100644 index 8c64abbebd46..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EntityReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataProxyProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataProxyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = BinaryData.fromString( - "{\"connectVia\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"obqysb\"},\"stagingLinkedService\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"bvvaerszsufzsa\"},\"path\":\"bric\"}") - .toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.connectVia().type()); - Assertions.assertEquals("obqysb", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("bvvaerszsufzsa", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("bric", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = new IntegrationRuntimeDataProxyProperties() - .withConnectVia( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("obqysb")) - .withStagingLinkedService( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("bvvaerszsufzsa")) - .withPath("bric"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.connectVia().type()); - Assertions.assertEquals("obqysb", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("bvvaerszsufzsa", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("bric", model.path()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java deleted file mode 100644 index df9a9715efba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"rvzmlovuana\",\"\":{\"erbdk\":\"dataxlpm\",\"bccxjmonfdgn\":\"datalvidizozs\",\"ypuuwwltvuqjctze\":\"datan\"}},\"name\":\"eifzzhmk\"}") - .toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("eifzzhmk", model.name()); - Assertions.assertEquals("rvzmlovuana", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDebugResource model = new IntegrationRuntimeDebugResource().withName("eifzzhmk") - .withProperties(new IntegrationRuntime().withDescription("rvzmlovuana") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("eifzzhmk", model.name()); - Assertions.assertEquals("rvzmlovuana", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java deleted file mode 100644 index d58619a78f67..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"hkaetcktvfc\",\"\":{\"jf\":\"datasnkymuctq\",\"fuwutttxf\":\"dataebrjcxe\",\"hfnljkyq\":\"datajrbirphxepcyv\"}},\"name\":\"vuujq\",\"type\":\"dokgjl\",\"etag\":\"oxgvclt\",\"id\":\"sncghkjeszz\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"ijhtxf\",\"\":{\"xnehmpvec\":\"databfs\"}},\"name\":\"odebfqkkrbmpu\",\"type\":\"riwflzlfb\",\"etag\":\"puz\",\"id\":\"ispnqzahmgkbrp\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"dhibnuq\",\"\":{\"drgvtqagn\":\"dataik\",\"mebf\":\"datauynhijg\"}},\"name\":\"arbu\",\"type\":\"cvpnazzmhjrunmpx\",\"etag\":\"dbhrbnlankxm\",\"id\":\"k\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"henbtkcxywnytn\",\"\":{\"lhaaxdbabp\":\"datanlqidybyxczf\"}},\"name\":\"wrqlfktsthsuco\",\"type\":\"nyyazttbtwwrqpue\",\"etag\":\"kzywbiex\",\"id\":\"eyueaxibxujwb\"}],\"nextLink\":\"walm\"}") - .toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).id()); - Assertions.assertEquals("hkaetcktvfc", model.value().get(0).properties().description()); - Assertions.assertEquals("walm", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeListResponse model - = new IntegrationRuntimeListResponse() - .withValue( - Arrays - .asList( - new IntegrationRuntimeResourceInner().withId("sncghkjeszz") - .withProperties(new IntegrationRuntime().withDescription("hkaetcktvfc") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withId("ispnqzahmgkbrp") - .withProperties(new IntegrationRuntime().withDescription("ijhtxf") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withId("k") - .withProperties(new IntegrationRuntime().withDescription("dhibnuq") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withId("eyueaxibxujwb") - .withProperties(new IntegrationRuntime().withDescription("henbtkcxywnytn") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))))) - .withNextLink("walm"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).id()); - Assertions.assertEquals("hkaetcktvfc", model.value().get(0).properties().description()); - Assertions.assertEquals("walm", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java deleted file mode 100644 index ecbb1ef86837..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeMonitoringDataInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = BinaryData.fromString( - "{\"name\":\"k\",\"nodes\":[{\"nodeName\":\"io\",\"availableMemoryInMB\":952194839,\"cpuUtilization\":1578257059,\"concurrentJobsLimit\":391809232,\"concurrentJobsRunning\":1039189909,\"maxConcurrentJobs\":1375924345,\"sentBytes\":68.58864,\"receivedBytes\":66.46081,\"\":{\"jooxdjebw\":\"datasowzxcugi\"}}]}") - .toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("k", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = new IntegrationRuntimeMonitoringDataInner().withName("k") - .withNodes(Arrays.asList(new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "io", "cpuUtilization", 1578257059, "receivedBytes", - 66.46081f, "concurrentJobsLimit", 391809232, "concurrentJobsRunning", 1039189909, - "maxConcurrentJobs", 1375924345, "availableMemoryInMB", 952194839, "sentBytes", 68.58864f)))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("k", model.name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java deleted file mode 100644 index 76c3160ed336..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; - -public final class IntegrationRuntimeNodeIpAddressInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model - = BinaryData.fromString("{\"ipAddress\":\"nr\"}").toObject(IntegrationRuntimeNodeIpAddressInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model = new IntegrationRuntimeNodeIpAddressInner(); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeIpAddressInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java deleted file mode 100644 index 13152d8b690b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeNodeMonitoringDataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = BinaryData.fromString( - "{\"nodeName\":\"cwwfvovbvme\",\"availableMemoryInMB\":321338352,\"cpuUtilization\":1542315989,\"concurrentJobsLimit\":1560245881,\"concurrentJobsRunning\":343837467,\"maxConcurrentJobs\":1240635196,\"sentBytes\":81.17821,\"receivedBytes\":67.35784,\"\":{\"wit\":\"datajueiotwmcdytd\"}}") - .toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "cwwfvovbvme", "cpuUtilization", 1542315989, "receivedBytes", - 67.35784f, "concurrentJobsLimit", 1560245881, "concurrentJobsRunning", 343837467, "maxConcurrentJobs", - 1240635196, "availableMemoryInMB", 321338352, "sentBytes", 81.17821f)); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java deleted file mode 100644 index 669465be6e8d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimeNodes() - .deleteWithResponse("njox", "llcsdgmcjsktej", "mhttiqbnfyixkeav", "ezzpfldd", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressWithResponseMockTests.java deleted file mode 100644 index 0ff58cc452a4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeIpAddress; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesGetIpAddressWithResponseMockTests { - @Test - public void testGetIpAddressWithResponse() throws Exception { - String responseStr = "{\"ipAddress\":\"iwgrj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeNodeIpAddress response = manager.integrationRuntimeNodes() - .getIpAddressWithResponse("yvzhxzjcbzij", "ykfxg", "mdqghtb", "eltnevbkkdbhgurn", - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java deleted file mode 100644 index 8b1e1c74bd46..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNode; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"nodeName\":\"jqjoamzdsajn\",\"machineName\":\"kq\",\"hostServiceUri\":\"tdeouqixgt\",\"status\":\"Initializing\",\"capabilities\":{\"aulbfrch\":\"evjjjuwdv\",\"bfekxbcbumjy\":\"ucobpkphxh\"},\"versionStatus\":\"ke\",\"version\":\"ohthsmdu\",\"registerTime\":\"2021-03-23T09:13:38Z\",\"lastConnectTime\":\"2021-06-15T13:12:33Z\",\"expiryTime\":\"2021-05-05T20:12:02Z\",\"lastStartTime\":\"2021-01-23T15:14:58Z\",\"lastStopTime\":\"2021-10-10T05:38:40Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-02-19T04:20:25Z\",\"lastEndUpdateTime\":\"2021-04-10T00:44:33Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1388340166,\"maxConcurrentJobs\":77233099,\"\":{\"ehxddmaevcjtrw\":\"datadfreyrgrgft\",\"betsvnloduvcq\":\"datacnwqeixyjlfobj\",\"lfeolhsyskivlz\":\"datawc\",\"iynzdadkurwgty\":\"dataxmqvlgcppn\"}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SelfHostedIntegrationRuntimeNode response = manager.integrationRuntimeNodes() - .getWithResponse("kfsgrheakvl", "ukmnu", "vpbjclih", "zriigteqyp", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java deleted file mode 100644 index 645765b33b21..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNode; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesUpdateWithResponseMockTests { - @Test - public void testUpdateWithResponse() throws Exception { - String responseStr - = "{\"nodeName\":\"w\",\"machineName\":\"df\",\"hostServiceUri\":\"q\",\"status\":\"Limited\",\"capabilities\":{\"dsnc\":\"sabyowfrwprbzf\"},\"versionStatus\":\"lgtqrowtaz\",\"version\":\"xwkkjx\",\"registerTime\":\"2021-06-24T12:52:09Z\",\"lastConnectTime\":\"2021-09-26T11:47:54Z\",\"expiryTime\":\"2021-09-06T21:28:54Z\",\"lastStartTime\":\"2021-08-27T15:55:46Z\",\"lastStopTime\":\"2021-10-07T00:16:58Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-08-31T19:56:57Z\",\"lastEndUpdateTime\":\"2021-06-22T04:38:40Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1091038831,\"maxConcurrentJobs\":1665291142,\"\":{\"fkdf\":\"datairttlwuqgaaj\",\"febtvnskygzqqikt\":\"dataqsbekmeeowdojpja\"}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SelfHostedIntegrationRuntimeNode response = manager.integrationRuntimeNodes() - .updateWithResponse("vcwhodfwv", "xrfr", "x", "yktlofgpnswv", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1423242353), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasGetWithResponseMockTests.java deleted file mode 100644 index f1e8df89bee7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataListResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeObjectMetadatasGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":8989974928153576075,\"name\":\"qn\",\"description\":\"mxitvmrq\"},{\"type\":\"SsisObjectMetadata\",\"id\":2339635829156681038,\"name\":\"cmuvskdvqyf\",\"description\":\"wxcabfrvjpfojh\"},{\"type\":\"SsisObjectMetadata\",\"id\":1740640778338465745,\"name\":\"qyohzhund\",\"description\":\"pdxfvjdfusuwght\"},{\"type\":\"SsisObjectMetadata\",\"id\":8786005440905854712,\"name\":\"hfeadedivadpc\",\"description\":\"qpm\"}],\"nextLink\":\"sdzfle\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SsisObjectMetadataListResponse response = manager.integrationRuntimeObjectMetadatas() - .getWithResponse("sd", "swozpm", "hdnx", new GetSsisObjectMetadataRequest().withMetadataPath("fesursb"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(8989974928153576075L, response.value().get(0).id()); - Assertions.assertEquals("qn", response.value().get(0).name()); - Assertions.assertEquals("mxitvmrq", response.value().get(0).description()); - Assertions.assertEquals("sdzfle", response.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java deleted file mode 100644 index f21a00c8b62a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataStatusResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeObjectMetadatasRefreshMockTests { - @Test - public void testRefresh() throws Exception { - String responseStr - = "{\"status\":\"mderauohtnjtahd\",\"name\":\"ceuhjxvcj\",\"properties\":\"l\",\"error\":\"yptvrbgcp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SsisObjectMetadataStatusResponse response - = manager.integrationRuntimeObjectMetadatas().refresh("ce", "qnh", "gbm", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mderauohtnjtahd", response.status()); - Assertions.assertEquals("ceuhjxvcj", response.name()); - Assertions.assertEquals("l", response.properties()); - Assertions.assertEquals("yptvrbgcp", response.error()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java deleted file mode 100644 index f6690962838c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model = BinaryData.fromString( - "{\"category\":\"bmehh\",\"endpoints\":[{\"domainName\":\"jusrtslhspk\",\"endpointDetails\":[{\"port\":812184412},{\"port\":441408788},{\"port\":1351571833}]},{\"domainName\":\"gkvtmelmqkrhah\",\"endpointDetails\":[{\"port\":1468596781},{\"port\":1935710102},{\"port\":1520620796},{\"port\":27642330}]},{\"domainName\":\"hmdua\",\"endpointDetails\":[{\"port\":552039222}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("bmehh", model.category()); - Assertions.assertEquals("jusrtslhspk", model.endpoints().get(0).domainName()); - Assertions.assertEquals(812184412, model.endpoints().get(0).endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("bmehh") - .withEndpoints( - Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("jusrtslhspk") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(812184412), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(441408788), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(1351571833))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("gkvtmelmqkrhah") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1468596781), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1935710102), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1520620796), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(27642330))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("hmdua") - .withEndpointDetails( - Arrays.asList(new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(552039222))))); - model = BinaryData.fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("bmehh", model.category()); - Assertions.assertEquals("jusrtslhspk", model.endpoints().get(0).domainName()); - Assertions.assertEquals(812184412, model.endpoints().get(0).endpointDetails().get(0).port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java deleted file mode 100644 index 0577cb26b44a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model - = BinaryData.fromString("{\"port\":434822175}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(434822175, model.port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(434822175); - model - = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(434822175, model.port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java deleted file mode 100644 index 0ec269d6d779..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model - = BinaryData.fromString("{\"domainName\":\"vfadmws\",\"endpointDetails\":[{\"port\":1913869945}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vfadmws", model.domainName()); - Assertions.assertEquals(1913869945, model.endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("vfadmws") - .withEndpointDetails(Arrays - .asList(new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1913869945))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vfadmws", model.domainName()); - Assertions.assertEquals(1913869945, model.endpointDetails().get(0).port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java deleted file mode 100644 index 6ed83e2b9030..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model = BinaryData.fromString( - "{\"value\":[{\"category\":\"frlh\",\"endpoints\":[{\"domainName\":\"kyv\",\"endpointDetails\":[{}]},{\"domainName\":\"n\",\"endpointDetails\":[{},{},{}]},{\"domainName\":\"zka\",\"endpointDetails\":[{}]},{\"domainName\":\"b\",\"endpointDetails\":[{},{}]}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("frlh", model.value().get(0).category()); - Assertions.assertEquals("kyv", model.value().get(0).endpoints().get(0).domainName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner() - .withValue( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("frlh") - .withEndpoints(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("kyv") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("n") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("zka") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("b") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))))); - model = BinaryData.fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("frlh", model.value().get(0).category()); - Assertions.assertEquals("kyv", model.value().get(0).endpoints().get(0).domainName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java deleted file mode 100644 index 0c42d6ed2ed8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeReference model = BinaryData - .fromString("{\"referenceName\":\"qsluicp\",\"parameters\":{\"uefywsbpfvmwy\":\"datakzzlvmbmpaxmodf\"}}") - .toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("qsluicp", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeReference model = new IntegrationRuntimeReference().withReferenceName("qsluicp") - .withParameters(mapOf("uefywsbpfvmwy", "datakzzlvmbmpaxmodf")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("qsluicp", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java deleted file mode 100644 index f64d5a7367bd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"yoxa\",\"\":{\"bniwdj\":\"datakzjancuxrhdwbav\",\"s\":\"datawz\",\"xytxhpzxbz\":\"databpg\"}},\"name\":\"zabglcuhxwt\",\"type\":\"yqiklbbovplwzb\",\"etag\":\"gy\",\"id\":\"uosvmkfssxqukk\"}") - .toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("uosvmkfssxqukk", model.id()); - Assertions.assertEquals("yoxa", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeResourceInner model = new IntegrationRuntimeResourceInner().withId("uosvmkfssxqukk") - .withProperties(new IntegrationRuntime().withDescription("yoxa") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("uosvmkfssxqukk", model.id()); - Assertions.assertEquals("yoxa", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java deleted file mode 100644 index f1c2692bcb8f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = BinaryData.fromString( - "{\"name\":\"ogtwrupqsxvnmi\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"kvceoveilovnotyf\",\"state\":\"Limited\",\"\":{\"x\":\"databkc\",\"nv\":\"datahbttkphyw\",\"qnermclfplphoxu\":\"datat\",\"ye\":\"datacrpab\"}}}") - .toObject(IntegrationRuntimeStatusResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = new IntegrationRuntimeStatusResponseInner() - .withProperties(new IntegrationRuntimeStatus().withAdditionalProperties( - mapOf("dataFactoryName", "kvceoveilovnotyf", "state", "Limited", "type", "IntegrationRuntimeStatus"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatusResponseInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java deleted file mode 100644 index 9cf69d515041..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatus model = BinaryData.fromString( - "{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"bjtazqugxywpmu\",\"state\":\"Started\",\"\":{\"dsuyonobgla\":\"datawfqkquj\",\"tcc\":\"datacq\",\"udxytlmoyrx\":\"datag\",\"qj\":\"datawfudwpzntxhdzhl\"}}") - .toObject(IntegrationRuntimeStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatus model = new IntegrationRuntimeStatus().withAdditionalProperties( - mapOf("dataFactoryName", "bjtazqugxywpmu", "state", "Started", "type", "IntegrationRuntimeStatus")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatus.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java deleted file mode 100644 index 2eba42937a82..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntime model = BinaryData.fromString( - "{\"type\":\"IntegrationRuntime\",\"description\":\"l\",\"\":{\"wiyighxpkdw\":\"datasxnkjzkdeslpvlo\",\"upedeojnabckhs\":\"databaiuebbaumny\",\"ie\":\"datatxp\",\"jdhtldwkyzxu\":\"datatfhvpesapskrdqmh\"}}") - .toObject(IntegrationRuntime.class); - Assertions.assertEquals("l", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntime model = new IntegrationRuntime().withDescription("l") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntime.class); - Assertions.assertEquals("l", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java deleted file mode 100644 index db2e6138930e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeVNetProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeVNetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeVNetProperties model = BinaryData.fromString( - "{\"vNetId\":\"qbxmnnidotmp\",\"subnet\":\"zuh\",\"publicIPs\":[\"ttqhpvaru\"],\"subnetId\":\"uwj\",\"\":{\"gmrodb\":\"dataqfpqqllavzlh\",\"z\":\"dataapqra\"}}") - .toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("qbxmnnidotmp", model.vNetId()); - Assertions.assertEquals("zuh", model.subnet()); - Assertions.assertEquals("ttqhpvaru", model.publicIPs().get(0)); - Assertions.assertEquals("uwj", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeVNetProperties model = new IntegrationRuntimeVNetProperties().withVNetId("qbxmnnidotmp") - .withSubnet("zuh") - .withPublicIPs(Arrays.asList("ttqhpvaru")) - .withSubnetId("uwj") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("qbxmnnidotmp", model.vNetId()); - Assertions.assertEquals("zuh", model.subnet()); - Assertions.assertEquals("ttqhpvaru", model.publicIPs().get(0)); - Assertions.assertEquals("uwj", model.subnetId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests.java deleted file mode 100644 index 386dc186c86e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests { - @Test - public void testCreateLinkedIntegrationRuntimeWithResponse() throws Exception { - String responseStr - = "{\"name\":\"byrvguojky\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"lmzrfhlynkiusbyy\",\"state\":\"AccessDenied\",\"\":{\"atuiqc\":\"dataqfhnqxqtemvqxxuw\",\"xjk\":\"dataylkdbyo\"}}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = manager.integrationRuntimes() - .createLinkedIntegrationRuntimeWithResponse("os", "demfatftzxtrjru", "ljfdc", - new CreateLinkedIntegrationRuntimeRequest().withName("p") - .withSubscriptionId("zflydywbn") - .withDataFactoryName("ygsifsahkc") - .withDataFactoryLocation("vajnsu"), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index ad0327a858c3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"eb\",\"\":{\"ytkehfoephiphoyg\":\"datadlahrd\",\"q\":\"datac\"}},\"name\":\"uk\",\"type\":\"vhqism\",\"etag\":\"logfxbvl\",\"id\":\"fdnaj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeResource response = manager.integrationRuntimes() - .define("jgvuvjsnbhnuujkj") - .withExistingFactory("avppos", "imtouclsabjzh") - .withProperties(new IntegrationRuntime().withDescription("yewtlomagxaqvra") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))) - .withIfMatch("ifptynhulefltub") - .create(); - - Assertions.assertEquals("fdnaj", response.id()); - Assertions.assertEquals("eb", response.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java deleted file mode 100644 index 99bfea794a18..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes() - .deleteWithResponse("yfi", "lpiqei", "jboghjdihtc", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.java deleted file mode 100644 index 1b1a20a1248e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeMonitoringData; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetMonitoringDataWithResponseMockTests { - @Test - public void testGetMonitoringDataWithResponse() throws Exception { - String responseStr - = "{\"name\":\"pkskbidmzzjp\",\"nodes\":[{\"nodeName\":\"esbteqfenhli\",\"availableMemoryInMB\":346827501,\"cpuUtilization\":981268010,\"concurrentJobsLimit\":855967901,\"concurrentJobsRunning\":1611200927,\"maxConcurrentJobs\":2069802386,\"sentBytes\":88.11751,\"receivedBytes\":6.6926837,\"\":{\"rjkinofwzci\":\"datadhxamjhpqfjpef\",\"qesyifdrbkprblw\":\"datal\",\"qqts\":\"databjse\"}},{\"nodeName\":\"pogtrwkuwna\",\"availableMemoryInMB\":560037150,\"cpuUtilization\":692226376,\"concurrentJobsLimit\":34678653,\"concurrentJobsRunning\":1020953911,\"maxConcurrentJobs\":142241566,\"sentBytes\":79.9216,\"receivedBytes\":71.34564,\"\":{\"tsgovnr\":\"dataovgipq\",\"tcrxcnuyfvri\":\"datayb\",\"onnvay\":\"datazqoi\"}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeMonitoringData response = manager.integrationRuntimes() - .getMonitoringDataWithResponse("owvjupxibu", "gtrnjzbvbwabily", "mfaxepuvwahfnlks", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("pkskbidmzzjp", response.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusWithResponseMockTests.java deleted file mode 100644 index 12dfebdc0dec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetStatusWithResponseMockTests { - @Test - public void testGetStatusWithResponse() throws Exception { - String responseStr - = "{\"name\":\"ptvmtnougmf\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"s\",\"state\":\"Online\",\"\":{\"szpusbfgjrk\":\"dataih\",\"bfoldbbli\":\"dataeprpn\",\"nzrrkmanrowdqo\":\"datajgyrpvmaywpraovq\"}}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = manager.integrationRuntimes() - .getStatusWithResponse("ddfvdktbaexbvyu", "rbycuuxgda", "flil", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetWithResponseMockTests.java deleted file mode 100644 index 9f1f298b44b5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"zq\",\"\":{\"f\":\"datao\",\"qjvju\":\"datalibwdkjq\",\"tz\":\"datajqjxobmvf\"}},\"name\":\"rtarneug\",\"type\":\"pkjyo\",\"etag\":\"wcxedkkd\",\"id\":\"frisreh\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeResource response = manager.integrationRuntimes() - .getWithResponse("eel", "mavinumdngqyvzzr", "ikanybo", "agaigtpj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("frisreh", response.id()); - Assertions.assertEquals("zq", response.properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactoryMockTests.java deleted file mode 100644 index f7361a4e80cf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactoryMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"iiudnmojjmimy\",\"\":{\"ovzmijirpwlt\":\"dataaotaaxl\"}},\"name\":\"mumba\",\"type\":\"ms\",\"etag\":\"udnkrwwc\",\"id\":\"qeiguxix\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.integrationRuntimes().listByFactory("i", "xz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qeiguxix", response.iterator().next().id()); - Assertions.assertEquals("iiudnmojjmimy", response.iterator().next().properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java deleted file mode 100644 index 74572aa4dcd4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests { - @Test - public void testListOutboundNetworkDependenciesEndpointsWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"category\":\"fdyessiie\",\"endpoints\":[{\"domainName\":\"exi\",\"endpointDetails\":[{},{}]}]}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse response = manager.integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse("xyabvvbsil", "hs", "es", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("fdyessiie", response.value().get(0).category()); - Assertions.assertEquals("exi", response.value().get(0).endpoints().get(0).domainName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.java deleted file mode 100644 index 1b40ab15d6e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesRemoveLinksWithResponseMockTests { - @Test - public void testRemoveLinksWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes() - .removeLinksWithResponse("dqop", "abrzrhdezlhsdcp", "bolczhyqdvxqo", - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("j"), com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartMockTests.java deleted file mode 100644 index fdbd9e81dc71..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesStartMockTests { - @Test - public void testStart() throws Exception { - String responseStr - = "{\"name\":\"ighnunptjmz\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"rjnddaov\",\"state\":\"Started\",\"\":{\"cvjdvxucqxjxxmsi\":\"dataztrln\",\"yclv\":\"dataliegzjktfsci\",\"woahfaqlcq\":\"dataivsagrfjhcrq\"}}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = manager.integrationRuntimes() - .start("j", "wgakghvaqbk", "zmwbxautspnyutf", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.java deleted file mode 100644 index 1d63a02d857d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesStopMockTests { - @Test - public void testStop() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes() - .stop("nwvqifptvfsvrjd", "zvhxssnqqivv", "vuyxsnm", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.java deleted file mode 100644 index cbff369715f5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesSyncCredentialsWithResponseMockTests { - @Test - public void testSyncCredentialsWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes() - .syncCredentialsWithResponse("innisuuakaadbwhs", "xmvkcu", "wseoqkaleknea", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java deleted file mode 100644 index e589d84f7567..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesUpgradeWithResponseMockTests { - @Test - public void testUpgradeWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes() - .upgradeWithResponse("o", "bigzlvqmy", "pojbifixdgkvlze", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java deleted file mode 100644 index 15f1bd79c7ac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.JiraObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JiraObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JiraObjectDataset model = BinaryData.fromString( - "{\"type\":\"JiraObject\",\"typeProperties\":{\"tableName\":\"datawenbqvpr\"},\"description\":\"voqatdjkaldpmec\",\"structure\":\"dataxfzynfemq\",\"schema\":\"datakkp\",\"linkedServiceName\":{\"referenceName\":\"wgssdquupirnb\",\"parameters\":{\"pvirzyud\":\"datayvdsqxkjwd\"}},\"parameters\":{\"xmlfouqpskva\":{\"type\":\"Object\",\"defaultValue\":\"datax\"}},\"annotations\":[\"datapmrrhyjx\"],\"folder\":{\"name\":\"acz\"},\"\":{\"jqyfy\":\"dataaeztt\",\"f\":\"dataqlyyslg\"}}") - .toObject(JiraObjectDataset.class); - Assertions.assertEquals("voqatdjkaldpmec", model.description()); - Assertions.assertEquals("wgssdquupirnb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xmlfouqpskva").type()); - Assertions.assertEquals("acz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraObjectDataset model = new JiraObjectDataset().withDescription("voqatdjkaldpmec") - .withStructure("dataxfzynfemq") - .withSchema("datakkp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wgssdquupirnb") - .withParameters(mapOf("pvirzyud", "datayvdsqxkjwd"))) - .withParameters(mapOf("xmlfouqpskva", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datax"))) - .withAnnotations(Arrays.asList("datapmrrhyjx")) - .withFolder(new DatasetFolder().withName("acz")) - .withTableName("datawenbqvpr"); - model = BinaryData.fromObject(model).toObject(JiraObjectDataset.class); - Assertions.assertEquals("voqatdjkaldpmec", model.description()); - Assertions.assertEquals("wgssdquupirnb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xmlfouqpskva").type()); - Assertions.assertEquals("acz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java deleted file mode 100644 index aecf98023c65..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JiraSource; - -public final class JiraSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JiraSource model = BinaryData.fromString( - "{\"type\":\"JiraSource\",\"query\":\"dataylvrofhhitjhh\",\"queryTimeout\":\"datavwrc\",\"additionalColumns\":\"datahllmblls\",\"sourceRetryCount\":\"datafdrimoopfr\",\"sourceRetryWait\":\"datajjrhxornuoqpob\",\"maxConcurrentConnections\":\"datarsdx\",\"disableMetricsCollection\":\"datamq\",\"\":{\"lseoixqp\":\"databqyavcxj\",\"fsuwcmzpwkca\":\"datamsfqntakroxku\",\"zq\":\"datafq\"}}") - .toObject(JiraSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraSource model = new JiraSource().withSourceRetryCount("datafdrimoopfr") - .withSourceRetryWait("datajjrhxornuoqpob") - .withMaxConcurrentConnections("datarsdx") - .withDisableMetricsCollection("datamq") - .withQueryTimeout("datavwrc") - .withAdditionalColumns("datahllmblls") - .withQuery("dataylvrofhhitjhh"); - model = BinaryData.fromObject(model).toObject(JiraSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java deleted file mode 100644 index ef9530213a9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.JsonDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JsonDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonDataset model = BinaryData.fromString( - "{\"type\":\"Json\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataviscot\",\"fileName\":\"databri\",\"\":{\"dslvrqo\":\"dataf\",\"deotmfx\":\"datamwsieeailwdqmqf\",\"g\":\"datakd\",\"uafixlxicwgp\":\"datagnamkuuyiu\"}},\"encodingName\":\"datadc\",\"compression\":{\"type\":\"datafzcfasf\",\"level\":\"dataropalvngtwyuskwg\",\"\":{\"cjlvkrkegtyc\":\"datataumd\",\"yddeeqz\":\"datauppiyxlzm\"}}},\"description\":\"abm\",\"structure\":\"datas\",\"schema\":\"dataduetbapf\",\"linkedServiceName\":{\"referenceName\":\"zewxtrlqbpxy\",\"parameters\":{\"zxvbczwhyegbthms\":\"datajpir\",\"jbuiggru\":\"datai\",\"oivsdwsngkrf\":\"dataozfvualjt\",\"akmhz\":\"datahscj\"}},\"parameters\":{\"nnx\":{\"type\":\"SecureString\",\"defaultValue\":\"datafbwih\"},\"pfzsclefyrl\":{\"type\":\"SecureString\",\"defaultValue\":\"dataynuqqkotauratnic\"},\"pwovvvsfleevn\":{\"type\":\"Float\",\"defaultValue\":\"datadqlmfdggnbbu\"}},\"annotations\":[\"datayrehjuqwv\",\"datapxrl\"],\"folder\":{\"name\":\"zihacen\"},\"\":{\"wmjcwtewfhxw\":\"datalxnqzubfonfdbgmk\",\"rehzlrynjpcha\":\"datark\",\"wevtjrieikmwla\":\"datakaeplrajubowu\"}}") - .toObject(JsonDataset.class); - Assertions.assertEquals("abm", model.description()); - Assertions.assertEquals("zewxtrlqbpxy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("nnx").type()); - Assertions.assertEquals("zihacen", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDataset model = new JsonDataset().withDescription("abm") - .withStructure("datas") - .withSchema("dataduetbapf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zewxtrlqbpxy") - .withParameters(mapOf("zxvbczwhyegbthms", "datajpir", "jbuiggru", "datai", "oivsdwsngkrf", - "dataozfvualjt", "akmhz", "datahscj"))) - .withParameters(mapOf("nnx", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datafbwih"), - "pfzsclefyrl", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataynuqqkotauratnic"), - "pwovvvsfleevn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datadqlmfdggnbbu"))) - .withAnnotations(Arrays.asList("datayrehjuqwv", "datapxrl")) - .withFolder(new DatasetFolder().withName("zihacen")) - .withLocation(new DatasetLocation().withFolderPath("dataviscot") - .withFileName("databri") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datadc") - .withCompression(new DatasetCompression().withType("datafzcfasf") - .withLevel("dataropalvngtwyuskwg") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(JsonDataset.class); - Assertions.assertEquals("abm", model.description()); - Assertions.assertEquals("zewxtrlqbpxy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("nnx").type()); - Assertions.assertEquals("zihacen", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java deleted file mode 100644 index b1a291d8595b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.JsonDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class JsonDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datalfnisyxg\",\"fileName\":\"databmtredscnns\",\"\":{\"wtzqzcloyhy\":\"datayyuvtzrxzhclec\",\"wbyorjplbchych\":\"datapgidhzgyresgzsdt\",\"fbqvumkxqj\":\"datakvy\",\"t\":\"dataiuepmaxfnzlpqmp\"}},\"encodingName\":\"datafvulb\",\"compression\":{\"type\":\"datartux\",\"level\":\"datarhfcaeooifqdyw\",\"\":{\"corkfrocgbmxl\":\"dataobhahqmomf\",\"zezbjes\":\"dataj\"}}}") - .toObject(JsonDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDatasetTypeProperties model = new JsonDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datalfnisyxg") - .withFileName("databmtredscnns") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datafvulb") - .withCompression(new DatasetCompression().withType("datartux") - .withLevel("datarhfcaeooifqdyw") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(JsonDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java deleted file mode 100644 index eb67f3707e59..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonFormat; - -public final class JsonFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonFormat model = BinaryData.fromString( - "{\"type\":\"JsonFormat\",\"filePattern\":\"datapmillxgjsci\",\"nestingSeparator\":\"datagsoriobij\",\"encodingName\":\"dataydyeuy\",\"jsonNodeReference\":\"databok\",\"jsonPathDefinition\":\"datar\",\"serializer\":\"dataybriop\",\"deserializer\":\"dataeoftnorwai\",\"\":{\"f\":\"dataoctqkmvjanxvzf\",\"wosstfjxtvlxx\":\"datatj\"}}") - .toObject(JsonFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonFormat model = new JsonFormat().withSerializer("dataybriop") - .withDeserializer("dataeoftnorwai") - .withFilePattern("datapmillxgjsci") - .withNestingSeparator("datagsoriobij") - .withEncodingName("dataydyeuy") - .withJsonNodeReference("databok") - .withJsonPathDefinition("datar"); - model = BinaryData.fromObject(model).toObject(JsonFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java deleted file mode 100644 index 8a98018f9ba3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class JsonReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonReadSettings model = BinaryData.fromString( - "{\"type\":\"JsonReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"gcjssqpk\":\"datadiuyqdjk\"}},\"\":{\"h\":\"datayhv\",\"iwuver\":\"datavupbzqwwttqj\",\"co\":\"dataavbjv\",\"djoorbuuhbcck\":\"dataupshoofaskyy\"}}") - .toObject(JsonReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonReadSettings model = new JsonReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(JsonReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java deleted file mode 100644 index d249beeba9c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonSink; -import com.azure.resourcemanager.datafactory.models.JsonWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class JsonSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonSink model = BinaryData.fromString( - "{\"type\":\"JsonSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataspfwmfc\",\"disableMetricsCollection\":\"datatoxsthjyyiry\",\"copyBehavior\":\"dataqmkmwdoknvyilh\",\"metadata\":[{\"name\":\"datadioxgs\",\"value\":\"dataxoyrgvrt\"},{\"name\":\"datatmzglbplqhbrar\",\"value\":\"datadepsxufyqcqf\"}],\"\":{\"xgxbgochpxps\":\"dataye\"}},\"formatSettings\":{\"type\":\"JsonWriteSettings\",\"filePattern\":\"datawsioozrugb\",\"\":{\"zjjtapvqjebtd\":\"datalwckuvlz\"}},\"writeBatchSize\":\"datagkeexsozpkvylvty\",\"writeBatchTimeout\":\"datatfqpmpywwybu\",\"sinkRetryCount\":\"datamjc\",\"sinkRetryWait\":\"dataoecdqun\",\"maxConcurrentConnections\":\"dataqcocc\",\"disableMetricsCollection\":\"dataxjrr\",\"\":{\"uoup\":\"databnkqps\"}}") - .toObject(JsonSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSink model = new JsonSink().withWriteBatchSize("datagkeexsozpkvylvty") - .withWriteBatchTimeout("datatfqpmpywwybu") - .withSinkRetryCount("datamjc") - .withSinkRetryWait("dataoecdqun") - .withMaxConcurrentConnections("dataqcocc") - .withDisableMetricsCollection("dataxjrr") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("dataspfwmfc") - .withDisableMetricsCollection("datatoxsthjyyiry") - .withCopyBehavior("dataqmkmwdoknvyilh") - .withMetadata(Arrays.asList(new MetadataItem().withName("datadioxgs").withValue("dataxoyrgvrt"), - new MetadataItem().withName("datatmzglbplqhbrar").withValue("datadepsxufyqcqf"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new JsonWriteSettings().withFilePattern("datawsioozrugb")); - model = BinaryData.fromObject(model).toObject(JsonSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java deleted file mode 100644 index 87832f6bc533..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class JsonSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonSource model = BinaryData.fromString( - "{\"type\":\"JsonSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataiksjpkign\",\"disableMetricsCollection\":\"datao\",\"\":{\"ipbfs\":\"datai\",\"kkkgiecjyf\":\"datapslpevzpqydn\",\"f\":\"datasn\",\"tjc\":\"dataz\"}},\"formatSettings\":{\"type\":\"JsonReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"q\":\"datab\",\"xuhhvgddfzcny\":\"dataagpdsuyywnaqgo\"}},\"\":{\"degfhofo\":\"datalhufsgcpwrtg\",\"xvkqjpovjvvxps\":\"datatbiuikpotjjfe\"}},\"additionalColumns\":\"dataewrb\",\"sourceRetryCount\":\"dataj\",\"sourceRetryWait\":\"dataflqwqcxyiqppacji\",\"maxConcurrentConnections\":\"datallacylbtkxeij\",\"disableMetricsCollection\":\"datanlaaxtte\",\"\":{\"wlntenhnqtvx\":\"datagojvgjezrwbob\",\"eojl\":\"datahbehhehotqorrvwl\",\"fdsgrtkevim\":\"dataugzlvgjirjkkrs\",\"klbfvtzdtw\":\"dataupgevjmandrvvj\"}}") - .toObject(JsonSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSource model = new JsonSource().withSourceRetryCount("dataj") - .withSourceRetryWait("dataflqwqcxyiqppacji") - .withMaxConcurrentConnections("datallacylbtkxeij") - .withDisableMetricsCollection("datanlaaxtte") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataiksjpkign") - .withDisableMetricsCollection("datao") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new JsonReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("dataewrb"); - model = BinaryData.fromObject(model).toObject(JsonSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java deleted file mode 100644 index 499a265a9dc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonWriteSettings; - -public final class JsonWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonWriteSettings model = BinaryData.fromString( - "{\"type\":\"JsonWriteSettings\",\"filePattern\":\"databomjby\",\"\":{\"jwfncsaaylcpgzmx\":\"datarkbzra\",\"unntqqguhv\":\"datagppqajdm\",\"fwfuxdtpjcs\":\"datawrziminetb\",\"yfftqombdsgqxa\":\"datakedlclxxq\"}}") - .toObject(JsonWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonWriteSettings model = new JsonWriteSettings().withFilePattern("databomjby"); - model = BinaryData.fromObject(model).toObject(JsonWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.java deleted file mode 100644 index 596da5f81ed2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseLocation; - -public final class LakeHouseLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseLocation model = BinaryData.fromString( - "{\"type\":\"LakeHouseLocation\",\"folderPath\":\"dataoyrzaaoe\",\"fileName\":\"datapmjen\",\"\":{\"axxcrxoxdj\":\"dataat\"}}") - .toObject(LakeHouseLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseLocation model = new LakeHouseLocation().withFolderPath("dataoyrzaaoe").withFileName("datapmjen"); - model = BinaryData.fromObject(model).toObject(LakeHouseLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseReadSettingsTests.java deleted file mode 100644 index ab44ab05c144..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseReadSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseReadSettings; - -public final class LakeHouseReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseReadSettings model = BinaryData.fromString( - "{\"type\":\"LakeHouseReadSettings\",\"recursive\":\"datameb\",\"wildcardFolderPath\":\"datain\",\"wildcardFileName\":\"datadk\",\"fileListPath\":\"dataqjj\",\"enablePartitionDiscovery\":\"datah\",\"partitionRootPath\":\"datakcttpcctvcjdrmkn\",\"deleteFilesAfterCompletion\":\"datahvcrjqzbmyftzbx\",\"modifiedDatetimeStart\":\"dataosrb\",\"modifiedDatetimeEnd\":\"datalqn\",\"maxConcurrentConnections\":\"datasegursbzmixw\",\"disableMetricsCollection\":\"datatnkvtzdvxsgdaa\",\"\":{\"xhpqlxnb\":\"datagsuqmrkyaovcbds\",\"aingadkr\":\"dataj\",\"fqmyfgwbuxqzfwg\":\"datanyyjngdfzqc\"}}") - .toObject(LakeHouseReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseReadSettings model = new LakeHouseReadSettings().withMaxConcurrentConnections("datasegursbzmixw") - .withDisableMetricsCollection("datatnkvtzdvxsgdaa") - .withRecursive("datameb") - .withWildcardFolderPath("datain") - .withWildcardFileName("datadk") - .withFileListPath("dataqjj") - .withEnablePartitionDiscovery("datah") - .withPartitionRootPath("datakcttpcctvcjdrmkn") - .withDeleteFilesAfterCompletion("datahvcrjqzbmyftzbx") - .withModifiedDatetimeStart("dataosrb") - .withModifiedDatetimeEnd("datalqn"); - model = BinaryData.fromObject(model).toObject(LakeHouseReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTests.java deleted file mode 100644 index d285aa1966c7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LakeHouseTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LakeHouseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableDataset model = BinaryData.fromString( - "{\"type\":\"LakeHouseTable\",\"typeProperties\":{\"schema\":\"datairgkn\",\"table\":\"datawla\"},\"description\":\"dajy\",\"structure\":\"databjgipvspe\",\"schema\":\"datazhydt\",\"linkedServiceName\":{\"referenceName\":\"bmtrsdplvia\",\"parameters\":{\"gcneviccwb\":\"datarmawo\",\"oi\":\"dataysclwbjgiynqr\",\"eyydx\":\"dataweofvsxauphzefi\",\"exccwldgfq\":\"datagtiivzkd\"}},\"parameters\":{\"cncrvjcullmfw\":{\"type\":\"SecureString\",\"defaultValue\":\"datatacrsc\"}},\"annotations\":[\"dataeowoszzw\",\"datacsjgfxvc\",\"datamubyguqhgnmsvjfg\",\"datapryyircb\"],\"folder\":{\"name\":\"jrbvyrkbuatxkzn\"},\"\":{\"kevday\":\"datambxo\"}}") - .toObject(LakeHouseTableDataset.class); - Assertions.assertEquals("dajy", model.description()); - Assertions.assertEquals("bmtrsdplvia", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("cncrvjcullmfw").type()); - Assertions.assertEquals("jrbvyrkbuatxkzn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableDataset model = new LakeHouseTableDataset().withDescription("dajy") - .withStructure("databjgipvspe") - .withSchema("datazhydt") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bmtrsdplvia") - .withParameters(mapOf("gcneviccwb", "datarmawo", "oi", "dataysclwbjgiynqr", "eyydx", - "dataweofvsxauphzefi", "exccwldgfq", "datagtiivzkd"))) - .withParameters(mapOf("cncrvjcullmfw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatacrsc"))) - .withAnnotations(Arrays.asList("dataeowoszzw", "datacsjgfxvc", "datamubyguqhgnmsvjfg", "datapryyircb")) - .withFolder(new DatasetFolder().withName("jrbvyrkbuatxkzn")) - .withSchemaTypePropertiesSchema("datairgkn") - .withTable("datawla"); - model = BinaryData.fromObject(model).toObject(LakeHouseTableDataset.class); - Assertions.assertEquals("dajy", model.description()); - Assertions.assertEquals("bmtrsdplvia", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("cncrvjcullmfw").type()); - Assertions.assertEquals("jrbvyrkbuatxkzn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.java deleted file mode 100644 index 94d53650863f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LakeHouseTableDatasetTypeProperties; - -public final class LakeHouseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datazkxiym\",\"table\":\"datar\"}") - .toObject(LakeHouseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableDatasetTypeProperties model - = new LakeHouseTableDatasetTypeProperties().withSchema("datazkxiym").withTable("datar"); - model = BinaryData.fromObject(model).toObject(LakeHouseTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSinkTests.java deleted file mode 100644 index d1d6b9fc5cdc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSinkTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseTableSink; - -public final class LakeHouseTableSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableSink model = BinaryData.fromString( - "{\"type\":\"LakeHouseTableSink\",\"tableActionOption\":\"dataynkhvpuq\",\"partitionOption\":\"datazdbbitpgrnhpmsdg\",\"partitionNameList\":\"datawfodv\",\"writeBatchSize\":\"dataxmoj\",\"writeBatchTimeout\":\"datavgi\",\"sinkRetryCount\":\"datayevhnqtb\",\"sinkRetryWait\":\"datavjodgplagwvgb\",\"maxConcurrentConnections\":\"datamqudnqc\",\"disableMetricsCollection\":\"databh\",\"\":{\"fzkvrmdoshiyy\":\"datasyszl\"}}") - .toObject(LakeHouseTableSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableSink model = new LakeHouseTableSink().withWriteBatchSize("dataxmoj") - .withWriteBatchTimeout("datavgi") - .withSinkRetryCount("datayevhnqtb") - .withSinkRetryWait("datavjodgplagwvgb") - .withMaxConcurrentConnections("datamqudnqc") - .withDisableMetricsCollection("databh") - .withTableActionOption("dataynkhvpuq") - .withPartitionOption("datazdbbitpgrnhpmsdg") - .withPartitionNameList("datawfodv"); - model = BinaryData.fromObject(model).toObject(LakeHouseTableSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSourceTests.java deleted file mode 100644 index a9a50a34bca1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseTableSource; - -public final class LakeHouseTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableSource model = BinaryData.fromString( - "{\"type\":\"LakeHouseTableSource\",\"timestampAsOf\":\"datacgg\",\"versionAsOf\":\"dataxbtqizydaiol\",\"additionalColumns\":\"datakghlexvq\",\"sourceRetryCount\":\"datanwmokz\",\"sourceRetryWait\":\"dataltbpqjfoujeiagny\",\"maxConcurrentConnections\":\"datafjssayrwyf\",\"disableMetricsCollection\":\"datatezxr\",\"\":{\"exwhoscinpmvcvnm\":\"datahzwdyvayhvxh\",\"ym\":\"dataqlshg\"}}") - .toObject(LakeHouseTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableSource model = new LakeHouseTableSource().withSourceRetryCount("datanwmokz") - .withSourceRetryWait("dataltbpqjfoujeiagny") - .withMaxConcurrentConnections("datafjssayrwyf") - .withDisableMetricsCollection("datatezxr") - .withTimestampAsOf("datacgg") - .withVersionAsOf("dataxbtqizydaiol") - .withAdditionalColumns("datakghlexvq"); - model = BinaryData.fromObject(model).toObject(LakeHouseTableSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseWriteSettingsTests.java deleted file mode 100644 index a62e3f0d81a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class LakeHouseWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseWriteSettings model = BinaryData.fromString( - "{\"type\":\"LakeHouseWriteSettings\",\"maxConcurrentConnections\":\"datarezpuzkwi\",\"disableMetricsCollection\":\"datafin\",\"copyBehavior\":\"datasdtlpshxjhans\",\"metadata\":[{\"name\":\"datalcnk\",\"value\":\"datasqvfyoksstal\"},{\"name\":\"dataqlxjjltuymnaaqh\",\"value\":\"dataaa\"},{\"name\":\"datadlvccuvcvaf\",\"value\":\"databyjgdjvyclasd\"}],\"\":{\"gsnpv\":\"datanupftek\"}}") - .toObject(LakeHouseWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseWriteSettings model = new LakeHouseWriteSettings().withMaxConcurrentConnections("datarezpuzkwi") - .withDisableMetricsCollection("datafin") - .withCopyBehavior("datasdtlpshxjhans") - .withMetadata(Arrays.asList(new MetadataItem().withName("datalcnk").withValue("datasqvfyoksstal"), - new MetadataItem().withName("dataqlxjjltuymnaaqh").withValue("dataaa"), - new MetadataItem().withName("datadlvccuvcvaf").withValue("databyjgdjvyclasd"))); - model = BinaryData.fromObject(model).toObject(LakeHouseWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java deleted file mode 100644 index 920515582c33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class LinkedIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntimeRequest model - = BinaryData.fromString("{\"factoryName\":\"nrjawgqwg\"}").toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("nrjawgqwg", model.linkedFactoryName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntimeRequest model - = new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("nrjawgqwg"); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("nrjawgqwg", model.linkedFactoryName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java deleted file mode 100644 index 0fd5739c43df..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; - -public final class LinkedIntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntime model = BinaryData.fromString( - "{\"name\":\"vdulymkgj\",\"subscriptionId\":\"yhxfgha\",\"dataFactoryName\":\"pftkgmbmvxbiubz\",\"dataFactoryLocation\":\"psotbame\",\"createTime\":\"2021-05-30T00:05:33Z\"}") - .toObject(LinkedIntegrationRuntime.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntime model = new LinkedIntegrationRuntime(); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntime.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java deleted file mode 100644 index a9541634c962..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"gt\",\"connectVia\":{\"referenceName\":\"yujtvczkcnyx\",\"parameters\":{\"glnkvxlxpagl\":\"dataunjdx\",\"hpzvuqdflvoniyp\":\"dataivbgkcv\",\"idibgqjxgpn\":\"datapubcpzgpxtivhjk\",\"kqmhhaowjr\":\"datahgovfgp\"}},\"description\":\"vuporqzdfuydzv\",\"parameters\":{\"xqpswok\":{\"type\":\"Int\",\"defaultValue\":\"datanq\"},\"gdhbe\":{\"type\":\"Bool\",\"defaultValue\":\"datahl\"},\"wiwtglxxhl\":{\"type\":\"Object\",\"defaultValue\":\"datakzsz\"}},\"annotations\":[\"datagpicr\"],\"\":{\"mqgjsxvpq\":\"datahr\",\"bakclacjfrnxous\":\"databfrmbodthsqqgvri\",\"lwvsgm\":\"dataau\",\"xmmkjs\":\"dataohqfzizv\"}},\"name\":\"hnwpzt\"}") - .toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("hnwpzt", model.name()); - Assertions.assertEquals("gt", model.properties().version()); - Assertions.assertEquals("yujtvczkcnyx", model.properties().connectVia().referenceName()); - Assertions.assertEquals("vuporqzdfuydzv", model.properties().description()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("xqpswok").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceDebugResource model = new LinkedServiceDebugResource().withName("hnwpzt") - .withProperties(new LinkedService().withVersion("gt") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("yujtvczkcnyx") - .withParameters(mapOf("glnkvxlxpagl", "dataunjdx", "hpzvuqdflvoniyp", "dataivbgkcv", "idibgqjxgpn", - "datapubcpzgpxtivhjk", "kqmhhaowjr", "datahgovfgp"))) - .withDescription("vuporqzdfuydzv") - .withParameters(mapOf("xqpswok", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanq"), "gdhbe", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datahl"), "wiwtglxxhl", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datakzsz"))) - .withAnnotations(Arrays.asList("datagpicr")) - .withAdditionalProperties(mapOf("type", "LinkedService"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("hnwpzt", model.name()); - Assertions.assertEquals("gt", model.properties().version()); - Assertions.assertEquals("yujtvczkcnyx", model.properties().connectVia().referenceName()); - Assertions.assertEquals("vuporqzdfuydzv", model.properties().description()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("xqpswok").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java deleted file mode 100644 index 96fd484e0ec4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceListResponse; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"LinkedService\",\"version\":\"o\",\"connectVia\":{\"referenceName\":\"bnxknalaulppg\",\"parameters\":{\"igvpgylg\":\"datapnapnyiropuh\",\"medjvcslynqwwncw\":\"datagit\",\"pkteo\":\"datazhxgktrmgucn\",\"pfqbuaceopzf\":\"datallwptfdy\"}},\"description\":\"hhuao\",\"parameters\":{\"lzdahzxctobgbkdm\":{\"type\":\"SecureString\",\"defaultValue\":\"dataeqx\"},\"qjhhkxbpv\":{\"type\":\"String\",\"defaultValue\":\"datapostmgrcfbunrm\"}},\"annotations\":[\"datajhxxjyn\"],\"\":{\"xqzvszjfa\":\"dataivkrtsw\",\"ivetvtcq\":\"datavjfdx\"}},\"name\":\"tdo\",\"type\":\"cbxvwvxyslqbh\",\"etag\":\"xoblytkbl\",\"id\":\"ewwwfbkrvrnsv\"},{\"properties\":{\"type\":\"LinkedService\",\"version\":\"q\",\"connectVia\":{\"referenceName\":\"hxcr\",\"parameters\":{\"cgjbirxbp\":\"dataovasrruvwbhsqfsu\",\"dtws\":\"databsrfbj\"}},\"description\":\"t\",\"parameters\":{\"mqtaruoujmkcjh\":{\"type\":\"String\",\"defaultValue\":\"datazbexilzznfqqnvw\"},\"ervnaenqpehi\":{\"type\":\"Array\",\"defaultValue\":\"datatjrybnwjewgdr\"}},\"annotations\":[\"dataygmi\",\"datathnzd\"],\"\":{\"nayqi\":\"datal\"}},\"name\":\"nduhavhqlkthum\",\"type\":\"olbgycduiertgccy\",\"etag\":\"aolps\",\"id\":\"qlfmmdnbb\"}],\"nextLink\":\"zpswiydmc\"}") - .toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("ewwwfbkrvrnsv", model.value().get(0).id()); - Assertions.assertEquals("o", model.value().get(0).properties().version()); - Assertions.assertEquals("bnxknalaulppg", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("hhuao", model.value().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).properties().parameters().get("lzdahzxctobgbkdm").type()); - Assertions.assertEquals("zpswiydmc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceListResponse model = new LinkedServiceListResponse().withValue(Arrays.asList( - new LinkedServiceResourceInner().withId("ewwwfbkrvrnsv") - .withProperties(new LinkedService().withVersion("o") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("bnxknalaulppg") - .withParameters(mapOf("igvpgylg", "datapnapnyiropuh", "medjvcslynqwwncw", "datagit", "pkteo", - "datazhxgktrmgucn", "pfqbuaceopzf", "datallwptfdy"))) - .withDescription("hhuao") - .withParameters(mapOf("lzdahzxctobgbkdm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataeqx"), - "qjhhkxbpv", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datapostmgrcfbunrm"))) - .withAnnotations(Arrays.asList("datajhxxjyn")) - .withAdditionalProperties(mapOf("type", "LinkedService"))), - new LinkedServiceResourceInner().withId("qlfmmdnbb") - .withProperties(new LinkedService().withVersion("q") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("hxcr") - .withParameters(mapOf("cgjbirxbp", "dataovasrruvwbhsqfsu", "dtws", "databsrfbj"))) - .withDescription("t") - .withParameters(mapOf("mqtaruoujmkcjh", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datazbexilzznfqqnvw"), - "ervnaenqpehi", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("datatjrybnwjewgdr"))) - .withAnnotations(Arrays.asList("dataygmi", "datathnzd")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withNextLink("zpswiydmc"); - model = BinaryData.fromObject(model).toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("ewwwfbkrvrnsv", model.value().get(0).id()); - Assertions.assertEquals("o", model.value().get(0).properties().version()); - Assertions.assertEquals("bnxknalaulppg", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("hhuao", model.value().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).properties().parameters().get("lzdahzxctobgbkdm").type()); - Assertions.assertEquals("zpswiydmc", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java deleted file mode 100644 index c98ad5415feb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceReference model = BinaryData.fromString( - "{\"referenceName\":\"inrfdwoyu\",\"parameters\":{\"mzqhoftrmaequi\":\"dataiuiefozbhdmsm\",\"iyylhalnswhccsp\":\"datahxicslfaoqz\",\"scywuggwoluhc\":\"datakaivwit\"}}") - .toObject(LinkedServiceReference.class); - Assertions.assertEquals("inrfdwoyu", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceReference model = new LinkedServiceReference().withReferenceName("inrfdwoyu") - .withParameters(mapOf("mzqhoftrmaequi", "dataiuiefozbhdmsm", "iyylhalnswhccsp", "datahxicslfaoqz", - "scywuggwoluhc", "datakaivwit")); - model = BinaryData.fromObject(model).toObject(LinkedServiceReference.class); - Assertions.assertEquals("inrfdwoyu", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java deleted file mode 100644 index bd28f32a9b56..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"hzdxssadbzm\",\"connectVia\":{\"referenceName\":\"dfznudaodv\",\"parameters\":{\"bhhxsrzdzuc\":\"datancblylpst\",\"ntnev\":\"datarsc\",\"tmweriofzpyq\":\"dataiwjmygtdssls\",\"hhszh\":\"dataemwabnet\"}},\"description\":\"plvwiwubmwmbes\",\"parameters\":{\"z\":{\"type\":\"Array\",\"defaultValue\":\"datawtppjflcxogaoko\"}},\"annotations\":[\"dataikvmkqzeqqk\",\"datal\",\"datafzxmhhvhgureodkw\",\"databdagxt\"],\"\":{\"akbogqxndlkzgxh\":\"datadxbx\",\"podxunkb\":\"dataripl\"}},\"name\":\"xmubyyntwlrbq\",\"type\":\"oievseotgqrlltm\",\"etag\":\"lauwzizxbmpgcjef\",\"id\":\"muvp\"}") - .toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("muvp", model.id()); - Assertions.assertEquals("hzdxssadbzm", model.properties().version()); - Assertions.assertEquals("dfznudaodv", model.properties().connectVia().referenceName()); - Assertions.assertEquals("plvwiwubmwmbes", model.properties().description()); - Assertions.assertEquals(ParameterType.ARRAY, model.properties().parameters().get("z").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceResourceInner model = new LinkedServiceResourceInner().withId("muvp") - .withProperties(new LinkedService().withVersion("hzdxssadbzm") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("dfznudaodv") - .withParameters(mapOf("bhhxsrzdzuc", "datancblylpst", "ntnev", "datarsc", "tmweriofzpyq", - "dataiwjmygtdssls", "hhszh", "dataemwabnet"))) - .withDescription("plvwiwubmwmbes") - .withParameters(mapOf("z", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datawtppjflcxogaoko"))) - .withAnnotations(Arrays.asList("dataikvmkqzeqqk", "datal", "datafzxmhhvhgureodkw", "databdagxt")) - .withAdditionalProperties(mapOf("type", "LinkedService"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("muvp", model.id()); - Assertions.assertEquals("hzdxssadbzm", model.properties().version()); - Assertions.assertEquals("dfznudaodv", model.properties().connectVia().referenceName()); - Assertions.assertEquals("plvwiwubmwmbes", model.properties().description()); - Assertions.assertEquals(ParameterType.ARRAY, model.properties().parameters().get("z").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java deleted file mode 100644 index e5209d49bc30..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedService model = BinaryData.fromString( - "{\"type\":\"LinkedService\",\"version\":\"tdum\",\"connectVia\":{\"referenceName\":\"p\",\"parameters\":{\"fgohdneuelfphs\":\"databmnzbtbhjpgl\",\"v\":\"datayhtozfikdowwqu\",\"lvithhqzonosgg\":\"datazx\",\"ljuti\":\"datahcohfwdsjnk\"}},\"description\":\"wacf\",\"parameters\":{\"vhqcrail\":{\"type\":\"Array\",\"defaultValue\":\"datazewk\"},\"wdmhdlxyjrxs\":{\"type\":\"String\",\"defaultValue\":\"datappfufl\"},\"pnedgf\":{\"type\":\"Float\",\"defaultValue\":\"datafcnihgwq\"},\"dcvd\":{\"type\":\"Bool\",\"defaultValue\":\"datakcvqvpke\"}},\"annotations\":[\"dataood\"],\"\":{\"d\":\"databobzdopcjwvnhd\",\"twuoegrpkhjwni\":\"datamgxcxrslpm\"}}") - .toObject(LinkedService.class); - Assertions.assertEquals("tdum", model.version()); - Assertions.assertEquals("p", model.connectVia().referenceName()); - Assertions.assertEquals("wacf", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vhqcrail").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedService model = new LinkedService().withVersion("tdum") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("p") - .withParameters(mapOf("fgohdneuelfphs", "databmnzbtbhjpgl", "v", "datayhtozfikdowwqu", "lvithhqzonosgg", - "datazx", "ljuti", "datahcohfwdsjnk"))) - .withDescription("wacf") - .withParameters(mapOf("vhqcrail", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazewk"), "wdmhdlxyjrxs", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datappfufl"), "pnedgf", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafcnihgwq"), "dcvd", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datakcvqvpke"))) - .withAnnotations(Arrays.asList("dataood")) - .withAdditionalProperties(mapOf("type", "LinkedService")); - model = BinaryData.fromObject(model).toObject(LinkedService.class); - Assertions.assertEquals("tdum", model.version()); - Assertions.assertEquals("p", model.connectVia().referenceName()); - Assertions.assertEquals("wacf", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vhqcrail").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 9152e3b276a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LinkedServicesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"awfujvgvrpear\",\"connectVia\":{\"referenceName\":\"hppupucybtr\",\"parameters\":{\"m\":\"datalc\",\"xex\":\"datarho\",\"zmqdnfonncnf\":\"dataaexweeifog\",\"arx\":\"datayggiomgv\"}},\"description\":\"tmjygnixkpadjqj\",\"parameters\":{\"n\":{\"type\":\"Array\",\"defaultValue\":\"dataibucmfvuizjrs\"},\"wuzwydsvgonkomua\":{\"type\":\"SecureString\",\"defaultValue\":\"dataezxldmz\"},\"qvul\":{\"type\":\"SecureString\",\"defaultValue\":\"datakwiytg\"},\"vxfyqsfy\":{\"type\":\"Array\",\"defaultValue\":\"datajdbcypv\"}},\"annotations\":[\"datahbfpzfvqlmzpc\",\"datax\",\"datacslmyrsojqpjba\",\"datafnxdi\"],\"\":{\"c\":\"dataulvmval\",\"fcexbtwic\":\"datahysphdhtcop\",\"e\":\"datahx\",\"kuemotgkyfh\":\"datagkvmmkwa\"}},\"name\":\"mwqkfsvzczisiqns\",\"type\":\"wjfuhq\",\"etag\":\"tdnufvzxosrstev\",\"id\":\"ssaubmdoji\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LinkedServiceResource response = manager.linkedServices() - .define("gafznzemis") - .withExistingFactory("oxjqysfejddi", "gwckvoxlih") - .withProperties(new LinkedService().withVersion("nxwosanch") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("uvtbptdeumlfszx") - .withParameters(mapOf("nkeodgpqdcrnubnt", "datab", "wcsgczvui", "datawohtuiwsnccmunh", "xzdayzfuv", - "datarngney"))) - .withDescription("elmimmcc") - .withParameters(mapOf("tevafczgise", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataecgeregfthgjmzn"), - "wg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataiynlcdqxownbj"), - "xsfe", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datawkazmw"), - "ityqqosw", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datacgcfjno"))) - .withAnnotations(Arrays.asList("datatgfewflxbyyv")) - .withAdditionalProperties(mapOf("type", "LinkedService"))) - .withIfMatch("jrh") - .create(); - - Assertions.assertEquals("ssaubmdoji", response.id()); - Assertions.assertEquals("awfujvgvrpear", response.properties().version()); - Assertions.assertEquals("hppupucybtr", response.properties().connectVia().referenceName()); - Assertions.assertEquals("tmjygnixkpadjqj", response.properties().description()); - Assertions.assertEquals(ParameterType.ARRAY, response.properties().parameters().get("n").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java deleted file mode 100644 index 77eda620ff33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LinkedServicesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.linkedServices() - .deleteWithResponse("vlttoplxbxf", "liyikcnlb", "hxo", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetWithResponseMockTests.java deleted file mode 100644 index 7bec5031cafd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LinkedServicesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"uovkgqtzghtj\",\"connectVia\":{\"referenceName\":\"zywoqmpgvxi\",\"parameters\":{\"qzqdco\":\"datasvykthxudowjwlte\",\"nzsjoxuogyak\":\"datasqufsyih\",\"mngstvn\":\"dataxjzalhun\",\"yinxxgxncoai\":\"datashaulltvlylbo\"}},\"description\":\"l\",\"parameters\":{\"qyeiohanxliojod\":{\"type\":\"Float\",\"defaultValue\":\"datazytaocxak\"}},\"annotations\":[\"databcu\",\"datax\"],\"\":{\"ukxkvgu\":\"dataww\",\"jfrta\":\"datafr\"}},\"name\":\"rxxvzqineqm\",\"type\":\"dvknxjtttk\",\"etag\":\"hqucasfqodcxvd\",\"id\":\"kjghlcfoaabl\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LinkedServiceResource response = manager.linkedServices() - .getWithResponse("z", "ufr", "ewqwdglmfsjpl", "dhzltmywy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("kjghlcfoaabl", response.id()); - Assertions.assertEquals("uovkgqtzghtj", response.properties().version()); - Assertions.assertEquals("zywoqmpgvxi", response.properties().connectVia().referenceName()); - Assertions.assertEquals("l", response.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, response.properties().parameters().get("qyeiohanxliojod").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactoryMockTests.java deleted file mode 100644 index 8f795295d762..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactoryMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LinkedServicesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"LinkedService\",\"version\":\"sgpymzrt\",\"connectVia\":{\"referenceName\":\"jn\",\"parameters\":{\"hoiufrqsm\":\"datasjbnnuqsz\"}},\"description\":\"ddbunxufataqsf\",\"parameters\":{\"mmbu\":{\"type\":\"Bool\",\"defaultValue\":\"datahacu\"},\"qwisuhare\":{\"type\":\"Float\",\"defaultValue\":\"datalivvnyzc\"},\"yuxcjqyfx\":{\"type\":\"SecureString\",\"defaultValue\":\"dataadvvgndfyelpnlpn\"},\"ygecly\":{\"type\":\"Int\",\"defaultValue\":\"datatukossiflfv\"}},\"annotations\":[\"datashkzibbjbzdnkgp\",\"databvicwfrybvhg\",\"dataltjghdfusphokcc\",\"dataynnm\"],\"\":{\"hpxxwbetmqugov\":\"dataqii\",\"qrgjejabqvg\":\"dataddxlrbs\",\"qyazpxlyabjrzgss\":\"datah\"}},\"name\":\"wurhkuxphbwmb\",\"type\":\"gm\",\"etag\":\"l\",\"id\":\"nkylqdsyg\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.linkedServices().listByFactory("lieyyfqhndj", "yovuyxccrajx", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nkylqdsyg", response.iterator().next().id()); - Assertions.assertEquals("sgpymzrt", response.iterator().next().properties().version()); - Assertions.assertEquals("jn", response.iterator().next().properties().connectVia().referenceName()); - Assertions.assertEquals("ddbunxufataqsf", response.iterator().next().properties().description()); - Assertions.assertEquals(ParameterType.BOOL, - response.iterator().next().properties().parameters().get("mmbu").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java deleted file mode 100644 index f20c95b3e5e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogLocationSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogLocationSettings model = BinaryData.fromString( - "{\"linkedServiceName\":{\"referenceName\":\"dwocufcsh\",\"parameters\":{\"x\":\"datalc\",\"k\":\"dataofwqdro\",\"vgjm\":\"dataegilbkzctqbvntl\"}},\"path\":\"dataqoy\"}") - .toObject(LogLocationSettings.class); - Assertions.assertEquals("dwocufcsh", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogLocationSettings model = new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dwocufcsh") - .withParameters(mapOf("x", "datalc", "k", "dataofwqdro", "vgjm", "dataegilbkzctqbvntl"))) - .withPath("dataqoy"); - model = BinaryData.fromObject(model).toObject(LogLocationSettings.class); - Assertions.assertEquals("dwocufcsh", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java deleted file mode 100644 index f70b72b92859..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogSettings model = BinaryData.fromString( - "{\"enableCopyActivityLog\":\"datajzpvckhbutmxtijs\",\"copyActivityLogSettings\":{\"logLevel\":\"datadpwljtwibwcdx\",\"enableReliableLogging\":\"datans\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"xqtmhf\",\"parameters\":{\"xmgghutlhszz\":\"datanvrdtdl\",\"pbiuwnxhqeljmf\":\"datajyogcpwne\",\"dhg\":\"datalqdikuvjcls\",\"kiw\":\"datakflwnlpbawtpw\"}},\"path\":\"dataplqnilozf\"}}") - .toObject(LogSettings.class); - Assertions.assertEquals("xqtmhf", model.logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSettings model = new LogSettings().withEnableCopyActivityLog("datajzpvckhbutmxtijs") - .withCopyActivityLogSettings( - new CopyActivityLogSettings().withLogLevel("datadpwljtwibwcdx").withEnableReliableLogging("datans")) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("xqtmhf") - .withParameters(mapOf("xmgghutlhszz", "datanvrdtdl", "pbiuwnxhqeljmf", "datajyogcpwne", - "dhg", "datalqdikuvjcls", "kiw", "datakflwnlpbawtpw"))) - .withPath("dataplqnilozf")); - model = BinaryData.fromObject(model).toObject(LogSettings.class); - Assertions.assertEquals("xqtmhf", model.logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java deleted file mode 100644 index acf680f4bcc4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogStorageSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogStorageSettings model = BinaryData.fromString( - "{\"linkedServiceName\":{\"referenceName\":\"tnprnshln\",\"parameters\":{\"bltjyis\":\"datavlzgsqwiub\",\"i\":\"datascuwyluktzcuxux\"}},\"path\":\"dataeguxrziryxr\",\"logLevel\":\"datarutmxqvvepofts\",\"enableReliableLogging\":\"datafwusfbrnjvzl\",\"\":{\"bieuqfgkf\":\"datajempvubslwzn\",\"kpswwutduchcfn\":\"dataftgbupu\"}}") - .toObject(LogStorageSettings.class); - Assertions.assertEquals("tnprnshln", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogStorageSettings model = new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tnprnshln") - .withParameters(mapOf("bltjyis", "datavlzgsqwiub", "i", "datascuwyluktzcuxux"))) - .withPath("dataeguxrziryxr") - .withLogLevel("datarutmxqvvepofts") - .withEnableReliableLogging("datafwusfbrnjvzl") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(LogStorageSettings.class); - Assertions.assertEquals("tnprnshln", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java deleted file mode 100644 index d23ac5633ca3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LookupActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LookupActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LookupActivity model = BinaryData.fromString( - "{\"type\":\"Lookup\",\"typeProperties\":{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datawftcnzo\",\"sourceRetryWait\":\"dataa\",\"maxConcurrentConnections\":\"datamqpt\",\"disableMetricsCollection\":\"datakmdkbtmupmla\",\"\":{\"tibuflppn\":\"dataocs\",\"kgvwkdgsrtm\":\"datavujkzb\"}},\"dataset\":{\"referenceName\":\"fajygnhmoeoxs\",\"parameters\":{\"xfaucihqsogt\":\"datajzodcxygpmjfwm\",\"cnly\":\"dataao\",\"xiwfkdblvbwuey\":\"dataizwtqvgpidrtb\"}},\"firstRowOnly\":\"datal\"},\"linkedServiceName\":{\"referenceName\":\"v\",\"parameters\":{\"xmpiqlnwfbj\":\"dataoagaqnekwe\",\"psufcdgcvfxsvxk\":\"datahxsmhvjogvqh\",\"wlenrcovq\":\"datayhkhwqwvwfombcg\"}},\"policy\":{\"timeout\":\"datafyc\",\"retry\":\"datargagxzmrxx\",\"retryIntervalInSeconds\":494364845,\"secureInput\":false,\"secureOutput\":true,\"\":{\"vni\":\"datawrhoma\",\"oneoqy\":\"dataup\"}},\"name\":\"tfx\",\"description\":\"skqvkdpnqcuprl\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"cue\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"tqvqyinifnmccf\":\"dataeel\",\"y\":\"datak\",\"vatnfdhyrhfvaap\":\"datazmnamesdcmg\",\"uj\":\"datagyyufhcfeggy\"}},{\"activity\":\"bdvazqsbrqspvltu\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"injc\":\"datallxeft\"}}],\"userProperties\":[{\"name\":\"oaskul\",\"value\":\"dataqweoob\"},{\"name\":\"ngymbzawdwtzx\",\"value\":\"databqzplzyjktc\"},{\"name\":\"pwvhiaxkm\",\"value\":\"dataitczuscqobujfx\"}],\"\":{\"mjotccbduwswfb\":\"datalwgkaaxpwkmbdhc\",\"ubmeih\":\"datay\"}}") - .toObject(LookupActivity.class); - Assertions.assertEquals("tfx", model.name()); - Assertions.assertEquals("skqvkdpnqcuprl", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("cue", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("oaskul", model.userProperties().get(0).name()); - Assertions.assertEquals("v", model.linkedServiceName().referenceName()); - Assertions.assertEquals(494364845, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("fajygnhmoeoxs", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivity model - = new LookupActivity().withName("tfx") - .withDescription("skqvkdpnqcuprl") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cue") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bdvazqsbrqspvltu") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("oaskul").withValue("dataqweoob"), - new UserProperty().withName("ngymbzawdwtzx").withValue("databqzplzyjktc"), - new UserProperty().withName("pwvhiaxkm").withValue("dataitczuscqobujfx"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("v") - .withParameters(mapOf("xmpiqlnwfbj", "dataoagaqnekwe", "psufcdgcvfxsvxk", "datahxsmhvjogvqh", - "wlenrcovq", "datayhkhwqwvwfombcg"))) - .withPolicy(new ActivityPolicy().withTimeout("datafyc") - .withRetry("datargagxzmrxx") - .withRetryIntervalInSeconds(494364845) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withSource(new CopySource().withSourceRetryCount("datawftcnzo") - .withSourceRetryWait("dataa") - .withMaxConcurrentConnections("datamqpt") - .withDisableMetricsCollection("datakmdkbtmupmla") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withDataset(new DatasetReference().withReferenceName("fajygnhmoeoxs") - .withParameters(mapOf("xfaucihqsogt", "datajzodcxygpmjfwm", "cnly", "dataao", "xiwfkdblvbwuey", - "dataizwtqvgpidrtb"))) - .withFirstRowOnly("datal"); - model = BinaryData.fromObject(model).toObject(LookupActivity.class); - Assertions.assertEquals("tfx", model.name()); - Assertions.assertEquals("skqvkdpnqcuprl", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("cue", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("oaskul", model.userProperties().get(0).name()); - Assertions.assertEquals("v", model.linkedServiceName().referenceName()); - Assertions.assertEquals(494364845, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("fajygnhmoeoxs", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java deleted file mode 100644 index 10513d5d707d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LookupActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LookupActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LookupActivityTypeProperties model = BinaryData.fromString( - "{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datamewdm\",\"sourceRetryWait\":\"dataxw\",\"maxConcurrentConnections\":\"dataslbi\",\"disableMetricsCollection\":\"datas\",\"\":{\"mfdaqunjegomegma\":\"datawaobu\",\"lknqnqqcg\":\"datadgea\",\"gtcswqx\":\"datayffdeogmwlpopj\"}},\"dataset\":{\"referenceName\":\"vaz\",\"parameters\":{\"gn\":\"datamxtcnmocskpgn\",\"dezm\":\"dataguqfnhmmvedj\",\"flm\":\"datapbezlucxbuda\",\"i\":\"datavbwrunrgmyv\"}},\"firstRowOnly\":\"dataxlhfmkllxoahfv\"}") - .toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("vaz", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivityTypeProperties model = new LookupActivityTypeProperties() - .withSource(new CopySource().withSourceRetryCount("datamewdm") - .withSourceRetryWait("dataxw") - .withMaxConcurrentConnections("dataslbi") - .withDisableMetricsCollection("datas") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withDataset(new DatasetReference().withReferenceName("vaz") - .withParameters(mapOf("gn", "datamxtcnmocskpgn", "dezm", "dataguqfnhmmvedj", "flm", "datapbezlucxbuda", - "i", "datavbwrunrgmyv"))) - .withFirstRowOnly("dataxlhfmkllxoahfv"); - model = BinaryData.fromObject(model).toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("vaz", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java deleted file mode 100644 index 9f371746a9ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MagentoObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MagentoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MagentoObjectDataset model = BinaryData.fromString( - "{\"type\":\"MagentoObject\",\"typeProperties\":{\"tableName\":\"datasvkllrz\"},\"description\":\"hhkbc\",\"structure\":\"dataazk\",\"schema\":\"datajthprgfwhfzhhr\",\"linkedServiceName\":{\"referenceName\":\"rmrfyyqjcni\",\"parameters\":{\"ztqe\":\"datarsddcuqddldaoyv\",\"zzw\":\"dataqjojesxjht\"}},\"parameters\":{\"guzlweoyxfoaf\":{\"type\":\"Array\",\"defaultValue\":\"dataoyineuaxpmezit\"}},\"annotations\":[\"datapzlx\"],\"folder\":{\"name\":\"dhgwhlbpjuaj\"},\"\":{\"svdtyydd\":\"dataavmitnwlyhbuj\"}}") - .toObject(MagentoObjectDataset.class); - Assertions.assertEquals("hhkbc", model.description()); - Assertions.assertEquals("rmrfyyqjcni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("guzlweoyxfoaf").type()); - Assertions.assertEquals("dhgwhlbpjuaj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MagentoObjectDataset model = new MagentoObjectDataset().withDescription("hhkbc") - .withStructure("dataazk") - .withSchema("datajthprgfwhfzhhr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rmrfyyqjcni") - .withParameters(mapOf("ztqe", "datarsddcuqddldaoyv", "zzw", "dataqjojesxjht"))) - .withParameters(mapOf("guzlweoyxfoaf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataoyineuaxpmezit"))) - .withAnnotations(Arrays.asList("datapzlx")) - .withFolder(new DatasetFolder().withName("dhgwhlbpjuaj")) - .withTableName("datasvkllrz"); - model = BinaryData.fromObject(model).toObject(MagentoObjectDataset.class); - Assertions.assertEquals("hhkbc", model.description()); - Assertions.assertEquals("rmrfyyqjcni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("guzlweoyxfoaf").type()); - Assertions.assertEquals("dhgwhlbpjuaj", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java deleted file mode 100644 index 28f6ed14aab4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MagentoSource; - -public final class MagentoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MagentoSource model = BinaryData.fromString( - "{\"type\":\"MagentoSource\",\"query\":\"datajjprd\",\"queryTimeout\":\"datablonlhtgexwjhicu\",\"additionalColumns\":\"dataavimxnhylwogtvl\",\"sourceRetryCount\":\"datagd\",\"sourceRetryWait\":\"datat\",\"maxConcurrentConnections\":\"datadxlfn\",\"disableMetricsCollection\":\"dataclkmggnzlfyxaiaf\",\"\":{\"uoayapzzcxkuusba\":\"dataxekfvycvhw\",\"yak\":\"datacassqeybdnz\",\"zkicxtumqinawct\":\"datarkohfqm\",\"kjnpe\":\"dataarboxaluoadmcv\"}}") - .toObject(MagentoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MagentoSource model = new MagentoSource().withSourceRetryCount("datagd") - .withSourceRetryWait("datat") - .withMaxConcurrentConnections("datadxlfn") - .withDisableMetricsCollection("dataclkmggnzlfyxaiaf") - .withQueryTimeout("datablonlhtgexwjhicu") - .withAdditionalColumns("dataavimxnhylwogtvl") - .withQuery("datajjprd"); - model = BinaryData.fromObject(model).toObject(MagentoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java deleted file mode 100644 index 466de24d9e17..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityCredentialTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentityCredential model = BinaryData.fromString( - "{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"teiulvrpvhi\"},\"description\":\"lmzcvpoyhvfcwe\",\"annotations\":[\"dataeroezgibfisfmcx\",\"datarhgcuejtxxlkokt\",\"dataclpvwtwboxgrv\",\"dataavoqbsquwkuszll\"],\"\":{\"nyg\":\"dataledhvll\",\"vqaq\":\"datamn\",\"ulwdhjb\":\"datazo\"}}") - .toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("lmzcvpoyhvfcwe", model.description()); - Assertions.assertEquals("teiulvrpvhi", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityCredential model = new ManagedIdentityCredential().withDescription("lmzcvpoyhvfcwe") - .withAnnotations( - Arrays.asList("dataeroezgibfisfmcx", "datarhgcuejtxxlkokt", "dataclpvwtwboxgrv", "dataavoqbsquwkuszll")) - .withResourceId("teiulvrpvhi"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("lmzcvpoyhvfcwe", model.description()); - Assertions.assertEquals("teiulvrpvhi", model.resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityTypePropertiesTests.java deleted file mode 100644 index 6dc3a53aa137..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentityTypeProperties model - = BinaryData.fromString("{\"resourceId\":\"flbch\"}").toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("flbch", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityTypeProperties model = new ManagedIdentityTypeProperties().withResourceId("flbch"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("flbch", model.resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java deleted file mode 100644 index ee157a75cc6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpointListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"connectionState\":{\"actionsRequired\":\"dulontacn\",\"description\":\"w\",\"status\":\"htuevrhrljy\"},\"fqdns\":[\"wxhn\",\"duugwbsre\",\"rfqkfuar\",\"nlvhhtklnvnafvv\"],\"groupId\":\"f\",\"isReserved\":false,\"privateLinkResourceId\":\"jboslcqxypok\",\"provisioningState\":\"minqcym\",\"\":{\"dxxewuninv\":\"datagn\",\"h\":\"datadb\",\"tddmf\":\"dataqdtvqecrqctmxx\"}},\"name\":\"uytxzvtznapxban\",\"type\":\"vvoxczytprwnw\",\"etag\":\"oevytlyokr\",\"id\":\"o\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"vnsasbcrymodi\",\"description\":\"xkl\",\"status\":\"d\"},\"fqdns\":[\"zpmkmlmvev\",\"xzopjhbzxl\",\"ohrdddt\"],\"groupId\":\"xqbawpc\",\"isReserved\":false,\"privateLinkResourceId\":\"qcy\",\"provisioningState\":\"apqofyuicdhz\",\"\":{\"d\":\"databwwg\"}},\"name\":\"bid\",\"type\":\"m\",\"etag\":\"f\",\"id\":\"fmuvapckccr\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"eyoxoyyukphai\",\"description\":\"oir\",\"status\":\"boshbragapyyrmfs\"},\"fqdns\":[\"avbopfp\",\"dbwnu\"],\"groupId\":\"ahxku\",\"isReserved\":true,\"privateLinkResourceId\":\"caac\",\"provisioningState\":\"mmcpug\",\"\":{\"whoqhnlbqnbldxe\":\"dataqepvufhbzeh\",\"orim\":\"dataclgsc\",\"viyfcaabeolhbhlv\":\"datarsrrmoucsofldp\",\"bsxtkcudfbsfarfs\":\"datamxuq\"}},\"name\":\"wlkjxn\",\"type\":\"vwgf\",\"etag\":\"mhqykizmdksa\",\"id\":\"fcluqvo\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"cjimryvwgcwwpbmz\",\"description\":\"esyds\",\"status\":\"efoh\"},\"fqdns\":[\"vopwndyqleallk\",\"mtkhlowkxxpvbr\",\"fjmzsyzfho\"],\"groupId\":\"h\",\"isReserved\":true,\"privateLinkResourceId\":\"ychunsjlpjrtwszh\",\"provisioningState\":\"uic\",\"\":{\"dpyflubhv\":\"datatrrmhwrb\",\"lw\":\"dataglrocuy\",\"ooclutnp\":\"datahmem\",\"ujxsglhsr\":\"datamemczjkmmyk\"}},\"name\":\"yejylmbkzudnigrf\",\"type\":\"otjewlpxuzzjgnre\",\"etag\":\"yhqotoihiqakydi\",\"id\":\"brkwpzdqt\"}],\"nextLink\":\"cspodaqax\"}") - .toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("o", model.value().get(0).id()); - Assertions.assertEquals("wxhn", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().groupId()); - Assertions.assertEquals("jboslcqxypok", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("cspodaqax", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointListResponse model = new ManagedPrivateEndpointListResponse() - .withValue(Arrays.asList( - new ManagedPrivateEndpointResourceInner().withId("o") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("wxhn", "duugwbsre", "rfqkfuar", "nlvhhtklnvnafvv")) - .withGroupId("f") - .withPrivateLinkResourceId("jboslcqxypok") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "minqcym"))), - new ManagedPrivateEndpointResourceInner().withId("fmuvapckccr") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("zpmkmlmvev", "xzopjhbzxl", "ohrdddt")) - .withGroupId("xqbawpc") - .withPrivateLinkResourceId("qcy") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "apqofyuicdhz"))), - new ManagedPrivateEndpointResourceInner().withId("fcluqvo") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("avbopfp", "dbwnu")) - .withGroupId("ahxku") - .withPrivateLinkResourceId("caac") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "mmcpug"))), - new ManagedPrivateEndpointResourceInner().withId("brkwpzdqt") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("vopwndyqleallk", "mtkhlowkxxpvbr", "fjmzsyzfho")) - .withGroupId("h") - .withPrivateLinkResourceId("ychunsjlpjrtwszh") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "uic"))))) - .withNextLink("cspodaqax"); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("o", model.value().get(0).id()); - Assertions.assertEquals("wxhn", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().groupId()); - Assertions.assertEquals("jboslcqxypok", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("cspodaqax", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java deleted file mode 100644 index 773dbe7482fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpointResourceInner model = BinaryData.fromString( - "{\"properties\":{\"connectionState\":{\"actionsRequired\":\"ietgbebjfu\",\"description\":\"moichdlpnfpubntn\",\"status\":\"tzviqsowsaaelcat\"},\"fqdns\":[\"uhplrvkmjcwmjv\"],\"groupId\":\"fggc\",\"isReserved\":false,\"privateLinkResourceId\":\"lizrzbjpsfxsfuz\",\"provisioningState\":\"vtmva\",\"\":{\"oveofizrvjfnmj\":\"dataidqlvhu\"}},\"name\":\"lwyzgib\",\"type\":\"ujr\",\"etag\":\"fojuidjpuuyj\",\"id\":\"ejikzoeovvtzejet\"}") - .toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("ejikzoeovvtzejet", model.id()); - Assertions.assertEquals("uhplrvkmjcwmjv", model.properties().fqdns().get(0)); - Assertions.assertEquals("fggc", model.properties().groupId()); - Assertions.assertEquals("lizrzbjpsfxsfuz", model.properties().privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointResourceInner model = new ManagedPrivateEndpointResourceInner().withId("ejikzoeovvtzejet") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("uhplrvkmjcwmjv")) - .withGroupId("fggc") - .withPrivateLinkResourceId("lizrzbjpsfxsfuz") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "vtmva"))); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("ejikzoeovvtzejet", model.id()); - Assertions.assertEquals("uhplrvkmjcwmjv", model.properties().fqdns().get(0)); - Assertions.assertEquals("fggc", model.properties().groupId()); - Assertions.assertEquals("lizrzbjpsfxsfuz", model.properties().privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java deleted file mode 100644 index 01bfe3b605d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpoint model = BinaryData.fromString( - "{\"connectionState\":{\"actionsRequired\":\"nt\",\"description\":\"yjuzkdb\",\"status\":\"o\"},\"fqdns\":[\"zvhqjwtrhtgvg\"],\"groupId\":\"c\",\"isReserved\":true,\"privateLinkResourceId\":\"lawjmjsmwrok\",\"provisioningState\":\"xfzzzwyjafitlhgu\",\"\":{\"mltx\":\"datachl\",\"fpafolpymwamxq\":\"datawhmozusgzvlnsnnj\",\"gdphtvdula\":\"datarag\"}}") - .toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("zvhqjwtrhtgvg", model.fqdns().get(0)); - Assertions.assertEquals("c", model.groupId()); - Assertions.assertEquals("lawjmjsmwrok", model.privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpoint model = new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("zvhqjwtrhtgvg")) - .withGroupId("c") - .withPrivateLinkResourceId("lawjmjsmwrok") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "xfzzzwyjafitlhgu")); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("zvhqjwtrhtgvg", model.fqdns().get(0)); - Assertions.assertEquals("c", model.groupId()); - Assertions.assertEquals("lawjmjsmwrok", model.privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 05b3250dff6a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"connectionState\":{\"actionsRequired\":\"fiwaocf\",\"description\":\"fjxdccwuzqwv\",\"status\":\"ewl\"},\"fqdns\":[\"eupsubawza\",\"zdzhhgbxcel\",\"awwjobtkyjvzzb\",\"ylimnm\"],\"groupId\":\"sjuacdqvr\",\"isReserved\":true,\"privateLinkResourceId\":\"qotzpepmlckz\",\"provisioningState\":\"ietfx\",\"\":{\"ehvmrao\":\"datazlivkaxwfkanuqf\",\"jti\":\"dataniibcily\",\"igy\":\"datahzjhqfuqomwh\",\"jjhn\":\"datagqewcv\"}},\"name\":\"rsgrt\",\"type\":\"depaun\",\"etag\":\"knucsrqfmcrye\",\"id\":\"lx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedPrivateEndpointResource response = manager.managedPrivateEndpoints() - .define("ukc") - .withExistingManagedVirtualNetwork("krejuuii", "rbtfarb", "arxyh") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("czlyludrziaxige", "smuhkhnzsr")) - .withGroupId("wvzepgljtu") - .withPrivateLinkResourceId("prnfrl") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "cnbrwhsqtzgmf"))) - .withIfMatch("itoibgv") - .create(); - - Assertions.assertEquals("lx", response.id()); - Assertions.assertEquals("eupsubawza", response.properties().fqdns().get(0)); - Assertions.assertEquals("sjuacdqvr", response.properties().groupId()); - Assertions.assertEquals("qotzpepmlckz", response.properties().privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java deleted file mode 100644 index 46a3edec250f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.managedPrivateEndpoints() - .deleteWithResponse("ba", "ycnjxyproqebsuij", "mwbshqpjueo", "htltooikzouv", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java deleted file mode 100644 index 6b30aa8ff090..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"connectionState\":{\"actionsRequired\":\"flmalmx\",\"description\":\"rdpfanjkenrlcjms\",\"status\":\"gmebxwdahh\"},\"fqdns\":[\"uogakrpmjodbdcy\",\"jnoibclfqdtfj\"],\"groupId\":\"v\",\"isReserved\":true,\"privateLinkResourceId\":\"yvstv\",\"provisioningState\":\"slqyhabgocq\",\"\":{\"lwgr\":\"dataivofnhckl\"}},\"name\":\"lqqkpxvemj\",\"type\":\"vanefwsodnl\",\"etag\":\"npbgqemjdtc\",\"id\":\"kwkxlnl\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedPrivateEndpointResource response = manager.managedPrivateEndpoints() - .getWithResponse("xhfusjxnadiese", "zfh", "ihrxg", "ub", "xajrnqoujvzpv", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("kwkxlnl", response.id()); - Assertions.assertEquals("uogakrpmjodbdcy", response.properties().fqdns().get(0)); - Assertions.assertEquals("v", response.properties().groupId()); - Assertions.assertEquals("yvstv", response.properties().privateLinkResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactoryMockTests.java deleted file mode 100644 index 70f056f3cf79..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactoryMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"connectionState\":{\"actionsRequired\":\"md\",\"description\":\"rgmjpckefw\",\"status\":\"u\"},\"fqdns\":[\"lby\"],\"groupId\":\"pr\",\"isReserved\":false,\"privateLinkResourceId\":\"iivbv\",\"provisioningState\":\"omnosl\",\"\":{\"zjudgwdsflit\":\"datahrnv\"}},\"name\":\"xvuzofueb\",\"type\":\"rsf\",\"etag\":\"ajuzh\",\"id\":\"pxvkpbaftf\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.managedPrivateEndpoints() - .listByFactory("wv", "p", "yexamsgfvuffdvuk", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pxvkpbaftf", response.iterator().next().id()); - Assertions.assertEquals("lby", response.iterator().next().properties().fqdns().get(0)); - Assertions.assertEquals("pr", response.iterator().next().properties().groupId()); - Assertions.assertEquals("iivbv", response.iterator().next().properties().privateLinkResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java deleted file mode 100644 index 8c78570170ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"vNetId\":\"yjtcvuwk\",\"alias\":\"iziesfuughtuq\",\"\":{\"cbuewmrswnjlxuz\":\"datajxeygtuhxu\",\"aqehg\":\"datahwpusxj\"}},\"name\":\"ohzjqatucoigeb\",\"type\":\"cnwfepbnwgfmxjg\",\"etag\":\"bjb\",\"id\":\"lfgtdysnaquflqbc\"},{\"properties\":{\"vNetId\":\"hamzjrwdkqze\",\"alias\":\"jleziunjx\",\"\":{\"qa\":\"dataantkwcegyamlbns\",\"m\":\"datajjvpilguooqja\",\"hrtdtpdelq\":\"dataitgueiookjbs\"}},\"name\":\"slmot\",\"type\":\"bnfxofvc\",\"etag\":\"gdirazf\",\"id\":\"ejwabmdujtmvco\"},{\"properties\":{\"vNetId\":\"xcmjurbu\",\"alias\":\"lkyqltqsrog\",\"\":{\"dfvclglxnfu\":\"datakffdjktsys\",\"ians\":\"datajtkbusqogsfika\"}},\"name\":\"rujtjiqxfzyjq\",\"type\":\"vwkpqh\",\"etag\":\"enuygbq\",\"id\":\"qekewvnqvcd\"}],\"nextLink\":\"uaucmf\"}") - .toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("lfgtdysnaquflqbc", model.value().get(0).id()); - Assertions.assertEquals("uaucmf", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkListResponse model = new ManagedVirtualNetworkListResponse() - .withValue(Arrays.asList( - new ManagedVirtualNetworkResourceInner().withId("lfgtdysnaquflqbc") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "yjtcvuwk", "alias", "iziesfuughtuq"))), - new ManagedVirtualNetworkResourceInner().withId("ejwabmdujtmvco") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "hamzjrwdkqze", "alias", "jleziunjx"))), - new ManagedVirtualNetworkResourceInner().withId("qekewvnqvcd") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "xcmjurbu", "alias", "lkyqltqsrog"))))) - .withNextLink("uaucmf"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("lfgtdysnaquflqbc", model.value().get(0).id()); - Assertions.assertEquals("uaucmf", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java deleted file mode 100644 index 9c1bfab001aa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReference; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkReference model - = BinaryData.fromString("{\"type\":\"ManagedVirtualNetworkReference\",\"referenceName\":\"pzeqacdldtz\"}") - .toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("pzeqacdldtz", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkReference model = new ManagedVirtualNetworkReference() - .withType(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE) - .withReferenceName("pzeqacdldtz"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("pzeqacdldtz", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java deleted file mode 100644 index 7b80da2b9c9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"vNetId\":\"wnlaxpu\",\"alias\":\"qikczvvita\",\"\":{\"tvsoxhlwntsj\":\"datamfcsserx\",\"uuuybnchrsziz\":\"dataqrsxyp\",\"etndnbfqyggagf\":\"datayuel\"}},\"name\":\"lgmtrwahzjmucf\",\"type\":\"yrplrohkpigqfus\",\"etag\":\"kzmkwklsnoxaxmqe\",\"id\":\"lhhjnh\"}") - .toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("lhhjnh", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkResourceInner model = new ManagedVirtualNetworkResourceInner().withId("lhhjnh") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "wnlaxpu", "alias", "qikczvvita"))); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("lhhjnh", model.id()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java deleted file mode 100644 index 8d7e179715ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; - -public final class ManagedVirtualNetworkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetwork model = BinaryData.fromString( - "{\"vNetId\":\"ydyynfsvkh\",\"alias\":\"vqtanarfdlpuk\",\"\":{\"zjcpeogk\":\"datarne\",\"ro\":\"datanmg\",\"zoyw\":\"dataxddbhfhpfpaz\"}}") - .toObject(ManagedVirtualNetwork.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetwork model = new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "ydyynfsvkh", "alias", "vqtanarfdlpuk")); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetwork.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 8c838ae408ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"vNetId\":\"q\",\"alias\":\"psxycvoexbx\",\"\":{\"acgmnelozzfwyegd\":\"datavxwlfmbb\",\"esdfujfpn\":\"datatfktmdlfkjjucptr\",\"msybvjfnuyoy\":\"datafzabl\"}},\"name\":\"a\",\"type\":\"nnlasf\",\"etag\":\"jyvu\",\"id\":\"exlpmbtmc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedVirtualNetworkResource response = manager.managedVirtualNetworks() - .define("r") - .withExistingFactory("fb", "sdoaypi") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "hlbzxyejoxdbrjul", "alias", "qgunptbpicc"))) - .withIfMatch("ekb") - .create(); - - Assertions.assertEquals("exlpmbtmc", response.id()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetWithResponseMockTests.java deleted file mode 100644 index 5292ee566667..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedVirtualNetworksGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"vNetId\":\"xausivh\",\"alias\":\"unnjwmdtbx\",\"\":{\"elxd\":\"datamcbaiamtdfpkfwzq\"}},\"name\":\"dfsteouzoglvt\",\"type\":\"jlejvlf\",\"etag\":\"rqkgibpehqb\",\"id\":\"zcmqqehxigsi\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedVirtualNetworkResource response = manager.managedVirtualNetworks() - .getWithResponse("iyavfeyyb", "duyastybomiyj", "jsseemhdf", "lai", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("zcmqqehxigsi", response.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactoryMockTests.java deleted file mode 100644 index ba85401a004a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactoryMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedVirtualNetworksListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"vNetId\":\"svowvqpnci\",\"alias\":\"xtib\",\"\":{\"cswhm\":\"datahzpfdlcst\",\"hmatfgoerjmhtxip\":\"datasdw\",\"vrrzmkteuzeuxx\":\"datavwzbkgt\"}},\"name\":\"l\",\"type\":\"cwl\",\"etag\":\"xxpwexcktgpcccg\",\"id\":\"knjjskzuh\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.managedVirtualNetworks() - .listByFactory("ptvymbmpdcddb", "ozhprlxxbmyzfayj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("knjjskzuh", response.iterator().next().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java deleted file mode 100644 index c19ccc7de839..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeMapping model = BinaryData.fromString( - "{\"name\":\"ixlqfhefkwabsolr\",\"type\":\"Aggregate\",\"functionName\":\"lmgnlqxsjx\",\"expression\":\"lexhv\",\"attributeReference\":{\"name\":\"ozoolzq\",\"entity\":\"arkuzl\",\"entityConnectionReference\":{\"connectionName\":\"ndtsnxawqytll\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"ckze\",\"entity\":\"xak\",\"entityConnectionReference\":{\"connectionName\":\"wymxgaabjk\",\"type\":\"linkedservicetype\"}}]}") - .toObject(MapperAttributeMapping.class); - Assertions.assertEquals("ixlqfhefkwabsolr", model.name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.type()); - Assertions.assertEquals("lmgnlqxsjx", model.functionName()); - Assertions.assertEquals("lexhv", model.expression()); - Assertions.assertEquals("ozoolzq", model.attributeReference().name()); - Assertions.assertEquals("arkuzl", model.attributeReference().entity()); - Assertions.assertEquals("ndtsnxawqytll", - model.attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("ckze", model.attributeReferences().get(0).name()); - Assertions.assertEquals("xak", model.attributeReferences().get(0).entity()); - Assertions.assertEquals("wymxgaabjk", - model.attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReferences().get(0).entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeMapping model = new MapperAttributeMapping().withName("ixlqfhefkwabsolr") - .withType(MappingType.AGGREGATE) - .withFunctionName("lmgnlqxsjx") - .withExpression("lexhv") - .withAttributeReference(new MapperAttributeReference().withName("ozoolzq") - .withEntity("arkuzl") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("ndtsnxawqytll") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference().withName("ckze") - .withEntity("xak") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("wymxgaabjk") - .withType(ConnectionType.LINKEDSERVICETYPE)))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMapping.class); - Assertions.assertEquals("ixlqfhefkwabsolr", model.name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.type()); - Assertions.assertEquals("lmgnlqxsjx", model.functionName()); - Assertions.assertEquals("lexhv", model.expression()); - Assertions.assertEquals("ozoolzq", model.attributeReference().name()); - Assertions.assertEquals("arkuzl", model.attributeReference().entity()); - Assertions.assertEquals("ndtsnxawqytll", - model.attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("ckze", model.attributeReferences().get(0).name()); - Assertions.assertEquals("xak", model.attributeReferences().get(0).entity()); - Assertions.assertEquals("wymxgaabjk", - model.attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReferences().get(0).entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java deleted file mode 100644 index 7327a4b9823c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeMappingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeMappings model = BinaryData.fromString( - "{\"attributeMappings\":[{\"name\":\"oepnxwdv\",\"type\":\"Direct\",\"functionName\":\"gv\",\"expression\":\"mxaursqftibtyi\",\"attributeReference\":{\"name\":\"vpi\",\"entity\":\"qjpnqnoowsbed\",\"entityConnectionReference\":{\"connectionName\":\"exkxbhx\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"gmnhjevd\",\"entity\":\"nfa\",\"entityConnectionReference\":{\"connectionName\":\"kskmqozzkivyhjrl\",\"type\":\"linkedservicetype\"}}]}]}") - .toObject(MapperAttributeMappings.class); - Assertions.assertEquals("oepnxwdv", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappings().get(0).type()); - Assertions.assertEquals("gv", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("mxaursqftibtyi", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("vpi", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("qjpnqnoowsbed", model.attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("exkxbhx", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("gmnhjevd", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("nfa", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions.assertEquals("kskmqozzkivyhjrl", - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeMappings model = new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList(new MapperAttributeMapping().withName("oepnxwdv") - .withType(MappingType.DIRECT) - .withFunctionName("gv") - .withExpression("mxaursqftibtyi") - .withAttributeReference(new MapperAttributeReference().withName("vpi") - .withEntity("qjpnqnoowsbed") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("exkxbhx") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference().withName("gmnhjevd") - .withEntity("nfa") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("kskmqozzkivyhjrl") - .withType(ConnectionType.LINKEDSERVICETYPE)))))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMappings.class); - Assertions.assertEquals("oepnxwdv", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappings().get(0).type()); - Assertions.assertEquals("gv", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("mxaursqftibtyi", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("vpi", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("qjpnqnoowsbed", model.attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("exkxbhx", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("gmnhjevd", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("nfa", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions.assertEquals("kskmqozzkivyhjrl", - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java deleted file mode 100644 index 78efc80741b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeReference model = BinaryData.fromString( - "{\"name\":\"hfaogzv\",\"entity\":\"wrsiwdyjqurykc\",\"entityConnectionReference\":{\"connectionName\":\"ueekcsue\",\"type\":\"linkedservicetype\"}}") - .toObject(MapperAttributeReference.class); - Assertions.assertEquals("hfaogzv", model.name()); - Assertions.assertEquals("wrsiwdyjqurykc", model.entity()); - Assertions.assertEquals("ueekcsue", model.entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeReference model = new MapperAttributeReference().withName("hfaogzv") - .withEntity("wrsiwdyjqurykc") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("ueekcsue") - .withType(ConnectionType.LINKEDSERVICETYPE)); - model = BinaryData.fromObject(model).toObject(MapperAttributeReference.class); - Assertions.assertEquals("hfaogzv", model.name()); - Assertions.assertEquals("wrsiwdyjqurykc", model.entity()); - Assertions.assertEquals("ueekcsue", model.entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java deleted file mode 100644 index 69a611286348..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import org.junit.jupiter.api.Assertions; - -public final class MapperConnectionReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperConnectionReference model - = BinaryData.fromString("{\"connectionName\":\"dcadwvpsozjiihjr\",\"type\":\"linkedservicetype\"}") - .toObject(MapperConnectionReference.class); - Assertions.assertEquals("dcadwvpsozjiihjr", model.connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnectionReference model = new MapperConnectionReference().withConnectionName("dcadwvpsozjiihjr") - .withType(ConnectionType.LINKEDSERVICETYPE); - model = BinaryData.fromObject(model).toObject(MapperConnectionReference.class); - Assertions.assertEquals("dcadwvpsozjiihjr", model.connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java deleted file mode 100644 index 3d195604fb27..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperConnection model = BinaryData.fromString( - "{\"linkedService\":{\"referenceName\":\"ncn\",\"parameters\":{\"qodkadppyibngql\":\"dataehllizhceum\",\"wrxwhydtl\":\"datad\",\"uyem\":\"datavvadswzs\"}},\"linkedServiceType\":\"wuowhlxlnwy\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"gmokzkltrfowt\",\"value\":\"datarfmvlihcvjdrqcrj\"},{\"name\":\"h\",\"value\":\"dataukvhd\"},{\"name\":\"wyojbfqzdkfnjyi\",\"value\":\"dataafr\"},{\"name\":\"qxmbjroumzzn\",\"value\":\"datal\"}]}") - .toObject(MapperConnection.class); - Assertions.assertEquals("ncn", model.linkedService().referenceName()); - Assertions.assertEquals("wuowhlxlnwy", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("gmokzkltrfowt", model.commonDslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnection model = new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ncn") - .withParameters( - mapOf("qodkadppyibngql", "dataehllizhceum", "wrxwhydtl", "datad", "uyem", "datavvadswzs"))) - .withLinkedServiceType("wuowhlxlnwy") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("gmokzkltrfowt").withValue("datarfmvlihcvjdrqcrj"), - new MapperDslConnectorProperties().withName("h").withValue("dataukvhd"), - new MapperDslConnectorProperties().withName("wyojbfqzdkfnjyi").withValue("dataafr"), - new MapperDslConnectorProperties().withName("qxmbjroumzzn").withValue("datal"))); - model = BinaryData.fromObject(model).toObject(MapperConnection.class); - Assertions.assertEquals("ncn", model.linkedService().referenceName()); - Assertions.assertEquals("wuowhlxlnwy", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("gmokzkltrfowt", model.commonDslConnectorProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java deleted file mode 100644 index 94972e3b36c2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import org.junit.jupiter.api.Assertions; - -public final class MapperDslConnectorPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperDslConnectorProperties model - = BinaryData.fromString("{\"name\":\"ybxawoijpodtblx\",\"value\":\"datakwjdjodqhy\"}") - .toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("ybxawoijpodtblx", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperDslConnectorProperties model - = new MapperDslConnectorProperties().withName("ybxawoijpodtblx").withValue("datakwjdjodqhy"); - model = BinaryData.fromObject(model).toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("ybxawoijpodtblx", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java deleted file mode 100644 index 2927245ca102..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import org.junit.jupiter.api.Assertions; - -public final class MapperPolicyRecurrenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperPolicyRecurrence model = BinaryData.fromString("{\"frequency\":\"Minute\",\"interval\":30461773}") - .toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.MINUTE, model.frequency()); - Assertions.assertEquals(30461773, model.interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicyRecurrence model - = new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(30461773); - model = BinaryData.fromObject(model).toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.MINUTE, model.frequency()); - Assertions.assertEquals(30461773, model.interval()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java deleted file mode 100644 index 657b347d0033..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import org.junit.jupiter.api.Assertions; - -public final class MapperPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperPolicy model - = BinaryData.fromString("{\"mode\":\"dac\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":778963300}}") - .toObject(MapperPolicy.class); - Assertions.assertEquals("dac", model.mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.recurrence().frequency()); - Assertions.assertEquals(778963300, model.recurrence().interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicy model = new MapperPolicy().withMode("dac") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.HOUR).withInterval(778963300)); - model = BinaryData.fromObject(model).toObject(MapperPolicy.class); - Assertions.assertEquals("dac", model.mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.recurrence().frequency()); - Assertions.assertEquals(778963300, model.recurrence().interval()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java deleted file mode 100644 index 4db7d4bac401..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperSourceConnectionsInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperSourceConnectionsInfo model = BinaryData.fromString( - "{\"sourceEntities\":[{\"name\":\"gvmxnok\",\"properties\":{\"schema\":[{\"name\":\"bse\",\"dataType\":\"vcuartrhun\"},{\"name\":\"iryky\",\"dataType\":\"dzfqivjreuy\"}],\"dslConnectorProperties\":[{\"name\":\"nwagl\",\"value\":\"dataxoe\"},{\"name\":\"nqlnfwmyymvqd\",\"value\":\"databhfckdvezcrcssb\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"dubbnqfblhkale\",\"parameters\":{\"iqjtiogqgdmin\":\"datavawu\",\"gspnbonhpczykm\":\"datactteajohi\",\"wxqcsehchkhufmpq\":\"datatp\"}},\"linkedServiceType\":\"q\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"lod\",\"value\":\"dataeuzanhs\"}]}}") - .toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("gvmxnok", model.sourceEntities().get(0).name()); - Assertions.assertEquals("bse", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("vcuartrhun", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("nwagl", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("dubbnqfblhkale", model.connection().linkedService().referenceName()); - Assertions.assertEquals("q", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("lod", model.connection().commonDslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperSourceConnectionsInfo model = new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("gvmxnok") - .withSchema(Arrays.asList(new MapperTableSchema().withName("bse").withDataType("vcuartrhun"), - new MapperTableSchema().withName("iryky").withDataType("dzfqivjreuy"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("nwagl").withValue("dataxoe"), - new MapperDslConnectorProperties().withName("nqlnfwmyymvqd") - .withValue("databhfckdvezcrcssb"))))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("dubbnqfblhkale") - .withParameters(mapOf("iqjtiogqgdmin", "datavawu", "gspnbonhpczykm", "datactteajohi", - "wxqcsehchkhufmpq", "datatp"))) - .withLinkedServiceType("q") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("lod").withValue("dataeuzanhs")))); - model = BinaryData.fromObject(model).toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("gvmxnok", model.sourceEntities().get(0).name()); - Assertions.assertEquals("bse", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("vcuartrhun", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("nwagl", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("dubbnqfblhkale", model.connection().linkedService().referenceName()); - Assertions.assertEquals("q", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("lod", model.connection().commonDslConnectorProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java deleted file mode 100644 index 6914f6d55e93..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MapperTableProperties; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperTablePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTableProperties model = BinaryData.fromString( - "{\"schema\":[{\"name\":\"ii\",\"dataType\":\"spxlzde\"},{\"name\":\"grijwaiufanrayb\",\"dataType\":\"eqfrojs\"}],\"dslConnectorProperties\":[{\"name\":\"h\",\"value\":\"datak\"},{\"name\":\"ywezskiecafyg\",\"value\":\"dataxieqv\"}]}") - .toObject(MapperTableProperties.class); - Assertions.assertEquals("ii", model.schema().get(0).name()); - Assertions.assertEquals("spxlzde", model.schema().get(0).dataType()); - Assertions.assertEquals("h", model.dslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTableProperties model = new MapperTableProperties() - .withSchema(Arrays.asList(new MapperTableSchema().withName("ii").withDataType("spxlzde"), - new MapperTableSchema().withName("grijwaiufanrayb").withDataType("eqfrojs"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("h").withValue("datak"), - new MapperDslConnectorProperties().withName("ywezskiecafyg").withValue("dataxieqv"))); - model = BinaryData.fromObject(model).toObject(MapperTableProperties.class); - Assertions.assertEquals("ii", model.schema().get(0).name()); - Assertions.assertEquals("spxlzde", model.schema().get(0).dataType()); - Assertions.assertEquals("h", model.dslConnectorProperties().get(0).name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java deleted file mode 100644 index 30b5c34e1199..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import org.junit.jupiter.api.Assertions; - -public final class MapperTableSchemaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTableSchema model - = BinaryData.fromString("{\"name\":\"makli\",\"dataType\":\"cahyhx\"}").toObject(MapperTableSchema.class); - Assertions.assertEquals("makli", model.name()); - Assertions.assertEquals("cahyhx", model.dataType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTableSchema model = new MapperTableSchema().withName("makli").withDataType("cahyhx"); - model = BinaryData.fromObject(model).toObject(MapperTableSchema.class); - Assertions.assertEquals("makli", model.name()); - Assertions.assertEquals("cahyhx", model.dataType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java deleted file mode 100644 index 2a9b57603f3f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperTableTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTable model = BinaryData.fromString( - "{\"name\":\"hse\",\"properties\":{\"schema\":[{\"name\":\"zf\",\"dataType\":\"qjcli\"},{\"name\":\"tujwjju\",\"dataType\":\"beqrkuorh\"}],\"dslConnectorProperties\":[{\"name\":\"uqnmdvhazcvj\",\"value\":\"dataiqswbqer\"},{\"name\":\"xiytxtdgukvl\",\"value\":\"dataktg\"},{\"name\":\"tyouambewreswmow\",\"value\":\"datammuteyxeyguq\"}]}}") - .toObject(MapperTable.class); - Assertions.assertEquals("hse", model.name()); - Assertions.assertEquals("zf", model.schema().get(0).name()); - Assertions.assertEquals("qjcli", model.schema().get(0).dataType()); - Assertions.assertEquals("uqnmdvhazcvj", model.dslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTable model = new MapperTable().withName("hse") - .withSchema(Arrays.asList(new MapperTableSchema().withName("zf").withDataType("qjcli"), - new MapperTableSchema().withName("tujwjju").withDataType("beqrkuorh"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("uqnmdvhazcvj").withValue("dataiqswbqer"), - new MapperDslConnectorProperties().withName("xiytxtdgukvl").withValue("dataktg"), - new MapperDslConnectorProperties().withName("tyouambewreswmow").withValue("datammuteyxeyguq"))); - model = BinaryData.fromObject(model).toObject(MapperTable.class); - Assertions.assertEquals("hse", model.name()); - Assertions.assertEquals("zf", model.schema().get(0).name()); - Assertions.assertEquals("qjcli", model.schema().get(0).dataType()); - Assertions.assertEquals("uqnmdvhazcvj", model.dslConnectorProperties().get(0).name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java deleted file mode 100644 index 6e9e8c45cd3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperTargetConnectionsInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTargetConnectionsInfo model = BinaryData.fromString( - "{\"targetEntities\":[{\"name\":\"uzgfxonjtpusl\",\"properties\":{\"schema\":[{\"name\":\"tiotzb\",\"dataType\":\"bollgryfqiuasig\"}],\"dslConnectorProperties\":[{\"name\":\"ocnequygdjboqgrm\",\"value\":\"datajkqev\"},{\"name\":\"rmmwiuawvcmj\",\"value\":\"dataxiid\"},{\"name\":\"czskoswoqiqazu\",\"value\":\"datamxzkr\"},{\"name\":\"oiisbamnppcce\",\"value\":\"dataztdsbeza\"}]}},{\"name\":\"f\",\"properties\":{\"schema\":[{\"name\":\"izhyhnep\",\"dataType\":\"etiarxqiubxdukec\"},{\"name\":\"dazvdhctm\",\"dataType\":\"os\"},{\"name\":\"dblnsntrp\",\"dataType\":\"qkio\"},{\"name\":\"btfmhklbnldpvcbh\",\"dataType\":\"zyqu\"}],\"dslConnectorProperties\":[{\"name\":\"xut\",\"value\":\"databrruyuuatv\"},{\"name\":\"bjwcolbmx\",\"value\":\"datanwtpcpahprz\"}]}},{\"name\":\"xhmtfhocnxzc\",\"properties\":{\"schema\":[{\"name\":\"xnoqrxtdisn\",\"dataType\":\"vhdl\"},{\"name\":\"did\",\"dataType\":\"epfwwt\"}],\"dslConnectorProperties\":[{\"name\":\"esxxhmwcdbckyoi\",\"value\":\"datakxhnegknj\"},{\"name\":\"bhtmeplvuk\",\"value\":\"databrlbpgs\"},{\"name\":\"agnchjhgemuowaky\",\"value\":\"datalhjym\"}]}},{\"name\":\"gqtagd\",\"properties\":{\"schema\":[{\"name\":\"ol\",\"dataType\":\"mevtfycnlbvgjc\"},{\"name\":\"kk\",\"dataType\":\"iiy\"}],\"dslConnectorProperties\":[{\"name\":\"k\",\"value\":\"databcufqbvntn\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"qsorh\",\"parameters\":{\"pwzvmdoksqdti\":\"dataxgnlykmx\",\"cqchygtvxbyjane\":\"datalwxlboncqbazq\",\"od\":\"dataubdpkxyqvgxi\",\"kxdxuwsaifmcwn\":\"datatvo\"}},\"linkedServiceType\":\"bzlehgc\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"olg\",\"value\":\"datayxpvelszerqze\"},{\"name\":\"o\",\"value\":\"dataintxwa\"},{\"name\":\"glzoblqwa\",\"value\":\"datar\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"mz\",\"sourceEntityName\":\"bhdvafjrqpjiy\",\"sourceConnectionReference\":{\"connectionName\":\"crgaxwmzwdf\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"pdltbq\",\"type\":\"Direct\",\"functionName\":\"fg\",\"expression\":\"saetgzdgvpyig\",\"attributeReference\":{},\"attributeReferences\":[{},{}]},{\"name\":\"lzdcduwjoedxng\",\"type\":\"Aggregate\",\"functionName\":\"fpaurw\",\"expression\":\"ilfjqqacdmk\",\"attributeReference\":{},\"attributeReferences\":[{},{}]},{\"name\":\"vjw\",\"type\":\"Direct\",\"functionName\":\"akeciqchx\",\"expression\":\"uicdsiwdfmmpzhzz\",\"attributeReference\":{},\"attributeReferences\":[{},{}]}]},\"sourceDenormalizeInfo\":\"datagyngydgrpxncak\"}],\"relationships\":[\"dataondjrkclam\",\"dataglvlmfejdoqeyk\",\"dataltygxhqfgqkayej\",\"dataxtlgflwfg\"]}") - .toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("uzgfxonjtpusl", model.targetEntities().get(0).name()); - Assertions.assertEquals("tiotzb", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("bollgryfqiuasig", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("ocnequygdjboqgrm", - model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("qsorh", model.connection().linkedService().referenceName()); - Assertions.assertEquals("bzlehgc", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("olg", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("mz", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("bhdvafjrqpjiy", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("crgaxwmzwdf", - model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("pdltbq", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("fg", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("saetgzdgvpyig", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTargetConnectionsInfo model - = new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList( - new MapperTable().withName("uzgfxonjtpusl") - .withSchema( - Arrays.asList(new MapperTableSchema().withName("tiotzb").withDataType("bollgryfqiuasig"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("ocnequygdjboqgrm").withValue("datajkqev"), - new MapperDslConnectorProperties().withName("rmmwiuawvcmj").withValue("dataxiid"), - new MapperDslConnectorProperties().withName("czskoswoqiqazu") - .withValue("datamxzkr"), - new MapperDslConnectorProperties().withName("oiisbamnppcce").withValue("dataztdsbeza"))), - new MapperTable().withName("f") - .withSchema( - Arrays.asList(new MapperTableSchema().withName("izhyhnep").withDataType("etiarxqiubxdukec"), - new MapperTableSchema().withName("dazvdhctm").withDataType("os"), - new MapperTableSchema().withName("dblnsntrp").withDataType("qkio"), - new MapperTableSchema().withName("btfmhklbnldpvcbh").withDataType("zyqu"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("xut").withValue("databrruyuuatv"), - new MapperDslConnectorProperties().withName("bjwcolbmx").withValue("datanwtpcpahprz"))), - new MapperTable().withName("xhmtfhocnxzc") - .withSchema(Arrays.asList(new MapperTableSchema().withName("xnoqrxtdisn").withDataType("vhdl"), - new MapperTableSchema().withName("did").withDataType("epfwwt"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("esxxhmwcdbckyoi").withValue("datakxhnegknj"), - new MapperDslConnectorProperties().withName("bhtmeplvuk").withValue("databrlbpgs"), - new MapperDslConnectorProperties().withName("agnchjhgemuowaky").withValue("datalhjym"))), - new MapperTable().withName("gqtagd") - .withSchema(Arrays.asList(new MapperTableSchema().withName("ol").withDataType("mevtfycnlbvgjc"), - new MapperTableSchema().withName("kk").withDataType("iiy"))) - .withDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("k").withValue("databcufqbvntn"))))) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("qsorh") - .withParameters(mapOf("pwzvmdoksqdti", "dataxgnlykmx", "cqchygtvxbyjane", - "datalwxlboncqbazq", "od", "dataubdpkxyqvgxi", "kxdxuwsaifmcwn", "datatvo"))) - .withLinkedServiceType("bzlehgc") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("olg").withValue("datayxpvelszerqze"), - new MapperDslConnectorProperties().withName("o").withValue("dataintxwa"), - new MapperDslConnectorProperties().withName("glzoblqwa").withValue("datar")))) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping().withTargetEntityName("mz") - .withSourceEntityName("bhdvafjrqpjiy") - .withSourceConnectionReference(new MapperConnectionReference().withConnectionName("crgaxwmzwdf") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList( - new MapperAttributeMapping().withName("pdltbq") - .withType(MappingType.DIRECT) - .withFunctionName("fg") - .withExpression("saetgzdgvpyig") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping().withName("lzdcduwjoedxng") - .withType(MappingType.AGGREGATE) - .withFunctionName("fpaurw") - .withExpression("ilfjqqacdmk") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping().withName("vjw") - .withType(MappingType.DIRECT) - .withFunctionName("akeciqchx") - .withExpression("uicdsiwdfmmpzhzz") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference()))))) - .withSourceDenormalizeInfo("datagyngydgrpxncak"))) - .withRelationships( - Arrays.asList("dataondjrkclam", "dataglvlmfejdoqeyk", "dataltygxhqfgqkayej", "dataxtlgflwfg")); - model = BinaryData.fromObject(model).toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("uzgfxonjtpusl", model.targetEntities().get(0).name()); - Assertions.assertEquals("tiotzb", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("bollgryfqiuasig", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("ocnequygdjboqgrm", - model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("qsorh", model.connection().linkedService().referenceName()); - Assertions.assertEquals("bzlehgc", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("olg", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("mz", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("bhdvafjrqpjiy", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("crgaxwmzwdf", - model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("pdltbq", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("fg", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("saetgzdgvpyig", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).expression()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java deleted file mode 100644 index 9d8f7695590d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MappingDataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MappingDataFlow model = BinaryData.fromString( - "{\"type\":\"MappingDataFlow\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"xyio\",\"parameters\":{\"pcbbprtugav\":\"dataninbdbzsxcwqqrs\",\"fogdrtbfcm\":\"datazbcyksiv\",\"mb\":\"datarftsjcwjjxs\"}},\"name\":\"wvif\",\"description\":\"kecifhocjxwklo\",\"dataset\":{\"referenceName\":\"rvtxvcmufunlc\",\"parameters\":{\"eyngjg\":\"datavir\"}},\"linkedService\":{\"referenceName\":\"quv\",\"parameters\":{\"rdcueljtiahx\":\"dataglpm\",\"qbglcjkaysp\":\"datafqryarvsx\",\"dubtlmj\":\"datahz\",\"djxyxgbkkqvjcteo\":\"datagblioskkfmkm\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rslskkzp\",\"datasetParameters\":\"datajnzdpvocojhpcna\",\"parameters\":{\"iv\":\"datafsnggytexvzilm\"},\"\":{\"cknrzda\":\"dataww\",\"eucyrth\":\"datalskzptjxul\"}}},{\"schemaLinkedService\":{\"referenceName\":\"lehmcgcjeinueho\",\"parameters\":{\"zfivfokpysthhzag\":\"datavfejvqnttmbqda\",\"rlhgenuze\":\"datafwy\",\"zlsmmdqgmihzpim\":\"datagvkvebaqszll\",\"gxsvtza\":\"dataqrhnxtminkl\"}},\"name\":\"hzvqnsqktcmbjwz\",\"description\":\"slpkybtg\",\"dataset\":{\"referenceName\":\"kzpgaj\",\"parameters\":{\"uqrebluimmbwx\":\"datacemqbmfuvqarwz\",\"kraokq\":\"datafgtdmbvx\",\"aokbavlyttaaknwf\":\"databudbt\",\"sm\":\"datake\"}},\"linkedService\":{\"referenceName\":\"dujdigatoleksc\",\"parameters\":{\"awnsnlaimou\":\"datananqimwbzxpdcldp\",\"sqmu\":\"dataw\",\"iuswswj\":\"datamfcoibic\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qsj\",\"datasetParameters\":\"datatqqvy\",\"parameters\":{\"ogfuyzwvbhlim\":\"datayrfwbivq\",\"r\":\"datayqe\",\"obsmf\":\"dataodlikcdrdaasax\"},\"\":{\"awn\":\"datayjvzukosr\",\"n\":\"datazm\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ywsxvjabjqqaxu\",\"parameters\":{\"udndoabhjxw\":\"datamc\"}},\"name\":\"qweuip\",\"description\":\"vk\",\"dataset\":{\"referenceName\":\"itnsqxtltc\",\"parameters\":{\"kkld\":\"datadpqgfhyrfr\",\"atxjtiel\":\"datarcwfcmfcnrjajq\"}},\"linkedService\":{\"referenceName\":\"qgxxgfbb\",\"parameters\":{\"calincryqxz\":\"datapqagynoiprn\",\"mqimiymqru\":\"dataaqzi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"hfupetasvvoqsbpk\",\"datasetParameters\":\"dataanfkgxsyaowuzow\",\"parameters\":{\"xrztiochlu\":\"datahdkcprgu\",\"mcrunfhiucn\":\"dataixmqrudjizcbf\",\"dkyzbfvxov\":\"datafbcpaqktkrumzu\"},\"\":{\"hyhlwcjsqg\":\"dataiuxqggvqr\",\"euqlsdxeqztv\":\"datajhffbxrqrkij\",\"wwa\":\"datawmwwmjswen\",\"ojhtollhs\":\"dataecleqioulndhzyo\"}}},{\"schemaLinkedService\":{\"referenceName\":\"dm\",\"parameters\":{\"glxpnovyoanfbcsw\":\"datal\"}},\"name\":\"agyw\",\"description\":\"xigvjrktpgaeuk\",\"dataset\":{\"referenceName\":\"wohpmwhqnucs\",\"parameters\":{\"pbninjgazlsvbzfc\":\"datasidsjtd\",\"lhsyekrdrenxolr\":\"datauoeedwjcci\",\"bfgrlpunytjlkes\":\"datayehqbeivdlhydwb\",\"e\":\"datampathubtah\"}},\"linkedService\":{\"referenceName\":\"iiwllbvgwzsf\",\"parameters\":{\"jtgr\":\"datadousnk\",\"btxxwpfhnjzud\":\"datavaqogfkbebauzl\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"zkg\",\"datasetParameters\":\"databoy\",\"parameters\":{\"isrz\":\"datazzqrhmngqbedy\",\"jch\":\"datanykdi\",\"eacdhztx\":\"datarmpwctofld\",\"ewhfjsrwqrxetf\":\"databrfgdrwji\"},\"\":{\"wthv\":\"datavrrmdqntycn\",\"nuyeamcmhud\":\"dataax\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"ehok\",\"parameters\":{\"rg\":\"dataqtwloes\",\"ciduwjle\":\"datavrbnyrukoil\",\"yxpzruzythqk\":\"datapjlh\",\"xdm\":\"datawhbgxvellvul\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"tmujdtvmc\",\"parameters\":{\"zmzqmzjqrb\":\"datamffhmjpddnyxfzuv\",\"mdyfoebojtj\":\"datapv\",\"qk\":\"datapglaoh\",\"ywkdcwmqsy\":\"datajtnqjil\"}},\"name\":\"ilm\",\"description\":\"dqaolfylnkk\",\"dataset\":{\"referenceName\":\"pjvlywltmfwo\",\"parameters\":{\"fnqzocr\":\"datawhlwy\"}},\"linkedService\":{\"referenceName\":\"gczeuntgx\",\"parameters\":{\"i\":\"dataaqttiek\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nyttzgix\",\"datasetParameters\":\"datarihl\",\"parameters\":{\"lkndrndpgfjodh\":\"databehlqtxnr\",\"ipowza\":\"dataaqotwfhipxwgsabv\",\"pefyc\":\"dataczuumljcir\"},\"\":{\"lnsjhw\":\"dataititjnsxza\"}}},{\"schemaLinkedService\":{\"referenceName\":\"yxxbxqvmvuayt\",\"parameters\":{\"tghyksarcdr\":\"dataxkxeqbwp\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"sluvlzladltxkpb\",\"parameters\":{\"anojisgglmvokat\":\"datafdqqjwkrhwz\"}},\"name\":\"ztjctibpvbkae\",\"description\":\"smz\",\"dataset\":{\"referenceName\":\"dfwakwseivmak\",\"parameters\":{\"ljuxl\":\"dataso\",\"aiubavlzwpvgmfa\":\"databectvtfjmskdch\"}},\"linkedService\":{\"referenceName\":\"zazmg\",\"parameters\":{\"zrthqet\":\"datadgjqafkmkro\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rtvaoznqni\",\"datasetParameters\":\"dataezeagmceituuge\",\"parameters\":{\"tlzm\":\"datapj\",\"eolctaebf\":\"datalsyj\",\"jcustbvtq\":\"datayrle\"},\"\":{\"sehxlzsxezp\":\"dataxzvsgeafgf\"}}}],\"transformations\":[{\"name\":\"waaeskyfjl\",\"description\":\"eqtoyrpl\",\"dataset\":{\"referenceName\":\"lajmllp\",\"parameters\":{\"mfowgwbtmkek\":\"datavh\",\"xofqovchi\":\"datapkzwa\",\"ztekxbyjgmsfep\":\"databplvfidu\"}},\"linkedService\":{\"referenceName\":\"ihpq\",\"parameters\":{\"dw\":\"datagrhrdic\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"owxwyovcxjsgbip\",\"datasetParameters\":\"datakdveksb\",\"parameters\":{\"rdpibfd\":\"dataduchvls\",\"wlkaaggkrehbfrnu\":\"datajdusspyszekb\",\"qtaadusrexxfavsq\":\"databffljfiimreoag\"},\"\":{\"psimsf\":\"dataohzilfmnli\"}}},{\"name\":\"ypofqpmbhyqgs\",\"description\":\"mmttjxophge\",\"dataset\":{\"referenceName\":\"smv\",\"parameters\":{\"qywwwmhk\":\"datatwzmqilrixysfnim\",\"hzdue\":\"datauwaedrympmlqoi\",\"liejhpc\":\"dataihapfjiiknjdiq\"}},\"linkedService\":{\"referenceName\":\"iedfsbwcei\",\"parameters\":{\"admskx\":\"datazipbwxgoooxzp\",\"zigjsugswhgsaodk\":\"datanpd\",\"ctohzhaquvwsxbgn\":\"datawnbaf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rvqchoadhrsxqvzv\",\"datasetParameters\":\"dataabdsr\",\"parameters\":{\"cetjdvq\":\"datajglzrsubklrxhjnl\",\"kw\":\"datadieq\",\"bibanbau\":\"dataruwdxvqzxoebwgj\"},\"\":{\"lssan\":\"datazvpaklozkxbzrpej\"}}}],\"script\":\"ttkgsux\",\"scriptLines\":[\"swgkpjhboyikebh\",\"hkslgwlokhueoij\",\"zcqypzqzufgsyf\",\"jyvdwtfxptpqayam\"]},\"description\":\"cf\",\"annotations\":[\"datamxsnxocuul\",\"dataojkpoyh\"],\"folder\":{\"name\":\"djuxdbdljzgd\"}}") - .toObject(MappingDataFlow.class); - Assertions.assertEquals("cf", model.description()); - Assertions.assertEquals("djuxdbdljzgd", model.folder().name()); - Assertions.assertEquals("wvif", model.sources().get(0).name()); - Assertions.assertEquals("kecifhocjxwklo", model.sources().get(0).description()); - Assertions.assertEquals("rvtxvcmufunlc", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("quv", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("rslskkzp", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("xyio", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ilm", model.sinks().get(0).name()); - Assertions.assertEquals("dqaolfylnkk", model.sinks().get(0).description()); - Assertions.assertEquals("pjvlywltmfwo", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("gczeuntgx", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("nyttzgix", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ehok", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("tmujdtvmc", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("waaeskyfjl", model.transformations().get(0).name()); - Assertions.assertEquals("eqtoyrpl", model.transformations().get(0).description()); - Assertions.assertEquals("lajmllp", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("ihpq", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("owxwyovcxjsgbip", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("ttkgsux", model.script()); - Assertions.assertEquals("swgkpjhboyikebh", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlow model = new MappingDataFlow().withDescription("cf") - .withAnnotations(Arrays.asList("datamxsnxocuul", "dataojkpoyh")) - .withFolder(new DataFlowFolder().withName("djuxdbdljzgd")) - .withSources(Arrays.asList( - new DataFlowSource().withName("wvif") - .withDescription("kecifhocjxwklo") - .withDataset(new DatasetReference().withReferenceName("rvtxvcmufunlc") - .withParameters(mapOf("eyngjg", "datavir"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("quv") - .withParameters(mapOf("rdcueljtiahx", "dataglpm", "qbglcjkaysp", "datafqryarvsx", "dubtlmj", - "datahz", "djxyxgbkkqvjcteo", "datagblioskkfmkm"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rslskkzp") - .withDatasetParameters("datajnzdpvocojhpcna") - .withParameters(mapOf("iv", "datafsnggytexvzilm")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xyio") - .withParameters(mapOf("pcbbprtugav", "dataninbdbzsxcwqqrs", "fogdrtbfcm", "datazbcyksiv", "mb", - "datarftsjcwjjxs"))), - new DataFlowSource().withName("hzvqnsqktcmbjwz") - .withDescription("slpkybtg") - .withDataset(new DatasetReference().withReferenceName("kzpgaj") - .withParameters(mapOf("uqrebluimmbwx", "datacemqbmfuvqarwz", "kraokq", "datafgtdmbvx", - "aokbavlyttaaknwf", "databudbt", "sm", "datake"))) - .withLinkedService( - new LinkedServiceReference().withReferenceName("dujdigatoleksc") - .withParameters(mapOf("awnsnlaimou", "datananqimwbzxpdcldp", "sqmu", "dataw", "iuswswj", - "datamfcoibic"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qsj") - .withDatasetParameters("datatqqvy") - .withParameters( - mapOf("ogfuyzwvbhlim", "datayrfwbivq", "r", "datayqe", "obsmf", "dataodlikcdrdaasax")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("lehmcgcjeinueho") - .withParameters(mapOf("zfivfokpysthhzag", "datavfejvqnttmbqda", "rlhgenuze", "datafwy", - "zlsmmdqgmihzpim", "datagvkvebaqszll", "gxsvtza", "dataqrhnxtminkl"))), - new DataFlowSource().withName("qweuip") - .withDescription("vk") - .withDataset(new DatasetReference().withReferenceName("itnsqxtltc") - .withParameters(mapOf("kkld", "datadpqgfhyrfr", "atxjtiel", "datarcwfcmfcnrjajq"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("qgxxgfbb") - .withParameters(mapOf("calincryqxz", "datapqagynoiprn", "mqimiymqru", "dataaqzi"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("hfupetasvvoqsbpk") - .withDatasetParameters("dataanfkgxsyaowuzow") - .withParameters(mapOf("xrztiochlu", "datahdkcprgu", "mcrunfhiucn", "dataixmqrudjizcbf", - "dkyzbfvxov", "datafbcpaqktkrumzu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ywsxvjabjqqaxu") - .withParameters(mapOf("udndoabhjxw", "datamc"))), - new DataFlowSource().withName("agyw") - .withDescription("xigvjrktpgaeuk") - .withDataset(new DatasetReference().withReferenceName("wohpmwhqnucs") - .withParameters(mapOf("pbninjgazlsvbzfc", "datasidsjtd", "lhsyekrdrenxolr", "datauoeedwjcci", - "bfgrlpunytjlkes", "datayehqbeivdlhydwb", "e", "datampathubtah"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("iiwllbvgwzsf") - .withParameters(mapOf("jtgr", "datadousnk", "btxxwpfhnjzud", "datavaqogfkbebauzl"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("zkg") - .withDatasetParameters("databoy") - .withParameters(mapOf("isrz", "datazzqrhmngqbedy", "jch", "datanykdi", "eacdhztx", - "datarmpwctofld", "ewhfjsrwqrxetf", "databrfgdrwji")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("dm") - .withParameters(mapOf("glxpnovyoanfbcsw", "datal"))))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("ilm") - .withDescription("dqaolfylnkk") - .withDataset(new DatasetReference().withReferenceName("pjvlywltmfwo") - .withParameters(mapOf("fnqzocr", "datawhlwy"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("gczeuntgx") - .withParameters(mapOf("i", "dataaqttiek"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nyttzgix") - .withDatasetParameters("datarihl") - .withParameters(mapOf("lkndrndpgfjodh", "databehlqtxnr", "ipowza", "dataaqotwfhipxwgsabv", - "pefyc", "dataczuumljcir")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ehok") - .withParameters(mapOf("rg", "dataqtwloes", "ciduwjle", "datavrbnyrukoil", "yxpzruzythqk", - "datapjlh", "xdm", "datawhbgxvellvul"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("tmujdtvmc") - .withParameters(mapOf("zmzqmzjqrb", "datamffhmjpddnyxfzuv", "mdyfoebojtj", "datapv", "qk", - "datapglaoh", "ywkdcwmqsy", "datajtnqjil"))), - new DataFlowSink().withName("ztjctibpvbkae") - .withDescription("smz") - .withDataset(new DatasetReference().withReferenceName("dfwakwseivmak") - .withParameters(mapOf("ljuxl", "dataso", "aiubavlzwpvgmfa", "databectvtfjmskdch"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("zazmg") - .withParameters(mapOf("zrthqet", "datadgjqafkmkro"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rtvaoznqni") - .withDatasetParameters("dataezeagmceituuge") - .withParameters(mapOf("tlzm", "datapj", "eolctaebf", "datalsyj", "jcustbvtq", "datayrle")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("yxxbxqvmvuayt") - .withParameters(mapOf("tghyksarcdr", "dataxkxeqbwp"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("sluvlzladltxkpb") - .withParameters(mapOf("anojisgglmvokat", "datafdqqjwkrhwz"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("waaeskyfjl") - .withDescription("eqtoyrpl") - .withDataset(new DatasetReference().withReferenceName("lajmllp") - .withParameters(mapOf("mfowgwbtmkek", "datavh", "xofqovchi", "datapkzwa", "ztekxbyjgmsfep", - "databplvfidu"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ihpq") - .withParameters(mapOf("dw", "datagrhrdic"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("owxwyovcxjsgbip") - .withDatasetParameters("datakdveksb") - .withParameters(mapOf("rdpibfd", "dataduchvls", "wlkaaggkrehbfrnu", "datajdusspyszekb", - "qtaadusrexxfavsq", "databffljfiimreoag")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("ypofqpmbhyqgs") - .withDescription("mmttjxophge") - .withDataset(new DatasetReference().withReferenceName("smv") - .withParameters(mapOf("qywwwmhk", "datatwzmqilrixysfnim", "hzdue", "datauwaedrympmlqoi", - "liejhpc", "dataihapfjiiknjdiq"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("iedfsbwcei") - .withParameters(mapOf("admskx", "datazipbwxgoooxzp", "zigjsugswhgsaodk", "datanpd", - "ctohzhaquvwsxbgn", "datawnbaf"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rvqchoadhrsxqvzv") - .withDatasetParameters("dataabdsr") - .withParameters(mapOf("cetjdvq", "datajglzrsubklrxhjnl", "kw", "datadieq", "bibanbau", - "dataruwdxvqzxoebwgj")) - .withAdditionalProperties(mapOf())))) - .withScript("ttkgsux") - .withScriptLines(Arrays.asList("swgkpjhboyikebh", "hkslgwlokhueoij", "zcqypzqzufgsyf", "jyvdwtfxptpqayam")); - model = BinaryData.fromObject(model).toObject(MappingDataFlow.class); - Assertions.assertEquals("cf", model.description()); - Assertions.assertEquals("djuxdbdljzgd", model.folder().name()); - Assertions.assertEquals("wvif", model.sources().get(0).name()); - Assertions.assertEquals("kecifhocjxwklo", model.sources().get(0).description()); - Assertions.assertEquals("rvtxvcmufunlc", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("quv", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("rslskkzp", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("xyio", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ilm", model.sinks().get(0).name()); - Assertions.assertEquals("dqaolfylnkk", model.sinks().get(0).description()); - Assertions.assertEquals("pjvlywltmfwo", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("gczeuntgx", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("nyttzgix", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ehok", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("tmujdtvmc", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("waaeskyfjl", model.transformations().get(0).name()); - Assertions.assertEquals("eqtoyrpl", model.transformations().get(0).description()); - Assertions.assertEquals("lajmllp", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("ihpq", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("owxwyovcxjsgbip", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("ttkgsux", model.script()); - Assertions.assertEquals("swgkpjhboyikebh", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java deleted file mode 100644 index b749f6a4d122..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java +++ /dev/null @@ -1,197 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MappingDataFlowTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MappingDataFlowTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MappingDataFlowTypeProperties model = BinaryData.fromString( - "{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"uqbsgzlrqhb\",\"parameters\":{\"ecominxojjluxxd\":\"dataogdxwbsfpyxxtjlf\",\"dzzqjmu\":\"datailz\"}},\"name\":\"za\",\"description\":\"vribqlotokht\",\"dataset\":{\"referenceName\":\"taznkcqwwxwjyof\",\"parameters\":{\"ctsnldkpwol\":\"datankbtlwljss\",\"gfii\":\"dataisubxbteog\",\"xqceazfpxgn\":\"datarykwlefk\",\"q\":\"dataqvzvlu\"}},\"linkedService\":{\"referenceName\":\"ios\",\"parameters\":{\"acvfyeowps\":\"datayvaifpp\",\"jdhsoy\":\"datax\",\"pboujs\":\"datahpvtyqftteh\",\"suenyg\":\"datakfvvdshxcde\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"g\",\"datasetParameters\":\"datafrn\",\"parameters\":{\"rwntfm\":\"datatrfnslnlrxsmyl\"},\"\":{\"az\":\"datawjdxw\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"drey\",\"parameters\":{\"z\":\"datafop\",\"qzzdcykeyste\":\"dataqseuzuukykcyqhy\",\"q\":\"dataazgbsqgpe\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"utmdpvozg\",\"parameters\":{\"tzeyowmndcovd\":\"databknlzcl\"}},\"name\":\"zqauxzan\",\"description\":\"kvfruwkudr\",\"dataset\":{\"referenceName\":\"pftxudqyeme\",\"parameters\":{\"mjauwcgx\":\"dataaucmcirtnee\",\"zerwgudas\":\"datafnohaitran\",\"ngfcocefhpriyl\":\"dataxubvf\"}},\"linkedService\":{\"referenceName\":\"pztraudsvhl\",\"parameters\":{\"egpqtmo\":\"dataul\",\"shqrdgrt\":\"datahvrztnvg\",\"fa\":\"datamewjzlpyk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"jcayerzrransyby\",\"datasetParameters\":\"dataol\",\"parameters\":{\"jwvuag\":\"dataghsrleinkfscjfn\",\"klzmijajw\":\"dataqwtltngvmreupt\",\"fsvagh\":\"datal\",\"xqlaps\":\"datapynwlslrcigtzjcv\"},\"\":{\"wffcvvye\":\"dataovyxpavidnie\",\"pnptw\":\"dataslpuxgcbdsva\",\"bfe\":\"datarkxgpazwugxyqvnj\",\"aewzgiudjp\":\"datahldiuhzzgqlm\"}}},{\"schemaLinkedService\":{\"referenceName\":\"qhttqhnmhkre\",\"parameters\":{\"heqdgcru\":\"datasu\",\"m\":\"dataspiny\",\"jipfdvh\":\"datagwokmikpazfbmjxu\",\"ehpphthdklmveta\":\"dataxdvwz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"akfqoixwgiksb\",\"parameters\":{\"ogwp\":\"dataooxr\",\"bfntumeezbxvq\":\"datachgjtnhtukfacih\"}},\"name\":\"bnuvwcg\",\"description\":\"gomtm\",\"dataset\":{\"referenceName\":\"wxuq\",\"parameters\":{\"gfredmlscg\":\"datasxpwwztjfmkkh\"}},\"linkedService\":{\"referenceName\":\"lccnaovjowaz\",\"parameters\":{\"yotgkwsxnsrqorc\":\"databacom\",\"jxcxxq\":\"dataenmvcebxeetq\",\"ojmrvvxwjongzse\":\"datadcqjkedwqurc\",\"chskxxka\":\"dataqqrsil\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vri\",\"datasetParameters\":\"datagv\",\"parameters\":{\"jrthcfjzhx\":\"datarulfuct\",\"stvrjeqmt\":\"datayubqjr\",\"xrd\":\"datazbeqrztrxa\"},\"\":{\"kkvyanxk\":\"datasrwrsnrhpqati\",\"qxetqmmlivrjjx\":\"datavcsemsvuvdj\",\"gfquwz\":\"datawxdchpojxlehzlx\",\"ibelwcerwkw\":\"dataw\"}}},{\"schemaLinkedService\":{\"referenceName\":\"jxljtxbusq\",\"parameters\":{\"sdzhgbdgzpagsec\":\"dataxniu\",\"ezoell\":\"dataadbuwqrgxfllmqiy\",\"w\":\"datakki\",\"pymdjfuax\":\"datamtum\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"qvqpilrg\",\"parameters\":{\"x\":\"dataanlduwzorxsb\",\"xym\":\"dataqk\",\"qepdx\":\"datakqv\"}},\"name\":\"ltuubw\",\"description\":\"pjbowcpj\",\"dataset\":{\"referenceName\":\"uqgixex\",\"parameters\":{\"r\":\"datafbwljavhuerkjdd\",\"ftksd\":\"dataliegftcvbi\"}},\"linkedService\":{\"referenceName\":\"dnkefgm\",\"parameters\":{\"buvczldbglzoutb\":\"datac\",\"orbjg\":\"dataaqgzekajclyzgs\",\"khlobvvjbhvhdi\":\"datanzjotvmr\",\"dtelvhyibdrqrs\":\"dataayfluiyuosnu\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"uubpyrow\",\"datasetParameters\":\"dataoxztfwfqch\",\"parameters\":{\"agfyvrtpqpe\":\"dataevjnnc\",\"e\":\"datahzcgkrepdqhqyhwq\",\"abckmzeoxinhgre\":\"datavx\"},\"\":{\"angp\":\"datawhlpuzjpceezn\",\"phmsexroq\":\"databfaxyxzlbc\",\"nfee\":\"datandktxfv\"}}},{\"schemaLinkedService\":{\"referenceName\":\"pkrietbgni\",\"parameters\":{\"nwpiwxeiicrm\":\"datawwzkyf\",\"kldmaxxijv\":\"datae\",\"yacwrasekwefc\":\"datakwsdgkj\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"inwoqartwyxq\",\"parameters\":{\"msfobjlquvj\":\"dataadvatdavuqmcb\"}},\"name\":\"zcjumvpsimioyoig\",\"description\":\"miqwnnrac\",\"dataset\":{\"referenceName\":\"bbfqpspklady\",\"parameters\":{\"kexzgpmnmabeddqi\":\"datahautw\",\"fpfqf\":\"datawg\",\"xbsmtbljje\":\"datacvstclgqrvwerf\",\"kwdvbtb\":\"datahci\"}},\"linkedService\":{\"referenceName\":\"kqhs\",\"parameters\":{\"igmghginztx\":\"datafpwpqbyejuwyqwd\",\"qtwmlmhjnqtqeahj\":\"dataujkhnjcmrnkfmkh\",\"vgua\":\"datadvragpokddxejhh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tbkewkqynspg\",\"datasetParameters\":\"dataoffbkkwvdxaexqok\",\"parameters\":{\"brqlpbcjtrpz\":\"dataljialzbn\"},\"\":{\"bxnhsqeaeo\":\"datadi\",\"ogatmoljiy\":\"dataqelwgdhuruzytza\",\"knsjulugd\":\"datampinmzvfkneerzzt\",\"pihtdmiwjekpt\":\"databnhrxlelfjhkeiz\"}}}],\"transformations\":[{\"name\":\"ydbjzcqymlcf\",\"description\":\"hmhsurlgwqkpm\",\"dataset\":{\"referenceName\":\"pstauol\",\"parameters\":{\"vlrlohewjjmajn\":\"dataubmomsgvvjh\",\"ionsw\":\"datadfl\"}},\"linkedService\":{\"referenceName\":\"qkzfz\",\"parameters\":{\"pkhx\":\"dataoshohtotrye\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xznlwkbfokxk\",\"datasetParameters\":\"datap\",\"parameters\":{\"yfcemftz\":\"dataufgjblcdr\",\"ekdfqnhttwd\":\"datayykyalu\",\"mhmnulwemp\":\"datawrczfjjnnuxxrk\",\"usnaw\":\"datacifrhjulrsulwzpf\"},\"\":{\"xxyxhighctxbxm\":\"datagzotfriyrgkoekvz\"}}}],\"script\":\"pcqydeykvsk\",\"scriptLines\":[\"dfrjeizik\",\"qaboohxbms\",\"ycqsxr\"]}") - .toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("za", model.sources().get(0).name()); - Assertions.assertEquals("vribqlotokht", model.sources().get(0).description()); - Assertions.assertEquals("taznkcqwwxwjyof", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ios", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("g", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("uqbsgzlrqhb", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zqauxzan", model.sinks().get(0).name()); - Assertions.assertEquals("kvfruwkudr", model.sinks().get(0).description()); - Assertions.assertEquals("pftxudqyeme", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("pztraudsvhl", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("jcayerzrransyby", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("drey", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("utmdpvozg", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ydbjzcqymlcf", model.transformations().get(0).name()); - Assertions.assertEquals("hmhsurlgwqkpm", model.transformations().get(0).description()); - Assertions.assertEquals("pstauol", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("qkzfz", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("xznlwkbfokxk", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("pcqydeykvsk", model.script()); - Assertions.assertEquals("dfrjeizik", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlowTypeProperties model = new MappingDataFlowTypeProperties() - .withSources(Arrays.asList(new DataFlowSource().withName("za") - .withDescription("vribqlotokht") - .withDataset(new DatasetReference().withReferenceName("taznkcqwwxwjyof") - .withParameters(mapOf("ctsnldkpwol", "datankbtlwljss", "gfii", "dataisubxbteog", "xqceazfpxgn", - "datarykwlefk", "q", "dataqvzvlu"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ios") - .withParameters(mapOf("acvfyeowps", "datayvaifpp", "jdhsoy", "datax", "pboujs", "datahpvtyqftteh", - "suenyg", "datakfvvdshxcde"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("g") - .withDatasetParameters("datafrn") - .withParameters(mapOf("rwntfm", "datatrfnslnlrxsmyl")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("uqbsgzlrqhb") - .withParameters(mapOf("ecominxojjluxxd", "dataogdxwbsfpyxxtjlf", "dzzqjmu", "datailz"))))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("zqauxzan") - .withDescription("kvfruwkudr") - .withDataset(new DatasetReference().withReferenceName("pftxudqyeme") - .withParameters(mapOf("mjauwcgx", "dataaucmcirtnee", "zerwgudas", "datafnohaitran", - "ngfcocefhpriyl", "dataxubvf"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("pztraudsvhl") - .withParameters(mapOf("egpqtmo", "dataul", "shqrdgrt", "datahvrztnvg", "fa", "datamewjzlpyk"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("jcayerzrransyby") - .withDatasetParameters("dataol") - .withParameters(mapOf("jwvuag", "dataghsrleinkfscjfn", "klzmijajw", "dataqwtltngvmreupt", - "fsvagh", "datal", "xqlaps", "datapynwlslrcigtzjcv")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("drey") - .withParameters( - mapOf("z", "datafop", "qzzdcykeyste", "dataqseuzuukykcyqhy", "q", "dataazgbsqgpe"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("utmdpvozg") - .withParameters(mapOf("tzeyowmndcovd", "databknlzcl"))), - new DataFlowSink().withName("bnuvwcg") - .withDescription("gomtm") - .withDataset(new DatasetReference().withReferenceName("wxuq") - .withParameters(mapOf("gfredmlscg", "datasxpwwztjfmkkh"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("lccnaovjowaz") - .withParameters(mapOf("yotgkwsxnsrqorc", "databacom", "jxcxxq", "dataenmvcebxeetq", - "ojmrvvxwjongzse", "datadcqjkedwqurc", "chskxxka", "dataqqrsil"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vri") - .withDatasetParameters("datagv") - .withParameters( - mapOf("jrthcfjzhx", "datarulfuct", "stvrjeqmt", "datayubqjr", "xrd", "datazbeqrztrxa")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("qhttqhnmhkre") - .withParameters(mapOf("heqdgcru", "datasu", "m", "dataspiny", "jipfdvh", "datagwokmikpazfbmjxu", - "ehpphthdklmveta", "dataxdvwz"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("akfqoixwgiksb") - .withParameters(mapOf("ogwp", "dataooxr", "bfntumeezbxvq", "datachgjtnhtukfacih"))), - new DataFlowSink().withName("ltuubw") - .withDescription("pjbowcpj") - .withDataset(new DatasetReference().withReferenceName("uqgixex") - .withParameters(mapOf("r", "datafbwljavhuerkjdd", "ftksd", "dataliegftcvbi"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("dnkefgm") - .withParameters(mapOf("buvczldbglzoutb", "datac", "orbjg", "dataaqgzekajclyzgs", - "khlobvvjbhvhdi", "datanzjotvmr", "dtelvhyibdrqrs", "dataayfluiyuosnu"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("uubpyrow") - .withDatasetParameters("dataoxztfwfqch") - .withParameters(mapOf("agfyvrtpqpe", "dataevjnnc", "e", "datahzcgkrepdqhqyhwq", - "abckmzeoxinhgre", "datavx")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("jxljtxbusq") - .withParameters(mapOf("sdzhgbdgzpagsec", "dataxniu", "ezoell", "dataadbuwqrgxfllmqiy", "w", - "datakki", "pymdjfuax", "datamtum"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("qvqpilrg") - .withParameters(mapOf("x", "dataanlduwzorxsb", "xym", "dataqk", "qepdx", "datakqv"))), - new DataFlowSink().withName("zcjumvpsimioyoig") - .withDescription("miqwnnrac") - .withDataset(new DatasetReference().withReferenceName("bbfqpspklady") - .withParameters(mapOf("kexzgpmnmabeddqi", "datahautw", "fpfqf", "datawg", "xbsmtbljje", - "datacvstclgqrvwerf", "kwdvbtb", "datahci"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("kqhs") - .withParameters(mapOf("igmghginztx", "datafpwpqbyejuwyqwd", "qtwmlmhjnqtqeahj", - "dataujkhnjcmrnkfmkh", "vgua", "datadvragpokddxejhh"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tbkewkqynspg") - .withDatasetParameters("dataoffbkkwvdxaexqok") - .withParameters(mapOf("brqlpbcjtrpz", "dataljialzbn")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("pkrietbgni") - .withParameters(mapOf("nwpiwxeiicrm", "datawwzkyf", "kldmaxxijv", "datae", "yacwrasekwefc", - "datakwsdgkj"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("inwoqartwyxq") - .withParameters(mapOf("msfobjlquvj", "dataadvatdavuqmcb"))))) - .withTransformations(Arrays.asList(new Transformation().withName("ydbjzcqymlcf") - .withDescription("hmhsurlgwqkpm") - .withDataset(new DatasetReference().withReferenceName("pstauol") - .withParameters(mapOf("vlrlohewjjmajn", "dataubmomsgvvjh", "ionsw", "datadfl"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("qkzfz") - .withParameters(mapOf("pkhx", "dataoshohtotrye"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xznlwkbfokxk") - .withDatasetParameters("datap") - .withParameters(mapOf("yfcemftz", "dataufgjblcdr", "ekdfqnhttwd", "datayykyalu", "mhmnulwemp", - "datawrczfjjnnuxxrk", "usnaw", "datacifrhjulrsulwzpf")) - .withAdditionalProperties(mapOf())))) - .withScript("pcqydeykvsk") - .withScriptLines(Arrays.asList("dfrjeizik", "qaboohxbms", "ycqsxr")); - model = BinaryData.fromObject(model).toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("za", model.sources().get(0).name()); - Assertions.assertEquals("vribqlotokht", model.sources().get(0).description()); - Assertions.assertEquals("taznkcqwwxwjyof", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ios", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("g", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("uqbsgzlrqhb", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zqauxzan", model.sinks().get(0).name()); - Assertions.assertEquals("kvfruwkudr", model.sinks().get(0).description()); - Assertions.assertEquals("pftxudqyeme", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("pztraudsvhl", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("jcayerzrransyby", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("drey", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("utmdpvozg", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ydbjzcqymlcf", model.transformations().get(0).name()); - Assertions.assertEquals("hmhsurlgwqkpm", model.transformations().get(0).description()); - Assertions.assertEquals("pstauol", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("qkzfz", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("xznlwkbfokxk", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("pcqydeykvsk", model.script()); - Assertions.assertEquals("dfrjeizik", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java deleted file mode 100644 index 7a8470019250..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MariaDBSource; - -public final class MariaDBSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MariaDBSource model = BinaryData.fromString( - "{\"type\":\"MariaDBSource\",\"query\":\"datawevlohuahl\",\"queryTimeout\":\"datacboxgpmmz\",\"additionalColumns\":\"dataoyllxc\",\"sourceRetryCount\":\"datahzylspz\",\"sourceRetryWait\":\"datarhynlbtr\",\"maxConcurrentConnections\":\"dataecvag\",\"disableMetricsCollection\":\"datarhadg\",\"\":{\"hiafbhzdjv\":\"datarasxeomjqqhbkxi\",\"ggbpdpzgvq\":\"datayrzi\",\"lvxilaytj\":\"dataznxzaliicrutyhm\",\"ghqdlj\":\"datawfqzwn\"}}") - .toObject(MariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBSource model = new MariaDBSource().withSourceRetryCount("datahzylspz") - .withSourceRetryWait("datarhynlbtr") - .withMaxConcurrentConnections("dataecvag") - .withDisableMetricsCollection("datarhadg") - .withQueryTimeout("datacboxgpmmz") - .withAdditionalColumns("dataoyllxc") - .withQuery("datawevlohuahl"); - model = BinaryData.fromObject(model).toObject(MariaDBSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java deleted file mode 100644 index 6e44e2bdb1a1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MariaDBTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MariaDBTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MariaDBTableDataset model = BinaryData.fromString( - "{\"type\":\"MariaDBTable\",\"typeProperties\":{\"tableName\":\"datatmabtpgn\"},\"description\":\"jtn\",\"structure\":\"datajewihcigaahm\",\"schema\":\"dataspkdnx\",\"linkedServiceName\":{\"referenceName\":\"xzxtertn\",\"parameters\":{\"olzjyf\":\"datawsciclhdwienv\",\"aknk\":\"dataryxsg\"}},\"parameters\":{\"vihbmwrv\":{\"type\":\"SecureString\",\"defaultValue\":\"datap\"}},\"annotations\":[\"datarohulobkabhvxjua\",\"datavxznirnygtixkg\"],\"folder\":{\"name\":\"mkphvdl\"},\"\":{\"cltfcieileem\":\"datazpqditu\",\"sgikkmibnmdpid\":\"datatkehldopjsxvbb\",\"styzavkyjjlu\":\"datapwtgzwmzhcmrloqa\",\"bngzldvvd\":\"datanmbj\"}}") - .toObject(MariaDBTableDataset.class); - Assertions.assertEquals("jtn", model.description()); - Assertions.assertEquals("xzxtertn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("vihbmwrv").type()); - Assertions.assertEquals("mkphvdl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBTableDataset model = new MariaDBTableDataset().withDescription("jtn") - .withStructure("datajewihcigaahm") - .withSchema("dataspkdnx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xzxtertn") - .withParameters(mapOf("olzjyf", "datawsciclhdwienv", "aknk", "dataryxsg"))) - .withParameters(mapOf("vihbmwrv", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datap"))) - .withAnnotations(Arrays.asList("datarohulobkabhvxjua", "datavxznirnygtixkg")) - .withFolder(new DatasetFolder().withName("mkphvdl")) - .withTableName("datatmabtpgn"); - model = BinaryData.fromObject(model).toObject(MariaDBTableDataset.class); - Assertions.assertEquals("jtn", model.description()); - Assertions.assertEquals("xzxtertn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("vihbmwrv").type()); - Assertions.assertEquals("mkphvdl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java deleted file mode 100644 index 82fdbd56b3e4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MarketoObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MarketoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketoObjectDataset model = BinaryData.fromString( - "{\"type\":\"MarketoObject\",\"typeProperties\":{\"tableName\":\"dataickzovguzprpxhhb\"},\"description\":\"gzxkopqlrzhtocjz\",\"structure\":\"datapexuvat\",\"schema\":\"datankjwgiitvjcmimb\",\"linkedServiceName\":{\"referenceName\":\"swskbbbj\",\"parameters\":{\"sobggva\":\"dataplodaqrbkpozf\",\"p\":\"datacrqaxlmbrtvtgolm\",\"yxhxj\":\"datagtla\"}},\"parameters\":{\"fhfaobqnjcsb\":{\"type\":\"Float\",\"defaultValue\":\"dataaqqjh\"}},\"annotations\":[\"datacdqwssydvwryb\",\"datavywotjnjuvtzij\"],\"folder\":{\"name\":\"xbaeyocpkvlt\"},\"\":{\"oztnhvd\":\"datazfmnpbdrcibjxnn\"}}") - .toObject(MarketoObjectDataset.class); - Assertions.assertEquals("gzxkopqlrzhtocjz", model.description()); - Assertions.assertEquals("swskbbbj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fhfaobqnjcsb").type()); - Assertions.assertEquals("xbaeyocpkvlt", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoObjectDataset model = new MarketoObjectDataset().withDescription("gzxkopqlrzhtocjz") - .withStructure("datapexuvat") - .withSchema("datankjwgiitvjcmimb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("swskbbbj") - .withParameters( - mapOf("sobggva", "dataplodaqrbkpozf", "p", "datacrqaxlmbrtvtgolm", "yxhxj", "datagtla"))) - .withParameters(mapOf("fhfaobqnjcsb", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataaqqjh"))) - .withAnnotations(Arrays.asList("datacdqwssydvwryb", "datavywotjnjuvtzij")) - .withFolder(new DatasetFolder().withName("xbaeyocpkvlt")) - .withTableName("dataickzovguzprpxhhb"); - model = BinaryData.fromObject(model).toObject(MarketoObjectDataset.class); - Assertions.assertEquals("gzxkopqlrzhtocjz", model.description()); - Assertions.assertEquals("swskbbbj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fhfaobqnjcsb").type()); - Assertions.assertEquals("xbaeyocpkvlt", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java deleted file mode 100644 index 2c823ed4e20c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MarketoSource; - -public final class MarketoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketoSource model = BinaryData.fromString( - "{\"type\":\"MarketoSource\",\"query\":\"datagw\",\"queryTimeout\":\"dataujshcsnk\",\"additionalColumns\":\"datagpqxqevt\",\"sourceRetryCount\":\"datavyy\",\"sourceRetryWait\":\"datakjirvjogsalvjl\",\"maxConcurrentConnections\":\"dataimua\",\"disableMetricsCollection\":\"datakympwquu\",\"\":{\"iqeftgunropdpuf\":\"dataofuzthszjyanhs\"}}") - .toObject(MarketoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoSource model = new MarketoSource().withSourceRetryCount("datavyy") - .withSourceRetryWait("datakjirvjogsalvjl") - .withMaxConcurrentConnections("dataimua") - .withDisableMetricsCollection("datakympwquu") - .withQueryTimeout("dataujshcsnk") - .withAdditionalColumns("datagpqxqevt") - .withQuery("datagw"); - model = BinaryData.fromObject(model).toObject(MarketoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MetadataItemTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MetadataItemTests.java deleted file mode 100644 index 46be8b4d66c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MetadataItemTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MetadataItem; - -public final class MetadataItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetadataItem model = BinaryData.fromString("{\"name\":\"datatohruqtximrxeyz\",\"value\":\"datanxb\"}") - .toObject(MetadataItem.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetadataItem model = new MetadataItem().withName("datatohruqtximrxeyz").withValue("datanxb"); - model = BinaryData.fromObject(model).toObject(MetadataItem.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java deleted file mode 100644 index 92def7b321fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessSink; - -public final class MicrosoftAccessSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessSink model = BinaryData.fromString( - "{\"type\":\"MicrosoftAccessSink\",\"preCopyScript\":\"datanpry\",\"writeBatchSize\":\"dataujqyeyzoivi\",\"writeBatchTimeout\":\"datanihmwvhc\",\"sinkRetryCount\":\"datamua\",\"sinkRetryWait\":\"datatd\",\"maxConcurrentConnections\":\"datai\",\"disableMetricsCollection\":\"datazytdj\",\"\":{\"bxm\":\"datansdadyrhmpokfxc\"}}") - .toObject(MicrosoftAccessSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSink model = new MicrosoftAccessSink().withWriteBatchSize("dataujqyeyzoivi") - .withWriteBatchTimeout("datanihmwvhc") - .withSinkRetryCount("datamua") - .withSinkRetryWait("datatd") - .withMaxConcurrentConnections("datai") - .withDisableMetricsCollection("datazytdj") - .withPreCopyScript("datanpry"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java deleted file mode 100644 index e05f4de3fd34..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessSource; - -public final class MicrosoftAccessSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessSource model = BinaryData.fromString( - "{\"type\":\"MicrosoftAccessSource\",\"query\":\"datacyhfubzixqxxgra\",\"additionalColumns\":\"dataftzn\",\"sourceRetryCount\":\"datarfhj\",\"sourceRetryWait\":\"dataiutbrnr\",\"maxConcurrentConnections\":\"dataljucodrbkdieismd\",\"disableMetricsCollection\":\"datafim\",\"\":{\"foexlcskelwzmji\":\"dataijrlmnkvp\"}}") - .toObject(MicrosoftAccessSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSource model = new MicrosoftAccessSource().withSourceRetryCount("datarfhj") - .withSourceRetryWait("dataiutbrnr") - .withMaxConcurrentConnections("dataljucodrbkdieismd") - .withDisableMetricsCollection("datafim") - .withQuery("datacyhfubzixqxxgra") - .withAdditionalColumns("dataftzn"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java deleted file mode 100644 index 60acbfebc3ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MicrosoftAccessTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessTableDataset model = BinaryData.fromString( - "{\"type\":\"MicrosoftAccessTable\",\"typeProperties\":{\"tableName\":\"databydlgfaphwu\"},\"description\":\"wtsaynrtvj\",\"structure\":\"datareeoxvq\",\"schema\":\"datarnbli\",\"linkedServiceName\":{\"referenceName\":\"sdbfbmdiv\",\"parameters\":{\"jg\":\"datah\",\"aub\":\"datazmiaoaweacf\"}},\"parameters\":{\"dckhsq\":{\"type\":\"Float\",\"defaultValue\":\"datatcnxriqz\"},\"okohlsfj\":{\"type\":\"Array\",\"defaultValue\":\"datajsurnowobwxrxm\"}},\"annotations\":[\"dataqjpzhe\",\"datahuv\"],\"folder\":{\"name\":\"qkvadmjhymud\"},\"\":{\"rmclyqwwu\":\"dataajzdebhs\",\"svkb\":\"datayqkaaptb\",\"bloccu\":\"databptw\",\"uybutcdzjfjt\":\"dataplxzbnsshvqnpszb\"}}") - .toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("wtsaynrtvj", model.description()); - Assertions.assertEquals("sdbfbmdiv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("dckhsq").type()); - Assertions.assertEquals("qkvadmjhymud", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDataset model = new MicrosoftAccessTableDataset().withDescription("wtsaynrtvj") - .withStructure("datareeoxvq") - .withSchema("datarnbli") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("sdbfbmdiv") - .withParameters(mapOf("jg", "datah", "aub", "datazmiaoaweacf"))) - .withParameters(mapOf("dckhsq", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatcnxriqz"), "okohlsfj", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajsurnowobwxrxm"))) - .withAnnotations(Arrays.asList("dataqjpzhe", "datahuv")) - .withFolder(new DatasetFolder().withName("qkvadmjhymud")) - .withTableName("databydlgfaphwu"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("wtsaynrtvj", model.description()); - Assertions.assertEquals("sdbfbmdiv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("dckhsq").type()); - Assertions.assertEquals("qkvadmjhymud", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java deleted file mode 100644 index a2667a3e40e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessTableDatasetTypeProperties; - -public final class MicrosoftAccessTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"dataeyxdyu\"}") - .toObject(MicrosoftAccessTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDatasetTypeProperties model - = new MicrosoftAccessTableDatasetTypeProperties().withTableName("dataeyxdyu"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java deleted file mode 100644 index e65f0f3f2cdb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasCollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbAtlasCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasCollectionDataset model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlasCollection\",\"typeProperties\":{\"collection\":\"datadwhslxebaj\"},\"description\":\"knmstbdoprwkamp\",\"structure\":\"datawpbldz\",\"schema\":\"dataudrcycm\",\"linkedServiceName\":{\"referenceName\":\"huzymhlhihqk\",\"parameters\":{\"aiildcpud\":\"datakmnbzko\",\"drobujnjgy\":\"datahquxsyjofpgv\",\"njgcp\":\"datauxmqxigidul\",\"ghxhkyqzjsdkpvn\":\"datakgrhnytslgsazuqz\"}},\"parameters\":{\"hflyuvbgtz\":{\"type\":\"Array\",\"defaultValue\":\"dataffxsfybntmveh\"}},\"annotations\":[\"dataweuydyb\",\"dataairvhpqsv\"],\"folder\":{\"name\":\"ogeatrcnqnvn\"},\"\":{\"iznzs\":\"datafcsjvjnk\"}}") - .toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("knmstbdoprwkamp", model.description()); - Assertions.assertEquals("huzymhlhihqk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hflyuvbgtz").type()); - Assertions.assertEquals("ogeatrcnqnvn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDataset model = new MongoDbAtlasCollectionDataset().withDescription("knmstbdoprwkamp") - .withStructure("datawpbldz") - .withSchema("dataudrcycm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("huzymhlhihqk") - .withParameters(mapOf("aiildcpud", "datakmnbzko", "drobujnjgy", "datahquxsyjofpgv", "njgcp", - "datauxmqxigidul", "ghxhkyqzjsdkpvn", "datakgrhnytslgsazuqz"))) - .withParameters(mapOf("hflyuvbgtz", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataffxsfybntmveh"))) - .withAnnotations(Arrays.asList("dataweuydyb", "dataairvhpqsv")) - .withFolder(new DatasetFolder().withName("ogeatrcnqnvn")) - .withCollection("datadwhslxebaj"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("knmstbdoprwkamp", model.description()); - Assertions.assertEquals("huzymhlhihqk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hflyuvbgtz").type()); - Assertions.assertEquals("ogeatrcnqnvn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index bf1e75e37d03..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasCollectionDatasetTypeProperties; - -public final class MongoDbAtlasCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model = BinaryData.fromString("{\"collection\":\"databiba\"}") - .toObject(MongoDbAtlasCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model - = new MongoDbAtlasCollectionDatasetTypeProperties().withCollection("databiba"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java deleted file mode 100644 index b50adf81dfd3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasLinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbAtlasLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasLinkedService model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlas\",\"typeProperties\":{\"connectionString\":\"datankic\",\"database\":\"datamrwc\",\"driverVersion\":\"datanjcvew\"},\"version\":\"jrnaktj\",\"connectVia\":{\"referenceName\":\"iglahheqj\",\"parameters\":{\"v\":\"datarrxmcztrqnuahhke\",\"cyulwzjorvsgmkk\":\"datarbdujpshiszivr\"}},\"description\":\"esbj\",\"parameters\":{\"sdfslaektn\":{\"type\":\"Float\",\"defaultValue\":\"dataybrlwdm\"},\"qumexnpoaer\":{\"type\":\"Int\",\"defaultValue\":\"datalipvq\"},\"q\":{\"type\":\"String\",\"defaultValue\":\"datafhltwlzlmpiprlc\"},\"apepwpbnjckowtu\":{\"type\":\"Array\",\"defaultValue\":\"datanwyhqlybmkmxusmk\"}},\"annotations\":[\"datamysv\"],\"\":{\"ypmmyrggsdouzoh\":\"datallbwnmvhb\",\"wyqsxe\":\"datahq\"}}") - .toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("jrnaktj", model.version()); - Assertions.assertEquals("iglahheqj", model.connectVia().referenceName()); - Assertions.assertEquals("esbj", model.description()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("sdfslaektn").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedService model = new MongoDbAtlasLinkedService().withVersion("jrnaktj") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("iglahheqj") - .withParameters(mapOf("v", "datarrxmcztrqnuahhke", "cyulwzjorvsgmkk", "datarbdujpshiszivr"))) - .withDescription("esbj") - .withParameters(mapOf("sdfslaektn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataybrlwdm"), - "qumexnpoaer", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datalipvq"), - "q", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafhltwlzlmpiprlc"), - "apepwpbnjckowtu", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datanwyhqlybmkmxusmk"))) - .withAnnotations(Arrays.asList("datamysv")) - .withConnectionString("datankic") - .withDatabase("datamrwc") - .withDriverVersion("datanjcvew"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("jrnaktj", model.version()); - Assertions.assertEquals("iglahheqj", model.connectVia().referenceName()); - Assertions.assertEquals("esbj", model.description()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("sdfslaektn").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 3573904bebc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasLinkedServiceTypeProperties; - -public final class MongoDbAtlasLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasLinkedServiceTypeProperties model = BinaryData.fromString( - "{\"connectionString\":\"datatltlmczcxouane\",\"database\":\"dataepgqztakovslv\",\"driverVersion\":\"datavdmtfcs\"}") - .toObject(MongoDbAtlasLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedServiceTypeProperties model - = new MongoDbAtlasLinkedServiceTypeProperties().withConnectionString("datatltlmczcxouane") - .withDatabase("dataepgqztakovslv") - .withDriverVersion("datavdmtfcs"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java deleted file mode 100644 index ab1b65d5cec6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasSink; - -public final class MongoDbAtlasSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasSink model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlasSink\",\"writeBehavior\":\"datamkfvsolkjowvz\",\"writeBatchSize\":\"datae\",\"writeBatchTimeout\":\"dataj\",\"sinkRetryCount\":\"datayguothnucqktu\",\"sinkRetryWait\":\"datar\",\"maxConcurrentConnections\":\"datatpriicte\",\"disableMetricsCollection\":\"datalbahmivtuph\",\"\":{\"o\":\"datai\"}}") - .toObject(MongoDbAtlasSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSink model = new MongoDbAtlasSink().withWriteBatchSize("datae") - .withWriteBatchTimeout("dataj") - .withSinkRetryCount("datayguothnucqktu") - .withSinkRetryWait("datar") - .withMaxConcurrentConnections("datatpriicte") - .withDisableMetricsCollection("datalbahmivtuph") - .withWriteBehavior("datamkfvsolkjowvz"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java deleted file mode 100644 index afc8bf2815ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasSource; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbAtlasSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasSource model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlasSource\",\"filter\":\"dataqexd\",\"cursorMethods\":{\"project\":\"datavkwwjjotfunsdu\",\"sort\":\"dataxvrwalek\",\"skip\":\"datadofuob\",\"limit\":\"datalainzvhl\",\"\":{\"lmihvzdaycmen\":\"dataib\",\"l\":\"datagzy\",\"jdotpcvddfmflwf\":\"datalvgqlexwqwbbell\"}},\"batchSize\":\"datakpwdpmygacu\",\"queryTimeout\":\"datahtwxifudlrxb\",\"additionalColumns\":\"dataftpvgmqzitc\",\"sourceRetryCount\":\"datamlltas\",\"sourceRetryWait\":\"dataqsf\",\"maxConcurrentConnections\":\"datae\",\"disableMetricsCollection\":\"dataveg\",\"\":{\"xisa\":\"datamyvgmbirvvvrb\",\"bridagwuvcdymoqv\":\"dataktuxwzvlh\",\"hrygw\":\"datajkrynziudmhe\"}}") - .toObject(MongoDbAtlasSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSource model = new MongoDbAtlasSource().withSourceRetryCount("datamlltas") - .withSourceRetryWait("dataqsf") - .withMaxConcurrentConnections("datae") - .withDisableMetricsCollection("dataveg") - .withFilter("dataqexd") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("datavkwwjjotfunsdu") - .withSort("dataxvrwalek") - .withSkip("datadofuob") - .withLimit("datalainzvhl") - .withAdditionalProperties(mapOf())) - .withBatchSize("datakpwdpmygacu") - .withQueryTimeout("datahtwxifudlrxb") - .withAdditionalColumns("dataftpvgmqzitc"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java deleted file mode 100644 index 22db504fda02..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbCollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCollectionDataset model = BinaryData.fromString( - "{\"type\":\"MongoDbCollection\",\"typeProperties\":{\"collectionName\":\"datab\"},\"description\":\"wxs\",\"structure\":\"datajgg\",\"schema\":\"datagaef\",\"linkedServiceName\":{\"referenceName\":\"awkmibu\",\"parameters\":{\"updyttqm\":\"dataiurni\"}},\"parameters\":{\"s\":{\"type\":\"Array\",\"defaultValue\":\"datal\"}},\"annotations\":[\"datahhtuqmtxynof\",\"dataqobfixngxebihe\"],\"folder\":{\"name\":\"kingiqcdolrpgu\"},\"\":{\"dafbncuy\":\"datalbsm\",\"fzxjzi\":\"dataeykcnhpplzh\",\"wnuwkkfzzetl\":\"dataucrln\",\"vwywjvrlgqpwwlzp\":\"datahdyxz\"}}") - .toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("wxs", model.description()); - Assertions.assertEquals("awkmibu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("s").type()); - Assertions.assertEquals("kingiqcdolrpgu", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDataset model = new MongoDbCollectionDataset().withDescription("wxs") - .withStructure("datajgg") - .withSchema("datagaef") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("awkmibu") - .withParameters(mapOf("updyttqm", "dataiurni"))) - .withParameters( - mapOf("s", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datal"))) - .withAnnotations(Arrays.asList("datahhtuqmtxynof", "dataqobfixngxebihe")) - .withFolder(new DatasetFolder().withName("kingiqcdolrpgu")) - .withCollectionName("datab"); - model = BinaryData.fromObject(model).toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("wxs", model.description()); - Assertions.assertEquals("awkmibu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("s").type()); - Assertions.assertEquals("kingiqcdolrpgu", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 8a84eb09b942..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbCollectionDatasetTypeProperties; - -public final class MongoDbCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCollectionDatasetTypeProperties model = BinaryData.fromString("{\"collectionName\":\"datadarcb\"}") - .toObject(MongoDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDatasetTypeProperties model - = new MongoDbCollectionDatasetTypeProperties().withCollectionName("datadarcb"); - model = BinaryData.fromObject(model).toObject(MongoDbCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java deleted file mode 100644 index 4eeffaa95ead..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbCursorMethodsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCursorMethodsProperties model = BinaryData.fromString( - "{\"project\":\"datavuiox\",\"sort\":\"dataztrfot\",\"skip\":\"datafzcvhfnbccffsb\",\"limit\":\"databt\",\"\":{\"j\":\"datal\",\"chpzv\":\"dataoudjcttav\",\"lferjwhonn\":\"dataz\"}}") - .toObject(MongoDbCursorMethodsProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCursorMethodsProperties model = new MongoDbCursorMethodsProperties().withProject("datavuiox") - .withSort("dataztrfot") - .withSkip("datafzcvhfnbccffsb") - .withLimit("databt") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(MongoDbCursorMethodsProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java deleted file mode 100644 index b17136def71f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbSource; - -public final class MongoDbSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbSource model = BinaryData.fromString( - "{\"type\":\"MongoDbSource\",\"query\":\"dataomapcaxnoqnjfv\",\"additionalColumns\":\"datavectooxjztt\",\"sourceRetryCount\":\"datasnmxvsrvkzvxlez\",\"sourceRetryWait\":\"datadybxehjkqogtnfla\",\"maxConcurrentConnections\":\"datapghfvkqijmyqo\",\"disableMetricsCollection\":\"datasfaoc\",\"\":{\"dpyohnmru\":\"datarr\",\"eywbhxhawkwcf\":\"datavlwhtfscoups\"}}") - .toObject(MongoDbSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbSource model = new MongoDbSource().withSourceRetryCount("datasnmxvsrvkzvxlez") - .withSourceRetryWait("datadybxehjkqogtnfla") - .withMaxConcurrentConnections("datapghfvkqijmyqo") - .withDisableMetricsCollection("datasfaoc") - .withQuery("dataomapcaxnoqnjfv") - .withAdditionalColumns("datavectooxjztt"); - model = BinaryData.fromObject(model).toObject(MongoDbSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java deleted file mode 100644 index a0fcaca01d7d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbV2CollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbV2CollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2CollectionDataset model = BinaryData.fromString( - "{\"type\":\"MongoDbV2Collection\",\"typeProperties\":{\"collection\":\"dataugico\"},\"description\":\"tmvwrmjxyvuodnx\",\"structure\":\"databassqfyylwpp\",\"schema\":\"datagkbzbloas\",\"linkedServiceName\":{\"referenceName\":\"bxhqvovdp\",\"parameters\":{\"aqg\":\"datatuvsqjsrvjnq\",\"wevsfgdrmnszdosm\":\"dataqbfkceincnrecjbi\"}},\"parameters\":{\"hgsulwvgs\":{\"type\":\"Object\",\"defaultValue\":\"datazvmxtcwghndae\"},\"wuhyzekypy\":{\"type\":\"Array\",\"defaultValue\":\"dataigvfjjuzkilmc\"},\"bp\":{\"type\":\"Bool\",\"defaultValue\":\"datajlbzdlb\"}},\"annotations\":[\"datapzy\",\"dataov\",\"datanwbhanzgesfhshag\"],\"folder\":{\"name\":\"nezpby\"},\"\":{\"qbugihcdv\":\"dataynpmggqgagen\",\"zsaxzgkqwvdepp\":\"dataoizorbloe\"}}") - .toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("tmvwrmjxyvuodnx", model.description()); - Assertions.assertEquals("bxhqvovdp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("hgsulwvgs").type()); - Assertions.assertEquals("nezpby", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDataset model = new MongoDbV2CollectionDataset().withDescription("tmvwrmjxyvuodnx") - .withStructure("databassqfyylwpp") - .withSchema("datagkbzbloas") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bxhqvovdp") - .withParameters(mapOf("aqg", "datatuvsqjsrvjnq", "wevsfgdrmnszdosm", "dataqbfkceincnrecjbi"))) - .withParameters(mapOf("hgsulwvgs", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datazvmxtcwghndae"), - "wuhyzekypy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataigvfjjuzkilmc"), "bp", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajlbzdlb"))) - .withAnnotations(Arrays.asList("datapzy", "dataov", "datanwbhanzgesfhshag")) - .withFolder(new DatasetFolder().withName("nezpby")) - .withCollection("dataugico"); - model = BinaryData.fromObject(model).toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("tmvwrmjxyvuodnx", model.description()); - Assertions.assertEquals("bxhqvovdp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("hgsulwvgs").type()); - Assertions.assertEquals("nezpby", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java deleted file mode 100644 index db1b0c6ec4e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2CollectionDatasetTypeProperties; - -public final class MongoDbV2CollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model = BinaryData.fromString("{\"collection\":\"datanaphifkfrpmpl\"}") - .toObject(MongoDbV2CollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model - = new MongoDbV2CollectionDatasetTypeProperties().withCollection("datanaphifkfrpmpl"); - model = BinaryData.fromObject(model).toObject(MongoDbV2CollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java deleted file mode 100644 index 991981d262a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.MongoDbV2LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbV2LinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2LinkedService model = BinaryData.fromString( - "{\"type\":\"MongoDbV2\",\"typeProperties\":{\"connectionString\":\"dataucmiqsdsnu\",\"database\":\"dataq\"},\"version\":\"qitiut\",\"connectVia\":{\"referenceName\":\"asxjkclzqpasril\",\"parameters\":{\"cvq\":\"datahlbhkijq\"}},\"description\":\"xrqiwxeppuhkizoa\",\"parameters\":{\"vfbmxzobpg\":{\"type\":\"String\",\"defaultValue\":\"datavob\"},\"ybyilhdbb\":{\"type\":\"Object\",\"defaultValue\":\"datalkpajio\"},\"choji\":{\"type\":\"Array\",\"defaultValue\":\"datauyxhcwubtego\"},\"frgiplxrifbsbk\":{\"type\":\"SecureString\",\"defaultValue\":\"dataq\"}},\"annotations\":[\"datav\",\"databbpoijs\",\"datavrutjituufknar\"],\"\":{\"smvnnjwnwo\":\"datanktpjinzosx\",\"xowppvuxqac\":\"datavezwwqc\",\"ir\":\"dataoqqehn\",\"tvnlbkizebbrwlp\":\"datagnvuolv\"}}") - .toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("qitiut", model.version()); - Assertions.assertEquals("asxjkclzqpasril", model.connectVia().referenceName()); - Assertions.assertEquals("xrqiwxeppuhkizoa", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vfbmxzobpg").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedService model = new MongoDbV2LinkedService().withVersion("qitiut") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("asxjkclzqpasril") - .withParameters(mapOf("cvq", "datahlbhkijq"))) - .withDescription("xrqiwxeppuhkizoa") - .withParameters(mapOf("vfbmxzobpg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datavob"), "ybyilhdbb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datalkpajio"), "choji", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datauyxhcwubtego"), - "frgiplxrifbsbk", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataq"))) - .withAnnotations(Arrays.asList("datav", "databbpoijs", "datavrutjituufknar")) - .withConnectionString("dataucmiqsdsnu") - .withDatabase("dataq"); - model = BinaryData.fromObject(model).toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("qitiut", model.version()); - Assertions.assertEquals("asxjkclzqpasril", model.connectVia().referenceName()); - Assertions.assertEquals("xrqiwxeppuhkizoa", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vfbmxzobpg").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.java deleted file mode 100644 index 3b12a8f0885f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2LinkedServiceTypeProperties; - -public final class MongoDbV2LinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2LinkedServiceTypeProperties model - = BinaryData.fromString("{\"connectionString\":\"dataqmisoiqge\",\"database\":\"datazgwywyxbwuam\"}") - .toObject(MongoDbV2LinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedServiceTypeProperties model - = new MongoDbV2LinkedServiceTypeProperties().withConnectionString("dataqmisoiqge") - .withDatabase("datazgwywyxbwuam"); - model = BinaryData.fromObject(model).toObject(MongoDbV2LinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java deleted file mode 100644 index fd8d36795db2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbV2Sink; - -public final class MongoDbV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2Sink model = BinaryData.fromString( - "{\"type\":\"MongoDbV2Sink\",\"writeBehavior\":\"dataxfteomnrziw\",\"writeBatchSize\":\"datapxgjmyoufqa\",\"writeBatchTimeout\":\"dataaypcdikkmyrs\",\"sinkRetryCount\":\"datartxggmp\",\"sinkRetryWait\":\"datauvasxjzklqk\",\"maxConcurrentConnections\":\"dataukn\",\"disableMetricsCollection\":\"datanjhywgziqcwn\",\"\":{\"wnlauw\":\"dataehptl\"}}") - .toObject(MongoDbV2Sink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Sink model = new MongoDbV2Sink().withWriteBatchSize("datapxgjmyoufqa") - .withWriteBatchTimeout("dataaypcdikkmyrs") - .withSinkRetryCount("datartxggmp") - .withSinkRetryWait("datauvasxjzklqk") - .withMaxConcurrentConnections("dataukn") - .withDisableMetricsCollection("datanjhywgziqcwn") - .withWriteBehavior("dataxfteomnrziw"); - model = BinaryData.fromObject(model).toObject(MongoDbV2Sink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java deleted file mode 100644 index 82166fba2a5b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import com.azure.resourcemanager.datafactory.models.MongoDbV2Source; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2Source model = BinaryData.fromString( - "{\"type\":\"MongoDbV2Source\",\"filter\":\"datadexnicq\",\"cursorMethods\":{\"project\":\"dataqttfqgdoowgqooip\",\"sort\":\"datasvsnedhkj\",\"skip\":\"datafvetwfreqvfl\",\"limit\":\"datatjuuikqzdcwqal\",\"\":{\"olkw\":\"dataiytpjisci\",\"lnodrfc\":\"datapvlsljutawg\",\"yxduxhopy\":\"dataehlopipvpeaeyj\",\"embvfa\":\"datavcbm\"}},\"batchSize\":\"dataxjoa\",\"queryTimeout\":\"dataxmumfbkaxzrycvac\",\"additionalColumns\":\"datazjysyphxeoqm\",\"sourceRetryCount\":\"datahikcei\",\"sourceRetryWait\":\"datavosb\",\"maxConcurrentConnections\":\"datawrbqooxvprq\",\"disableMetricsCollection\":\"dataqh\",\"\":{\"kif\":\"datapqrtnkngjnhxufoc\",\"tped\":\"dataj\",\"qqoz\":\"datahfpfsesiywcrejtp\",\"mfjktd\":\"dataesbpqw\"}}") - .toObject(MongoDbV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Source model = new MongoDbV2Source().withSourceRetryCount("datahikcei") - .withSourceRetryWait("datavosb") - .withMaxConcurrentConnections("datawrbqooxvprq") - .withDisableMetricsCollection("dataqh") - .withFilter("datadexnicq") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("dataqttfqgdoowgqooip") - .withSort("datasvsnedhkj") - .withSkip("datafvetwfreqvfl") - .withLimit("datatjuuikqzdcwqal") - .withAdditionalProperties(mapOf())) - .withBatchSize("dataxjoa") - .withQueryTimeout("dataxmumfbkaxzrycvac") - .withAdditionalColumns("datazjysyphxeoqm"); - model = BinaryData.fromObject(model).toObject(MongoDbV2Source.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.java deleted file mode 100644 index 7f456b2d9347..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MultiplePipelineTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MultiplePipelineTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MultiplePipelineTrigger model = BinaryData.fromString( - "{\"type\":\"MultiplePipelineTrigger\",\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"gr\",\"name\":\"lt\"},\"parameters\":{\"c\":\"dataqyiiujukcdlvptxt\",\"xpxslccuyscjefap\":\"datapmfpbodswgnglmll\",\"dndirdle\":\"datauwsyns\"}},{\"pipelineReference\":{\"referenceName\":\"zvpdwyhggv\",\"name\":\"oaoetitktkeir\"},\"parameters\":{\"up\":\"datafmsaedglubqtf\"}}],\"description\":\"wtemir\",\"runtimeState\":\"Started\",\"annotations\":[\"dataksafjht\",\"databrkghtsfp\",\"datajunkhxthkqny\"],\"\":{\"ceheeqqetasi\":\"datavzrqaphe\",\"qwomkzcmwqfd\":\"dataia\"}}") - .toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("wtemir", model.description()); - Assertions.assertEquals("gr", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("lt", model.pipelines().get(0).pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MultiplePipelineTrigger model = new MultiplePipelineTrigger().withDescription("wtemir") - .withAnnotations(Arrays.asList("dataksafjht", "databrkghtsfp", "datajunkhxthkqny")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("gr").withName("lt")) - .withParameters(mapOf("c", "dataqyiiujukcdlvptxt", "xpxslccuyscjefap", "datapmfpbodswgnglmll", - "dndirdle", "datauwsyns")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("zvpdwyhggv").withName("oaoetitktkeir")) - .withParameters(mapOf("up", "datafmsaedglubqtf")))); - model = BinaryData.fromObject(model).toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("wtemir", model.description()); - Assertions.assertEquals("gr", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("lt", model.pipelines().get(0).pipelineReference().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java deleted file mode 100644 index 9247c20ba016..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MySqlSource; - -public final class MySqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlSource model = BinaryData.fromString( - "{\"type\":\"MySqlSource\",\"query\":\"datahoh\",\"queryTimeout\":\"databmxoowpoogozercc\",\"additionalColumns\":\"datap\",\"sourceRetryCount\":\"datakg\",\"sourceRetryWait\":\"datauj\",\"maxConcurrentConnections\":\"dataqjqafjk\",\"disableMetricsCollection\":\"datalogvfnwqzolva\",\"\":{\"g\":\"datakycge\"}}") - .toObject(MySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlSource model = new MySqlSource().withSourceRetryCount("datakg") - .withSourceRetryWait("datauj") - .withMaxConcurrentConnections("dataqjqafjk") - .withDisableMetricsCollection("datalogvfnwqzolva") - .withQueryTimeout("databmxoowpoogozercc") - .withAdditionalColumns("datap") - .withQuery("datahoh"); - model = BinaryData.fromObject(model).toObject(MySqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java deleted file mode 100644 index 9c7f49e6fa34..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MySqlTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MySqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlTableDataset model = BinaryData.fromString( - "{\"type\":\"MySqlTable\",\"typeProperties\":{\"tableName\":\"databgwzhbhflj\"},\"description\":\"od\",\"structure\":\"dataovnlhrwya\",\"schema\":\"datauafapwxsvdeatjio\",\"linkedServiceName\":{\"referenceName\":\"nirgoext\",\"parameters\":{\"tbsetko\":\"datawtgntimznupb\",\"aakghcrzmmmjyvdh\":\"datasqvhe\",\"etqjisjm\":\"datagdiwmlgstm\"}},\"parameters\":{\"kakhgkrv\":{\"type\":\"SecureString\",\"defaultValue\":\"dataq\"},\"ejqaw\":{\"type\":\"Object\",\"defaultValue\":\"datacvytv\"},\"pbbimh\":{\"type\":\"Float\",\"defaultValue\":\"dataqpfzxkczbd\"}},\"annotations\":[\"datazvoortc\",\"datanh\"],\"folder\":{\"name\":\"yuzly\"},\"\":{\"lkv\":\"datacibv\",\"nviulbylmgjzr\":\"datakcafnwqhawv\"}}") - .toObject(MySqlTableDataset.class); - Assertions.assertEquals("od", model.description()); - Assertions.assertEquals("nirgoext", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("kakhgkrv").type()); - Assertions.assertEquals("yuzly", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDataset model = new MySqlTableDataset().withDescription("od") - .withStructure("dataovnlhrwya") - .withSchema("datauafapwxsvdeatjio") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nirgoext") - .withParameters(mapOf("tbsetko", "datawtgntimznupb", "aakghcrzmmmjyvdh", "datasqvhe", "etqjisjm", - "datagdiwmlgstm"))) - .withParameters(mapOf("kakhgkrv", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataq"), "ejqaw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacvytv"), "pbbimh", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqpfzxkczbd"))) - .withAnnotations(Arrays.asList("datazvoortc", "datanh")) - .withFolder(new DatasetFolder().withName("yuzly")) - .withTableName("databgwzhbhflj"); - model = BinaryData.fromObject(model).toObject(MySqlTableDataset.class); - Assertions.assertEquals("od", model.description()); - Assertions.assertEquals("nirgoext", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("kakhgkrv").type()); - Assertions.assertEquals("yuzly", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 0d791f816bda..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MySqlTableDatasetTypeProperties; - -public final class MySqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datawpbgumwhmxp\"}") - .toObject(MySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDatasetTypeProperties model = new MySqlTableDatasetTypeProperties().withTableName("datawpbgumwhmxp"); - model = BinaryData.fromObject(model).toObject(MySqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java deleted file mode 100644 index e3293758d3ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NetezzaPartitionSettings; - -public final class NetezzaPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaPartitionSettings model = BinaryData.fromString( - "{\"partitionColumnName\":\"datatfwkvirmbr\",\"partitionUpperBound\":\"datagnqa\",\"partitionLowerBound\":\"datak\"}") - .toObject(NetezzaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaPartitionSettings model = new NetezzaPartitionSettings().withPartitionColumnName("datatfwkvirmbr") - .withPartitionUpperBound("datagnqa") - .withPartitionLowerBound("datak"); - model = BinaryData.fromObject(model).toObject(NetezzaPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java deleted file mode 100644 index ad638e2f5e03..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NetezzaPartitionSettings; -import com.azure.resourcemanager.datafactory.models.NetezzaSource; - -public final class NetezzaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaSource model = BinaryData.fromString( - "{\"type\":\"NetezzaSource\",\"query\":\"dataykx\",\"partitionOption\":\"dataympsxmoad\",\"partitionSettings\":{\"partitionColumnName\":\"datansmpfe\",\"partitionUpperBound\":\"datavl\",\"partitionLowerBound\":\"datasyvryo\"},\"queryTimeout\":\"dataqikcork\",\"additionalColumns\":\"dataobobxfhtb\",\"sourceRetryCount\":\"datavwzjycgcie\",\"sourceRetryWait\":\"datax\",\"maxConcurrentConnections\":\"datazvnghtknr\",\"disableMetricsCollection\":\"datahysnmyuvf\",\"\":{\"pxoelfobehr\":\"datanrapxwt\",\"lojjcz\":\"dataf\"}}") - .toObject(NetezzaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaSource model = new NetezzaSource().withSourceRetryCount("datavwzjycgcie") - .withSourceRetryWait("datax") - .withMaxConcurrentConnections("datazvnghtknr") - .withDisableMetricsCollection("datahysnmyuvf") - .withQueryTimeout("dataqikcork") - .withAdditionalColumns("dataobobxfhtb") - .withQuery("dataykx") - .withPartitionOption("dataympsxmoad") - .withPartitionSettings(new NetezzaPartitionSettings().withPartitionColumnName("datansmpfe") - .withPartitionUpperBound("datavl") - .withPartitionLowerBound("datasyvryo")); - model = BinaryData.fromObject(model).toObject(NetezzaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java deleted file mode 100644 index ac5a5da15eed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.NetezzaTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class NetezzaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaTableDataset model = BinaryData.fromString( - "{\"type\":\"NetezzaTable\",\"typeProperties\":{\"tableName\":\"datamblmfcleuov\",\"table\":\"datavspr\",\"schema\":\"datajtez\"},\"description\":\"toudodexwmvs\",\"structure\":\"datajciexuwemtgtgeb\",\"schema\":\"datamcgsks\",\"linkedServiceName\":{\"referenceName\":\"bsxehaxicjojxol\",\"parameters\":{\"mbglmnlbnatln\":\"datahgwakptb\",\"jk\":\"datahzzcdkxortdzzvhb\",\"dzccqtwsrbfbsd\":\"datahophqwo\",\"vexrvnhhmfsnq\":\"dataicdzf\"}},\"parameters\":{\"sdzmhwtsyppwf\":{\"type\":\"String\",\"defaultValue\":\"datahlwvrs\"},\"aypxsazbxs\":{\"type\":\"Object\",\"defaultValue\":\"dataetxizrfwxhflgdun\"},\"tmprvgrandz\":{\"type\":\"Array\",\"defaultValue\":\"dataksznf\"},\"lhsfddkhxvev\":{\"type\":\"Array\",\"defaultValue\":\"dataomlpczlqboomzgmr\"}},\"annotations\":[\"datanbwaxadxgnp\",\"datahtuhalpq\",\"datald\"],\"folder\":{\"name\":\"kexznpnytkqjarl\"},\"\":{\"rmzoujfgt\":\"datatgtzpca\"}}") - .toObject(NetezzaTableDataset.class); - Assertions.assertEquals("toudodexwmvs", model.description()); - Assertions.assertEquals("bsxehaxicjojxol", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("sdzmhwtsyppwf").type()); - Assertions.assertEquals("kexznpnytkqjarl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDataset model = new NetezzaTableDataset().withDescription("toudodexwmvs") - .withStructure("datajciexuwemtgtgeb") - .withSchema("datamcgsks") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bsxehaxicjojxol") - .withParameters(mapOf("mbglmnlbnatln", "datahgwakptb", "jk", "datahzzcdkxortdzzvhb", "dzccqtwsrbfbsd", - "datahophqwo", "vexrvnhhmfsnq", "dataicdzf"))) - .withParameters(mapOf("sdzmhwtsyppwf", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahlwvrs"), - "aypxsazbxs", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataetxizrfwxhflgdun"), - "tmprvgrandz", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataksznf"), - "lhsfddkhxvev", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataomlpczlqboomzgmr"))) - .withAnnotations(Arrays.asList("datanbwaxadxgnp", "datahtuhalpq", "datald")) - .withFolder(new DatasetFolder().withName("kexznpnytkqjarl")) - .withTableName("datamblmfcleuov") - .withTable("datavspr") - .withSchemaTypePropertiesSchema("datajtez"); - model = BinaryData.fromObject(model).toObject(NetezzaTableDataset.class); - Assertions.assertEquals("toudodexwmvs", model.description()); - Assertions.assertEquals("bsxehaxicjojxol", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("sdzmhwtsyppwf").type()); - Assertions.assertEquals("kexznpnytkqjarl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java deleted file mode 100644 index 0fc9fe850e13..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.NetezzaTableDatasetTypeProperties; - -public final class NetezzaTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datauupcze\",\"table\":\"datanaidvssv\",\"schema\":\"dataoggkztzttjnknpb\"}") - .toObject(NetezzaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDatasetTypeProperties model = new NetezzaTableDatasetTypeProperties().withTableName("datauupcze") - .withTable("datanaidvssv") - .withSchema("dataoggkztzttjnknpb"); - model = BinaryData.fromObject(model).toObject(NetezzaTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java deleted file mode 100644 index c6995c25ed14..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NotebookParameter; -import com.azure.resourcemanager.datafactory.models.NotebookParameterType; -import org.junit.jupiter.api.Assertions; - -public final class NotebookParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NotebookParameter model = BinaryData.fromString("{\"value\":\"dataumccomjxx\",\"type\":\"string\"}") - .toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.STRING, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NotebookParameter model - = new NotebookParameter().withValue("dataumccomjxx").withType(NotebookParameterType.STRING); - model = BinaryData.fromObject(model).toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.STRING, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java deleted file mode 100644 index e024fed25a84..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ODataResourceDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ODataResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataResourceDataset model = BinaryData.fromString( - "{\"type\":\"ODataResource\",\"typeProperties\":{\"path\":\"dataepkwzzzkueruwcj\"},\"description\":\"ipvwkauj\",\"structure\":\"dataw\",\"schema\":\"dataox\",\"linkedServiceName\":{\"referenceName\":\"bwofxxdplr\",\"parameters\":{\"lbpxrhrfjenrazwe\":\"datakvgahcbtu\"}},\"parameters\":{\"jixy\":{\"type\":\"SecureString\",\"defaultValue\":\"datahqashtos\"},\"dwjtacfvvtd\":{\"type\":\"Object\",\"defaultValue\":\"datacigz\"}},\"annotations\":[\"datapzfomcsaugbr\",\"datafiwltkfysu\",\"datate\",\"datahkl\"],\"folder\":{\"name\":\"cvasyyh\"},\"\":{\"bmsrkix\":\"datak\",\"aqsy\":\"dataxxhwrlqo\"}}") - .toObject(ODataResourceDataset.class); - Assertions.assertEquals("ipvwkauj", model.description()); - Assertions.assertEquals("bwofxxdplr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("jixy").type()); - Assertions.assertEquals("cvasyyh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDataset model - = new ODataResourceDataset().withDescription("ipvwkauj") - .withStructure("dataw") - .withSchema("dataox") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bwofxxdplr") - .withParameters(mapOf("lbpxrhrfjenrazwe", "datakvgahcbtu"))) - .withParameters( - mapOf("jixy", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datahqashtos"), - "dwjtacfvvtd", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacigz"))) - .withAnnotations(Arrays.asList("datapzfomcsaugbr", "datafiwltkfysu", "datate", "datahkl")) - .withFolder(new DatasetFolder().withName("cvasyyh")) - .withPath("dataepkwzzzkueruwcj"); - model = BinaryData.fromObject(model).toObject(ODataResourceDataset.class); - Assertions.assertEquals("ipvwkauj", model.description()); - Assertions.assertEquals("bwofxxdplr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("jixy").type()); - Assertions.assertEquals("cvasyyh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 2413c45ec4de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ODataResourceDatasetTypeProperties; - -public final class ODataResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataResourceDatasetTypeProperties model - = BinaryData.fromString("{\"path\":\"datapzzbrwn\"}").toObject(ODataResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDatasetTypeProperties model = new ODataResourceDatasetTypeProperties().withPath("datapzzbrwn"); - model = BinaryData.fromObject(model).toObject(ODataResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java deleted file mode 100644 index 5a042b9c169b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ODataSource; - -public final class ODataSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataSource model = BinaryData.fromString( - "{\"type\":\"ODataSource\",\"query\":\"datahuboqozx\",\"httpRequestTimeout\":\"dataxamxi\",\"additionalColumns\":\"datar\",\"sourceRetryCount\":\"datakglynbqpeoj\",\"sourceRetryWait\":\"databoggw\",\"maxConcurrentConnections\":\"datahtnywgtsodnxeir\",\"disableMetricsCollection\":\"datawjimcfrhtzgduvoa\",\"\":{\"zyqbggxcyram\":\"datacalptfp\",\"nyurxlpuwxsl\":\"datazuaxtbr\",\"bj\":\"dataqlgxxbnrurtn\",\"fbmdemohls\":\"dataysupck\"}}") - .toObject(ODataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataSource model = new ODataSource().withSourceRetryCount("datakglynbqpeoj") - .withSourceRetryWait("databoggw") - .withMaxConcurrentConnections("datahtnywgtsodnxeir") - .withDisableMetricsCollection("datawjimcfrhtzgduvoa") - .withQuery("datahuboqozx") - .withHttpRequestTimeout("dataxamxi") - .withAdditionalColumns("datar"); - model = BinaryData.fromObject(model).toObject(ODataSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java deleted file mode 100644 index 1340b3723857..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OdbcSink; - -public final class OdbcSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcSink model = BinaryData.fromString( - "{\"type\":\"OdbcSink\",\"preCopyScript\":\"datauaqtqnqm\",\"writeBatchSize\":\"dataptzgomuju\",\"writeBatchTimeout\":\"datankuyombkgkyobu\",\"sinkRetryCount\":\"dataprvokodrpyxkzx\",\"sinkRetryWait\":\"datamoycufkxygxoubek\",\"maxConcurrentConnections\":\"datadxgtgcfk\",\"disableMetricsCollection\":\"datae\",\"\":{\"fpqebbqetx\":\"datahtlk\"}}") - .toObject(OdbcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSink model = new OdbcSink().withWriteBatchSize("dataptzgomuju") - .withWriteBatchTimeout("datankuyombkgkyobu") - .withSinkRetryCount("dataprvokodrpyxkzx") - .withSinkRetryWait("datamoycufkxygxoubek") - .withMaxConcurrentConnections("datadxgtgcfk") - .withDisableMetricsCollection("datae") - .withPreCopyScript("datauaqtqnqm"); - model = BinaryData.fromObject(model).toObject(OdbcSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java deleted file mode 100644 index f52a9d6b24a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OdbcSource; - -public final class OdbcSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcSource model = BinaryData.fromString( - "{\"type\":\"OdbcSource\",\"query\":\"databnekhjzbfb\",\"queryTimeout\":\"dataeqkuozarr\",\"additionalColumns\":\"datapyzryjb\",\"sourceRetryCount\":\"databcvoyqnrjdrc\",\"sourceRetryWait\":\"datarvzewogh\",\"maxConcurrentConnections\":\"datazxkjqecj\",\"disableMetricsCollection\":\"dataromeawthycbigpi\",\"\":{\"lawakhe\":\"dataxhzjnparsulmu\",\"talo\":\"dataxxqgoavzycxpza\",\"r\":\"datamftmxwtwzs\",\"qhfvouyqzhoik\":\"datarf\"}}") - .toObject(OdbcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSource model = new OdbcSource().withSourceRetryCount("databcvoyqnrjdrc") - .withSourceRetryWait("datarvzewogh") - .withMaxConcurrentConnections("datazxkjqecj") - .withDisableMetricsCollection("dataromeawthycbigpi") - .withQueryTimeout("dataeqkuozarr") - .withAdditionalColumns("datapyzryjb") - .withQuery("databnekhjzbfb"); - model = BinaryData.fromObject(model).toObject(OdbcSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java deleted file mode 100644 index cdf63329b486..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OdbcTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OdbcTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcTableDataset model = BinaryData.fromString( - "{\"type\":\"OdbcTable\",\"typeProperties\":{\"tableName\":\"databfb\"},\"description\":\"ow\",\"structure\":\"dataljdkxhmewyaolc\",\"schema\":\"datax\",\"linkedServiceName\":{\"referenceName\":\"rdpuyytbpkrp\",\"parameters\":{\"nefnoafp\":\"dataetpo\"}},\"parameters\":{\"ufcmuajwblxp\":{\"type\":\"String\",\"defaultValue\":\"datayrxowv\"}},\"annotations\":[\"datazfrfaw\",\"datannsvrfajynihti\",\"dataufgzq\"],\"folder\":{\"name\":\"uctblfehbgcgyoh\"},\"\":{\"xonebldxagmd\":\"dataeqljxdumhy\",\"xjsjqu\":\"datajwcngk\",\"crzhnsbylg\":\"dataohufzdtsrpjuvgz\",\"nbfulv\":\"datagbhuqczou\"}}") - .toObject(OdbcTableDataset.class); - Assertions.assertEquals("ow", model.description()); - Assertions.assertEquals("rdpuyytbpkrp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ufcmuajwblxp").type()); - Assertions.assertEquals("uctblfehbgcgyoh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDataset model = new OdbcTableDataset().withDescription("ow") - .withStructure("dataljdkxhmewyaolc") - .withSchema("datax") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rdpuyytbpkrp") - .withParameters(mapOf("nefnoafp", "dataetpo"))) - .withParameters(mapOf("ufcmuajwblxp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayrxowv"))) - .withAnnotations(Arrays.asList("datazfrfaw", "datannsvrfajynihti", "dataufgzq")) - .withFolder(new DatasetFolder().withName("uctblfehbgcgyoh")) - .withTableName("databfb"); - model = BinaryData.fromObject(model).toObject(OdbcTableDataset.class); - Assertions.assertEquals("ow", model.description()); - Assertions.assertEquals("rdpuyytbpkrp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ufcmuajwblxp").type()); - Assertions.assertEquals("uctblfehbgcgyoh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java deleted file mode 100644 index 468732663645..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OdbcTableDatasetTypeProperties; - -public final class OdbcTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"dataglxoqwbztilqb\"}") - .toObject(OdbcTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDatasetTypeProperties model = new OdbcTableDatasetTypeProperties().withTableName("dataglxoqwbztilqb"); - model = BinaryData.fromObject(model).toObject(OdbcTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java deleted file mode 100644 index b4ade61d499a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Office365Dataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class Office365DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365Dataset model = BinaryData.fromString( - "{\"type\":\"Office365Table\",\"typeProperties\":{\"tableName\":\"datactsmwpgweoqhbjq\",\"predicate\":\"datafblerufol\"},\"description\":\"shjucihbymjjvt\",\"structure\":\"dataerx\",\"schema\":\"dataeazr\",\"linkedServiceName\":{\"referenceName\":\"helhbimyi\",\"parameters\":{\"cthtpq\":\"dataa\",\"zkdiuvflgzhcw\":\"datafzdos\",\"g\":\"datagwahcrxo\"}},\"parameters\":{\"pmhz\":{\"type\":\"Float\",\"defaultValue\":\"datapccxziv\"},\"tujqzvhnjvpmxnh\":{\"type\":\"Float\",\"defaultValue\":\"datahkvnnj\"},\"lgxyf\":{\"type\":\"Array\",\"defaultValue\":\"datastqlfxolrwv\"},\"lzyyopoaytw\":{\"type\":\"SecureString\",\"defaultValue\":\"dataequ\"}},\"annotations\":[\"dataqubotbvuf\",\"datakwjiemimdtnpowe\"],\"folder\":{\"name\":\"kreeeddd\"},\"\":{\"igeeuwbr\":\"datafquulpclhs\",\"netdqw\":\"dataqyxfed\"}}") - .toObject(Office365Dataset.class); - Assertions.assertEquals("shjucihbymjjvt", model.description()); - Assertions.assertEquals("helhbimyi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("pmhz").type()); - Assertions.assertEquals("kreeeddd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Dataset model = new Office365Dataset().withDescription("shjucihbymjjvt") - .withStructure("dataerx") - .withSchema("dataeazr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("helhbimyi") - .withParameters(mapOf("cthtpq", "dataa", "zkdiuvflgzhcw", "datafzdos", "g", "datagwahcrxo"))) - .withParameters(mapOf("pmhz", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datapccxziv"), - "tujqzvhnjvpmxnh", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datahkvnnj"), "lgxyf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datastqlfxolrwv"), - "lzyyopoaytw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataequ"))) - .withAnnotations(Arrays.asList("dataqubotbvuf", "datakwjiemimdtnpowe")) - .withFolder(new DatasetFolder().withName("kreeeddd")) - .withTableName("datactsmwpgweoqhbjq") - .withPredicate("datafblerufol"); - model = BinaryData.fromObject(model).toObject(Office365Dataset.class); - Assertions.assertEquals("shjucihbymjjvt", model.description()); - Assertions.assertEquals("helhbimyi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("pmhz").type()); - Assertions.assertEquals("kreeeddd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java deleted file mode 100644 index 757ef6e4bf24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Office365DatasetTypeProperties; - -public final class Office365DatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365DatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datanxoqgv\",\"predicate\":\"datapgg\"}") - .toObject(Office365DatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365DatasetTypeProperties model - = new Office365DatasetTypeProperties().withTableName("datanxoqgv").withPredicate("datapgg"); - model = BinaryData.fromObject(model).toObject(Office365DatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java deleted file mode 100644 index bccf15af2d71..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Office365Source; - -public final class Office365SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365Source model = BinaryData.fromString( - "{\"type\":\"Office365Source\",\"allowedGroups\":\"datasdeequovanag\",\"userScopeFilterUri\":\"dataacsfbmb\",\"dateFilterColumn\":\"dataefqku\",\"startTime\":\"datayumoamqxwluslxyt\",\"endTime\":\"databjledjxblobknfpd\",\"outputColumns\":\"datahzgj\",\"sourceRetryCount\":\"dataomctbgoccypxsrh\",\"sourceRetryWait\":\"datalbnuflfzawk\",\"maxConcurrentConnections\":\"datae\",\"disableMetricsCollection\":\"databpyo\",\"\":{\"y\":\"datajpclboiojpjnhw\"}}") - .toObject(Office365Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Source model = new Office365Source().withSourceRetryCount("dataomctbgoccypxsrh") - .withSourceRetryWait("datalbnuflfzawk") - .withMaxConcurrentConnections("datae") - .withDisableMetricsCollection("databpyo") - .withAllowedGroups("datasdeequovanag") - .withUserScopeFilterUri("dataacsfbmb") - .withDateFilterColumn("dataefqku") - .withStartTime("datayumoamqxwluslxyt") - .withEndTime("databjledjxblobknfpd") - .withOutputColumns("datahzgj"); - model = BinaryData.fromObject(model).toObject(Office365Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationDisplayTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationDisplayTests.java deleted file mode 100644 index 6bee94c69be2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationDisplayTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData - .fromString( - "{\"description\":\"xinpmqnjaq\",\"provider\":\"xj\",\"resource\":\"r\",\"operation\":\"vcputegj\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("xinpmqnjaq", model.description()); - Assertions.assertEquals("xj", model.provider()); - Assertions.assertEquals("r", model.resource()); - Assertions.assertEquals("vcputegj", model.operation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay().withDescription("xinpmqnjaq") - .withProvider("xj") - .withResource("r") - .withOperation("vcputegj"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("xinpmqnjaq", model.description()); - Assertions.assertEquals("xj", model.provider()); - Assertions.assertEquals("r", model.resource()); - Assertions.assertEquals("vcputegj", model.operation()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationInnerTests.java deleted file mode 100644 index 374710606f40..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationInnerTests.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"itjz\",\"origin\":\"lusarh\",\"display\":{\"description\":\"cqhsm\",\"provider\":\"rkdtmlxh\",\"resource\":\"uksjtxukcdmp\",\"operation\":\"cryuan\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"xtayr\",\"displayName\":\"m\",\"blobDuration\":\"fp\"},{\"name\":\"qobmtukk\",\"displayName\":\"yrtih\",\"blobDuration\":\"tijbpzvgnwzsymgl\"},{\"name\":\"fcyzkohdbihanufh\",\"displayName\":\"bj\",\"blobDuration\":\"a\"},{\"name\":\"th\",\"displayName\":\"hab\",\"blobDuration\":\"pikxwczbyscnpqxu\"}],\"metricSpecifications\":[{\"name\":\"qniwbybrkxvdumj\",\"displayName\":\"tfwvukxgaudc\",\"displayDescription\":\"nhsjcnyej\",\"unit\":\"ryhtnapczwlokjy\",\"aggregationType\":\"kkvnipjox\",\"enableRegionalMdmAccount\":\"nchgej\",\"sourceMdmAccount\":\"odmailzyd\",\"sourceMdmNamespace\":\"o\",\"availabilities\":[{},{}],\"dimensions\":[{},{},{}]}]}}}") - .toObject(OperationInner.class); - Assertions.assertEquals("itjz", model.name()); - Assertions.assertEquals("lusarh", model.origin()); - Assertions.assertEquals("cqhsm", model.display().description()); - Assertions.assertEquals("rkdtmlxh", model.display().provider()); - Assertions.assertEquals("uksjtxukcdmp", model.display().resource()); - Assertions.assertEquals("cryuan", model.display().operation()); - Assertions.assertEquals("xtayr", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("qniwbybrkxvdumj", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("tfwvukxgaudc", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("nhsjcnyej", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("ryhtnapczwlokjy", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("kkvnipjox", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("nchgej", - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("odmailzyd", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("o", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withName("itjz") - .withOrigin("lusarh") - .withDisplay(new OperationDisplay().withDescription("cqhsm") - .withProvider("rkdtmlxh") - .withResource("uksjtxukcdmp") - .withOperation("cryuan")) - .withServiceSpecification(new OperationServiceSpecification() - .withLogSpecifications(Arrays.asList( - new OperationLogSpecification().withName("xtayr").withDisplayName("m").withBlobDuration("fp"), - new OperationLogSpecification().withName("qobmtukk") - .withDisplayName("yrtih") - .withBlobDuration("tijbpzvgnwzsymgl"), - new OperationLogSpecification().withName("fcyzkohdbihanufh") - .withDisplayName("bj") - .withBlobDuration("a"), - new OperationLogSpecification().withName("th") - .withDisplayName("hab") - .withBlobDuration("pikxwczbyscnpqxu"))) - .withMetricSpecifications(Arrays.asList(new OperationMetricSpecification().withName("qniwbybrkxvdumj") - .withDisplayName("tfwvukxgaudc") - .withDisplayDescription("nhsjcnyej") - .withUnit("ryhtnapczwlokjy") - .withAggregationType("kkvnipjox") - .withEnableRegionalMdmAccount("nchgej") - .withSourceMdmAccount("odmailzyd") - .withSourceMdmNamespace("o") - .withAvailabilities( - Arrays.asList(new OperationMetricAvailability(), new OperationMetricAvailability())) - .withDimensions(Arrays.asList(new OperationMetricDimension(), new OperationMetricDimension(), - new OperationMetricDimension()))))); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("itjz", model.name()); - Assertions.assertEquals("lusarh", model.origin()); - Assertions.assertEquals("cqhsm", model.display().description()); - Assertions.assertEquals("rkdtmlxh", model.display().provider()); - Assertions.assertEquals("uksjtxukcdmp", model.display().resource()); - Assertions.assertEquals("cryuan", model.display().operation()); - Assertions.assertEquals("xtayr", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("qniwbybrkxvdumj", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("tfwvukxgaudc", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("nhsjcnyej", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("ryhtnapczwlokjy", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("kkvnipjox", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("nchgej", - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("odmailzyd", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("o", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationListResponseTests.java deleted file mode 100644 index 12a2758f83c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationListResponseTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationListResponse; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResponse model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"origin\":\"tzopbsphrupidgsy\",\"display\":{\"description\":\"jhphoyc\",\"provider\":\"xaobhdxbmtqioqjz\",\"resource\":\"tbmufpo\",\"operation\":\"oizh\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{}],\"metricSpecifications\":[{},{},{}]}}},{\"name\":\"oqijgkdmbpaz\",\"origin\":\"bc\",\"display\":{\"description\":\"dznrbtcqq\",\"provider\":\"qglhq\",\"resource\":\"ufo\",\"operation\":\"jywif\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{}],\"metricSpecifications\":[{}]}}},{\"name\":\"f\",\"origin\":\"lzl\",\"display\":{\"description\":\"rifkwm\",\"provider\":\"ktsizntocipaou\",\"resource\":\"psqucmpoyf\",\"operation\":\"fogknygjofjdde\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{},{}],\"metricSpecifications\":[{},{}]}}}],\"nextLink\":\"wnw\"}") - .toObject(OperationListResponse.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("tzopbsphrupidgsy", model.value().get(0).origin()); - Assertions.assertEquals("jhphoyc", model.value().get(0).display().description()); - Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).display().provider()); - Assertions.assertEquals("tbmufpo", model.value().get(0).display().resource()); - Assertions.assertEquals("oizh", model.value().get(0).display().operation()); - Assertions.assertEquals("wnw", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResponse model = new OperationListResponse() - .withValue(Arrays.asList( - new OperationInner().withName("quvgjxpybczme") - .withOrigin("tzopbsphrupidgsy") - .withDisplay(new OperationDisplay().withDescription("jhphoyc") - .withProvider("xaobhdxbmtqioqjz") - .withResource("tbmufpo") - .withOperation("oizh")) - .withServiceSpecification(new OperationServiceSpecification() - .withLogSpecifications(Arrays.asList(new OperationLogSpecification(), - new OperationLogSpecification(), new OperationLogSpecification())) - .withMetricSpecifications(Arrays.asList(new OperationMetricSpecification(), - new OperationMetricSpecification(), new OperationMetricSpecification()))), - new OperationInner().withName("oqijgkdmbpaz") - .withOrigin("bc") - .withDisplay(new OperationDisplay().withDescription("dznrbtcqq") - .withProvider("qglhq") - .withResource("ufo") - .withOperation("jywif")) - .withServiceSpecification(new OperationServiceSpecification() - .withLogSpecifications( - Arrays.asList(new OperationLogSpecification(), new OperationLogSpecification())) - .withMetricSpecifications(Arrays.asList(new OperationMetricSpecification()))), - new OperationInner().withName("f") - .withOrigin("lzl") - .withDisplay(new OperationDisplay().withDescription("rifkwm") - .withProvider("ktsizntocipaou") - .withResource("psqucmpoyf") - .withOperation("fogknygjofjdde")) - .withServiceSpecification(new OperationServiceSpecification() - .withLogSpecifications( - Arrays.asList(new OperationLogSpecification(), new OperationLogSpecification(), - new OperationLogSpecification(), new OperationLogSpecification())) - .withMetricSpecifications( - Arrays.asList(new OperationMetricSpecification(), new OperationMetricSpecification()))))) - .withNextLink("wnw"); - model = BinaryData.fromObject(model).toObject(OperationListResponse.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("tzopbsphrupidgsy", model.value().get(0).origin()); - Assertions.assertEquals("jhphoyc", model.value().get(0).display().description()); - Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).display().provider()); - Assertions.assertEquals("tbmufpo", model.value().get(0).display().resource()); - Assertions.assertEquals("oizh", model.value().get(0).display().operation()); - Assertions.assertEquals("wnw", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationLogSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationLogSpecificationTests.java deleted file mode 100644 index c14a0858e383..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationLogSpecificationTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class OperationLogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationLogSpecification model = BinaryData - .fromString("{\"name\":\"ifiyipjxsqwpgrj\",\"displayName\":\"norcjxvsnbyxqab\",\"blobDuration\":\"ocpcy\"}") - .toObject(OperationLogSpecification.class); - Assertions.assertEquals("ifiyipjxsqwpgrj", model.name()); - Assertions.assertEquals("norcjxvsnbyxqab", model.displayName()); - Assertions.assertEquals("ocpcy", model.blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationLogSpecification model = new OperationLogSpecification().withName("ifiyipjxsqwpgrj") - .withDisplayName("norcjxvsnbyxqab") - .withBlobDuration("ocpcy"); - model = BinaryData.fromObject(model).toObject(OperationLogSpecification.class); - Assertions.assertEquals("ifiyipjxsqwpgrj", model.name()); - Assertions.assertEquals("norcjxvsnbyxqab", model.displayName()); - Assertions.assertEquals("ocpcy", model.blobDuration()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricAvailabilityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricAvailabilityTests.java deleted file mode 100644 index 90b0d7d1c715..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricAvailabilityTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetricAvailabilityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetricAvailability model - = BinaryData.fromString("{\"timeGrain\":\"ddntwndei\",\"blobDuration\":\"twnpzaoqvuhrhcf\"}") - .toObject(OperationMetricAvailability.class); - Assertions.assertEquals("ddntwndei", model.timeGrain()); - Assertions.assertEquals("twnpzaoqvuhrhcf", model.blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetricAvailability model - = new OperationMetricAvailability().withTimeGrain("ddntwndei").withBlobDuration("twnpzaoqvuhrhcf"); - model = BinaryData.fromObject(model).toObject(OperationMetricAvailability.class); - Assertions.assertEquals("ddntwndei", model.timeGrain()); - Assertions.assertEquals("twnpzaoqvuhrhcf", model.blobDuration()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricDimensionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricDimensionTests.java deleted file mode 100644 index ff1b280faca1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricDimensionTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetricDimensionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetricDimension model - = BinaryData.fromString("{\"name\":\"yd\",\"displayName\":\"lmjthjq\",\"toBeExportedForShoebox\":false}") - .toObject(OperationMetricDimension.class); - Assertions.assertEquals("yd", model.name()); - Assertions.assertEquals("lmjthjq", model.displayName()); - Assertions.assertEquals(false, model.toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetricDimension model = new OperationMetricDimension().withName("yd") - .withDisplayName("lmjthjq") - .withToBeExportedForShoebox(false); - model = BinaryData.fromObject(model).toObject(OperationMetricDimension.class); - Assertions.assertEquals("yd", model.name()); - Assertions.assertEquals("lmjthjq", model.displayName()); - Assertions.assertEquals(false, model.toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricSpecificationTests.java deleted file mode 100644 index 24b8fd36a913..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricSpecificationTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetricSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetricSpecification model = BinaryData.fromString( - "{\"name\":\"urzafb\",\"displayName\":\"j\",\"displayDescription\":\"btoqcjmkljavbqid\",\"unit\":\"ajzyul\",\"aggregationType\":\"u\",\"enableRegionalMdmAccount\":\"krlkhbzhfepg\",\"sourceMdmAccount\":\"qex\",\"sourceMdmNamespace\":\"ocxscpaierhhbcs\",\"availabilities\":[{\"timeGrain\":\"majtjaod\",\"blobDuration\":\"bnbdxkqpxokajion\"},{\"timeGrain\":\"mexgstxgcp\",\"blobDuration\":\"gmaajrm\"},{\"timeGrain\":\"jwzrl\",\"blobDuration\":\"mcl\"}],\"dimensions\":[{\"name\":\"coejctbzaqs\",\"displayName\":\"y\",\"toBeExportedForShoebox\":false},{\"name\":\"fkgukdkexxppof\",\"displayName\":\"axcfjpgddtocjjx\",\"toBeExportedForShoebox\":true},{\"name\":\"o\",\"displayName\":\"xhdzxibqeojnx\",\"toBeExportedForShoebox\":true}]}") - .toObject(OperationMetricSpecification.class); - Assertions.assertEquals("urzafb", model.name()); - Assertions.assertEquals("j", model.displayName()); - Assertions.assertEquals("btoqcjmkljavbqid", model.displayDescription()); - Assertions.assertEquals("ajzyul", model.unit()); - Assertions.assertEquals("u", model.aggregationType()); - Assertions.assertEquals("krlkhbzhfepg", model.enableRegionalMdmAccount()); - Assertions.assertEquals("qex", model.sourceMdmAccount()); - Assertions.assertEquals("ocxscpaierhhbcs", model.sourceMdmNamespace()); - Assertions.assertEquals("majtjaod", model.availabilities().get(0).timeGrain()); - Assertions.assertEquals("bnbdxkqpxokajion", model.availabilities().get(0).blobDuration()); - Assertions.assertEquals("coejctbzaqs", model.dimensions().get(0).name()); - Assertions.assertEquals("y", model.dimensions().get(0).displayName()); - Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetricSpecification model = new OperationMetricSpecification().withName("urzafb") - .withDisplayName("j") - .withDisplayDescription("btoqcjmkljavbqid") - .withUnit("ajzyul") - .withAggregationType("u") - .withEnableRegionalMdmAccount("krlkhbzhfepg") - .withSourceMdmAccount("qex") - .withSourceMdmNamespace("ocxscpaierhhbcs") - .withAvailabilities(Arrays.asList( - new OperationMetricAvailability().withTimeGrain("majtjaod").withBlobDuration("bnbdxkqpxokajion"), - new OperationMetricAvailability().withTimeGrain("mexgstxgcp").withBlobDuration("gmaajrm"), - new OperationMetricAvailability().withTimeGrain("jwzrl").withBlobDuration("mcl"))) - .withDimensions(Arrays.asList( - new OperationMetricDimension().withName("coejctbzaqs") - .withDisplayName("y") - .withToBeExportedForShoebox(false), - new OperationMetricDimension().withName("fkgukdkexxppof") - .withDisplayName("axcfjpgddtocjjx") - .withToBeExportedForShoebox(true), - new OperationMetricDimension().withName("o") - .withDisplayName("xhdzxibqeojnx") - .withToBeExportedForShoebox(true))); - model = BinaryData.fromObject(model).toObject(OperationMetricSpecification.class); - Assertions.assertEquals("urzafb", model.name()); - Assertions.assertEquals("j", model.displayName()); - Assertions.assertEquals("btoqcjmkljavbqid", model.displayDescription()); - Assertions.assertEquals("ajzyul", model.unit()); - Assertions.assertEquals("u", model.aggregationType()); - Assertions.assertEquals("krlkhbzhfepg", model.enableRegionalMdmAccount()); - Assertions.assertEquals("qex", model.sourceMdmAccount()); - Assertions.assertEquals("ocxscpaierhhbcs", model.sourceMdmNamespace()); - Assertions.assertEquals("majtjaod", model.availabilities().get(0).timeGrain()); - Assertions.assertEquals("bnbdxkqpxokajion", model.availabilities().get(0).blobDuration()); - Assertions.assertEquals("coejctbzaqs", model.dimensions().get(0).name()); - Assertions.assertEquals("y", model.dimensions().get(0).displayName()); - Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationPropertiesTests.java deleted file mode 100644 index ec62c748a605..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationPropertiesTests.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OperationProperties; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationProperties model = BinaryData.fromString( - "{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"atscmd\",\"displayName\":\"jhulsuuvmkjo\",\"blobDuration\":\"rwfndiod\"},{\"name\":\"slwejdpvw\",\"displayName\":\"oqpsoa\",\"blobDuration\":\"tazak\"}],\"metricSpecifications\":[{\"name\":\"hbcryffdfdosyge\",\"displayName\":\"aojakhmsbzjhcrz\",\"displayDescription\":\"dphlxaolt\",\"unit\":\"trg\",\"aggregationType\":\"bpf\",\"enableRegionalMdmAccount\":\"s\",\"sourceMdmAccount\":\"zgvfcjrwz\",\"sourceMdmNamespace\":\"xjtfelluwfzit\",\"availabilities\":[{\"timeGrain\":\"qfpjk\",\"blobDuration\":\"xofpdvhpfxxypi\"},{\"timeGrain\":\"nmayhuybb\",\"blobDuration\":\"odepoogin\"},{\"timeGrain\":\"amiheognarxz\",\"blobDuration\":\"heotusiv\"}],\"dimensions\":[{\"name\":\"ciqihnhung\",\"displayName\":\"jzrnf\",\"toBeExportedForShoebox\":true}]},{\"name\":\"ispe\",\"displayName\":\"tzfkufubl\",\"displayDescription\":\"fxqeof\",\"unit\":\"e\",\"aggregationType\":\"hqjbasvmsmj\",\"enableRegionalMdmAccount\":\"lngsntnbybkzgcwr\",\"sourceMdmAccount\":\"lxxwrljdouskc\",\"sourceMdmNamespace\":\"kocrcjdkwtnhx\",\"availabilities\":[{\"timeGrain\":\"iksqr\",\"blobDuration\":\"ssainqpjwnzll\"},{\"timeGrain\":\"mppeebvmgxs\",\"blobDuration\":\"kyqduujit\"},{\"timeGrain\":\"czdzev\",\"blobDuration\":\"hkr\"},{\"timeGrain\":\"d\",\"blobDuration\":\"p\"}],\"dimensions\":[{\"name\":\"kvwrwjfeu\",\"displayName\":\"hutje\",\"toBeExportedForShoebox\":false},{\"name\":\"ldhugjzzdatqxh\",\"displayName\":\"dgeablgphu\",\"toBeExportedForShoebox\":true},{\"name\":\"dvkaozw\",\"displayName\":\"ftyhxhurokf\",\"toBeExportedForShoebox\":true}]},{\"name\":\"lniwpwcukjfkgiaw\",\"displayName\":\"lryplwckbasyy\",\"displayDescription\":\"ddhsgcbacphe\",\"unit\":\"ot\",\"aggregationType\":\"qgoulznd\",\"enableRegionalMdmAccount\":\"kwy\",\"sourceMdmAccount\":\"gfgibm\",\"sourceMdmNamespace\":\"gakeqsr\",\"availabilities\":[{\"timeGrain\":\"qqedqytbciqfou\",\"blobDuration\":\"mmnkzsmodmgl\"},{\"timeGrain\":\"gpbkwtmut\",\"blobDuration\":\"qktapspwgcuert\"},{\"timeGrain\":\"kdosvqw\",\"blobDuration\":\"mdgbbjfdd\"},{\"timeGrain\":\"bmbexppbhtqqro\",\"blobDuration\":\"p\"}],\"dimensions\":[{\"name\":\"lgbquxig\",\"displayName\":\"jgzjaoyfhrtx\",\"toBeExportedForShoebox\":false}]}]}}") - .toObject(OperationProperties.class); - Assertions.assertEquals("atscmd", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jhulsuuvmkjo", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("rwfndiod", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hbcryffdfdosyge", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("aojakhmsbzjhcrz", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("dphlxaolt", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("trg", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("bpf", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("s", - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("zgvfcjrwz", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("xjtfelluwfzit", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("qfpjk", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("xofpdvhpfxxypi", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("ciqihnhung", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("jzrnf", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals(true, - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationProperties model - = new OperationProperties().withServiceSpecification(new OperationServiceSpecification() - .withLogSpecifications(Arrays.asList( - new OperationLogSpecification().withName("atscmd") - .withDisplayName("jhulsuuvmkjo") - .withBlobDuration("rwfndiod"), - new OperationLogSpecification().withName("slwejdpvw") - .withDisplayName("oqpsoa") - .withBlobDuration("tazak"))) - .withMetricSpecifications(Arrays.asList( - new OperationMetricSpecification().withName("hbcryffdfdosyge") - .withDisplayName("aojakhmsbzjhcrz") - .withDisplayDescription("dphlxaolt") - .withUnit("trg") - .withAggregationType("bpf") - .withEnableRegionalMdmAccount("s") - .withSourceMdmAccount("zgvfcjrwz") - .withSourceMdmNamespace("xjtfelluwfzit") - .withAvailabilities(Arrays.asList( - new OperationMetricAvailability().withTimeGrain("qfpjk").withBlobDuration("xofpdvhpfxxypi"), - new OperationMetricAvailability().withTimeGrain("nmayhuybb").withBlobDuration("odepoogin"), - new OperationMetricAvailability().withTimeGrain("amiheognarxz") - .withBlobDuration("heotusiv"))) - .withDimensions(Arrays.asList(new OperationMetricDimension().withName("ciqihnhung") - .withDisplayName("jzrnf") - .withToBeExportedForShoebox(true))), - new OperationMetricSpecification().withName("ispe") - .withDisplayName("tzfkufubl") - .withDisplayDescription("fxqeof") - .withUnit("e") - .withAggregationType("hqjbasvmsmj") - .withEnableRegionalMdmAccount("lngsntnbybkzgcwr") - .withSourceMdmAccount("lxxwrljdouskc") - .withSourceMdmNamespace("kocrcjdkwtnhx") - .withAvailabilities(Arrays.asList( - new OperationMetricAvailability().withTimeGrain("iksqr").withBlobDuration("ssainqpjwnzll"), - new OperationMetricAvailability().withTimeGrain("mppeebvmgxs") - .withBlobDuration("kyqduujit"), - new OperationMetricAvailability().withTimeGrain("czdzev").withBlobDuration("hkr"), - new OperationMetricAvailability().withTimeGrain("d").withBlobDuration("p"))) - .withDimensions(Arrays.asList( - new OperationMetricDimension().withName("kvwrwjfeu") - .withDisplayName("hutje") - .withToBeExportedForShoebox(false), - new OperationMetricDimension().withName("ldhugjzzdatqxh") - .withDisplayName("dgeablgphu") - .withToBeExportedForShoebox(true), - new OperationMetricDimension().withName("dvkaozw") - .withDisplayName("ftyhxhurokf") - .withToBeExportedForShoebox(true))), - new OperationMetricSpecification().withName("lniwpwcukjfkgiaw") - .withDisplayName("lryplwckbasyy") - .withDisplayDescription("ddhsgcbacphe") - .withUnit("ot") - .withAggregationType("qgoulznd") - .withEnableRegionalMdmAccount("kwy") - .withSourceMdmAccount("gfgibm") - .withSourceMdmNamespace("gakeqsr") - .withAvailabilities(Arrays.asList( - new OperationMetricAvailability().withTimeGrain("qqedqytbciqfou") - .withBlobDuration("mmnkzsmodmgl"), - new OperationMetricAvailability().withTimeGrain("gpbkwtmut") - .withBlobDuration("qktapspwgcuert"), - new OperationMetricAvailability().withTimeGrain("kdosvqw").withBlobDuration("mdgbbjfdd"), - new OperationMetricAvailability().withTimeGrain("bmbexppbhtqqro").withBlobDuration("p"))) - .withDimensions(Arrays.asList(new OperationMetricDimension().withName("lgbquxig") - .withDisplayName("jgzjaoyfhrtx") - .withToBeExportedForShoebox(false)))))); - model = BinaryData.fromObject(model).toObject(OperationProperties.class); - Assertions.assertEquals("atscmd", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jhulsuuvmkjo", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("rwfndiod", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hbcryffdfdosyge", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("aojakhmsbzjhcrz", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("dphlxaolt", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("trg", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("bpf", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("s", - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("zgvfcjrwz", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("xjtfelluwfzit", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("qfpjk", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("xofpdvhpfxxypi", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("ciqihnhung", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("jzrnf", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals(true, - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationServiceSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationServiceSpecificationTests.java deleted file mode 100644 index 426ce6ebce17..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationServiceSpecificationTests.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationServiceSpecification model = BinaryData.fromString( - "{\"logSpecifications\":[{\"name\":\"ujysvle\",\"displayName\":\"vfqawrlyxwjkcpr\",\"blobDuration\":\"wbxgjvt\"},{\"name\":\"p\",\"displayName\":\"szdnr\",\"blobDuration\":\"qguhmuo\"}],\"metricSpecifications\":[{\"name\":\"rwzwbng\",\"displayName\":\"tnwu\",\"displayDescription\":\"gazxuf\",\"unit\":\"uckyf\",\"aggregationType\":\"rfidfvzwdz\",\"enableRegionalMdmAccount\":\"tymw\",\"sourceMdmAccount\":\"dkfthwxmnt\",\"sourceMdmNamespace\":\"waopvkmijcmmxd\",\"availabilities\":[{\"timeGrain\":\"fsrpymzidnse\",\"blobDuration\":\"xtbzsgfyccsne\"},{\"timeGrain\":\"dwzjeiach\",\"blobDuration\":\"osfln\"},{\"timeGrain\":\"sfqpteehz\",\"blobDuration\":\"ypyqrimzinp\"}],\"dimensions\":[{\"name\":\"dkirsoodqxhcr\",\"displayName\":\"ohjtckw\",\"toBeExportedForShoebox\":true}]}]}") - .toObject(OperationServiceSpecification.class); - Assertions.assertEquals("ujysvle", model.logSpecifications().get(0).name()); - Assertions.assertEquals("vfqawrlyxwjkcpr", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("wbxgjvt", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("rwzwbng", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("tnwu", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("gazxuf", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("uckyf", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("rfidfvzwdz", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("tymw", model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("dkfthwxmnt", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("waopvkmijcmmxd", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("fsrpymzidnse", - model.metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("xtbzsgfyccsne", - model.metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("dkirsoodqxhcr", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ohjtckw", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationServiceSpecification model = new OperationServiceSpecification() - .withLogSpecifications(Arrays.asList( - new OperationLogSpecification() - .withName("ujysvle") - .withDisplayName("vfqawrlyxwjkcpr") - .withBlobDuration("wbxgjvt"), - new OperationLogSpecification().withName("p").withDisplayName("szdnr").withBlobDuration("qguhmuo"))) - .withMetricSpecifications(Arrays.asList(new OperationMetricSpecification().withName("rwzwbng") - .withDisplayName("tnwu") - .withDisplayDescription("gazxuf") - .withUnit("uckyf") - .withAggregationType("rfidfvzwdz") - .withEnableRegionalMdmAccount("tymw") - .withSourceMdmAccount("dkfthwxmnt") - .withSourceMdmNamespace("waopvkmijcmmxd") - .withAvailabilities(Arrays.asList( - new OperationMetricAvailability().withTimeGrain("fsrpymzidnse").withBlobDuration("xtbzsgfyccsne"), - new OperationMetricAvailability().withTimeGrain("dwzjeiach").withBlobDuration("osfln"), - new OperationMetricAvailability().withTimeGrain("sfqpteehz").withBlobDuration("ypyqrimzinp"))) - .withDimensions(Arrays.asList(new OperationMetricDimension().withName("dkirsoodqxhcr") - .withDisplayName("ohjtckw") - .withToBeExportedForShoebox(true))))); - model = BinaryData.fromObject(model).toObject(OperationServiceSpecification.class); - Assertions.assertEquals("ujysvle", model.logSpecifications().get(0).name()); - Assertions.assertEquals("vfqawrlyxwjkcpr", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("wbxgjvt", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("rwzwbng", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("tnwu", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("gazxuf", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("uckyf", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("rfidfvzwdz", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("tymw", model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("dkfthwxmnt", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("waopvkmijcmmxd", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("fsrpymzidnse", - model.metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("xtbzsgfyccsne", - model.metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("dkirsoodqxhcr", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ohjtckw", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationsListMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationsListMockTests.java deleted file mode 100644 index 28faa5170c9f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationsListMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"b\",\"origin\":\"eiakwdtuwbrw\",\"display\":{\"description\":\"tyuywzccumkliygr\",\"provider\":\"olvitbtloxr\",\"resource\":\"tzvrgoxpayjs\",\"operation\":\"rfqstbfuqmlnefvb\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"fshntykenmjznjq\",\"displayName\":\"yaaevrkxyjsuapp\",\"blobDuration\":\"ujiguusbwmsy\"},{\"name\":\"bjtzd\",\"displayName\":\"twkq\",\"blobDuration\":\"lfovmc\"}],\"metricSpecifications\":[{\"name\":\"ofqdvqvjfszvece\",\"displayName\":\"ptez\",\"displayDescription\":\"r\",\"unit\":\"urcjgkau\",\"aggregationType\":\"brdibdbkgxqs\",\"enableRegionalMdmAccount\":\"epduy\",\"sourceMdmAccount\":\"vjxarddb\",\"sourceMdmNamespace\":\"yaylt\",\"availabilities\":[{}],\"dimensions\":[{},{},{}]}]}}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("b", response.iterator().next().name()); - Assertions.assertEquals("eiakwdtuwbrw", response.iterator().next().origin()); - Assertions.assertEquals("tyuywzccumkliygr", response.iterator().next().display().description()); - Assertions.assertEquals("olvitbtloxr", response.iterator().next().display().provider()); - Assertions.assertEquals("tzvrgoxpayjs", response.iterator().next().display().resource()); - Assertions.assertEquals("rfqstbfuqmlnefvb", response.iterator().next().display().operation()); - Assertions.assertEquals("fshntykenmjznjq", - response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("yaaevrkxyjsuapp", - response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("ujiguusbwmsy", - response.iterator().next().serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("ofqdvqvjfszvece", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("ptez", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("r", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("urcjgkau", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("brdibdbkgxqs", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("epduy", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("vjxarddb", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("yaylt", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java deleted file mode 100644 index 941c291e749b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleCloudStorageLocation; - -public final class OracleCloudStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleCloudStorageLocation model = BinaryData.fromString( - "{\"type\":\"OracleCloudStorageLocation\",\"bucketName\":\"datajcxfno\",\"version\":\"dataegjdydhqkk\",\"folderPath\":\"datajuck\",\"fileName\":\"datatuqbhp\",\"\":{\"tpzdlyseidto\":\"datan\",\"d\":\"datakatprytgrhzbq\",\"rptvcshtkutzcttb\":\"datafa\"}}") - .toObject(OracleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageLocation model = new OracleCloudStorageLocation().withFolderPath("datajuck") - .withFileName("datatuqbhp") - .withBucketName("datajcxfno") - .withVersion("dataegjdydhqkk"); - model = BinaryData.fromObject(model).toObject(OracleCloudStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java deleted file mode 100644 index 085105e3832c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleCloudStorageReadSettings; - -public final class OracleCloudStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleCloudStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"OracleCloudStorageReadSettings\",\"recursive\":\"datarviynlslgxifkds\",\"wildcardFolderPath\":\"dataqwkddgep\",\"wildcardFileName\":\"dataambzfxgshaq\",\"prefix\":\"dataeqfniag\",\"fileListPath\":\"datayxsoxqa\",\"enablePartitionDiscovery\":\"datatunll\",\"partitionRootPath\":\"datat\",\"deleteFilesAfterCompletion\":\"dataguuhylzbdimtdohj\",\"modifiedDatetimeStart\":\"dataq\",\"modifiedDatetimeEnd\":\"datauwcilxznxhbttkk\",\"maxConcurrentConnections\":\"dataxjxueilixzjvkqj\",\"disableMetricsCollection\":\"datablhcmxx\",\"\":{\"kmsfsquxxqc\":\"datakxclj\",\"csmrtepsybdgtf\":\"datamnchvkjwriva\",\"bpbpqelmsz\":\"datazysfjdco\",\"drumududwecdsyb\":\"databtneltnbyvbg\"}}") - .toObject(OracleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageReadSettings model - = new OracleCloudStorageReadSettings().withMaxConcurrentConnections("dataxjxueilixzjvkqj") - .withDisableMetricsCollection("datablhcmxx") - .withRecursive("datarviynlslgxifkds") - .withWildcardFolderPath("dataqwkddgep") - .withWildcardFileName("dataambzfxgshaq") - .withPrefix("dataeqfniag") - .withFileListPath("datayxsoxqa") - .withEnablePartitionDiscovery("datatunll") - .withPartitionRootPath("datat") - .withDeleteFilesAfterCompletion("dataguuhylzbdimtdohj") - .withModifiedDatetimeStart("dataq") - .withModifiedDatetimeEnd("datauwcilxznxhbttkk"); - model = BinaryData.fromObject(model).toObject(OracleCloudStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OraclePartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OraclePartitionSettingsTests.java deleted file mode 100644 index f6f80849d668..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OraclePartitionSettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OraclePartitionSettings; - -public final class OraclePartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OraclePartitionSettings model = BinaryData.fromString( - "{\"partitionNames\":\"datast\",\"partitionColumnName\":\"datafbyfjslehgee\",\"partitionUpperBound\":\"datasoj\",\"partitionLowerBound\":\"dataarliig\"}") - .toObject(OraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OraclePartitionSettings model = new OraclePartitionSettings().withPartitionNames("datast") - .withPartitionColumnName("datafbyfjslehgee") - .withPartitionUpperBound("datasoj") - .withPartitionLowerBound("dataarliig"); - model = BinaryData.fromObject(model).toObject(OraclePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java deleted file mode 100644 index 49996a3a61e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OracleServiceCloudObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OracleServiceCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleServiceCloudObjectDataset model = BinaryData.fromString( - "{\"type\":\"OracleServiceCloudObject\",\"typeProperties\":{\"tableName\":\"datasyajmmczupd\"},\"description\":\"grufsdbkuxkdi\",\"structure\":\"datagsivxwkscwbsh\",\"schema\":\"datahvlms\",\"linkedServiceName\":{\"referenceName\":\"eylaulpuexy\",\"parameters\":{\"lspgnndefyhsb\":\"dataztyecxd\",\"ltaprq\":\"datahwlvsvs\",\"cuhbgftfvqukkmvz\":\"datafkmvzrkpmonxdw\",\"dqrjylwqqsemjhh\":\"dataneg\"}},\"parameters\":{\"tdpfz\":{\"type\":\"String\",\"defaultValue\":\"dataehztbejrdzwy\"},\"mjkykqflkm\":{\"type\":\"Bool\",\"defaultValue\":\"dataifnjwj\"},\"hc\":{\"type\":\"Bool\",\"defaultValue\":\"dataxmysmkbndnrihpja\"},\"ig\":{\"type\":\"Object\",\"defaultValue\":\"datajn\"}},\"annotations\":[\"datalkrnpsbnmrmhkip\"],\"folder\":{\"name\":\"dvdpfgwdxm\"},\"\":{\"unddvjlpbjszqj\":\"datalnpbiec\",\"ypbrzwi\":\"dataskjvaycxrwknsbg\",\"cebtpgvut\":\"datapzcyhk\"}}") - .toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("grufsdbkuxkdi", model.description()); - Assertions.assertEquals("eylaulpuexy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tdpfz").type()); - Assertions.assertEquals("dvdpfgwdxm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudObjectDataset model = new OracleServiceCloudObjectDataset().withDescription("grufsdbkuxkdi") - .withStructure("datagsivxwkscwbsh") - .withSchema("datahvlms") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("eylaulpuexy") - .withParameters(mapOf("lspgnndefyhsb", "dataztyecxd", "ltaprq", "datahwlvsvs", "cuhbgftfvqukkmvz", - "datafkmvzrkpmonxdw", "dqrjylwqqsemjhh", "dataneg"))) - .withParameters(mapOf("tdpfz", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataehztbejrdzwy"), - "mjkykqflkm", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataifnjwj"), - "hc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataxmysmkbndnrihpja"), - "ig", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datajn"))) - .withAnnotations(Arrays.asList("datalkrnpsbnmrmhkip")) - .withFolder(new DatasetFolder().withName("dvdpfgwdxm")) - .withTableName("datasyajmmczupd"); - model = BinaryData.fromObject(model).toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("grufsdbkuxkdi", model.description()); - Assertions.assertEquals("eylaulpuexy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tdpfz").type()); - Assertions.assertEquals("dvdpfgwdxm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java deleted file mode 100644 index b4da198118a5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleServiceCloudSource; - -public final class OracleServiceCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleServiceCloudSource model = BinaryData.fromString( - "{\"type\":\"OracleServiceCloudSource\",\"query\":\"datanywwkdxqqgysxpa\",\"queryTimeout\":\"datamthdqvcifwknlyt\",\"additionalColumns\":\"datartocadtnmqrpj\",\"sourceRetryCount\":\"datajixcya\",\"sourceRetryWait\":\"dataii\",\"maxConcurrentConnections\":\"datadbtrkv\",\"disableMetricsCollection\":\"datauessuuzfrw\",\"\":{\"sfbkrtpu\":\"datarngjqc\",\"jjbvv\":\"datapyeyqsini\"}}") - .toObject(OracleServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudSource model = new OracleServiceCloudSource().withSourceRetryCount("datajixcya") - .withSourceRetryWait("dataii") - .withMaxConcurrentConnections("datadbtrkv") - .withDisableMetricsCollection("datauessuuzfrw") - .withQueryTimeout("datamthdqvcifwknlyt") - .withAdditionalColumns("datartocadtnmqrpj") - .withQuery("datanywwkdxqqgysxpa"); - model = BinaryData.fromObject(model).toObject(OracleServiceCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java deleted file mode 100644 index 3f5945bba861..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleSink; - -public final class OracleSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleSink model = BinaryData.fromString( - "{\"type\":\"OracleSink\",\"preCopyScript\":\"datagal\",\"writeBatchSize\":\"dataflzuztd\",\"writeBatchTimeout\":\"dataroambzprhpwwarzj\",\"sinkRetryCount\":\"databwtag\",\"sinkRetryWait\":\"datariruvjizukyx\",\"maxConcurrentConnections\":\"datalyjdbsx\",\"disableMetricsCollection\":\"dataleqsk\",\"\":{\"brsmy\":\"datalagbellpkp\"}}") - .toObject(OracleSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSink model = new OracleSink().withWriteBatchSize("dataflzuztd") - .withWriteBatchTimeout("dataroambzprhpwwarzj") - .withSinkRetryCount("databwtag") - .withSinkRetryWait("datariruvjizukyx") - .withMaxConcurrentConnections("datalyjdbsx") - .withDisableMetricsCollection("dataleqsk") - .withPreCopyScript("datagal"); - model = BinaryData.fromObject(model).toObject(OracleSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java deleted file mode 100644 index 9301f2e61fdc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OraclePartitionSettings; -import com.azure.resourcemanager.datafactory.models.OracleSource; - -public final class OracleSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleSource model = BinaryData.fromString( - "{\"type\":\"OracleSource\",\"oracleReaderQuery\":\"datalwlppoh\",\"queryTimeout\":\"datafgalexy\",\"partitionOption\":\"datagkadtwd\",\"partitionSettings\":{\"partitionNames\":\"datajxtfvxcjd\",\"partitionColumnName\":\"datasg\",\"partitionUpperBound\":\"datayjkwltnsn\",\"partitionLowerBound\":\"datavm\"},\"additionalColumns\":\"dataihsclpnbidnlodkq\",\"sourceRetryCount\":\"datankptixawoyzg\",\"sourceRetryWait\":\"datavrygg\",\"maxConcurrentConnections\":\"datacp\",\"disableMetricsCollection\":\"datahoplqtzgtpsbym\",\"\":{\"rqzbqy\":\"datat\",\"ahbynlbwcnnfp\":\"datagfqqrarolc\"}}") - .toObject(OracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSource model = new OracleSource().withSourceRetryCount("datankptixawoyzg") - .withSourceRetryWait("datavrygg") - .withMaxConcurrentConnections("datacp") - .withDisableMetricsCollection("datahoplqtzgtpsbym") - .withOracleReaderQuery("datalwlppoh") - .withQueryTimeout("datafgalexy") - .withPartitionOption("datagkadtwd") - .withPartitionSettings(new OraclePartitionSettings().withPartitionNames("datajxtfvxcjd") - .withPartitionColumnName("datasg") - .withPartitionUpperBound("datayjkwltnsn") - .withPartitionLowerBound("datavm")) - .withAdditionalColumns("dataihsclpnbidnlodkq"); - model = BinaryData.fromObject(model).toObject(OracleSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java deleted file mode 100644 index bc57c556c7eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OracleTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OracleTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleTableDataset model = BinaryData.fromString( - "{\"type\":\"OracleTable\",\"typeProperties\":{\"tableName\":\"datazsxagysokli\",\"schema\":\"datas\",\"table\":\"datavrrbnhy\"},\"description\":\"bhujcydyl\",\"structure\":\"dataxvpstizsyqagqll\",\"schema\":\"datar\",\"linkedServiceName\":{\"referenceName\":\"aidyl\",\"parameters\":{\"jrnogykugdl\":\"datatrrqwfyybptm\",\"gthkslgeu\":\"datavsa\"}},\"parameters\":{\"lajybdnb\":{\"type\":\"String\",\"defaultValue\":\"databfbxj\"},\"zdjmofsvpzxgny\":{\"type\":\"String\",\"defaultValue\":\"databtois\"},\"ymg\":{\"type\":\"String\",\"defaultValue\":\"dataymlf\"}},\"annotations\":[\"dataszcfyzqpeqreg\",\"dataurd\"],\"folder\":{\"name\":\"knxmaovrgihlnz\"},\"\":{\"yafwtyd\":\"datawvqkycjcgeipqxxs\",\"hg\":\"datamma\",\"adj\":\"datalejqzhpvhxp\",\"qscjpvqerqxk\":\"dataeullgfyog\"}}") - .toObject(OracleTableDataset.class); - Assertions.assertEquals("bhujcydyl", model.description()); - Assertions.assertEquals("aidyl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("lajybdnb").type()); - Assertions.assertEquals("knxmaovrgihlnz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDataset model = new OracleTableDataset().withDescription("bhujcydyl") - .withStructure("dataxvpstizsyqagqll") - .withSchema("datar") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("aidyl") - .withParameters(mapOf("jrnogykugdl", "datatrrqwfyybptm", "gthkslgeu", "datavsa"))) - .withParameters(mapOf("lajybdnb", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databfbxj"), - "zdjmofsvpzxgny", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databtois"), "ymg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataymlf"))) - .withAnnotations(Arrays.asList("dataszcfyzqpeqreg", "dataurd")) - .withFolder(new DatasetFolder().withName("knxmaovrgihlnz")) - .withTableName("datazsxagysokli") - .withSchemaTypePropertiesSchema("datas") - .withTable("datavrrbnhy"); - model = BinaryData.fromObject(model).toObject(OracleTableDataset.class); - Assertions.assertEquals("bhujcydyl", model.description()); - Assertions.assertEquals("aidyl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("lajybdnb").type()); - Assertions.assertEquals("knxmaovrgihlnz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java deleted file mode 100644 index ca938b621ded..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OracleTableDatasetTypeProperties; - -public final class OracleTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datawdzpzl\",\"schema\":\"datauexlqpww\",\"table\":\"databjecfwl\"}") - .toObject(OracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDatasetTypeProperties model = new OracleTableDatasetTypeProperties().withTableName("datawdzpzl") - .withSchema("datauexlqpww") - .withTable("databjecfwl"); - model = BinaryData.fromObject(model).toObject(OracleTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java deleted file mode 100644 index e0cf01cbcfb3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcFormat; - -public final class OrcFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcFormat model = BinaryData.fromString( - "{\"type\":\"OrcFormat\",\"serializer\":\"dataanzbjekwuyckyvn\",\"deserializer\":\"datasmuffiwjb\",\"\":{\"scsl\":\"databpzujqjtotdxp\"}}") - .toObject(OrcFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcFormat model = new OrcFormat().withSerializer("dataanzbjekwuyckyvn").withDeserializer("datasmuffiwjb"); - model = BinaryData.fromObject(model).toObject(OrcFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java deleted file mode 100644 index 8213cdc29972..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.OrcSink; -import com.azure.resourcemanager.datafactory.models.OrcWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class OrcSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcSink model = BinaryData.fromString( - "{\"type\":\"OrcSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datadtuhdoimojcm\",\"disableMetricsCollection\":\"datacd\",\"copyBehavior\":\"datavorzhzfoc\",\"metadata\":[{\"name\":\"datatornvbhuyolwifbd\",\"value\":\"datavvcyw\"},{\"name\":\"datavkthrexzve\",\"value\":\"datazyuiklokeqeowb\"}],\"\":{\"bpobvjhun\":\"dataehvgchsgotgwe\",\"rxcei\":\"datac\",\"dtkllqhznutrx\":\"datav\"}},\"formatSettings\":{\"type\":\"OrcWriteSettings\",\"maxRowsPerFile\":\"datatrnniarjezjhy\",\"fileNamePrefix\":\"dataqf\",\"\":{\"ipshhetagwm\":\"dataesqykqfserls\",\"kehpdssvlubdp\":\"datagvnojgmobkaligoi\",\"mixu\":\"dataowxsxbxd\",\"hmtbu\":\"datacekcqmjqqauft\"}},\"writeBatchSize\":\"datacnkghkrbirshlh\",\"writeBatchTimeout\":\"datayod\",\"sinkRetryCount\":\"datawnqbpxy\",\"sinkRetryWait\":\"dataftxzovbhqels\",\"maxConcurrentConnections\":\"datafxejpocsgigsab\",\"disableMetricsCollection\":\"datandyjwmglgstrzfhe\",\"\":{\"ohnymfhmlji\":\"dataovkbcbe\",\"iszxdbg\":\"datakgfvzvmtjcxi\",\"izw\":\"dataceetuivmbu\"}}") - .toObject(OrcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSink model = new OrcSink().withWriteBatchSize("datacnkghkrbirshlh") - .withWriteBatchTimeout("datayod") - .withSinkRetryCount("datawnqbpxy") - .withSinkRetryWait("dataftxzovbhqels") - .withMaxConcurrentConnections("datafxejpocsgigsab") - .withDisableMetricsCollection("datandyjwmglgstrzfhe") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datadtuhdoimojcm") - .withDisableMetricsCollection("datacd") - .withCopyBehavior("datavorzhzfoc") - .withMetadata(Arrays.asList(new MetadataItem().withName("datatornvbhuyolwifbd").withValue("datavvcyw"), - new MetadataItem().withName("datavkthrexzve").withValue("datazyuiklokeqeowb"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings( - new OrcWriteSettings().withMaxRowsPerFile("datatrnniarjezjhy").withFileNamePrefix("dataqf")); - model = BinaryData.fromObject(model).toObject(OrcSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java deleted file mode 100644 index 2a9e3ae15667..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class OrcSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcSource model = BinaryData.fromString( - "{\"type\":\"OrcSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datagolfensibqi\",\"disableMetricsCollection\":\"datapyjzv\",\"\":{\"vz\":\"datalfs\"}},\"additionalColumns\":\"datavvwroug\",\"sourceRetryCount\":\"dataywgqrevbobheyx\",\"sourceRetryWait\":\"datacsktvkwb\",\"maxConcurrentConnections\":\"datakfvvxiikrja\",\"disableMetricsCollection\":\"datatvnmr\",\"\":{\"mhksgouzvegtnph\":\"dataypuotmkbofu\",\"aetsdufegb\":\"dataotrgyyjeagovjdun\",\"gzrzubdtzsac\":\"datavkuz\",\"kbxkzcfios\":\"datamhzpurnp\"}}") - .toObject(OrcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSource model = new OrcSource().withSourceRetryCount("dataywgqrevbobheyx") - .withSourceRetryWait("datacsktvkwb") - .withMaxConcurrentConnections("datakfvvxiikrja") - .withDisableMetricsCollection("datatvnmr") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datagolfensibqi") - .withDisableMetricsCollection("datapyjzv") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("datavvwroug"); - model = BinaryData.fromObject(model).toObject(OrcSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java deleted file mode 100644 index a0c926fa24bb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcWriteSettings; - -public final class OrcWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcWriteSettings model = BinaryData.fromString( - "{\"type\":\"OrcWriteSettings\",\"maxRowsPerFile\":\"datajqpxydpamctz\",\"fileNamePrefix\":\"datarhccdgunsjssreo\",\"\":{\"pgkxyrsppbghy\":\"datakoue\",\"awlqvuwsqmwqsgy\":\"datakgg\",\"o\":\"dataz\",\"ursumbci\":\"datatngxvrpkizjnkgd\"}}") - .toObject(OrcWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcWriteSettings model - = new OrcWriteSettings().withMaxRowsPerFile("datajqpxydpamctz").withFileNamePrefix("datarhccdgunsjssreo"); - model = BinaryData.fromObject(model).toObject(OrcWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PackageStoreTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PackageStoreTests.java deleted file mode 100644 index edb32f20345f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PackageStoreTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EntityReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType; -import com.azure.resourcemanager.datafactory.models.PackageStore; -import org.junit.jupiter.api.Assertions; - -public final class PackageStoreTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PackageStore model = BinaryData.fromString( - "{\"name\":\"nhyyqxckd\",\"packageStoreLinkedService\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"isrdnowinc\"}}") - .toObject(PackageStore.class); - Assertions.assertEquals("nhyyqxckd", model.name()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("isrdnowinc", model.packageStoreLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PackageStore model = new PackageStore().withName("nhyyqxckd") - .withPackageStoreLinkedService( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("isrdnowinc")); - model = BinaryData.fromObject(model).toObject(PackageStore.class); - Assertions.assertEquals("nhyyqxckd", model.name()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("isrdnowinc", model.packageStoreLinkedService().referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java deleted file mode 100644 index b0b8b62265ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import org.junit.jupiter.api.Assertions; - -public final class ParameterSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParameterSpecification model = BinaryData.fromString("{\"type\":\"Bool\",\"defaultValue\":\"dataouyftaakc\"}") - .toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.BOOL, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParameterSpecification model - = new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataouyftaakc"); - model = BinaryData.fromObject(model).toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.BOOL, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java deleted file mode 100644 index a5a49e04760d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetFormat; - -public final class ParquetFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetFormat model = BinaryData.fromString( - "{\"type\":\"ParquetFormat\",\"serializer\":\"datauusiecktybh\",\"deserializer\":\"dataxidhhxomil\",\"\":{\"il\":\"datajxdugxwj\"}}") - .toObject(ParquetFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetFormat model = new ParquetFormat().withSerializer("datauusiecktybh").withDeserializer("dataxidhhxomil"); - model = BinaryData.fromObject(model).toObject(ParquetFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetReadSettingsTests.java deleted file mode 100644 index 41430c1d5288..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.ParquetReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ParquetReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetReadSettings model = BinaryData.fromString( - "{\"type\":\"ParquetReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"efabgtcggoppm\":\"datapb\"}},\"\":{\"mzq\":\"dataougddycfyfaun\"}}") - .toObject(ParquetReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetReadSettings model = new ParquetReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(ParquetReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java deleted file mode 100644 index 6e70b0db1c41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.ParquetSink; -import com.azure.resourcemanager.datafactory.models.ParquetWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class ParquetSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetSink model = BinaryData.fromString( - "{\"type\":\"ParquetSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datadzh\",\"disableMetricsCollection\":\"datappqcgbp\",\"copyBehavior\":\"datani\",\"metadata\":[{\"name\":\"datalxuptbtl\",\"value\":\"datarjbakpasuugc\"}],\"\":{\"aimkoyrppsnljd\":\"dataulvdenhgu\",\"xbjqiabitevv\":\"datawkbozlmrhnghvlvd\"}},\"formatSettings\":{\"type\":\"ParquetWriteSettings\",\"maxRowsPerFile\":\"dataypyljz\",\"fileNamePrefix\":\"datakdfyvgcftaqydcr\",\"\":{\"azmrejzpxoqegerx\":\"datamneykxewem\",\"rt\":\"datalfnuglmyr\",\"zwgrs\":\"datakpo\",\"jzq\":\"dataitlmcaehjhwkl\"}},\"writeBatchSize\":\"dataypanwejbngojna\",\"writeBatchTimeout\":\"datawytkwtf\",\"sinkRetryCount\":\"dataafks\",\"sinkRetryWait\":\"datamfhruhw\",\"maxConcurrentConnections\":\"datanrdf\",\"disableMetricsCollection\":\"databhrvonea\",\"\":{\"to\":\"datamjigypbdfrtasaur\",\"ynn\":\"datalxojijttsyr\"}}") - .toObject(ParquetSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSink model = new ParquetSink().withWriteBatchSize("dataypanwejbngojna") - .withWriteBatchTimeout("datawytkwtf") - .withSinkRetryCount("dataafks") - .withSinkRetryWait("datamfhruhw") - .withMaxConcurrentConnections("datanrdf") - .withDisableMetricsCollection("databhrvonea") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datadzh") - .withDisableMetricsCollection("datappqcgbp") - .withCopyBehavior("datani") - .withMetadata(Arrays.asList(new MetadataItem().withName("datalxuptbtl").withValue("datarjbakpasuugc"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings( - new ParquetWriteSettings().withMaxRowsPerFile("dataypyljz").withFileNamePrefix("datakdfyvgcftaqydcr")); - model = BinaryData.fromObject(model).toObject(ParquetSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java deleted file mode 100644 index 550b820c4dd3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.ParquetReadSettings; -import com.azure.resourcemanager.datafactory.models.ParquetSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ParquetSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetSource model = BinaryData.fromString( - "{\"type\":\"ParquetSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datamzdnvno\",\"disableMetricsCollection\":\"datalgrenuqsgertx\",\"\":{\"aedbsl\":\"datamgsncbbdokp\",\"k\":\"datanunpxswmcc\"}},\"formatSettings\":{\"type\":\"ParquetReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"dc\":\"dataepxlxbo\"}},\"\":{\"sojwoixt\":\"dataacfskzwesetutq\",\"jka\":\"datanakytzcmagvs\"}},\"additionalColumns\":\"dataqh\",\"sourceRetryCount\":\"datawqhz\",\"sourceRetryWait\":\"datagmg\",\"maxConcurrentConnections\":\"datagmtywivbu\",\"disableMetricsCollection\":\"dataeedjnklvbrsxykwb\",\"\":{\"t\":\"datadudj\"}}") - .toObject(ParquetSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSource model = new ParquetSource().withSourceRetryCount("datawqhz") - .withSourceRetryWait("datagmg") - .withMaxConcurrentConnections("datagmtywivbu") - .withDisableMetricsCollection("dataeedjnklvbrsxykwb") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datamzdnvno") - .withDisableMetricsCollection("datalgrenuqsgertx") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new ParquetReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("dataqh"); - model = BinaryData.fromObject(model).toObject(ParquetSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java deleted file mode 100644 index 6630bb5dd297..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetWriteSettings; - -public final class ParquetWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetWriteSettings model = BinaryData.fromString( - "{\"type\":\"ParquetWriteSettings\",\"maxRowsPerFile\":\"datab\",\"fileNamePrefix\":\"datapsv\",\"\":{\"umuuyblolruf\":\"datah\",\"lbq\":\"datamg\",\"mxyjqhwsojnbbbgv\":\"datals\"}}") - .toObject(ParquetWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetWriteSettings model - = new ParquetWriteSettings().withMaxRowsPerFile("datab").withFileNamePrefix("datapsv"); - model = BinaryData.fromObject(model).toObject(ParquetWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java deleted file mode 100644 index 004f28c4cb27..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PaypalObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PaypalObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PaypalObjectDataset model = BinaryData.fromString( - "{\"type\":\"PaypalObject\",\"typeProperties\":{\"tableName\":\"dataamqobqehs\"},\"description\":\"htisyzfeoctr\",\"structure\":\"datawn\",\"schema\":\"datackze\",\"linkedServiceName\":{\"referenceName\":\"mbvwdxgy\",\"parameters\":{\"atkuhskegd\":\"dataxqzlmlnxr\",\"l\":\"datavvi\"}},\"parameters\":{\"pbusxy\":{\"type\":\"Int\",\"defaultValue\":\"dataxfzzjdm\"},\"kkbyg\":{\"type\":\"String\",\"defaultValue\":\"datazwplxzgzumnotii\"},\"wyshybbnhtt\":{\"type\":\"Array\",\"defaultValue\":\"dataq\"}},\"annotations\":[\"dataonzsurqcoj\",\"datasfzhzzcarciuoxyi\",\"datadthjfvnhwsgnsput\",\"datae\"],\"folder\":{\"name\":\"hnu\"},\"\":{\"h\":\"datajgbfbba\",\"vkbuxlepg\":\"dataxczzunfnbphcee\",\"tfsclgga\":\"datacnuqhqpvtw\"}}") - .toObject(PaypalObjectDataset.class); - Assertions.assertEquals("htisyzfeoctr", model.description()); - Assertions.assertEquals("mbvwdxgy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("pbusxy").type()); - Assertions.assertEquals("hnu", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalObjectDataset model = new PaypalObjectDataset().withDescription("htisyzfeoctr") - .withStructure("datawn") - .withSchema("datackze") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mbvwdxgy") - .withParameters(mapOf("atkuhskegd", "dataxqzlmlnxr", "l", "datavvi"))) - .withParameters(mapOf("pbusxy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataxfzzjdm"), "kkbyg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datazwplxzgzumnotii"), - "wyshybbnhtt", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataq"))) - .withAnnotations(Arrays.asList("dataonzsurqcoj", "datasfzhzzcarciuoxyi", "datadthjfvnhwsgnsput", "datae")) - .withFolder(new DatasetFolder().withName("hnu")) - .withTableName("dataamqobqehs"); - model = BinaryData.fromObject(model).toObject(PaypalObjectDataset.class); - Assertions.assertEquals("htisyzfeoctr", model.description()); - Assertions.assertEquals("mbvwdxgy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("pbusxy").type()); - Assertions.assertEquals("hnu", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java deleted file mode 100644 index 7ba2aa8c4855..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PaypalSource; - -public final class PaypalSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PaypalSource model = BinaryData.fromString( - "{\"type\":\"PaypalSource\",\"query\":\"datadtq\",\"queryTimeout\":\"datajbxol\",\"additionalColumns\":\"datahquqihgibog\",\"sourceRetryCount\":\"datajupenoupcolxc\",\"sourceRetryWait\":\"dataszwadesisd\",\"maxConcurrentConnections\":\"datauhqts\",\"disableMetricsCollection\":\"datab\",\"\":{\"bymrgelgoduexx\":\"dataeeucvv\",\"fr\":\"datad\",\"wqzvqtnozwphka\":\"dataenvkqtvtq\",\"bzbbjxkami\":\"dataracvcbrtltpo\"}}") - .toObject(PaypalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalSource model = new PaypalSource().withSourceRetryCount("datajupenoupcolxc") - .withSourceRetryWait("dataszwadesisd") - .withMaxConcurrentConnections("datauhqts") - .withDisableMetricsCollection("datab") - .withQueryTimeout("datajbxol") - .withAdditionalColumns("datahquqihgibog") - .withQuery("datadtq"); - model = BinaryData.fromObject(model).toObject(PaypalSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java deleted file mode 100644 index ff7f91b1bc98..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PhoenixDatasetTypeProperties; - -public final class PhoenixDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datapi\",\"table\":\"dataromppzsauqmeuhpl\",\"schema\":\"datampuai\"}") - .toObject(PhoenixDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixDatasetTypeProperties model = new PhoenixDatasetTypeProperties().withTableName("datapi") - .withTable("dataromppzsauqmeuhpl") - .withSchema("datampuai"); - model = BinaryData.fromObject(model).toObject(PhoenixDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java deleted file mode 100644 index 33b0d497a5de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PhoenixObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PhoenixObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixObjectDataset model = BinaryData.fromString( - "{\"type\":\"PhoenixObject\",\"typeProperties\":{\"tableName\":\"datantbfytnhdnihu\",\"table\":\"datajuzvwgbzdtorbi\",\"schema\":\"datayfzdp\"},\"description\":\"tsucrxdtejobjz\",\"structure\":\"datawtidcnzalgmpupj\",\"schema\":\"datatyl\",\"linkedServiceName\":{\"referenceName\":\"uudvbgvzlzjsb\",\"parameters\":{\"mbdqra\":\"datautzaziydpoknsea\",\"o\":\"datakdarl\"}},\"parameters\":{\"vclfjyclvi\":{\"type\":\"Int\",\"defaultValue\":\"dataqwzknyujxy\"},\"pfildcg\":{\"type\":\"Array\",\"defaultValue\":\"datafflleirmtxf\"},\"cryvidbzdylbvj\":{\"type\":\"Float\",\"defaultValue\":\"datauzfbp\"}},\"annotations\":[\"datangw\",\"dataxjftecgprz\"],\"folder\":{\"name\":\"pdqcakzbyqhaathx\"},\"\":{\"lhrvmgsbpgmncr\":\"datauucolusyruxrzh\"}}") - .toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("tsucrxdtejobjz", model.description()); - Assertions.assertEquals("uudvbgvzlzjsb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("vclfjyclvi").type()); - Assertions.assertEquals("pdqcakzbyqhaathx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixObjectDataset model = new PhoenixObjectDataset().withDescription("tsucrxdtejobjz") - .withStructure("datawtidcnzalgmpupj") - .withSchema("datatyl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uudvbgvzlzjsb") - .withParameters(mapOf("mbdqra", "datautzaziydpoknsea", "o", "datakdarl"))) - .withParameters(mapOf("vclfjyclvi", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataqwzknyujxy"), "pfildcg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datafflleirmtxf"), - "cryvidbzdylbvj", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datauzfbp"))) - .withAnnotations(Arrays.asList("datangw", "dataxjftecgprz")) - .withFolder(new DatasetFolder().withName("pdqcakzbyqhaathx")) - .withTableName("datantbfytnhdnihu") - .withTable("datajuzvwgbzdtorbi") - .withSchemaTypePropertiesSchema("datayfzdp"); - model = BinaryData.fromObject(model).toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("tsucrxdtejobjz", model.description()); - Assertions.assertEquals("uudvbgvzlzjsb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("vclfjyclvi").type()); - Assertions.assertEquals("pdqcakzbyqhaathx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java deleted file mode 100644 index bb2015b9ade3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PhoenixSource; - -public final class PhoenixSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixSource model = BinaryData.fromString( - "{\"type\":\"PhoenixSource\",\"query\":\"datav\",\"queryTimeout\":\"datapdv\",\"additionalColumns\":\"datayelrteunkwypu\",\"sourceRetryCount\":\"datafmsygt\",\"sourceRetryWait\":\"dataqlfdml\",\"maxConcurrentConnections\":\"datazdbrw\",\"disableMetricsCollection\":\"datawft\",\"\":{\"jsfgkwrcbgxypr\":\"dataxwi\",\"izabjb\":\"databpywecz\"}}") - .toObject(PhoenixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixSource model = new PhoenixSource().withSourceRetryCount("datafmsygt") - .withSourceRetryWait("dataqlfdml") - .withMaxConcurrentConnections("datazdbrw") - .withDisableMetricsCollection("datawft") - .withQueryTimeout("datapdv") - .withAdditionalColumns("datayelrteunkwypu") - .withQuery("datav"); - model = BinaryData.fromObject(model).toObject(PhoenixSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java deleted file mode 100644 index 36c86fdaedae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; - -public final class PipelineElapsedTimeMetricPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineElapsedTimeMetricPolicy model - = BinaryData.fromString("{\"duration\":\"datauors\"}").toObject(PipelineElapsedTimeMetricPolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineElapsedTimeMetricPolicy model = new PipelineElapsedTimeMetricPolicy().withDuration("datauors"); - model = BinaryData.fromObject(model).toObject(PipelineElapsedTimeMetricPolicy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java deleted file mode 100644 index a74bc9fda969..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineExternalComputeScaleProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineExternalComputeScalePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineExternalComputeScaleProperties model = BinaryData.fromString( - "{\"timeToLive\":1001059770,\"numberOfPipelineNodes\":1054291035,\"numberOfExternalNodes\":1861848330,\"\":{\"pjfkr\":\"dataohvia\",\"wwdocjasu\":\"datarerdlgbvtpxowg\",\"exumfavweslo\":\"datamegjkfisz\",\"scosanjsoutrz\":\"datalitxrrs\"}}") - .toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(1001059770, model.timeToLive()); - Assertions.assertEquals(1054291035, model.numberOfPipelineNodes()); - Assertions.assertEquals(1861848330, model.numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineExternalComputeScaleProperties model - = new PipelineExternalComputeScaleProperties().withTimeToLive(1001059770) - .withNumberOfPipelineNodes(1054291035) - .withNumberOfExternalNodes(1861848330) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(1001059770, model.timeToLive()); - Assertions.assertEquals(1054291035, model.numberOfPipelineNodes()); - Assertions.assertEquals(1861848330, model.numberOfExternalNodes()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java deleted file mode 100644 index c1e61973f0e5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import org.junit.jupiter.api.Assertions; - -public final class PipelineFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineFolder model = BinaryData.fromString("{\"name\":\"rxgibbd\"}").toObject(PipelineFolder.class); - Assertions.assertEquals("rxgibbd", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineFolder model = new PipelineFolder().withName("rxgibbd"); - model = BinaryData.fromObject(model).toObject(PipelineFolder.class); - Assertions.assertEquals("rxgibbd", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java deleted file mode 100644 index 87b28bf25fb7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelineListResponse; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"rsbrgzdwm\",\"activities\":[{\"type\":\"Activity\",\"name\":\"ypqwdxggiccc\",\"description\":\"qhuexm\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"lzywemhzrncsdtc\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"iypbsfgytgusl\",\"value\":\"dataeadcygqukyhejhz\"},{\"name\":\"sx\",\"value\":\"datafpel\"}],\"\":{\"srp\":\"datapv\"}},{\"type\":\"Activity\",\"name\":\"vu\",\"description\":\"raehtwdwrft\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"dl\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"hfwpracstwit\",\"value\":\"datakhevxccedc\"},{\"name\":\"nmdyodnwzxl\",\"value\":\"datajc\"},{\"name\":\"nhltiugcxn\",\"value\":\"datavvwxqi\"},{\"name\":\"y\",\"value\":\"dataunyowxwl\"}],\"\":{\"acizsjqlhkrr\":\"datarkvfgbvfvpdbo\",\"hvxndzwmkrefajpj\":\"databdeibqipqk\",\"yhgbijtjivfx\":\"datarwkq\",\"stawfsdjpvkv\":\"datasjabibs\"}},{\"type\":\"Activity\",\"name\":\"bjxbkzbzk\",\"description\":\"ncj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"kakmokzh\",\"dependencyConditions\":[]},{\"activity\":\"jk\",\"dependencyConditions\":[]},{\"activity\":\"ffhmouwqlgzr\",\"dependencyConditions\":[]},{\"activity\":\"zeeyebi\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ayuhqlbjbsy\",\"value\":\"databqwrvtldgm\"},{\"name\":\"pgvmpipaslthaqfx\",\"value\":\"datasmwutwbdsrezpd\"},{\"name\":\"hneuyowqkd\",\"value\":\"dataytisibir\"}],\"\":{\"lfzxiavrmbzonoki\":\"dataikpzimejza\",\"rgz\":\"datarjqc\"}},{\"type\":\"Activity\",\"name\":\"frl\",\"description\":\"szrnwo\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"pj\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"bt\",\"value\":\"datah\"},{\"name\":\"lsj\",\"value\":\"datadhszfjv\"},{\"name\":\"bgofeljag\",\"value\":\"dataqmqhldvriii\"}],\"\":{\"hfkvtvsexsowuel\":\"dataal\",\"wws\":\"dataqhhahhxvrhmzkwpj\",\"qxujxukndxd\":\"dataughftqsx\",\"syqtfi\":\"datagrjguufzd\"}}],\"parameters\":{\"szqzudphqamv\":{\"type\":\"Float\",\"defaultValue\":\"datatzingamvpph\"},\"nvyq\":{\"type\":\"Object\",\"defaultValue\":\"datawynwcvtbvkayhm\"},\"cjaesgvvs\":{\"type\":\"Float\",\"defaultValue\":\"datakzwpcnpw\"},\"wygzlvdnkfxusem\":{\"type\":\"Int\",\"defaultValue\":\"dataajguqf\"}},\"variables\":{\"pfcqdp\":{\"type\":\"Array\",\"defaultValue\":\"datauh\"},\"celve\":{\"type\":\"String\",\"defaultValue\":\"dataqvpsvuoymg\"},\"kerqwkyh\":{\"type\":\"Array\",\"defaultValue\":\"datapqlmfe\"},\"pc\":{\"type\":\"String\",\"defaultValue\":\"dataopgxedkowepb\"}},\"concurrency\":1318988279,\"annotations\":[\"dataccsnjvcdwxlpq\",\"datakftnkhtjsyin\",\"datawfqatmtd\",\"datatmdvypgikdgs\"],\"runDimensions\":{\"yuzhlhkjoqrvq\":\"datakbir\"},\"folder\":{\"name\":\"t\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datavgoup\"}}},\"name\":\"iibfggj\",\"type\":\"olvrw\",\"etag\":\"v\",\"\":{\"vjayvblmhvkzu\":\"datagllqwjy\"},\"id\":\"xvvy\"}],\"nextLink\":\"s\"}") - .toObject(PipelineListResponse.class); - Assertions.assertEquals("xvvy", model.value().get(0).id()); - Assertions.assertEquals("rsbrgzdwm", model.value().get(0).description()); - Assertions.assertEquals("ypqwdxggiccc", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("qhuexm", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.value().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lzywemhzrncsdtc", - model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("iypbsfgytgusl", - model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.value().get(0).parameters().get("szqzudphqamv").type()); - Assertions.assertEquals(VariableType.ARRAY, model.value().get(0).variables().get("pfcqdp").type()); - Assertions.assertEquals(1318988279, model.value().get(0).concurrency()); - Assertions.assertEquals("t", model.value().get(0).folder().name()); - Assertions.assertEquals("s", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineListResponse model = new PipelineListResponse() - .withValue(Arrays.asList(new PipelineResourceInner().withId("xvvy") - .withDescription("rsbrgzdwm") - .withActivities(Arrays.asList( - new Activity().withName("ypqwdxggiccc") - .withDescription("qhuexm") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("lzywemhzrncsdtc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("iypbsfgytgusl").withValue("dataeadcygqukyhejhz"), - new UserProperty().withName("sx").withValue("datafpel"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("vu") - .withDescription("raehtwdwrft") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("dl") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hfwpracstwit").withValue("datakhevxccedc"), - new UserProperty().withName("nmdyodnwzxl").withValue("datajc"), - new UserProperty().withName("nhltiugcxn").withValue("datavvwxqi"), - new UserProperty().withName("y").withValue("dataunyowxwl"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("bjxbkzbzk") - .withDescription("ncj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("kakmokzh") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jk") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ffhmouwqlgzr") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zeeyebi") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ayuhqlbjbsy").withValue("databqwrvtldgm"), - new UserProperty().withName("pgvmpipaslthaqfx").withValue("datasmwutwbdsrezpd"), - new UserProperty().withName("hneuyowqkd").withValue("dataytisibir"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("frl") - .withDescription("szrnwo") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("pj") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("bt").withValue("datah"), - new UserProperty().withName("lsj").withValue("datadhszfjv"), - new UserProperty().withName("bgofeljag").withValue("dataqmqhldvriii"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("szqzudphqamv", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatzingamvpph"), - "nvyq", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datawynwcvtbvkayhm"), - "cjaesgvvs", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakzwpcnpw"), - "wygzlvdnkfxusem", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataajguqf"))) - .withVariables(mapOf("pfcqdp", - new VariableSpecification().withType(VariableType.ARRAY).withDefaultValue("datauh"), "celve", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("dataqvpsvuoymg"), - "kerqwkyh", new VariableSpecification().withType(VariableType.ARRAY).withDefaultValue("datapqlmfe"), - "pc", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("dataopgxedkowepb"))) - .withConcurrency(1318988279) - .withAnnotations( - Arrays.asList("dataccsnjvcdwxlpq", "datakftnkhtjsyin", "datawfqatmtd", "datatmdvypgikdgs")) - .withRunDimensions(mapOf("yuzhlhkjoqrvq", "datakbir")) - .withFolder(new PipelineFolder().withName("t")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datavgoup"))) - .withAdditionalProperties(mapOf("name", "iibfggj", "etag", "v", "type", "olvrw")))) - .withNextLink("s"); - model = BinaryData.fromObject(model).toObject(PipelineListResponse.class); - Assertions.assertEquals("xvvy", model.value().get(0).id()); - Assertions.assertEquals("rsbrgzdwm", model.value().get(0).description()); - Assertions.assertEquals("ypqwdxggiccc", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("qhuexm", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.value().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lzywemhzrncsdtc", - model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("iypbsfgytgusl", - model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.value().get(0).parameters().get("szqzudphqamv").type()); - Assertions.assertEquals(VariableType.ARRAY, model.value().get(0).variables().get("pfcqdp").type()); - Assertions.assertEquals(1318988279, model.value().get(0).concurrency()); - Assertions.assertEquals("t", model.value().get(0).folder().name()); - Assertions.assertEquals("s", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java deleted file mode 100644 index bd53931558e8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; - -public final class PipelinePolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelinePolicy model = BinaryData.fromString("{\"elapsedTimeMetric\":{\"duration\":\"dataonfo\"}}") - .toObject(PipelinePolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelinePolicy model = new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("dataonfo")); - model = BinaryData.fromObject(model).toObject(PipelinePolicy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java deleted file mode 100644 index 06e627273375..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import org.junit.jupiter.api.Assertions; - -public final class PipelineReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineReference model - = BinaryData.fromString("{\"referenceName\":\"pycvjqdvdwkqpldr\",\"name\":\"fgnaavuagnteta\"}") - .toObject(PipelineReference.class); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.referenceName()); - Assertions.assertEquals("fgnaavuagnteta", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineReference model - = new PipelineReference().withReferenceName("pycvjqdvdwkqpldr").withName("fgnaavuagnteta"); - model = BinaryData.fromObject(model).toObject(PipelineReference.class); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.referenceName()); - Assertions.assertEquals("fgnaavuagnteta", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java deleted file mode 100644 index c95cf5fdf97c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineResourceInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"byrqufeg\",\"activities\":[{\"type\":\"Activity\",\"name\":\"wz\",\"description\":\"nhlmctlpdng\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"rixkwmyijejve\",\"dependencyConditions\":[\"Completed\"],\"\":{\"exccbdreaxhcexd\":\"datanai\"}},{\"activity\":\"rvqahqkghtpwi\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"voowvr\":\"datavfycxzb\",\"qp\":\"datamtg\",\"s\":\"datay\"}}],\"userProperties\":[{\"name\":\"nzm\",\"value\":\"datahgfipnsxkmcw\"}],\"\":{\"hjglikk\":\"datarrjreafxtsgu\",\"uzlm\":\"datawslolbqp\"}}],\"parameters\":{\"wjxeznoigbr\":{\"type\":\"Array\",\"defaultValue\":\"dataktgplcr\"}},\"variables\":{\"azej\":{\"type\":\"String\",\"defaultValue\":\"datakpnb\"}},\"concurrency\":2849760,\"annotations\":[\"datagfhsxttaugzxn\",\"dataaa\",\"datapxdtnkdmkq\"],\"runDimensions\":{\"pyouaibrebqaays\":\"datawuenvr\",\"zlwfffiakp\":\"datakixqtnqtt\",\"tmmjihyeozph\":\"datapqqmted\"},\"folder\":{\"name\":\"uyqncygupkvipmd\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataqupevzh\"}}},\"name\":\"totxhojujb\",\"type\":\"elmcuvhixbjxyfw\",\"etag\":\"lrcoolsttpki\",\"\":{\"ncu\":\"databnujrywvtylbf\",\"thtywub\":\"datadoiwi\"},\"id\":\"bihwqknfdnt\"}") - .toObject(PipelineResourceInner.class); - Assertions.assertEquals("bihwqknfdnt", model.id()); - Assertions.assertEquals("byrqufeg", model.description()); - Assertions.assertEquals("wz", model.activities().get(0).name()); - Assertions.assertEquals("nhlmctlpdng", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("rixkwmyijejve", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nzm", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("wjxeznoigbr").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("azej").type()); - Assertions.assertEquals(2849760, model.concurrency()); - Assertions.assertEquals("uyqncygupkvipmd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineResourceInner model = new PipelineResourceInner().withId("bihwqknfdnt") - .withDescription("byrqufeg") - .withActivities(Arrays.asList(new Activity().withName("wz") - .withDescription("nhlmctlpdng") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("rixkwmyijejve") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rvqahqkghtpwi") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("nzm").withValue("datahgfipnsxkmcw"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("wjxeznoigbr", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataktgplcr"))) - .withVariables( - mapOf("azej", new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datakpnb"))) - .withConcurrency(2849760) - .withAnnotations(Arrays.asList("datagfhsxttaugzxn", "dataaa", "datapxdtnkdmkq")) - .withRunDimensions( - mapOf("pyouaibrebqaays", "datawuenvr", "zlwfffiakp", "datakixqtnqtt", "tmmjihyeozph", "datapqqmted")) - .withFolder(new PipelineFolder().withName("uyqncygupkvipmd")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("dataqupevzh"))) - .withAdditionalProperties(mapOf("name", "totxhojujb", "etag", "lrcoolsttpki", "type", "elmcuvhixbjxyfw")); - model = BinaryData.fromObject(model).toObject(PipelineResourceInner.class); - Assertions.assertEquals("bihwqknfdnt", model.id()); - Assertions.assertEquals("byrqufeg", model.description()); - Assertions.assertEquals("wz", model.activities().get(0).name()); - Assertions.assertEquals("nhlmctlpdng", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("rixkwmyijejve", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nzm", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("wjxeznoigbr").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("azej").type()); - Assertions.assertEquals(2849760, model.concurrency()); - Assertions.assertEquals("uyqncygupkvipmd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java deleted file mode 100644 index 96e63f70850d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import java.util.HashMap; -import java.util.Map; - -public final class PipelineRunInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineRunInner model = BinaryData.fromString( - "{\"runId\":\"m\",\"runGroupId\":\"fpmvmemfnczd\",\"isLatest\":true,\"pipelineName\":\"alxlllchp\",\"parameters\":{\"jcswsmys\":\"zevwrdnhfukuv\",\"lerchpq\":\"uluqypfc\"},\"runDimensions\":{\"sspuunnoxyhkx\":\"pjbabwidfc\"},\"invokedBy\":{\"name\":\"drihpfhoqcaaewda\",\"id\":\"djvlpj\",\"invokedByType\":\"kzbrmsgeivsiy\",\"pipelineName\":\"kdncj\",\"pipelineRunId\":\"onbzoggculapzwy\"},\"lastUpdated\":\"2021-08-05T01:58:35Z\",\"runStart\":\"2021-06-21T04:03:02Z\",\"runEnd\":\"2021-07-13T09:34:39Z\",\"durationInMs\":2072237694,\"status\":\"n\",\"message\":\"b\",\"\":{\"hvfcibyfmow\":\"datajlyjtlvofq\",\"fzwiivwzjbhyz\":\"dataxrkjpvdw\",\"mbtrnegvmnvu\":\"dataxjrk\",\"bkkd\":\"dataeqvldspast\"}}") - .toObject(PipelineRunInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineRunInner model = new PipelineRunInner().withAdditionalProperties(mapOf("durationInMs", 2072237694, - "runDimensions", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"sspuunnoxyhkx\":\"pjbabwidfc\"}", Object.class, SerializerEncoding.JSON), - "invokedBy", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"name\":\"drihpfhoqcaaewda\",\"id\":\"djvlpj\",\"invokedByType\":\"kzbrmsgeivsiy\",\"pipelineName\":\"kdncj\",\"pipelineRunId\":\"onbzoggculapzwy\"}", - Object.class, SerializerEncoding.JSON), - "runStart", "2021-06-21T04:03:02Z", "message", "b", "pipelineName", "alxlllchp", "lastUpdated", - "2021-08-05T01:58:35Z", "isLatest", true, "runId", "m", "runEnd", "2021-07-13T09:34:39Z", "runGroupId", - "fpmvmemfnczd", "parameters", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"jcswsmys\":\"zevwrdnhfukuv\",\"lerchpq\":\"uluqypfc\"}", Object.class, - SerializerEncoding.JSON), - "status", "n")); - model = BinaryData.fromObject(model).toObject(PipelineRunInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java deleted file mode 100644 index 44ebd892bb62..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineRunInvokedBy; - -public final class PipelineRunInvokedByTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineRunInvokedBy model = BinaryData.fromString( - "{\"name\":\"lves\",\"id\":\"jlxr\",\"invokedByType\":\"lozapeewchpxlk\",\"pipelineName\":\"kuziycsle\",\"pipelineRunId\":\"f\"}") - .toObject(PipelineRunInvokedBy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineRunInvokedBy model = new PipelineRunInvokedBy(); - model = BinaryData.fromObject(model).toObject(PipelineRunInvokedBy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java deleted file mode 100644 index 788f2070cfdf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PipelineRunsCancelWithResponseMockTests { - @Test - public void testCancelWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.pipelineRuns() - .cancelWithResponse("uv", "uweqbeygnetuvs", "vgjvumdznblkofd", false, com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetWithResponseMockTests.java deleted file mode 100644 index b562475110d1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PipelineRun; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PipelineRunsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"runId\":\"wzm\",\"runGroupId\":\"plzbzcgzhdrv\",\"isLatest\":false,\"pipelineName\":\"hfogjoocnseo\",\"parameters\":{\"zglgx\":\"tqrvzaabeiqopj\",\"hbieeswb\":\"qdlwuzkz\",\"otsawapm\":\"bijtepr\",\"bwy\":\"yfgswpqunvxtv\"},\"runDimensions\":{\"zwkzedi\":\"qpqyjebgveu\",\"ohz\":\"wdrrgzguupwq\",\"nco\":\"fbb\",\"jshyyrcr\":\"iniadlx\"},\"invokedBy\":{\"name\":\"qsfaurmqpkgwf\",\"id\":\"t\",\"invokedByType\":\"hmrhhx\",\"pipelineName\":\"bdnpeamslv\",\"pipelineRunId\":\"sywnifvwrdya\"},\"lastUpdated\":\"2021-01-05T09:04:18Z\",\"runStart\":\"2021-05-21T20:59:20Z\",\"runEnd\":\"2021-04-22T06:44:56Z\",\"durationInMs\":1046273347,\"status\":\"vvebxgxgr\",\"message\":\"oabhkyaspc\",\"\":{\"yxlcgycvcspcfx\":\"dataevjndvafxcvn\",\"ioqtafmbxtn\":\"dataal\",\"y\":\"datax\",\"a\":\"datarut\"}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PipelineRun response = manager.pipelineRuns() - .getWithResponse("kpsw", "sveymd", "bmffcryyykwwhscu", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java deleted file mode 100644 index 0500af19fc9f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Pipeline; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Pipeline model = BinaryData.fromString( - "{\"description\":\"chrdgoihxumwcto\",\"activities\":[{\"type\":\"Activity\",\"name\":\"jl\",\"description\":\"dfdlwggyts\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"gseinq\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Succeeded\"],\"\":{\"msniffc\":\"datanpirgnepttw\",\"frddhcrati\":\"datamqnrojlpijnkr\",\"zq\":\"datazronasxift\",\"tw\":\"datazh\"}},{\"activity\":\"sgogczhonnxk\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"dhqxvcx\":\"datamossxkkgthrrghxj\",\"buswdvzyy\":\"datafrpdsofbshrns\",\"awnopqgikyzirtxd\":\"dataycnunvjsrtk\"}},{\"activity\":\"uxzejntpsew\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"eoxorggufhyao\":\"datarydxtqm\"}},{\"activity\":\"tbghhavgrvkf\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\",\"Failed\"],\"\":{\"cluyovwxnbkf\":\"databibgjmfxumv\",\"zbomvzzbtdcqvpni\":\"datazzxscyhwzdgiruj\"}}],\"userProperties\":[{\"name\":\"viylwdshfssnrbgy\",\"value\":\"datafrymsgaojfmwnc\"},{\"name\":\"tmr\",\"value\":\"datahirctymoxoftpipi\"},{\"name\":\"yczuhxacpq\",\"value\":\"datalihhyuspskasdvlm\"}],\"\":{\"ulucv\":\"datagz\",\"urisjnhnytxifqj\":\"dataamrsreuzv\",\"esutrgjupauutpw\":\"datagxmrhublwp\",\"jqgwzp\":\"dataqhih\"}}],\"parameters\":{\"oimwkslirc\":{\"type\":\"Float\",\"defaultValue\":\"datacypsxjv\"},\"ftumrtwnawjslbiw\":{\"type\":\"Object\",\"defaultValue\":\"dataxvydfceacvlhvygd\"},\"ph\":{\"type\":\"Bool\",\"defaultValue\":\"datagcyztsfmznbae\"},\"ehuwrykqgaifmvik\":{\"type\":\"Int\",\"defaultValue\":\"datanrnrp\"}},\"variables\":{\"dsrhnjiv\":{\"type\":\"Bool\",\"defaultValue\":\"datakhbejdznxc\"}},\"concurrency\":1976490,\"annotations\":[\"dataovqfzge\",\"datajdftuljltd\"],\"runDimensions\":{\"o\":\"dataamtmcz\",\"ssxmojms\":\"dataejwcwwqiok\"},\"folder\":{\"name\":\"jpr\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datafz\"}}}") - .toObject(Pipeline.class); - Assertions.assertEquals("chrdgoihxumwcto", model.description()); - Assertions.assertEquals("jl", model.activities().get(0).name()); - Assertions.assertEquals("dfdlwggyts", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gseinq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("viylwdshfssnrbgy", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("oimwkslirc").type()); - Assertions.assertEquals(VariableType.BOOL, model.variables().get("dsrhnjiv").type()); - Assertions.assertEquals(1976490, model.concurrency()); - Assertions.assertEquals("jpr", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Pipeline model = new Pipeline().withDescription("chrdgoihxumwcto") - .withActivities(Arrays.asList(new Activity().withName("jl") - .withDescription("dfdlwggyts") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gseinq") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("sgogczhonnxk") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("uxzejntpsew") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tbghhavgrvkf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("viylwdshfssnrbgy").withValue("datafrymsgaojfmwnc"), - new UserProperty().withName("tmr").withValue("datahirctymoxoftpipi"), - new UserProperty().withName("yczuhxacpq").withValue("datalihhyuspskasdvlm"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("oimwkslirc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datacypsxjv"), - "ftumrtwnawjslbiw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataxvydfceacvlhvygd"), - "ph", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datagcyztsfmznbae"), - "ehuwrykqgaifmvik", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanrnrp"))) - .withVariables(mapOf("dsrhnjiv", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("datakhbejdznxc"))) - .withConcurrency(1976490) - .withAnnotations(Arrays.asList("dataovqfzge", "datajdftuljltd")) - .withRunDimensions(mapOf("o", "dataamtmcz", "ssxmojms", "dataejwcwwqiok")) - .withFolder(new PipelineFolder().withName("jpr")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datafz"))); - model = BinaryData.fromObject(model).toObject(Pipeline.class); - Assertions.assertEquals("chrdgoihxumwcto", model.description()); - Assertions.assertEquals("jl", model.activities().get(0).name()); - Assertions.assertEquals("dfdlwggyts", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gseinq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("viylwdshfssnrbgy", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("oimwkslirc").type()); - Assertions.assertEquals(VariableType.BOOL, model.variables().get("dsrhnjiv").type()); - Assertions.assertEquals(1976490, model.concurrency()); - Assertions.assertEquals("jpr", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index bdb0c1d39cf5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PipelinesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"description\":\"srysgab\",\"activities\":[{\"type\":\"Activity\",\"name\":\"pvadyxjcckhgstoh\",\"description\":\"rqbzlmvw\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"qumpspo\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"pnyzytgkdwvt\",\"value\":\"datamvqliqzf\"},{\"name\":\"lprljilpuav\",\"value\":\"dataidytjmkfx\"},{\"name\":\"go\",\"value\":\"datackmmagfbreyvr\"}],\"\":{\"urlywxjvs\":\"dataikwqtlgfry\",\"qmikljczxotblx\":\"datazchysqypt\"}},{\"type\":\"Activity\",\"name\":\"pqfxyywsxrxv\",\"description\":\"wkzaqqkqyijy\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"qiqzmgx\",\"dependencyConditions\":[]},{\"activity\":\"nldbkuqc\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"wzqnbjkstvbmfnj\",\"value\":\"dataz\"}],\"\":{\"agehqghxj\":\"dataowyyy\",\"xpaytzqgsaegaahw\":\"dataiggcaimk\",\"hgrgiu\":\"dataerd\"}}],\"parameters\":{\"brdamdnebko\":{\"type\":\"Bool\",\"defaultValue\":\"datavoskji\"},\"hepjs\":{\"type\":\"String\",\"defaultValue\":\"dataknmza\"},\"bw\":{\"type\":\"Bool\",\"defaultValue\":\"datauhhfohsp\"},\"djsakigrlmiglnqr\":{\"type\":\"Int\",\"defaultValue\":\"datalavuecmdmcor\"}},\"variables\":{\"di\":{\"type\":\"Array\",\"defaultValue\":\"dataquwsfebhvkk\"},\"yotejljdrerzjwex\":{\"type\":\"String\",\"defaultValue\":\"datalioagvijr\"},\"dcxf\":{\"type\":\"String\",\"defaultValue\":\"dataxbeufzb\"}},\"concurrency\":886481924,\"annotations\":[\"datazme\",\"datacjsneybpqot\",\"datadb\",\"dataljs\"],\"runDimensions\":{\"lauupwt\":\"datauptre\",\"ab\":\"datatpbi\",\"kxbgfed\":\"dataegcogyctekaaju\"},\"folder\":{\"name\":\"jsyors\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datatqragq\"}}},\"name\":\"ouxspkxapqgyh\",\"type\":\"qkkwzbgbwwop\",\"etag\":\"dwsekr\",\"\":{\"btztwvhgkmxarqt\":\"datalqstmi\",\"oxdwox\":\"datazeo\",\"bswfjrtxf\":\"datanqt\",\"flbaxywojtryrd\":\"datahaqpmlyzwgotl\"},\"id\":\"gt\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PipelineResource response = manager.pipelines() - .define("brkrfvlqwije") - .withExistingFactory("fhqxhtcohrhw", "vvomcjpjrxvsgga") - .withDescription("npihtgigaeeqg") - .withActivities(Arrays.asList( - new Activity().withName("rozlfccpgeqix") - .withDescription("gltqld") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("ld") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("cajhnnbp").withValue("datanogyvpfyjlfnjmwb"), - new UserProperty().withName("oqhy").withValue("datarpwkvz"), - new UserProperty().withName("bvdlhcyoykmp").withValue("datatfc"), - new UserProperty().withName("ugitjnwajqzig").withValue("datafea"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("edaqpquzcvmrux") - .withDescription("slausvbvtctiso") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("bacmnjzjjrhvd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fstmbbjil") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ctykc").withValue("dataksvflurrfnlhlfv"), - new UserProperty().withName("rohyecblvpwu").withValue("dataqvmfuuhm"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("mgvipzvvrfplkemv") - .withDescription("gezy") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("wplyv") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("pemcf").withValue("dataxkifjvil"), - new UserProperty().withName("zopwud").withValue("dataew"), - new UserProperty().withName("xaufowhmd").withValue("dataggakt"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("ftdfmzlgjcepx", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataaddmji"), "wyclehagb", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datawvpavutis"), - "mpzamq", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataet"))) - .withVariables(mapOf("hmwxhvspumokm", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("datayyphtd"))) - .withConcurrency(1435502173) - .withAnnotations(Arrays.asList("datatpvebxesuc", "dataynsqxyowwrb", "dataej")) - .withRunDimensions(mapOf("sw", "datarshl")) - .withFolder(new PipelineFolder().withName("rusxyugidk")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datavdtrtkqqd"))) - .withIfMatch("kmdaihgiglk") - .create(); - - Assertions.assertEquals("gt", response.id()); - Assertions.assertEquals("srysgab", response.description()); - Assertions.assertEquals("pvadyxjcckhgstoh", response.activities().get(0).name()); - Assertions.assertEquals("rqbzlmvw", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("qumpspo", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("pnyzytgkdwvt", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.BOOL, response.parameters().get("brdamdnebko").type()); - Assertions.assertEquals(VariableType.ARRAY, response.variables().get("di").type()); - Assertions.assertEquals(886481924, response.concurrency()); - Assertions.assertEquals("jsyors", response.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.java deleted file mode 100644 index ad45d274fc47..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CreateRunResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PipelinesCreateRunWithResponseMockTests { - @Test - public void testCreateRunWithResponse() throws Exception { - String responseStr = "{\"runId\":\"ucsop\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CreateRunResponse response = manager.pipelines() - .createRunWithResponse("xiiumrdbqujyij", "ciaznpsvgupqwqs", "mntlbfknxzc", "uvjbfryortbres", true, - "cpbtvgiokz", false, - mapOf("ubggjdluwbmwu", "datavswdwawomkzussgj", "ptwvamymswfwc", "databekzcmfibboz"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ucsop", response.runId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.java deleted file mode 100644 index 515775e6f061..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PipelinesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.pipelines() - .deleteWithResponse("fkrtsaeagvqctcrd", "xqhnw", "ujrnfdqlzggvo", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetWithResponseMockTests.java deleted file mode 100644 index a6c181659804..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetWithResponseMockTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PipelinesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"description\":\"xweuoklwtoecxndh\",\"activities\":[{\"type\":\"Activity\",\"name\":\"jcjocunanwutv\",\"description\":\"plhfwqdvd\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ynbhltrmbhlhyqgf\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"lr\",\"value\":\"datadqwpudvup\"},{\"name\":\"izztkl\",\"value\":\"datashdeehtjmdefkphs\"}],\"\":{\"opcnnpjulpw\":\"datavya\"}},{\"type\":\"Activity\",\"name\":\"mxwlwcurkfxzja\",\"description\":\"pbju\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"uxmpnugujiw\",\"dependencyConditions\":[]},{\"activity\":\"duns\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"obanxshltfghy\",\"value\":\"dataqxruqrobk\"},{\"name\":\"enpybuskvjb\",\"value\":\"datagkqudxvj\"},{\"name\":\"ndbinqqrkkgawn\",\"value\":\"dataeoeui\"}],\"\":{\"iskqxeclw\":\"datavaxyitnzpfdoete\",\"r\":\"dataso\"}},{\"type\":\"Activity\",\"name\":\"nfmxomupdqpcxiv\",\"description\":\"dvwmefjpoell\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ltrztr\",\"dependencyConditions\":[]},{\"activity\":\"oyrjvrxyrxhfrsyc\",\"dependencyConditions\":[]},{\"activity\":\"qwefmqhtrzlvf\",\"dependencyConditions\":[]},{\"activity\":\"cphh\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"awffrzgeobz\",\"value\":\"dataxzraihl\"}],\"\":{\"syceykvmlxhym\":\"dataojpnxzjrccy\"}}],\"parameters\":{\"tmpwzlb\":{\"type\":\"Bool\",\"defaultValue\":\"datapymroyygt\"},\"cfjw\":{\"type\":\"Bool\",\"defaultValue\":\"datavxdfkdwkhmno\"}},\"variables\":{\"zwrfdjx\":{\"type\":\"Array\",\"defaultValue\":\"datagmd\"},\"fisggoapxdmxwet\":{\"type\":\"Bool\",\"defaultValue\":\"datasmdrecrrbkmz\"},\"ctdxargqff\":{\"type\":\"String\",\"defaultValue\":\"dataxekql\"},\"lzbtqzjmi\":{\"type\":\"Bool\",\"defaultValue\":\"datafbfqw\"}},\"concurrency\":1818860634,\"annotations\":[\"dataf\"],\"runDimensions\":{\"ptsjecqwdosbsng\":\"datawumrfjj\"},\"folder\":{\"name\":\"cwdxvlk\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datawrgr\"}}},\"name\":\"blrqeqcdikcqc\",\"type\":\"dtfthnjxid\",\"etag\":\"mm\",\"\":{\"kuqrrzuegin\":\"dataxgxtccmq\",\"racqmfji\":\"datalnteoapszxqnjxv\",\"oijtlhxlsxx\":\"datamcgz\"},\"id\":\"fgaicgqg\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PipelineResource response = manager.pipelines() - .getWithResponse("iqq", "dgyshpvva", "vq", "wrchwdxdkvqqtfjj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("fgaicgqg", response.id()); - Assertions.assertEquals("xweuoklwtoecxndh", response.description()); - Assertions.assertEquals("jcjocunanwutv", response.activities().get(0).name()); - Assertions.assertEquals("plhfwqdvd", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ynbhltrmbhlhyqgf", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("lr", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.BOOL, response.parameters().get("tmpwzlb").type()); - Assertions.assertEquals(VariableType.ARRAY, response.variables().get("zwrfdjx").type()); - Assertions.assertEquals(1818860634, response.concurrency()); - Assertions.assertEquals("cwdxvlk", response.folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.java deleted file mode 100644 index dc3709bdc182..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PipelinesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"gxsfeslxwlmx\",\"activities\":[{\"type\":\"Activity\",\"name\":\"bi\",\"description\":\"tblomidvicdquf\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"bdt\",\"dependencyConditions\":[]},{\"activity\":\"klths\",\"dependencyConditions\":[]},{\"activity\":\"asnxdhlovktrfdip\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"xxosbydryysv\",\"value\":\"dataxpzsx\"},{\"name\":\"fnkjjwtynp\",\"value\":\"datairltzyuahnl\"}],\"\":{\"zezfhfjjjzcxtz\":\"datapjssdtysnlxwq\",\"qhph\":\"dataoloosceukqi\",\"oqmxkxfmwbrvslfo\":\"dataqkkacw\"}}],\"parameters\":{\"uj\":{\"type\":\"Array\",\"defaultValue\":\"dataemzrpdnu\"},\"dqfynrdagmihxjpf\":{\"type\":\"SecureString\",\"defaultValue\":\"databgcloknh\"},\"frmqbmcmgezapu\":{\"type\":\"Int\",\"defaultValue\":\"datauibczlre\"},\"gjweelkviki\":{\"type\":\"Array\",\"defaultValue\":\"datayokftdlwezplnzvr\"}},\"variables\":{\"cxwthkljk\":{\"type\":\"Bool\",\"defaultValue\":\"datawgsqosr\"},\"qfryketwrzx\":{\"type\":\"Bool\",\"defaultValue\":\"datafcr\"},\"yqnjfjyppix\":{\"type\":\"Bool\",\"defaultValue\":\"datayifkg\"},\"sp\":{\"type\":\"Array\",\"defaultValue\":\"datakfjtvlwyetyrnh\"}},\"concurrency\":1297296760,\"annotations\":[\"datanlypspn\"],\"runDimensions\":{\"b\":\"datapoangrlmaixrb\",\"mkeiunxtbme\":\"datar\",\"hfcaiz\":\"datazfoxdtzzmcrm\",\"fljv\":\"datauiyuzufdmsbvyg\"},\"folder\":{\"name\":\"k\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datazfauhnxxdyahlg\"}}},\"name\":\"cjpkzmhaxtwjimlf\",\"type\":\"mynmmmglbxoeghor\",\"etag\":\"cp\",\"\":{\"ca\":\"datazczlvql\"},\"id\":\"hsart\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.pipelines().listByFactory("bvvuyoilnixwxw", "quuvb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hsart", response.iterator().next().id()); - Assertions.assertEquals("gxsfeslxwlmx", response.iterator().next().description()); - Assertions.assertEquals("bi", response.iterator().next().activities().get(0).name()); - Assertions.assertEquals("tblomidvicdquf", response.iterator().next().activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, response.iterator().next().activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - response.iterator().next().activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("bdt", response.iterator().next().activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("xxosbydryysv", - response.iterator().next().activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.ARRAY, response.iterator().next().parameters().get("uj").type()); - Assertions.assertEquals(VariableType.BOOL, response.iterator().next().variables().get("cxwthkljk").type()); - Assertions.assertEquals(1297296760, response.iterator().next().concurrency()); - Assertions.assertEquals("k", response.iterator().next().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java deleted file mode 100644 index 9672a66497d5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PolybaseSettings; -import com.azure.resourcemanager.datafactory.models.PolybaseSettingsRejectType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PolybaseSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolybaseSettings model = BinaryData.fromString( - "{\"rejectType\":\"percentage\",\"rejectValue\":\"datafaekpxvetdrcmts\",\"rejectSampleValue\":\"datawt\",\"useTypeDefault\":\"datany\",\"\":{\"ekzy\":\"datarfvoskwujhskx\"}}") - .toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.PERCENTAGE, model.rejectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolybaseSettings model = new PolybaseSettings().withRejectType(PolybaseSettingsRejectType.PERCENTAGE) - .withRejectValue("datafaekpxvetdrcmts") - .withRejectSampleValue("datawt") - .withUseTypeDefault("datany") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.PERCENTAGE, model.rejectType()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java deleted file mode 100644 index 0fe119f01c69..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PostgreSqlSource; - -public final class PostgreSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlSource model = BinaryData.fromString( - "{\"type\":\"PostgreSqlSource\",\"query\":\"datahjybboqyxi\",\"queryTimeout\":\"datadvdgemy\",\"additionalColumns\":\"dataddzjtxlvgslmgl\",\"sourceRetryCount\":\"dataeyvag\",\"sourceRetryWait\":\"datafqpaexlltme\",\"maxConcurrentConnections\":\"dataaeigrhrdn\",\"disableMetricsCollection\":\"datavsrtqltawjkra\",\"\":{\"sb\":\"datalpy\",\"x\":\"datanwiwru\",\"lhbrwaltvkyl\":\"datayr\"}}") - .toObject(PostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlSource model = new PostgreSqlSource().withSourceRetryCount("dataeyvag") - .withSourceRetryWait("datafqpaexlltme") - .withMaxConcurrentConnections("dataaeigrhrdn") - .withDisableMetricsCollection("datavsrtqltawjkra") - .withQueryTimeout("datadvdgemy") - .withAdditionalColumns("dataddzjtxlvgslmgl") - .withQuery("datahjybboqyxi"); - model = BinaryData.fromObject(model).toObject(PostgreSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java deleted file mode 100644 index 4bc9cb620b56..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PostgreSqlTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PostgreSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlTableDataset model = BinaryData.fromString( - "{\"type\":\"PostgreSqlTable\",\"typeProperties\":{\"tableName\":\"datansastl\",\"table\":\"datamgomicttrvlv\",\"schema\":\"datamxokxxamqecjrzvl\"},\"description\":\"vqxdemklphx\",\"structure\":\"datawlojkbgnfbrzj\",\"schema\":\"datasunhaevlah\",\"linkedServiceName\":{\"referenceName\":\"czywywuahwc\",\"parameters\":{\"jfdaj\":\"datawcnnaax\",\"omggew\":\"datafgi\",\"yznvussu\":\"dataqbxex\",\"xayzqbyeyw\":\"datakslws\"}},\"parameters\":{\"dzt\":{\"type\":\"String\",\"defaultValue\":\"datartlikff\"},\"dteqjmyqxuhg\":{\"type\":\"String\",\"defaultValue\":\"datafbgynzfwv\"},\"wrrlccklyf\":{\"type\":\"Array\",\"defaultValue\":\"datanyprijyoxxjxbs\"},\"apvibzi\":{\"type\":\"Array\",\"defaultValue\":\"dataspauemqomxoalknu\"}},\"annotations\":[\"dataichca\"],\"folder\":{\"name\":\"hjxnrkbnvfccklz\"},\"\":{\"pksywicklktgkdp\":\"datafgvlxyxmncti\",\"efuhb\":\"datatqjytdc\"}}") - .toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("vqxdemklphx", model.description()); - Assertions.assertEquals("czywywuahwc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("dzt").type()); - Assertions.assertEquals("hjxnrkbnvfccklz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDataset model = new PostgreSqlTableDataset().withDescription("vqxdemklphx") - .withStructure("datawlojkbgnfbrzj") - .withSchema("datasunhaevlah") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("czywywuahwc") - .withParameters(mapOf("jfdaj", "datawcnnaax", "omggew", "datafgi", "yznvussu", "dataqbxex", - "xayzqbyeyw", "datakslws"))) - .withParameters(mapOf("dzt", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datartlikff"), - "dteqjmyqxuhg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafbgynzfwv"), - "wrrlccklyf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datanyprijyoxxjxbs"), - "apvibzi", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataspauemqomxoalknu"))) - .withAnnotations(Arrays.asList("dataichca")) - .withFolder(new DatasetFolder().withName("hjxnrkbnvfccklz")) - .withTableName("datansastl") - .withTable("datamgomicttrvlv") - .withSchemaTypePropertiesSchema("datamxokxxamqecjrzvl"); - model = BinaryData.fromObject(model).toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("vqxdemklphx", model.description()); - Assertions.assertEquals("czywywuahwc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("dzt").type()); - Assertions.assertEquals("hjxnrkbnvfccklz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 5019d7b83bfc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlTableDatasetTypeProperties; - -public final class PostgreSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"databvjsbgmlamoax\",\"table\":\"dataytn\",\"schema\":\"datavbpbl\"}") - .toObject(PostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model - = new PostgreSqlTableDatasetTypeProperties().withTableName("databvjsbgmlamoax") - .withTable("dataytn") - .withSchema("datavbpbl"); - model = BinaryData.fromObject(model).toObject(PostgreSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2SourceTests.java deleted file mode 100644 index 45a61377472d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2SourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PostgreSqlV2Source; - -public final class PostgreSqlV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlV2Source model = BinaryData.fromString( - "{\"type\":\"PostgreSqlV2Source\",\"query\":\"dataopqtegkrjolbaegh\",\"queryTimeout\":\"datasscismrnneklfi\",\"additionalColumns\":\"dataysfclxtf\",\"sourceRetryCount\":\"datadwqzbiukzmfyfvy\",\"sourceRetryWait\":\"dataofaiwlnfvexiuuqa\",\"maxConcurrentConnections\":\"datalseyxpgkmlnj\",\"disableMetricsCollection\":\"dataaywgc\",\"\":{\"wv\":\"datafafpyglnfwjs\"}}") - .toObject(PostgreSqlV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2Source model = new PostgreSqlV2Source().withSourceRetryCount("datadwqzbiukzmfyfvy") - .withSourceRetryWait("dataofaiwlnfvexiuuqa") - .withMaxConcurrentConnections("datalseyxpgkmlnj") - .withDisableMetricsCollection("dataaywgc") - .withQueryTimeout("datasscismrnneklfi") - .withAdditionalColumns("dataysfclxtf") - .withQuery("dataopqtegkrjolbaegh"); - model = BinaryData.fromObject(model).toObject(PostgreSqlV2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.java deleted file mode 100644 index 8001875c8967..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PostgreSqlV2TableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PostgreSqlV2TableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlV2TableDataset model = BinaryData.fromString( - "{\"type\":\"PostgreSqlV2Table\",\"typeProperties\":{\"table\":\"datasexheeocnqoubvep\",\"schema\":\"dataryszfhdxyfh\"},\"description\":\"hzbzhhavz\",\"structure\":\"dataxnvkdslcofuvtfue\",\"schema\":\"datauisaklhjfddxqfu\",\"linkedServiceName\":{\"referenceName\":\"subzsspmj\",\"parameters\":{\"wbztrt\":\"datalfauyvxpqwlkqd\",\"ffjdhgslormhbt\":\"dataldwvog\",\"sdylmnq\":\"datafcvxkylhc\"}},\"parameters\":{\"bgbh\":{\"type\":\"Object\",\"defaultValue\":\"databptmsgkwedwlxtzh\"},\"pkwmamrlfizjud\":{\"type\":\"SecureString\",\"defaultValue\":\"datarpjimvrrqfi\"},\"pngyhylqyafe\":{\"type\":\"String\",\"defaultValue\":\"dataih\"},\"u\":{\"type\":\"Int\",\"defaultValue\":\"dataodx\"}},\"annotations\":[\"dataxnxrqxrtzeargv\"],\"folder\":{\"name\":\"hbjhmvpjxsd\"},\"\":{\"ynepkt\":\"dataignybffqcw\",\"conyse\":\"datamwg\",\"ouoxfalo\":\"datajijfhpxni\"}}") - .toObject(PostgreSqlV2TableDataset.class); - Assertions.assertEquals("hzbzhhavz", model.description()); - Assertions.assertEquals("subzsspmj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("bgbh").type()); - Assertions.assertEquals("hbjhmvpjxsd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2TableDataset model - = new PostgreSqlV2TableDataset().withDescription("hzbzhhavz") - .withStructure("dataxnvkdslcofuvtfue") - .withSchema("datauisaklhjfddxqfu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("subzsspmj") - .withParameters(mapOf("wbztrt", "datalfauyvxpqwlkqd", "ffjdhgslormhbt", "dataldwvog", "sdylmnq", - "datafcvxkylhc"))) - .withParameters(mapOf("bgbh", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("databptmsgkwedwlxtzh"), - "pkwmamrlfizjud", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datarpjimvrrqfi"), - "pngyhylqyafe", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataih"), "u", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataodx"))) - .withAnnotations(Arrays.asList("dataxnxrqxrtzeargv")) - .withFolder(new DatasetFolder().withName("hbjhmvpjxsd")) - .withTable("datasexheeocnqoubvep") - .withSchemaTypePropertiesSchema("dataryszfhdxyfh"); - model = BinaryData.fromObject(model).toObject(PostgreSqlV2TableDataset.class); - Assertions.assertEquals("hzbzhhavz", model.description()); - Assertions.assertEquals("subzsspmj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("bgbh").type()); - Assertions.assertEquals("hbjhmvpjxsd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTypePropertiesTests.java deleted file mode 100644 index ab3523081dbd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlV2TableDatasetTypeProperties; - -public final class PostgreSqlV2TableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlV2TableDatasetTypeProperties model - = BinaryData.fromString("{\"table\":\"dataskk\",\"schema\":\"dataorsyni\"}") - .toObject(PostgreSqlV2TableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2TableDatasetTypeProperties model - = new PostgreSqlV2TableDatasetTypeProperties().withTable("dataskk").withSchema("dataorsyni"); - model = BinaryData.fromObject(model).toObject(PostgreSqlV2TableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java deleted file mode 100644 index 5335203a3d1b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySinkMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySinkMapping model = BinaryData.fromString( - "{\"queryName\":\"igohafudt\",\"dataflowSinks\":[{\"script\":\"pueqgrcn\",\"schemaLinkedService\":{\"referenceName\":\"cqg\",\"parameters\":{\"gjlxdddvfnqaz\":\"datanvfzlmugxpuget\",\"zkdqimu\":\"dataavspjdxay\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"ijcullk\",\"parameters\":{\"vrxy\":\"datasyyredzhnyli\",\"vjsqazecdomjrr\":\"datap\",\"aqxstykus\":\"datalwrvi\"}},\"name\":\"qmgjexiqejvpdrcn\",\"description\":\"x\",\"dataset\":{\"referenceName\":\"rqa\",\"parameters\":{\"zyycev\":\"datar\",\"y\":\"dataazwewhobxlk\",\"nuxvyalkcuozwow\":\"dataspidcnxjfgx\",\"qlb\":\"datamulqgaeqnlx\"}},\"linkedService\":{\"referenceName\":\"zcwfscxkr\",\"parameters\":{\"ko\":\"dataepdvxmkzgrrg\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ebwdvuvq\",\"datasetParameters\":\"dataplzdoamqkdwa\",\"parameters\":{\"x\":\"dataahu\",\"ura\":\"datapu\",\"ivkmdfwfzkocdj\":\"datafiwjounvfqyk\",\"rbphtllkpkcqzbvy\":\"dataj\"},\"\":{\"mvxrjidxiosype\":\"dataxcba\",\"whbmo\":\"datafrbujltgxhgyllas\",\"yinyqsdsuewfgri\":\"datamhknsknnnpyo\"}}},{\"script\":\"mkmcrtmvtfeyo\",\"schemaLinkedService\":{\"referenceName\":\"eiweb\",\"parameters\":{\"zaxqhlerkyimcfm\":\"datazmggvsxvgwrqywaa\",\"cyxcluvj\":\"datahwtlli\",\"jpld\":\"datap\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"shcjgoobl\",\"parameters\":{\"qwmzzcg\":\"datargcntgq\"}},\"name\":\"gvfs\",\"description\":\"buu\",\"dataset\":{\"referenceName\":\"uqwvybxmu\",\"parameters\":{\"chhrnfa\":\"datakbhymdaeshjj\",\"hmvco\":\"dataqefiwwhbkxzqryov\",\"fmyiwy\":\"dataiagwu\",\"msyfjno\":\"datatau\"}},\"linkedService\":{\"referenceName\":\"ibcez\",\"parameters\":{\"qlbz\":\"datayarlwllgje\",\"guny\":\"datasff\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"yhtspkmkvk\",\"datasetParameters\":\"datakmch\",\"parameters\":{\"cwjqtfsx\":\"datagjvyosmxovyfdbah\"},\"\":{\"eypaoawnkwhiyu\":\"databezdvnezouayvejw\",\"wsjavmr\":\"datajhmjlkk\",\"jnlerm\":\"datarhsv\"}}}]}") - .toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("igohafudt", model.queryName()); - Assertions.assertEquals("qmgjexiqejvpdrcn", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("x", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("rqa", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("zcwfscxkr", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("ebwdvuvq", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("cqg", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ijcullk", model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("pueqgrcn", model.dataflowSinks().get(0).script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySinkMapping model - = new PowerQuerySinkMapping().withQueryName("igohafudt") - .withDataflowSinks(Arrays.asList( - new PowerQuerySink().withName("qmgjexiqejvpdrcn") - .withDescription("x") - .withDataset(new DatasetReference().withReferenceName("rqa") - .withParameters(mapOf("zyycev", "datar", "y", "dataazwewhobxlk", "nuxvyalkcuozwow", - "dataspidcnxjfgx", "qlb", "datamulqgaeqnlx"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("zcwfscxkr") - .withParameters(mapOf("ko", "dataepdvxmkzgrrg"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ebwdvuvq") - .withDatasetParameters("dataplzdoamqkdwa") - .withParameters(mapOf("x", "dataahu", "ura", "datapu", "ivkmdfwfzkocdj", "datafiwjounvfqyk", - "rbphtllkpkcqzbvy", "dataj")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("cqg") - .withParameters(mapOf("gjlxdddvfnqaz", "datanvfzlmugxpuget", "zkdqimu", "dataavspjdxay"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("ijcullk") - .withParameters(mapOf("vrxy", "datasyyredzhnyli", "vjsqazecdomjrr", "datap", - "aqxstykus", "datalwrvi"))) - .withScript("pueqgrcn"), - new PowerQuerySink().withName("gvfs") - .withDescription("buu") - .withDataset(new DatasetReference().withReferenceName("uqwvybxmu") - .withParameters(mapOf("chhrnfa", "datakbhymdaeshjj", "hmvco", "dataqefiwwhbkxzqryov", - "fmyiwy", "dataiagwu", "msyfjno", "datatau"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ibcez") - .withParameters(mapOf("qlbz", "datayarlwllgje", "guny", "datasff"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("yhtspkmkvk") - .withDatasetParameters("datakmch") - .withParameters(mapOf("cwjqtfsx", "datagjvyosmxovyfdbah")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("eiweb") - .withParameters(mapOf("zaxqhlerkyimcfm", "datazmggvsxvgwrqywaa", "cyxcluvj", "datahwtlli", - "jpld", "datap"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("shcjgoobl") - .withParameters(mapOf("qwmzzcg", "datargcntgq"))) - .withScript("mkmcrtmvtfeyo"))); - model = BinaryData.fromObject(model).toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("igohafudt", model.queryName()); - Assertions.assertEquals("qmgjexiqejvpdrcn", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("x", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("rqa", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("zcwfscxkr", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("ebwdvuvq", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("cqg", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ijcullk", model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("pueqgrcn", model.dataflowSinks().get(0).script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java deleted file mode 100644 index dd33a6f731d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySink model = BinaryData.fromString( - "{\"script\":\"dfmmxjdnajuopjy\",\"schemaLinkedService\":{\"referenceName\":\"mk\",\"parameters\":{\"jk\":\"datavcwloqd\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"xxr\",\"parameters\":{\"xga\":\"databuzm\",\"pr\":\"datatdtkwppthuz\",\"qfxy\":\"dataimrljdp\"}},\"name\":\"mhk\",\"description\":\"baewht\",\"dataset\":{\"referenceName\":\"loamfmxtllfltym\",\"parameters\":{\"bqbgamklilirwdv\":\"datarrfijhgg\",\"rxqwqnjxrd\":\"datafhsdpzouhkt\",\"czcxdfw\":\"dataddtullygta\",\"yf\":\"dataa\"}},\"linkedService\":{\"referenceName\":\"xrljphraspi\",\"parameters\":{\"fgsmdrjuqb\":\"dataimixlmdbgice\",\"paxwfqty\":\"dataxtokljmtz\",\"rcltungbsoljckm\":\"dataqi\",\"zbkuckgkdsksw\":\"datai\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qqcqikclsmal\",\"datasetParameters\":\"dataswoykdn\",\"parameters\":{\"lqcwnynll\":\"dataaxwmgzru\",\"btsertoxa\":\"dataiqbcbgv\"},\"\":{\"etwmlgicvnp\":\"datauvjhxmnrqstjc\"}}}") - .toObject(PowerQuerySink.class); - Assertions.assertEquals("mhk", model.name()); - Assertions.assertEquals("baewht", model.description()); - Assertions.assertEquals("loamfmxtllfltym", model.dataset().referenceName()); - Assertions.assertEquals("xrljphraspi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("qqcqikclsmal", model.flowlet().referenceName()); - Assertions.assertEquals("mk", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("xxr", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("dfmmxjdnajuopjy", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySink model = new PowerQuerySink().withName("mhk") - .withDescription("baewht") - .withDataset(new DatasetReference().withReferenceName("loamfmxtllfltym") - .withParameters(mapOf("bqbgamklilirwdv", "datarrfijhgg", "rxqwqnjxrd", "datafhsdpzouhkt", "czcxdfw", - "dataddtullygta", "yf", "dataa"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("xrljphraspi") - .withParameters(mapOf("fgsmdrjuqb", "dataimixlmdbgice", "paxwfqty", "dataxtokljmtz", "rcltungbsoljckm", - "dataqi", "zbkuckgkdsksw", "datai"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qqcqikclsmal") - .withDatasetParameters("dataswoykdn") - .withParameters(mapOf("lqcwnynll", "dataaxwmgzru", "btsertoxa", "dataiqbcbgv")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("mk").withParameters(mapOf("jk", "datavcwloqd"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("xxr") - .withParameters(mapOf("xga", "databuzm", "pr", "datatdtkwppthuz", "qfxy", "dataimrljdp"))) - .withScript("dfmmxjdnajuopjy"); - model = BinaryData.fromObject(model).toObject(PowerQuerySink.class); - Assertions.assertEquals("mhk", model.name()); - Assertions.assertEquals("baewht", model.description()); - Assertions.assertEquals("loamfmxtllfltym", model.dataset().referenceName()); - Assertions.assertEquals("xrljphraspi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("qqcqikclsmal", model.flowlet().referenceName()); - Assertions.assertEquals("mk", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("xxr", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("dfmmxjdnajuopjy", model.script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java deleted file mode 100644 index 9c78a3794c2b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySource model = BinaryData.fromString( - "{\"script\":\"qsnxfbxufeapdr\",\"schemaLinkedService\":{\"referenceName\":\"yvbsuadu\",\"parameters\":{\"qltd\":\"datadkaxpfobkzhmhj\",\"rkgzkyhudbkuw\":\"dataluqrojadhfztlray\",\"kfecjvxf\":\"datazqxlcwe\",\"ppwooaj\":\"dataqufqizj\"}},\"name\":\"yyjmjjxiz\",\"description\":\"xhnzlslekcttgzkj\",\"dataset\":{\"referenceName\":\"qpdwad\",\"parameters\":{\"qymjzucwwmejjqhd\":\"dataztldsvczdjiah\"}},\"linkedService\":{\"referenceName\":\"vmqxi\",\"parameters\":{\"qpgaixwrgrkk\":\"datakyfozkbnzxbyp\",\"swqi\":\"dataerf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pw\",\"datasetParameters\":\"dataggicwnxhtfmcqbs\",\"parameters\":{\"djxh\":\"datapgchzpgfqum\"},\"\":{\"kynrceqavf\":\"datago\"}}}") - .toObject(PowerQuerySource.class); - Assertions.assertEquals("yyjmjjxiz", model.name()); - Assertions.assertEquals("xhnzlslekcttgzkj", model.description()); - Assertions.assertEquals("qpdwad", model.dataset().referenceName()); - Assertions.assertEquals("vmqxi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("pw", model.flowlet().referenceName()); - Assertions.assertEquals("yvbsuadu", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("qsnxfbxufeapdr", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySource model = new PowerQuerySource().withName("yyjmjjxiz") - .withDescription("xhnzlslekcttgzkj") - .withDataset(new DatasetReference().withReferenceName("qpdwad") - .withParameters(mapOf("qymjzucwwmejjqhd", "dataztldsvczdjiah"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("vmqxi") - .withParameters(mapOf("qpgaixwrgrkk", "datakyfozkbnzxbyp", "swqi", "dataerf"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pw") - .withDatasetParameters("dataggicwnxhtfmcqbs") - .withParameters(mapOf("djxh", "datapgchzpgfqum")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("yvbsuadu") - .withParameters(mapOf("qltd", "datadkaxpfobkzhmhj", "rkgzkyhudbkuw", "dataluqrojadhfztlray", "kfecjvxf", - "datazqxlcwe", "ppwooaj", "dataqufqizj"))) - .withScript("qsnxfbxufeapdr"); - model = BinaryData.fromObject(model).toObject(PowerQuerySource.class); - Assertions.assertEquals("yyjmjjxiz", model.name()); - Assertions.assertEquals("xhnzlslekcttgzkj", model.description()); - Assertions.assertEquals("qpdwad", model.dataset().referenceName()); - Assertions.assertEquals("vmqxi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("pw", model.flowlet().referenceName()); - Assertions.assertEquals("yvbsuadu", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("qsnxfbxufeapdr", model.script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java deleted file mode 100644 index 47d55b07c752..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PowerQueryTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQueryTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQueryTypeProperties model = BinaryData.fromString( - "{\"sources\":[{\"script\":\"n\",\"schemaLinkedService\":{\"referenceName\":\"ge\",\"parameters\":{\"dyfhb\":\"dataqx\",\"aqjsgyzstujr\":\"datawkhojqttbspvkhg\",\"sf\":\"dataxrk\"}},\"name\":\"rlduyehiiittugy\",\"description\":\"wrldax\",\"dataset\":{\"referenceName\":\"fqa\",\"parameters\":{\"dzciggb\":\"dataozjv\",\"o\":\"datavt\",\"doey\":\"datawalzyxwhoeamoeo\",\"kwmnfeub\":\"datafpnimtwuuhaueg\"}},\"linkedService\":{\"referenceName\":\"jyrkwfug\",\"parameters\":{\"rhzz\":\"datarrkuumnqd\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ueoqusvwluj\",\"datasetParameters\":\"datawnibittoz\",\"parameters\":{\"ctxegt\":\"dataqumqvfmwcaddt\",\"elfnzzryiz\":\"datagwyur\"},\"\":{\"ayunomirhpfabenq\":\"datagdebx\",\"mgewayxf\":\"dataam\"}}}],\"script\":\"bcpjstbhem\",\"documentLocale\":\"u\"}") - .toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("rlduyehiiittugy", model.sources().get(0).name()); - Assertions.assertEquals("wrldax", model.sources().get(0).description()); - Assertions.assertEquals("fqa", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jyrkwfug", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("ueoqusvwluj", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ge", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("n", model.sources().get(0).script()); - Assertions.assertEquals("bcpjstbhem", model.script()); - Assertions.assertEquals("u", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQueryTypeProperties model = new PowerQueryTypeProperties() - .withSources(Arrays.asList(new PowerQuerySource().withName("rlduyehiiittugy") - .withDescription("wrldax") - .withDataset(new DatasetReference().withReferenceName("fqa") - .withParameters(mapOf("dzciggb", "dataozjv", "o", "datavt", "doey", "datawalzyxwhoeamoeo", - "kwmnfeub", "datafpnimtwuuhaueg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("jyrkwfug") - .withParameters(mapOf("rhzz", "datarrkuumnqd"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ueoqusvwluj") - .withDatasetParameters("datawnibittoz") - .withParameters(mapOf("ctxegt", "dataqumqvfmwcaddt", "elfnzzryiz", "datagwyur")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ge") - .withParameters(mapOf("dyfhb", "dataqx", "aqjsgyzstujr", "datawkhojqttbspvkhg", "sf", "dataxrk"))) - .withScript("n"))) - .withScript("bcpjstbhem") - .withDocumentLocale("u"); - model = BinaryData.fromObject(model).toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("rlduyehiiittugy", model.sources().get(0).name()); - Assertions.assertEquals("wrldax", model.sources().get(0).description()); - Assertions.assertEquals("fqa", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jyrkwfug", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("ueoqusvwluj", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ge", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("n", model.sources().get(0).script()); - Assertions.assertEquals("bcpjstbhem", model.script()); - Assertions.assertEquals("u", model.documentLocale()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java deleted file mode 100644 index f3822192f5df..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrestoDatasetTypeProperties; - -public final class PrestoDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datafmoubukqm\",\"table\":\"datarzrnobvvequz\",\"schema\":\"dataapg\"}") - .toObject(PrestoDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoDatasetTypeProperties model = new PrestoDatasetTypeProperties().withTableName("datafmoubukqm") - .withTable("datarzrnobvvequz") - .withSchema("dataapg"); - model = BinaryData.fromObject(model).toObject(PrestoDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java deleted file mode 100644 index d1e8d381e19f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PrestoObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PrestoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoObjectDataset model = BinaryData.fromString( - "{\"type\":\"PrestoObject\",\"typeProperties\":{\"tableName\":\"dataceqtl\",\"table\":\"datap\",\"schema\":\"datam\"},\"description\":\"ccurn\",\"structure\":\"dataunlakgixhqj\",\"schema\":\"datagqwbbxiwtwfgo\",\"linkedServiceName\":{\"referenceName\":\"lalvemnnzug\",\"parameters\":{\"mtsnvo\":\"datayydsyweoh\",\"tsw\":\"datavb\",\"vdticcaf\":\"datadopnsep\",\"ppwxnikfz\":\"datagzwkopxdkbtwoqh\"}},\"parameters\":{\"jzrfx\":{\"type\":\"Array\",\"defaultValue\":\"dataduvqzjnnuww\"}},\"annotations\":[\"databcqjkbkjcurxrjw\",\"datazrieitqmlzuw\"],\"folder\":{\"name\":\"zqajxkmpe\"},\"\":{\"eszunb\":\"datalgeehbdjgplnlxr\"}}") - .toObject(PrestoObjectDataset.class); - Assertions.assertEquals("ccurn", model.description()); - Assertions.assertEquals("lalvemnnzug", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jzrfx").type()); - Assertions.assertEquals("zqajxkmpe", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoObjectDataset model = new PrestoObjectDataset().withDescription("ccurn") - .withStructure("dataunlakgixhqj") - .withSchema("datagqwbbxiwtwfgo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lalvemnnzug") - .withParameters(mapOf("mtsnvo", "datayydsyweoh", "tsw", "datavb", "vdticcaf", "datadopnsep", - "ppwxnikfz", "datagzwkopxdkbtwoqh"))) - .withParameters(mapOf("jzrfx", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataduvqzjnnuww"))) - .withAnnotations(Arrays.asList("databcqjkbkjcurxrjw", "datazrieitqmlzuw")) - .withFolder(new DatasetFolder().withName("zqajxkmpe")) - .withTableName("dataceqtl") - .withTable("datap") - .withSchemaTypePropertiesSchema("datam"); - model = BinaryData.fromObject(model).toObject(PrestoObjectDataset.class); - Assertions.assertEquals("ccurn", model.description()); - Assertions.assertEquals("lalvemnnzug", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jzrfx").type()); - Assertions.assertEquals("zqajxkmpe", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java deleted file mode 100644 index 9c1361522c28..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrestoSource; - -public final class PrestoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoSource model = BinaryData.fromString( - "{\"type\":\"PrestoSource\",\"query\":\"datayddijfkktigisee\",\"queryTimeout\":\"datazrerxyds\",\"additionalColumns\":\"datapn\",\"sourceRetryCount\":\"dataarkjt\",\"sourceRetryWait\":\"dataaczkjkfakgrwt\",\"maxConcurrentConnections\":\"datasfanmjmpce\",\"disableMetricsCollection\":\"datamfdylvpyhhgqysz\",\"\":{\"jekolnylpyk\":\"datajzhvej\",\"aouyaanfxai\":\"datapa\"}}") - .toObject(PrestoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoSource model = new PrestoSource().withSourceRetryCount("dataarkjt") - .withSourceRetryWait("dataaczkjkfakgrwt") - .withMaxConcurrentConnections("datasfanmjmpce") - .withDisableMetricsCollection("datamfdylvpyhhgqysz") - .withQueryTimeout("datazrerxyds") - .withAdditionalColumns("datapn") - .withQuery("datayddijfkktigisee"); - model = BinaryData.fromObject(model).toObject(PrestoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactoryMockTests.java deleted file mode 100644 index bebb95a12d33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactoryMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndPointConnectionsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"tonovveouwixte\",\"privateEndpoint\":{\"id\":\"qprhzsaquha\"},\"privateLinkServiceConnectionState\":{\"status\":\"pbbwicteqwjlynlr\",\"description\":\"ydzmbvsladxswot\",\"actionsRequired\":\"xadkiqapt\"}},\"name\":\"bybsgvzevp\",\"type\":\"kfvwlzvxjxvs\",\"etag\":\"bfkelqzcpts\",\"id\":\"ruydiwsfva\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.privateEndPointConnections() - .listByFactory("vqus", "rkoqdqjhhtxnocix", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ruydiwsfva", response.iterator().next().id()); - Assertions.assertEquals("pbbwicteqwjlynlr", - response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ydzmbvsladxswot", - response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("xadkiqapt", - response.iterator().next().properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java deleted file mode 100644 index 0db1f0a730c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionListResponse; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"dikdfrdbi\",\"privateEndpoint\":{\"id\":\"jgeihfqlggwfi\"},\"privateLinkServiceConnectionState\":{\"status\":\"xmjpbyep\",\"description\":\"gt\",\"actionsRequired\":\"j\"}},\"name\":\"cmyfqipgxhnpo\",\"type\":\"qwcabvnui\",\"etag\":\"ey\",\"id\":\"wlpaugmrmfjlrxwt\"},{\"properties\":{\"provisioningState\":\"khfkvcisi\",\"privateEndpoint\":{\"id\":\"a\"},\"privateLinkServiceConnectionState\":{\"status\":\"xjw\",\"description\":\"vedwcgyeewx\",\"actionsRequired\":\"qbpsmg\"}},\"name\":\"guamlj\",\"type\":\"rgmsplzga\",\"etag\":\"cshhv\",\"id\":\"wgnxkympqanxrj\"},{\"properties\":{\"provisioningState\":\"tw\",\"privateEndpoint\":{\"id\":\"oypnyg\"},\"privateLinkServiceConnectionState\":{\"status\":\"xcy\",\"description\":\"kgmnsghpxyc\",\"actionsRequired\":\"drwjjkhvyom\"}},\"name\":\"luzvxnq\",\"type\":\"rpqpd\",\"etag\":\"mkoisqcssf\",\"id\":\"uifmc\"}],\"nextLink\":\"p\"}") - .toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("wlpaugmrmfjlrxwt", model.value().get(0).id()); - Assertions.assertEquals("xmjpbyep", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gt", - model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("j", - model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("p", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionListResponse model - = new PrivateEndpointConnectionListResponse().withValue(Arrays.asList( - new PrivateEndpointConnectionResourceInner().withId("wlpaugmrmfjlrxwt") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("xmjpbyep") - .withDescription("gt") - .withActionsRequired("j"))), - new PrivateEndpointConnectionResourceInner().withId("wgnxkympqanxrj") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("xjw") - .withDescription("vedwcgyeewx") - .withActionsRequired("qbpsmg"))), - new PrivateEndpointConnectionResourceInner().withId("uifmc") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("xcy") - .withDescription("kgmnsghpxyc") - .withActionsRequired("drwjjkhvyom"))))) - .withNextLink("p"); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("wlpaugmrmfjlrxwt", model.value().get(0).id()); - Assertions.assertEquals("xmjpbyep", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gt", - model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("j", - model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("p", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index b1a7b59bc004..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"bgitkowflc\",\"privateEndpoint\":{\"id\":\"wysv\"},\"privateLinkServiceConnectionState\":{\"status\":\"qqgaysynejdvt\",\"description\":\"gwxilbazrui\",\"actionsRequired\":\"slbrowbfsly\"}},\"name\":\"zwqlhxgsjzrifgu\",\"type\":\"n\",\"etag\":\"wlernchdxpsonkk\",\"id\":\"amojzrngmkeun\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnectionResource response - = manager.privateEndpointConnectionOperations() - .define("inldmflngjtltxfo") - .withExistingFactory("nwjowgdw", "peyyzmxuelplbbs") - .withProperties(new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("leylv") - .withDescription("xlptockgjvflc") - .withActionsRequired("sbx")) - .withPrivateEndpoint(new PrivateEndpoint().withId("eywmqhnlsmfqgl"))) - .withIfMatch("gjp") - .create(); - - Assertions.assertEquals("amojzrngmkeun", response.id()); - Assertions.assertEquals("qqgaysynejdvt", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gwxilbazrui", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("slbrowbfsly", - response.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsDeleteWithResponseMockTests.java deleted file mode 100644 index ed098bc149e5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionOperationsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.privateEndpointConnectionOperations() - .deleteWithResponse("midgoyawgpsx", "ymmsimbesg", "h", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.java deleted file mode 100644 index 571714348d53..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"siinm\",\"privateEndpoint\":{\"id\":\"dtuydynugkjzp\"},\"privateLinkServiceConnectionState\":{\"status\":\"rfhpcyuaj\",\"description\":\"ou\",\"actionsRequired\":\"x\"}},\"name\":\"uzls\",\"type\":\"bsghzund\",\"etag\":\"bmuvgfkdea\",\"id\":\"xdwwraimjkaz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnectionResource response = manager.privateEndpointConnectionOperations() - .getWithResponse("pzabbfdhissde", "yecj", "fafmkf", "yyfthsafv", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xdwwraimjkaz", response.id()); - Assertions.assertEquals("rfhpcyuaj", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ou", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("x", response.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java deleted file mode 100644 index 2b5f41f81ad8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"dqzrdzsyloll\",\"privateEndpoint\":{\"id\":\"czzydmxzjij\"},\"privateLinkServiceConnectionState\":{\"status\":\"aurkihcirlde\",\"description\":\"rdcoxnbkkj\",\"actionsRequired\":\"urnnqbnqbpiz\"}},\"name\":\"ltgrdogypxrxv\",\"type\":\"ihwuhvctafsrbxrb\",\"etag\":\"li\",\"id\":\"xihspnxwq\"}") - .toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("xihspnxwq", model.id()); - Assertions.assertEquals("aurkihcirlde", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rdcoxnbkkj", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("urnnqbnqbpiz", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionResourceInner model = new PrivateEndpointConnectionResourceInner().withId("xihspnxwq") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("aurkihcirlde") - .withDescription("rdcoxnbkkj") - .withActionsRequired("urnnqbnqbpiz"))); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("xihspnxwq", model.id()); - Assertions.assertEquals("aurkihcirlde", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rdcoxnbkkj", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("urnnqbnqbpiz", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java deleted file mode 100644 index e3462c1616d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"pli\"}").toObject(PrivateEndpoint.class); - Assertions.assertEquals("pli", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("pli"); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("pli", model.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java deleted file mode 100644 index 6687a6448d89..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionApprovalRequestResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionApprovalRequestResource model = BinaryData.fromString( - "{\"properties\":{\"privateLinkServiceConnectionState\":{\"status\":\"ubmdnafcbqwre\",\"description\":\"ela\",\"actionsRequired\":\"cigeleohdbvqvw\"},\"privateEndpoint\":{\"id\":\"opwbeonrlkwzd\"}},\"name\":\"bxcea\",\"type\":\"cptsoqfyiase\",\"etag\":\"hkrttzrazis\",\"id\":\"kiuemv\"}") - .toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("kiuemv", model.id()); - Assertions.assertEquals("ubmdnafcbqwre", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ela", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("cigeleohdbvqvw", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("opwbeonrlkwzd", model.properties().privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequestResource model - = new PrivateLinkConnectionApprovalRequestResource().withId("kiuemv") - .withProperties(new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("ubmdnafcbqwre") - .withDescription("ela") - .withActionsRequired("cigeleohdbvqvw")) - .withPrivateEndpoint(new PrivateEndpoint().withId("opwbeonrlkwzd"))); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("kiuemv", model.id()); - Assertions.assertEquals("ubmdnafcbqwre", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ela", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("cigeleohdbvqvw", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("opwbeonrlkwzd", model.properties().privateEndpoint().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java deleted file mode 100644 index ba5f84787289..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionApprovalRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionApprovalRequest model = BinaryData.fromString( - "{\"privateLinkServiceConnectionState\":{\"status\":\"wzohm\",\"description\":\"xxbsojklinhmd\",\"actionsRequired\":\"ysprq\"},\"privateEndpoint\":{\"id\":\"zxojpslsv\"}}") - .toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("wzohm", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xxbsojklinhmd", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ysprq", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("zxojpslsv", model.privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequest model = new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("wzohm") - .withDescription("xxbsojklinhmd") - .withActionsRequired("ysprq")) - .withPrivateEndpoint(new PrivateEndpoint().withId("zxojpslsv")); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("wzohm", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xxbsojklinhmd", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ysprq", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("zxojpslsv", model.privateEndpoint().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java deleted file mode 100644 index f80d7abb8e07..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionStateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionState model = BinaryData - .fromString("{\"status\":\"thwmgnmbsc\",\"description\":\"xigdhxiidlope\",\"actionsRequired\":\"wdpyq\"}") - .toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("thwmgnmbsc", model.status()); - Assertions.assertEquals("xigdhxiidlope", model.description()); - Assertions.assertEquals("wdpyq", model.actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionState model = new PrivateLinkConnectionState().withStatus("thwmgnmbsc") - .withDescription("xigdhxiidlope") - .withActionsRequired("wdpyq"); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("thwmgnmbsc", model.status()); - Assertions.assertEquals("xigdhxiidlope", model.description()); - Assertions.assertEquals("wdpyq", model.actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java deleted file mode 100644 index 5b3c70ffa363..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; - -public final class PrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"lpdwwexymzvlazi\",\"requiredMembers\":[\"pwvqsgnyyu\",\"ziven\",\"rpmey\"],\"requiredZoneNames\":[\"kpatlbijpzgsks\",\"fhfv\",\"lmknbnxwcdom\",\"pvfqawz\"]}") - .toObject(PrivateLinkResourceProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceProperties model = new PrivateLinkResourceProperties(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java deleted file mode 100644 index d8fdaf29cbca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResource model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"rqofulopmjnlexwh\",\"requiredMembers\":[\"pibkephuu\"],\"requiredZoneNames\":[\"ctatoyintqpbrlcy\",\"duczkgof\"]},\"name\":\"fsrucv\",\"type\":\"rpcjttbstvjeaqnr\",\"etag\":\"vfkoxml\",\"id\":\"ktuidvrm\"}") - .toObject(PrivateLinkResource.class); - Assertions.assertEquals("ktuidvrm", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResource model - = new PrivateLinkResource().withId("ktuidvrm").withProperties(new PrivateLinkResourceProperties()); - model = BinaryData.fromObject(model).toObject(PrivateLinkResource.class); - Assertions.assertEquals("ktuidvrm", model.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java deleted file mode 100644 index c4b485254b7e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourcesWrapper; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateLinkResourcesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"x\",\"requiredMembers\":[\"vodqnenq\",\"clnrctrpun\",\"bhoety\"],\"requiredZoneNames\":[\"cerhhzjhmxyns\"]},\"name\":\"dgvjwoxmlbxqwsec\",\"type\":\"woibqnuhrtiwnbq\",\"etag\":\"saolcebwditccu\",\"id\":\"lcmzghaolfupxh\"},{\"properties\":{\"groupId\":\"tknmp\",\"requiredMembers\":[\"cr\",\"xkvuzpso\",\"jctvu\",\"pjwwv\"],\"requiredZoneNames\":[\"jchizhicxlmym\"]},\"name\":\"uhqetmpqcxrwtyg\",\"type\":\"owrtniymaznmql\",\"etag\":\"tppagvfnryjqboy\",\"id\":\"zwqzvmftxkwicg\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateLinkResourcesWrapper response = manager.privateLinkResources() - .getWithResponse("btms", "nacgbwmqgyak", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lcmzghaolfupxh", response.value().get(0).id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java deleted file mode 100644 index 65dccaac0782..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourcesWrapperInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourcesWrapperInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"woyxqvapcohhou\",\"requiredMembers\":[\"q\",\"jxcx\"],\"requiredZoneNames\":[\"dcgdzbenribca\",\"etzqd\",\"tjwfljhznamtua\"]},\"name\":\"zwcjjncqtj\",\"type\":\"izvg\",\"etag\":\"atzuuv\",\"id\":\"ngrebwg\"},{\"properties\":{\"groupId\":\"ttzlswvajqfutlx\",\"requiredMembers\":[\"zasunwqrjzfrgq\",\"aohcmbuocn\",\"r\",\"hmbpyryxamebly\"],\"requiredZoneNames\":[\"kfkmrocxnehvsmt\",\"dlfp\"]},\"name\":\"pucygvoavyunss\",\"type\":\"ghiee\",\"etag\":\"lgvvpaseksgbu\",\"id\":\"ntuygdhgaqipir\"}]}") - .toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("ngrebwg", model.value().get(0).id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourcesWrapperInner model = new PrivateLinkResourcesWrapperInner().withValue(Arrays.asList( - new PrivateLinkResource().withId("ngrebwg").withProperties(new PrivateLinkResourceProperties()), - new PrivateLinkResource().withId("ntuygdhgaqipir").withProperties(new PrivateLinkResourceProperties()))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("ngrebwg", model.value().get(0).id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java deleted file mode 100644 index 7b31f7d8a302..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PurviewConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class PurviewConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PurviewConfiguration model - = BinaryData.fromString("{\"purviewResourceId\":\"stkiiuxhqyud\"}").toObject(PurviewConfiguration.class); - Assertions.assertEquals("stkiiuxhqyud", model.purviewResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PurviewConfiguration model = new PurviewConfiguration().withPurviewResourceId("stkiiuxhqyud"); - model = BinaryData.fromObject(model).toObject(PurviewConfiguration.class); - Assertions.assertEquals("stkiiuxhqyud", model.purviewResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java deleted file mode 100644 index 847abb2e8640..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.azure.resourcemanager.datafactory.models.QueryDataFlowDebugSessionsResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class QueryDataFlowDebugSessionsResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QueryDataFlowDebugSessionsResponse model = BinaryData.fromString( - "{\"value\":[{\"dataFlowName\":\"qpbtuodxes\",\"computeType\":\"bbelawumuaslzk\",\"coreCount\":602871579,\"nodeCount\":1954370073,\"integrationRuntimeName\":\"cqucwyhahnom\",\"sessionId\":\"kywuhpsvfuu\",\"startTime\":\"tlwexxwlalniexz\",\"timeToLiveInMinutes\":1922531139,\"lastActivityTime\":\"gepqtybbwwpg\",\"\":{\"xkjibnxmy\":\"datachzyvlixqnrk\"}},{\"dataFlowName\":\"xs\",\"computeType\":\"rntvlwijp\",\"coreCount\":169879542,\"nodeCount\":1924013089,\"integrationRuntimeName\":\"qqpwcyyuf\",\"sessionId\":\"runcuwmqspkcd\",\"startTime\":\"hlctddunqn\",\"timeToLiveInMinutes\":981773620,\"lastActivityTime\":\"chrqb\",\"\":{\"qqoli\":\"datarcgegydcwboxjum\"}},{\"dataFlowName\":\"raiouaubrjtl\",\"computeType\":\"xfuojrn\",\"coreCount\":1614609688,\"nodeCount\":2143335427,\"integrationRuntimeName\":\"pasccbi\",\"sessionId\":\"mzdlyjdfqwmkyo\",\"startTime\":\"fdvruz\",\"timeToLiveInMinutes\":605414939,\"lastActivityTime\":\"j\",\"\":{\"tngfdgugeyzihgr\":\"datatfnmdx\",\"absnmfpp\":\"datayui\",\"yhsgz\":\"dataojeevy\"}},{\"dataFlowName\":\"zbgomfgbeg\",\"computeType\":\"gleohi\",\"coreCount\":131865797,\"nodeCount\":974044007,\"integrationRuntimeName\":\"ankrrfxee\",\"sessionId\":\"tijv\",\"startTime\":\"vbmqzbqq\",\"timeToLiveInMinutes\":498607950,\"lastActivityTime\":\"rnwxacevehjkuyxo\",\"\":{\"inmfgvxirp\":\"dataaoqltfaey\",\"prlpy\":\"datahriypoqeyhlqhy\"}}],\"nextLink\":\"uciqdsme\"}") - .toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("qpbtuodxes", model.value().get(0).dataFlowName()); - Assertions.assertEquals("bbelawumuaslzk", model.value().get(0).computeType()); - Assertions.assertEquals(602871579, model.value().get(0).coreCount()); - Assertions.assertEquals(1954370073, model.value().get(0).nodeCount()); - Assertions.assertEquals("cqucwyhahnom", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("kywuhpsvfuu", model.value().get(0).sessionId()); - Assertions.assertEquals("tlwexxwlalniexz", model.value().get(0).startTime()); - Assertions.assertEquals(1922531139, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("gepqtybbwwpg", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("uciqdsme", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QueryDataFlowDebugSessionsResponse model = new QueryDataFlowDebugSessionsResponse().withValue(Arrays.asList( - new DataFlowDebugSessionInfoInner().withDataFlowName("qpbtuodxes") - .withComputeType("bbelawumuaslzk") - .withCoreCount(602871579) - .withNodeCount(1954370073) - .withIntegrationRuntimeName("cqucwyhahnom") - .withSessionId("kywuhpsvfuu") - .withStartTime("tlwexxwlalniexz") - .withTimeToLiveInMinutes(1922531139) - .withLastActivityTime("gepqtybbwwpg") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("xs") - .withComputeType("rntvlwijp") - .withCoreCount(169879542) - .withNodeCount(1924013089) - .withIntegrationRuntimeName("qqpwcyyuf") - .withSessionId("runcuwmqspkcd") - .withStartTime("hlctddunqn") - .withTimeToLiveInMinutes(981773620) - .withLastActivityTime("chrqb") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("raiouaubrjtl") - .withComputeType("xfuojrn") - .withCoreCount(1614609688) - .withNodeCount(2143335427) - .withIntegrationRuntimeName("pasccbi") - .withSessionId("mzdlyjdfqwmkyo") - .withStartTime("fdvruz") - .withTimeToLiveInMinutes(605414939) - .withLastActivityTime("j") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("zbgomfgbeg") - .withComputeType("gleohi") - .withCoreCount(131865797) - .withNodeCount(974044007) - .withIntegrationRuntimeName("ankrrfxee") - .withSessionId("tijv") - .withStartTime("vbmqzbqq") - .withTimeToLiveInMinutes(498607950) - .withLastActivityTime("rnwxacevehjkuyxo") - .withAdditionalProperties(mapOf()))) - .withNextLink("uciqdsme"); - model = BinaryData.fromObject(model).toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("qpbtuodxes", model.value().get(0).dataFlowName()); - Assertions.assertEquals("bbelawumuaslzk", model.value().get(0).computeType()); - Assertions.assertEquals(602871579, model.value().get(0).coreCount()); - Assertions.assertEquals(1954370073, model.value().get(0).nodeCount()); - Assertions.assertEquals("cqucwyhahnom", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("kywuhpsvfuu", model.value().get(0).sessionId()); - Assertions.assertEquals("tlwexxwlalniexz", model.value().get(0).startTime()); - Assertions.assertEquals(1922531139, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("gepqtybbwwpg", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("uciqdsme", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java deleted file mode 100644 index a3151aeb2837..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.QuickBooksObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class QuickBooksObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuickBooksObjectDataset model = BinaryData.fromString( - "{\"type\":\"QuickBooksObject\",\"typeProperties\":{\"tableName\":\"datazbjecdsysxnkuhv\"},\"description\":\"lsevzc\",\"structure\":\"datawnkkgdwqymxsfqea\",\"schema\":\"dataqe\",\"linkedServiceName\":{\"referenceName\":\"uvmsaq\",\"parameters\":{\"vzfznfgpb\":\"dataawgqrwuh\"}},\"parameters\":{\"lkqcln\":{\"type\":\"Object\",\"defaultValue\":\"dataympdjieas\"},\"ahvyeikbvqzr\":{\"type\":\"Bool\",\"defaultValue\":\"datargnoskkhbmjphlyy\"},\"ucpckxjnohafw\":{\"type\":\"String\",\"defaultValue\":\"databq\"},\"e\":{\"type\":\"Float\",\"defaultValue\":\"datagjlyxtugpea\"}},\"annotations\":[\"datawxfamtxccfegsavb\"],\"folder\":{\"name\":\"ucv\"},\"\":{\"mazkmqfw\":\"datadhoo\"}}") - .toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("lsevzc", model.description()); - Assertions.assertEquals("uvmsaq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lkqcln").type()); - Assertions.assertEquals("ucv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksObjectDataset model = new QuickBooksObjectDataset().withDescription("lsevzc") - .withStructure("datawnkkgdwqymxsfqea") - .withSchema("dataqe") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uvmsaq") - .withParameters(mapOf("vzfznfgpb", "dataawgqrwuh"))) - .withParameters(mapOf("lkqcln", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataympdjieas"), - "ahvyeikbvqzr", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datargnoskkhbmjphlyy"), - "ucpckxjnohafw", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databq"), - "e", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datagjlyxtugpea"))) - .withAnnotations(Arrays.asList("datawxfamtxccfegsavb")) - .withFolder(new DatasetFolder().withName("ucv")) - .withTableName("datazbjecdsysxnkuhv"); - model = BinaryData.fromObject(model).toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("lsevzc", model.description()); - Assertions.assertEquals("uvmsaq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lkqcln").type()); - Assertions.assertEquals("ucv", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java deleted file mode 100644 index 3e7045348c3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.QuickBooksSource; - -public final class QuickBooksSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuickBooksSource model = BinaryData.fromString( - "{\"type\":\"QuickBooksSource\",\"query\":\"dataeycakkon\",\"queryTimeout\":\"datadpd\",\"additionalColumns\":\"datahadzyxaanhwuqewc\",\"sourceRetryCount\":\"datasksfbkxfkeeqo\",\"sourceRetryWait\":\"databek\",\"maxConcurrentConnections\":\"dataerwss\",\"disableMetricsCollection\":\"datamrpdjrylfpdudx\",\"\":{\"tqssngeviyffg\":\"dataeuriehxbanfsqfh\",\"hdapynpvgyaf\":\"datahrhjsps\"}}") - .toObject(QuickBooksSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksSource model = new QuickBooksSource().withSourceRetryCount("datasksfbkxfkeeqo") - .withSourceRetryWait("databek") - .withMaxConcurrentConnections("dataerwss") - .withDisableMetricsCollection("datamrpdjrylfpdudx") - .withQueryTimeout("datadpd") - .withAdditionalColumns("datahadzyxaanhwuqewc") - .withQuery("dataeycakkon"); - model = BinaryData.fromObject(model).toObject(QuickBooksSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleOccurrenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleOccurrenceTests.java deleted file mode 100644 index e0413142157d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleOccurrenceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RecurrenceScheduleOccurrenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecurrenceScheduleOccurrence model = BinaryData.fromString( - "{\"day\":\"Saturday\",\"occurrence\":423104171,\"\":{\"dshkbfweez\":\"datanngutitjwvvva\",\"nn\":\"datarzfyt\",\"dphi\":\"dataxgofiphlwy\",\"ztsgklu\":\"datahkigslczkzl\"}}") - .toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.day()); - Assertions.assertEquals(423104171, model.occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceScheduleOccurrence model = new RecurrenceScheduleOccurrence().withDay(DayOfWeek.SATURDAY) - .withOccurrence(423104171) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.day()); - Assertions.assertEquals(423104171, model.occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.java deleted file mode 100644 index fd3841693058..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RecurrenceScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecurrenceSchedule model = BinaryData.fromString( - "{\"minutes\":[375537031,1717718914,372186737,1764050808],\"hours\":[262504222,1587118023,325450941,810878790],\"weekDays\":[\"Wednesday\"],\"monthDays\":[1241874594],\"monthlyOccurrences\":[{\"day\":\"Thursday\",\"occurrence\":514886352,\"\":{\"hxphuplfopqgcadn\":\"datayfpfaa\",\"oygcofh\":\"datazfjldnvfpmez\"}},{\"day\":\"Wednesday\",\"occurrence\":404410098,\"\":{\"xbaazn\":\"databgmxm\",\"ybndiqpadhrij\":\"datawuwbnngcdtxxyz\",\"lqsfpctqgrnb\":\"datauqtjcyllpas\",\"vcabchdzx\":\"datajdefsqunernbd\"}},{\"day\":\"Wednesday\",\"occurrence\":1181308151,\"\":{\"mnfavllbskl\":\"dataaadcz\",\"kcea\":\"dataakkihxpofv\",\"vawbt\":\"dataorppzb\",\"egknaec\":\"datavq\"}},{\"day\":\"Tuesday\",\"occurrence\":1250228809,\"\":{\"dswhbsej\":\"dataqocdrjguhsjlroa\",\"yjtollugzsvzi\":\"datauboyrf\"}}],\"\":{\"llmutwmarfbszlp\":\"datasbdaudsvdb\",\"czrd\":\"datax\",\"mkw\":\"databeb\"}}") - .toObject(RecurrenceSchedule.class); - Assertions.assertEquals(375537031, model.minutes().get(0)); - Assertions.assertEquals(262504222, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.weekDays().get(0)); - Assertions.assertEquals(1241874594, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(514886352, model.monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceSchedule model - = new RecurrenceSchedule().withMinutes(Arrays.asList(375537031, 1717718914, 372186737, 1764050808)) - .withHours(Arrays.asList(262504222, 1587118023, 325450941, 810878790)) - .withWeekDays(Arrays.asList(DaysOfWeek.WEDNESDAY)) - .withMonthDays(Arrays.asList(1241874594)) - .withMonthlyOccurrences(Arrays.asList( - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.THURSDAY) - .withOccurrence(514886352) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(404410098) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(1181308151) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.TUESDAY) - .withOccurrence(1250228809) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceSchedule.class); - Assertions.assertEquals(375537031, model.minutes().get(0)); - Assertions.assertEquals(262504222, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.weekDays().get(0)); - Assertions.assertEquals(1241874594, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(514886352, model.monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedirectIncompatibleRowSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedirectIncompatibleRowSettingsTests.java deleted file mode 100644 index 2a0ac7f3bf7b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedirectIncompatibleRowSettingsTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import java.util.HashMap; -import java.util.Map; - -public final class RedirectIncompatibleRowSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RedirectIncompatibleRowSettings model = BinaryData.fromString( - "{\"linkedServiceName\":\"databsspexejhwpnjc\",\"path\":\"datacj\",\"\":{\"jsrdecbowkhma\":\"datavuvmdzdqtirgu\",\"sujx\":\"datafllpdn\",\"aeykueat\":\"dataueqljzkhn\"}}") - .toObject(RedirectIncompatibleRowSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedirectIncompatibleRowSettings model - = new RedirectIncompatibleRowSettings().withLinkedServiceName("databsspexejhwpnjc") - .withPath("datacj") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RedirectIncompatibleRowSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.java deleted file mode 100644 index 82fcad5d1ff3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.RedshiftUnloadSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RedshiftUnloadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RedshiftUnloadSettings model = BinaryData.fromString( - "{\"s3LinkedServiceName\":{\"referenceName\":\"emqetmo\",\"parameters\":{\"oyl\":\"datahhed\",\"sghbdvsorvhbygwt\":\"datacrldwcc\"}},\"bucketName\":\"dataxqlzzkbx\"}") - .toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("emqetmo", model.s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedshiftUnloadSettings model = new RedshiftUnloadSettings() - .withS3LinkedServiceName(new LinkedServiceReference().withReferenceName("emqetmo") - .withParameters(mapOf("oyl", "datahhed", "sghbdvsorvhbygwt", "datacrldwcc"))) - .withBucketName("dataxqlzzkbx"); - model = BinaryData.fromObject(model).toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("emqetmo", model.s3LinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java deleted file mode 100644 index 8ae76a3fe69d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RelationalSource; - -public final class RelationalSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalSource model = BinaryData.fromString( - "{\"type\":\"RelationalSource\",\"query\":\"datarjooepfb\",\"additionalColumns\":\"databffxansgntjmnl\",\"sourceRetryCount\":\"datalrjdkyp\",\"sourceRetryWait\":\"datavilgn\",\"maxConcurrentConnections\":\"datatjbldgikokjwgej\",\"disableMetricsCollection\":\"datauzezwnqhcpkjgsy\",\"\":{\"rourtmccdejtoypl\":\"datatgwmqcutkk\"}}") - .toObject(RelationalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalSource model = new RelationalSource().withSourceRetryCount("datalrjdkyp") - .withSourceRetryWait("datavilgn") - .withMaxConcurrentConnections("datatjbldgikokjwgej") - .withDisableMetricsCollection("datauzezwnqhcpkjgsy") - .withQuery("datarjooepfb") - .withAdditionalColumns("databffxansgntjmnl"); - model = BinaryData.fromObject(model).toObject(RelationalSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java deleted file mode 100644 index fcb0214c6f21..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.RelationalTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RelationalTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalTableDataset model = BinaryData.fromString( - "{\"type\":\"RelationalTable\",\"typeProperties\":{\"tableName\":\"datakxie\"},\"description\":\"lnml\",\"structure\":\"datafcnuestbsli\",\"schema\":\"datadnccotelik\",\"linkedServiceName\":{\"referenceName\":\"iytehhxtzxqdwbym\",\"parameters\":{\"ncrdo\":\"datan\",\"byh\":\"datactysecpekhx\",\"lfymtrts\":\"datatzcvimmwckoz\"}},\"parameters\":{\"rjschjxncqzah\":{\"type\":\"SecureString\",\"defaultValue\":\"datatzckjbcbkgnr\"},\"bimor\":{\"type\":\"Int\",\"defaultValue\":\"databgd\"}},\"annotations\":[\"dataxosgihtrxue\",\"databmxqfgvz\"],\"folder\":{\"name\":\"swshesgcsqose\"},\"\":{\"spfyvslazip\":\"datangoufpizpbmfx\",\"jtyc\":\"datalxgtdu\"}}") - .toObject(RelationalTableDataset.class); - Assertions.assertEquals("lnml", model.description()); - Assertions.assertEquals("iytehhxtzxqdwbym", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rjschjxncqzah").type()); - Assertions.assertEquals("swshesgcsqose", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDataset model = new RelationalTableDataset().withDescription("lnml") - .withStructure("datafcnuestbsli") - .withSchema("datadnccotelik") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iytehhxtzxqdwbym") - .withParameters(mapOf("ncrdo", "datan", "byh", "datactysecpekhx", "lfymtrts", "datatzcvimmwckoz"))) - .withParameters(mapOf("rjschjxncqzah", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatzckjbcbkgnr"), - "bimor", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("databgd"))) - .withAnnotations(Arrays.asList("dataxosgihtrxue", "databmxqfgvz")) - .withFolder(new DatasetFolder().withName("swshesgcsqose")) - .withTableName("datakxie"); - model = BinaryData.fromObject(model).toObject(RelationalTableDataset.class); - Assertions.assertEquals("lnml", model.description()); - Assertions.assertEquals("iytehhxtzxqdwbym", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rjschjxncqzah").type()); - Assertions.assertEquals("swshesgcsqose", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java deleted file mode 100644 index b1399b6bcfff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RelationalTableDatasetTypeProperties; - -public final class RelationalTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datadrznlaxozqthkwxf\"}") - .toObject(RelationalTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDatasetTypeProperties model - = new RelationalTableDatasetTypeProperties().withTableName("datadrznlaxozqthkwxf"); - model = BinaryData.fromObject(model).toObject(RelationalTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java deleted file mode 100644 index fda485cb995c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import org.junit.jupiter.api.Assertions; - -public final class RemotePrivateEndpointConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemotePrivateEndpointConnection model = BinaryData.fromString( - "{\"provisioningState\":\"nepzwakls\",\"privateEndpoint\":{\"id\":\"qqqagwwrxaomzi\"},\"privateLinkServiceConnectionState\":{\"status\":\"rrczezkhhltnj\",\"description\":\"hqo\",\"actionsRequired\":\"jqoyueayfbpcm\"}}") - .toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("rrczezkhhltnj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hqo", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jqoyueayfbpcm", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemotePrivateEndpointConnection model - = new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("rrczezkhhltnj") - .withDescription("hqo") - .withActionsRequired("jqoyueayfbpcm")); - model = BinaryData.fromObject(model).toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("rrczezkhhltnj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hqo", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jqoyueayfbpcm", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java deleted file mode 100644 index 649d6c54eb2d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RerunTumblingWindowTrigger; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RerunTumblingWindowTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RerunTumblingWindowTrigger model = BinaryData.fromString( - "{\"type\":\"RerunTumblingWindowTrigger\",\"typeProperties\":{\"parentTrigger\":\"datauhnh\",\"requestedStartTime\":\"2021-05-06T07:37:22Z\",\"requestedEndTime\":\"2021-01-01T04:14:19Z\",\"rerunConcurrency\":440558025},\"description\":\"fuukildlaytviw\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datazk\",\"dataidps\",\"dataklmytaeallsxfz\",\"datantssbzm\"],\"\":{\"nhmxkgxrf\":\"dataj\"}}") - .toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("fuukildlaytviw", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T07:37:22Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-01T04:14:19Z"), model.requestedEndTime()); - Assertions.assertEquals(440558025, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTrigger model = new RerunTumblingWindowTrigger().withDescription("fuukildlaytviw") - .withAnnotations(Arrays.asList("datazk", "dataidps", "dataklmytaeallsxfz", "datantssbzm")) - .withParentTrigger("datauhnh") - .withRequestedStartTime(OffsetDateTime.parse("2021-05-06T07:37:22Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-01-01T04:14:19Z")) - .withRerunConcurrency(440558025); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("fuukildlaytviw", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T07:37:22Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-01T04:14:19Z"), model.requestedEndTime()); - Assertions.assertEquals(440558025, model.rerunConcurrency()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTypePropertiesTests.java deleted file mode 100644 index 6306b16df53f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTypePropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RerunTumblingWindowTriggerTypeProperties; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class RerunTumblingWindowTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RerunTumblingWindowTriggerTypeProperties model = BinaryData.fromString( - "{\"parentTrigger\":\"datamdpwpzuxo\",\"requestedStartTime\":\"2021-11-01T10:58:22Z\",\"requestedEndTime\":\"2021-05-15T01:16:29Z\",\"rerunConcurrency\":1024171923}") - .toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-01T10:58:22Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T01:16:29Z"), model.requestedEndTime()); - Assertions.assertEquals(1024171923, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTriggerTypeProperties model - = new RerunTumblingWindowTriggerTypeProperties().withParentTrigger("datamdpwpzuxo") - .withRequestedStartTime(OffsetDateTime.parse("2021-11-01T10:58:22Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-05-15T01:16:29Z")) - .withRerunConcurrency(1024171923); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-01T10:58:22Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T01:16:29Z"), model.requestedEndTime()); - Assertions.assertEquals(1024171923, model.rerunConcurrency()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java deleted file mode 100644 index 323958cc3f8f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ResponsysObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ResponsysObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResponsysObjectDataset model = BinaryData.fromString( - "{\"type\":\"ResponsysObject\",\"typeProperties\":{\"tableName\":\"dataqxa\"},\"description\":\"mdmracfsffdralih\",\"structure\":\"datascygyzhcvlavyr\",\"schema\":\"datandxrmyzvtiojtpd\",\"linkedServiceName\":{\"referenceName\":\"u\",\"parameters\":{\"teccxfn\":\"dataxoyjyhutwedigiv\"}},\"parameters\":{\"bqpmfhjik\":{\"type\":\"Bool\",\"defaultValue\":\"dataca\"},\"hmyucgrmw\":{\"type\":\"Array\",\"defaultValue\":\"databdqitghnmelzvr\"}},\"annotations\":[\"datad\"],\"folder\":{\"name\":\"l\"},\"\":{\"pgtipaaoylwh\":\"dataqgrbrhhv\",\"ixdmoba\":\"datamkbweasgyp\",\"dqdchnzibixrgs\":\"dataydwqeuwdvcls\",\"gosijiqexqwqy\":\"datawxxqkwargcbg\"}}") - .toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("mdmracfsffdralih", model.description()); - Assertions.assertEquals("u", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("bqpmfhjik").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysObjectDataset model = new ResponsysObjectDataset().withDescription("mdmracfsffdralih") - .withStructure("datascygyzhcvlavyr") - .withSchema("datandxrmyzvtiojtpd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("u") - .withParameters(mapOf("teccxfn", "dataxoyjyhutwedigiv"))) - .withParameters(mapOf("bqpmfhjik", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataca"), "hmyucgrmw", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("databdqitghnmelzvr"))) - .withAnnotations(Arrays.asList("datad")) - .withFolder(new DatasetFolder().withName("l")) - .withTableName("dataqxa"); - model = BinaryData.fromObject(model).toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("mdmracfsffdralih", model.description()); - Assertions.assertEquals("u", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("bqpmfhjik").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java deleted file mode 100644 index c13399fdc831..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ResponsysSource; - -public final class ResponsysSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResponsysSource model = BinaryData.fromString( - "{\"type\":\"ResponsysSource\",\"query\":\"datarapimtuojqzgyy\",\"queryTimeout\":\"dataywh\",\"additionalColumns\":\"datakjykvez\",\"sourceRetryCount\":\"datazt\",\"sourceRetryWait\":\"datahzkbmzldplam\",\"maxConcurrentConnections\":\"dataqljrnveqleozqq\",\"disableMetricsCollection\":\"dataawbw\",\"\":{\"ujsrlzw\":\"databuifhysatoplq\",\"ocowtoqfwbsbko\":\"dataqkprf\",\"mrset\":\"databdssjhwhfcxwrjbr\",\"espfgmosiskih\":\"datatulswajb\"}}") - .toObject(ResponsysSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysSource model = new ResponsysSource().withSourceRetryCount("datazt") - .withSourceRetryWait("datahzkbmzldplam") - .withMaxConcurrentConnections("dataqljrnveqleozqq") - .withDisableMetricsCollection("dataawbw") - .withQueryTimeout("dataywh") - .withAdditionalColumns("datakjykvez") - .withQuery("datarapimtuojqzgyy"); - model = BinaryData.fromObject(model).toObject(ResponsysSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java deleted file mode 100644 index af8d26725e1a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.RestResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RestResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestResourceDataset model = BinaryData.fromString( - "{\"type\":\"RestResource\",\"typeProperties\":{\"relativeUrl\":\"dataaefe\",\"requestMethod\":\"datavkxdbnmcvaqy\",\"requestBody\":\"datazdobuesdyvfxnz\",\"additionalHeaders\":{\"dpsegivytabvbbk\":\"datafupktw\"},\"paginationRules\":{\"wuuqbmenxcqsxwc\":\"datawgsltutbuve\"}},\"description\":\"kcrudekkbnjre\",\"structure\":\"dataptedeuenthshnfi\",\"schema\":\"datapgpkkhpjnglaqlm\",\"linkedServiceName\":{\"referenceName\":\"h\",\"parameters\":{\"cpvfpnrzikvoxloe\":\"datardlpxiwwg\",\"hpxukxgoyxon\":\"datahyfivxdifbwbli\"}},\"parameters\":{\"qrrldxfua\":{\"type\":\"Array\",\"defaultValue\":\"datarxros\"},\"eyrqve\":{\"type\":\"Bool\",\"defaultValue\":\"datawxatktwjrppi\"}},\"annotations\":[\"datadcizhvksb\",\"datajklwjp\"],\"folder\":{\"name\":\"ncw\"},\"\":{\"uduiqoom\":\"datapyeyzolbfnflytf\",\"opwsnliyznghuq\":\"dataswkq\",\"dwrgavtfyzse\":\"datagpdglkf\"}}") - .toObject(RestResourceDataset.class); - Assertions.assertEquals("kcrudekkbnjre", model.description()); - Assertions.assertEquals("h", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("qrrldxfua").type()); - Assertions.assertEquals("ncw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDataset model = new RestResourceDataset().withDescription("kcrudekkbnjre") - .withStructure("dataptedeuenthshnfi") - .withSchema("datapgpkkhpjnglaqlm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("h") - .withParameters(mapOf("cpvfpnrzikvoxloe", "datardlpxiwwg", "hpxukxgoyxon", "datahyfivxdifbwbli"))) - .withParameters(mapOf("qrrldxfua", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datarxros"), "eyrqve", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawxatktwjrppi"))) - .withAnnotations(Arrays.asList("datadcizhvksb", "datajklwjp")) - .withFolder(new DatasetFolder().withName("ncw")) - .withRelativeUrl("dataaefe") - .withRequestMethod("datavkxdbnmcvaqy") - .withRequestBody("datazdobuesdyvfxnz") - .withAdditionalHeaders(mapOf("dpsegivytabvbbk", "datafupktw")) - .withPaginationRules(mapOf("wuuqbmenxcqsxwc", "datawgsltutbuve")); - model = BinaryData.fromObject(model).toObject(RestResourceDataset.class); - Assertions.assertEquals("kcrudekkbnjre", model.description()); - Assertions.assertEquals("h", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("qrrldxfua").type()); - Assertions.assertEquals("ncw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 65f67a5a7a85..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RestResourceDatasetTypeProperties; -import java.util.HashMap; -import java.util.Map; - -public final class RestResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestResourceDatasetTypeProperties model = BinaryData.fromString( - "{\"relativeUrl\":\"datam\",\"requestMethod\":\"datakryxpi\",\"requestBody\":\"dataapeakfdmcedl\",\"additionalHeaders\":{\"yoddoqkanqtrkicw\":\"datax\",\"wwmu\":\"dataqyrgqmndk\",\"kitlwgebylpz\":\"datahvifqeqfsrna\"},\"paginationRules\":{\"nilnijhwcbr\":\"datadaqwj\",\"npkbvzpk\":\"datasypo\"}}") - .toObject(RestResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDatasetTypeProperties model = new RestResourceDatasetTypeProperties().withRelativeUrl("datam") - .withRequestMethod("datakryxpi") - .withRequestBody("dataapeakfdmcedl") - .withAdditionalHeaders( - mapOf("yoddoqkanqtrkicw", "datax", "wwmu", "dataqyrgqmndk", "kitlwgebylpz", "datahvifqeqfsrna")) - .withPaginationRules(mapOf("nilnijhwcbr", "datadaqwj", "npkbvzpk", "datasypo")); - model = BinaryData.fromObject(model).toObject(RestResourceDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java deleted file mode 100644 index f42bee9068b7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RestSink; - -public final class RestSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestSink model = BinaryData.fromString( - "{\"type\":\"RestSink\",\"requestMethod\":\"datao\",\"additionalHeaders\":\"datarhlyhgii\",\"httpRequestTimeout\":\"datafa\",\"requestInterval\":\"dataobo\",\"httpCompressionType\":\"datapyilojwcza\",\"writeBatchSize\":\"datawtausk\",\"writeBatchTimeout\":\"datahhmtypgrkdmezaun\",\"sinkRetryCount\":\"datacqtigav\",\"sinkRetryWait\":\"datasnrjhjlploaeppl\",\"maxConcurrentConnections\":\"datakcazuj\",\"disableMetricsCollection\":\"datauuzbsxhivncue\",\"\":{\"rtlnzdk\":\"dataexcn\"}}") - .toObject(RestSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSink model = new RestSink().withWriteBatchSize("datawtausk") - .withWriteBatchTimeout("datahhmtypgrkdmezaun") - .withSinkRetryCount("datacqtigav") - .withSinkRetryWait("datasnrjhjlploaeppl") - .withMaxConcurrentConnections("datakcazuj") - .withDisableMetricsCollection("datauuzbsxhivncue") - .withRequestMethod("datao") - .withAdditionalHeaders("datarhlyhgii") - .withHttpRequestTimeout("datafa") - .withRequestInterval("dataobo") - .withHttpCompressionType("datapyilojwcza"); - model = BinaryData.fromObject(model).toObject(RestSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java deleted file mode 100644 index 8ce83ff7075f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RestSource; - -public final class RestSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestSource model = BinaryData.fromString( - "{\"type\":\"RestSource\",\"requestMethod\":\"datafeavz\",\"requestBody\":\"datammzisljxphwy\",\"additionalHeaders\":\"datamcpfrakucgjreoac\",\"paginationRules\":\"dataaboozxkdzmtkmn\",\"httpRequestTimeout\":\"datafdemrc\",\"requestInterval\":\"dataxgpkyetm\",\"additionalColumns\":\"datahihixisdvyflkeqg\",\"sourceRetryCount\":\"datajsbtosiwcve\",\"sourceRetryWait\":\"dataehbw\",\"maxConcurrentConnections\":\"dataoc\",\"disableMetricsCollection\":\"datazlfhhwdajfth\",\"\":{\"on\":\"datauomj\",\"qsniobehxxb\":\"datafq\"}}") - .toObject(RestSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSource model = new RestSource().withSourceRetryCount("datajsbtosiwcve") - .withSourceRetryWait("dataehbw") - .withMaxConcurrentConnections("dataoc") - .withDisableMetricsCollection("datazlfhhwdajfth") - .withRequestMethod("datafeavz") - .withRequestBody("datammzisljxphwy") - .withAdditionalHeaders("datamcpfrakucgjreoac") - .withPaginationRules("dataaboozxkdzmtkmn") - .withHttpRequestTimeout("datafdemrc") - .withRequestInterval("dataxgpkyetm") - .withAdditionalColumns("datahihixisdvyflkeqg"); - model = BinaryData.fromObject(model).toObject(RestSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RetryPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RetryPolicyTests.java deleted file mode 100644 index bcb171a6abb0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RetryPolicyTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import org.junit.jupiter.api.Assertions; - -public final class RetryPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RetryPolicy model = BinaryData.fromString("{\"count\":\"datapqlltoiud\",\"intervalInSeconds\":71196772}") - .toObject(RetryPolicy.class); - Assertions.assertEquals(71196772, model.intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RetryPolicy model = new RetryPolicy().withCount("datapqlltoiud").withIntervalInSeconds(71196772); - model = BinaryData.fromObject(model).toObject(RetryPolicy.class); - Assertions.assertEquals(71196772, model.intervalInSeconds()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java deleted file mode 100644 index b32eee745384..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RunQueryFilterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RunQueryFilter model = BinaryData - .fromString("{\"operand\":\"TriggerRunTimestamp\",\"operator\":\"In\",\"values\":[\"dweyuqdunv\"]}") - .toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.IN, model.operator()); - Assertions.assertEquals("dweyuqdunv", model.values().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunQueryFilter model = new RunQueryFilter().withOperand(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP) - .withOperator(RunQueryFilterOperator.IN) - .withValues(Arrays.asList("dweyuqdunv")); - model = BinaryData.fromObject(model).toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.IN, model.operator()); - Assertions.assertEquals("dweyuqdunv", model.values().get(0)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java deleted file mode 100644 index fb198b8d7a04..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RunQueryOrder; -import com.azure.resourcemanager.datafactory.models.RunQueryOrderBy; -import com.azure.resourcemanager.datafactory.models.RunQueryOrderByField; -import org.junit.jupiter.api.Assertions; - -public final class RunQueryOrderByTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RunQueryOrderBy model - = BinaryData.fromString("{\"orderBy\":\"TriggerName\",\"order\":\"DESC\"}").toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.TRIGGER_NAME, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.DESC, model.order()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunQueryOrderBy model - = new RunQueryOrderBy().withOrderBy(RunQueryOrderByField.TRIGGER_NAME).withOrder(RunQueryOrder.DESC); - model = BinaryData.fromObject(model).toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.TRIGGER_NAME, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.DESC, model.order()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java deleted file mode 100644 index 1b197b7d883a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceMarketingCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceMarketingCloudObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceMarketingCloudObject\",\"typeProperties\":{\"tableName\":\"dataesywywnvgy\"},\"description\":\"c\",\"structure\":\"datarzcw\",\"schema\":\"datajmxlfzl\",\"linkedServiceName\":{\"referenceName\":\"zyrgrlh\",\"parameters\":{\"vm\":\"dataaunjovlxq\",\"rgmnkgtlhzkrazk\":\"datazpniqwx\",\"eqzhehgvmm\":\"dataoiyecznvzmsvzng\"}},\"parameters\":{\"ypkfcdfuxi\":{\"type\":\"String\",\"defaultValue\":\"datanbnyplu\"},\"cdvhyefqhxyts\":{\"type\":\"String\",\"defaultValue\":\"dataxotnoil\"},\"ratqlreqbrc\":{\"type\":\"Int\",\"defaultValue\":\"datawcacwaaqakvokyax\"},\"babowrcyrnmj\":{\"type\":\"String\",\"defaultValue\":\"datatshzumxucz\"}},\"annotations\":[\"datawxqzkkagve\",\"datahmnaphrskmpeajz\"],\"folder\":{\"name\":\"avamzmzfntte\"},\"\":{\"pjdr\":\"datatxytja\",\"vbfaehjji\":\"datalijk\"}}") - .toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals("zyrgrlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ypkfcdfuxi").type()); - Assertions.assertEquals("avamzmzfntte", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudObjectDataset model - = new SalesforceMarketingCloudObjectDataset().withDescription("c") - .withStructure("datarzcw") - .withSchema("datajmxlfzl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zyrgrlh") - .withParameters(mapOf("vm", "dataaunjovlxq", "rgmnkgtlhzkrazk", "datazpniqwx", "eqzhehgvmm", - "dataoiyecznvzmsvzng"))) - .withParameters( - mapOf("ypkfcdfuxi", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datanbnyplu"), - "cdvhyefqhxyts", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxotnoil"), - "ratqlreqbrc", - new ParameterSpecification().withType(ParameterType.INT) - .withDefaultValue("datawcacwaaqakvokyax"), - "babowrcyrnmj", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatshzumxucz"))) - .withAnnotations(Arrays.asList("datawxqzkkagve", "datahmnaphrskmpeajz")) - .withFolder(new DatasetFolder().withName("avamzmzfntte")) - .withTableName("dataesywywnvgy"); - model = BinaryData.fromObject(model).toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals("zyrgrlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ypkfcdfuxi").type()); - Assertions.assertEquals("avamzmzfntte", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java deleted file mode 100644 index 6529a2177734..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudSource; - -public final class SalesforceMarketingCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceMarketingCloudSource model = BinaryData.fromString( - "{\"type\":\"SalesforceMarketingCloudSource\",\"query\":\"dataokjwsszyetwoukdh\",\"queryTimeout\":\"dataerdggjihnz\",\"additionalColumns\":\"dataehgwgqgcnkgh\",\"sourceRetryCount\":\"datazjxouxigdwpgmh\",\"sourceRetryWait\":\"datavnexnw\",\"maxConcurrentConnections\":\"datawcxaqlym\",\"disableMetricsCollection\":\"datazv\",\"\":{\"lgkzgzxqwv\":\"dataecfyusfkcwfpoa\",\"bbd\":\"datafkqbgkssygdvl\",\"hpwpsx\":\"dataul\",\"bazbtyrjroqgnsf\":\"datagrniqnxps\"}}") - .toObject(SalesforceMarketingCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudSource model - = new SalesforceMarketingCloudSource().withSourceRetryCount("datazjxouxigdwpgmh") - .withSourceRetryWait("datavnexnw") - .withMaxConcurrentConnections("datawcxaqlym") - .withDisableMetricsCollection("datazv") - .withQueryTimeout("dataerdggjihnz") - .withAdditionalColumns("dataehgwgqgcnkgh") - .withQuery("dataokjwsszyetwoukdh"); - model = BinaryData.fromObject(model).toObject(SalesforceMarketingCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java deleted file mode 100644 index 7dccc7d77060..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceObject\",\"typeProperties\":{\"objectApiName\":\"dataxrltqmmijgpqfkwn\"},\"description\":\"ikczscymqfv\",\"structure\":\"datawpq\",\"schema\":\"dataumz\",\"linkedServiceName\":{\"referenceName\":\"pd\",\"parameters\":{\"zk\":\"datazvp\"}},\"parameters\":{\"wed\":{\"type\":\"Bool\",\"defaultValue\":\"datazbflbqmhbiyxx\"},\"lmsy\":{\"type\":\"SecureString\",\"defaultValue\":\"dataqbbseseayu\"},\"zk\":{\"type\":\"String\",\"defaultValue\":\"datacrolrzesbomp\"}},\"annotations\":[\"datanwjivtbusz\"],\"folder\":{\"name\":\"rdf\"},\"\":{\"sdeqngcaydzinlo\":\"dataywdal\",\"xrsi\":\"dataulpozmdahyc\"}}") - .toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("ikczscymqfv", model.description()); - Assertions.assertEquals("pd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wed").type()); - Assertions.assertEquals("rdf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDataset model = new SalesforceObjectDataset().withDescription("ikczscymqfv") - .withStructure("datawpq") - .withSchema("dataumz") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("pd").withParameters(mapOf("zk", "datazvp"))) - .withParameters(mapOf("wed", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datazbflbqmhbiyxx"), "lmsy", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataqbbseseayu"), - "zk", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datacrolrzesbomp"))) - .withAnnotations(Arrays.asList("datanwjivtbusz")) - .withFolder(new DatasetFolder().withName("rdf")) - .withObjectApiName("dataxrltqmmijgpqfkwn"); - model = BinaryData.fromObject(model).toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("ikczscymqfv", model.description()); - Assertions.assertEquals("pd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wed").type()); - Assertions.assertEquals("rdf", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java deleted file mode 100644 index 49f504548b10..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceObjectDatasetTypeProperties; - -public final class SalesforceObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceObjectDatasetTypeProperties model = BinaryData.fromString("{\"objectApiName\":\"dataebldpo\"}") - .toObject(SalesforceObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDatasetTypeProperties model - = new SalesforceObjectDatasetTypeProperties().withObjectApiName("dataebldpo"); - model = BinaryData.fromObject(model).toObject(SalesforceObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java deleted file mode 100644 index 70afea7c5c91..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudObject\",\"typeProperties\":{\"objectApiName\":\"datafj\"},\"description\":\"tnhrevimxmaxcj\",\"structure\":\"dataitygvdwds\",\"schema\":\"datatb\",\"linkedServiceName\":{\"referenceName\":\"kvuozbzchnqek\",\"parameters\":{\"kjse\":\"dataklpurlcydjh\",\"rdonkgobx\":\"datawiynd\"}},\"parameters\":{\"rswknpdrgnmza\":{\"type\":\"SecureString\",\"defaultValue\":\"datale\"},\"bk\":{\"type\":\"Object\",\"defaultValue\":\"dataoefqckievyrejyo\"},\"rovomep\":{\"type\":\"Bool\",\"defaultValue\":\"datausdwmnrtvvbucn\"}},\"annotations\":[\"dataicvwqzo\",\"datasfshe\",\"datanmsg\"],\"folder\":{\"name\":\"dibugvnrgalvwrhr\"},\"\":{\"vnpyeevffifujgtd\":\"datarbknuubxcwojtupq\",\"ybpchrtczwjcujyz\":\"datawlxmwefc\",\"i\":\"datavyrjqdjlgk\",\"n\":\"dataxxeuwiiirc\"}}") - .toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("tnhrevimxmaxcj", model.description()); - Assertions.assertEquals("kvuozbzchnqek", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rswknpdrgnmza").type()); - Assertions.assertEquals("dibugvnrgalvwrhr", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDataset model - = new SalesforceServiceCloudObjectDataset().withDescription("tnhrevimxmaxcj") - .withStructure("dataitygvdwds") - .withSchema("datatb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kvuozbzchnqek") - .withParameters(mapOf("kjse", "dataklpurlcydjh", "rdonkgobx", "datawiynd"))) - .withParameters(mapOf("rswknpdrgnmza", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datale"), "bk", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataoefqckievyrejyo"), - "rovomep", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datausdwmnrtvvbucn"))) - .withAnnotations(Arrays.asList("dataicvwqzo", "datasfshe", "datanmsg")) - .withFolder(new DatasetFolder().withName("dibugvnrgalvwrhr")) - .withObjectApiName("datafj"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("tnhrevimxmaxcj", model.description()); - Assertions.assertEquals("kvuozbzchnqek", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rswknpdrgnmza").type()); - Assertions.assertEquals("dibugvnrgalvwrhr", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java deleted file mode 100644 index dbd3d1b8fe60..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudObjectDatasetTypeProperties; - -public final class SalesforceServiceCloudObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudObjectDatasetTypeProperties model - = BinaryData.fromString("{\"objectApiName\":\"databdviwx\"}") - .toObject(SalesforceServiceCloudObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDatasetTypeProperties model - = new SalesforceServiceCloudObjectDatasetTypeProperties().withObjectApiName("databdviwx"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java deleted file mode 100644 index ea3da4b61f68..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudSink; -import com.azure.resourcemanager.datafactory.models.SalesforceSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudSink model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudSink\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datafl\",\"ignoreNullValues\":\"datagrnh\",\"writeBatchSize\":\"datasdmovbvnjyqqofdg\",\"writeBatchTimeout\":\"dataykc\",\"sinkRetryCount\":\"dataln\",\"sinkRetryWait\":\"datarggytyvox\",\"maxConcurrentConnections\":\"databyjg\",\"disableMetricsCollection\":\"datazjmukfwmhzarrft\",\"\":{\"vvab\":\"dataifrjgvhone\"}}") - .toObject(SalesforceServiceCloudSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSink model = new SalesforceServiceCloudSink().withWriteBatchSize("datasdmovbvnjyqqofdg") - .withWriteBatchTimeout("dataykc") - .withSinkRetryCount("dataln") - .withSinkRetryWait("datarggytyvox") - .withMaxConcurrentConnections("databyjg") - .withDisableMetricsCollection("datazjmukfwmhzarrft") - .withWriteBehavior(SalesforceSinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datafl") - .withIgnoreNullValues("datagrnh"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.java deleted file mode 100644 index f9bf1d4539db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudSource; - -public final class SalesforceServiceCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudSource model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudSource\",\"query\":\"datajwiz\",\"readBehavior\":\"dataifz\",\"additionalColumns\":\"dataxtykjrdxlximvr\",\"sourceRetryCount\":\"datajja\",\"sourceRetryWait\":\"dataaskullvtsauj\",\"maxConcurrentConnections\":\"datahtz\",\"disableMetricsCollection\":\"datazqrpfhzxkjyg\",\"\":{\"jcozbnmthxcm\":\"datadgwdha\",\"exn\":\"dataq\",\"msmzykpnjgi\":\"datapvox\"}}") - .toObject(SalesforceServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSource model = new SalesforceServiceCloudSource().withSourceRetryCount("datajja") - .withSourceRetryWait("dataaskullvtsauj") - .withMaxConcurrentConnections("datahtz") - .withDisableMetricsCollection("datazqrpfhzxkjyg") - .withQuery("datajwiz") - .withReadBehavior("dataifz") - .withAdditionalColumns("dataxtykjrdxlximvr"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.java deleted file mode 100644 index 7b08bcb1a6d4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudV2ObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudV2Object\",\"typeProperties\":{\"objectApiName\":\"dataadzglm\",\"reportId\":\"datazpsuhsypxmul\"},\"description\":\"frerkqp\",\"structure\":\"datajxkbywsbu\",\"schema\":\"datamxbdjkmn\",\"linkedServiceName\":{\"referenceName\":\"sggnowx\",\"parameters\":{\"svghbtycvlkus\":\"datadbrd\",\"ype\":\"dataiikhrct\"}},\"parameters\":{\"sdvkym\":{\"type\":\"Bool\",\"defaultValue\":\"datardis\"}},\"annotations\":[\"datawmivoxgzegngl\"],\"folder\":{\"name\":\"fgazagh\"},\"\":{\"wxuxor\":\"datao\",\"lssolqypv\":\"datautuhvemg\",\"hvrkqv\":\"dataxlx\"}}") - .toObject(SalesforceServiceCloudV2ObjectDataset.class); - Assertions.assertEquals("frerkqp", model.description()); - Assertions.assertEquals("sggnowx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("sdvkym").type()); - Assertions.assertEquals("fgazagh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2ObjectDataset model = new SalesforceServiceCloudV2ObjectDataset() - .withDescription("frerkqp") - .withStructure("datajxkbywsbu") - .withSchema("datamxbdjkmn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("sggnowx") - .withParameters(mapOf("svghbtycvlkus", "datadbrd", "ype", "dataiikhrct"))) - .withParameters( - mapOf("sdvkym", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datardis"))) - .withAnnotations(Arrays.asList("datawmivoxgzegngl")) - .withFolder(new DatasetFolder().withName("fgazagh")) - .withObjectApiName("dataadzglm") - .withReportId("datazpsuhsypxmul"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2ObjectDataset.class); - Assertions.assertEquals("frerkqp", model.description()); - Assertions.assertEquals("sggnowx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("sdvkym").type()); - Assertions.assertEquals("fgazagh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests.java deleted file mode 100644 index aaa077a3d877..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudV2ObjectDatasetTypeProperties; - -public final class SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2ObjectDatasetTypeProperties model - = BinaryData.fromString("{\"objectApiName\":\"datagd\",\"reportId\":\"datacvzfc\"}") - .toObject(SalesforceServiceCloudV2ObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2ObjectDatasetTypeProperties model - = new SalesforceServiceCloudV2ObjectDatasetTypeProperties().withObjectApiName("datagd") - .withReportId("datacvzfc"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2ObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SinkTests.java deleted file mode 100644 index d247eb5ffced..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudV2Sink; -import com.azure.resourcemanager.datafactory.models.SalesforceV2SinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2Sink model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudV2Sink\",\"writeBehavior\":\"Insert\",\"externalIdFieldName\":\"datan\",\"ignoreNullValues\":\"databwvaiiuq\",\"writeBatchSize\":\"dataaqoqjnvmfmrymk\",\"writeBatchTimeout\":\"datatorv\",\"sinkRetryCount\":\"datapjxdi\",\"sinkRetryWait\":\"datautdzhkbc\",\"maxConcurrentConnections\":\"dataav\",\"disableMetricsCollection\":\"datafmgtxzvy\",\"\":{\"bbjcznx\":\"datamlkrxjq\",\"yu\":\"datahiwaau\",\"onrrarznlr\":\"datajirtiubvyudk\"}}") - .toObject(SalesforceServiceCloudV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2Sink model = new SalesforceServiceCloudV2Sink().withWriteBatchSize("dataaqoqjnvmfmrymk") - .withWriteBatchTimeout("datatorv") - .withSinkRetryCount("datapjxdi") - .withSinkRetryWait("datautdzhkbc") - .withMaxConcurrentConnections("dataav") - .withDisableMetricsCollection("datafmgtxzvy") - .withWriteBehavior(SalesforceV2SinkWriteBehavior.INSERT) - .withExternalIdFieldName("datan") - .withIgnoreNullValues("databwvaiiuq"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.INSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SourceTests.java deleted file mode 100644 index 8e42e215005b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudV2Source; - -public final class SalesforceServiceCloudV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2Source model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudV2Source\",\"SOQLQuery\":\"datawvtimy\",\"query\":\"datadogn\",\"includeDeletedObjects\":\"datahvgow\",\"additionalColumns\":\"datakdjnszjiykwbyt\",\"sourceRetryCount\":\"datahcp\",\"sourceRetryWait\":\"datadv\",\"maxConcurrentConnections\":\"dataxv\",\"disableMetricsCollection\":\"dataezly\",\"\":{\"uz\":\"dataovcrmoalvea\",\"zrrikvyu\":\"dataezrajpedowmh\",\"cwbupxfikiumhv\":\"dataxnopdeqqf\",\"ilgamxnj\":\"dataxptqbwn\"}}") - .toObject(SalesforceServiceCloudV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2Source model = new SalesforceServiceCloudV2Source().withSourceRetryCount("datahcp") - .withSourceRetryWait("datadv") - .withMaxConcurrentConnections("dataxv") - .withDisableMetricsCollection("dataezly") - .withSoqlQuery("datawvtimy") - .withQuery("datadogn") - .withIncludeDeletedObjects("datahvgow") - .withAdditionalColumns("datakdjnszjiykwbyt"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java deleted file mode 100644 index 7f21ca3ba51e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceSink; -import com.azure.resourcemanager.datafactory.models.SalesforceSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceSink model = BinaryData.fromString( - "{\"type\":\"SalesforceSink\",\"writeBehavior\":\"Insert\",\"externalIdFieldName\":\"datag\",\"ignoreNullValues\":\"dataemocndb\",\"writeBatchSize\":\"dataxrkoxwyxodpcgdv\",\"writeBatchTimeout\":\"datan\",\"sinkRetryCount\":\"datavxdafilaizcdugn\",\"sinkRetryWait\":\"datamljgayka\",\"maxConcurrentConnections\":\"datankxoqecjznuqg\",\"disableMetricsCollection\":\"datavmuewshhq\",\"\":{\"liezf\":\"datac\",\"raksahw\":\"datatczzjfzjovwiz\",\"snb\":\"datapukltfknroxm\",\"fvqtvukcfesizkn\":\"datacz\"}}") - .toObject(SalesforceSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSink model = new SalesforceSink().withWriteBatchSize("dataxrkoxwyxodpcgdv") - .withWriteBatchTimeout("datan") - .withSinkRetryCount("datavxdafilaizcdugn") - .withSinkRetryWait("datamljgayka") - .withMaxConcurrentConnections("datankxoqecjznuqg") - .withDisableMetricsCollection("datavmuewshhq") - .withWriteBehavior(SalesforceSinkWriteBehavior.INSERT) - .withExternalIdFieldName("datag") - .withIgnoreNullValues("dataemocndb"); - model = BinaryData.fromObject(model).toObject(SalesforceSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.INSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java deleted file mode 100644 index 6cce73c85700..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceSource; - -public final class SalesforceSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceSource model = BinaryData.fromString( - "{\"type\":\"SalesforceSource\",\"query\":\"dataaaoofltbsay\",\"readBehavior\":\"datawaejxzkqcmddc\",\"queryTimeout\":\"datanxyr\",\"additionalColumns\":\"dataegabsfjrjzdqscgo\",\"sourceRetryCount\":\"datagd\",\"sourceRetryWait\":\"dataepgfrb\",\"maxConcurrentConnections\":\"dataoeh\",\"disableMetricsCollection\":\"datawwsgqziwo\",\"\":{\"okckxfk\":\"datawjssyazmmbuxq\",\"qf\":\"datatqkbyruheawuc\",\"jguwts\":\"datarbtbogxlyvebv\"}}") - .toObject(SalesforceSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSource model = new SalesforceSource().withSourceRetryCount("datagd") - .withSourceRetryWait("dataepgfrb") - .withMaxConcurrentConnections("dataoeh") - .withDisableMetricsCollection("datawwsgqziwo") - .withQueryTimeout("datanxyr") - .withAdditionalColumns("dataegabsfjrjzdqscgo") - .withQuery("dataaaoofltbsay") - .withReadBehavior("datawaejxzkqcmddc"); - model = BinaryData.fromObject(model).toObject(SalesforceSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.java deleted file mode 100644 index ccc54d67ffd0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceV2ObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceV2Object\",\"typeProperties\":{\"objectApiName\":\"dataalrjwaez\",\"reportId\":\"dataybsps\"},\"description\":\"mtcepzimfcfs\",\"structure\":\"datawexpasckpgbmly\",\"schema\":\"datawslxgcmxtoejtq\",\"linkedServiceName\":{\"referenceName\":\"qct\",\"parameters\":{\"zntbpcaddpxqrx\":\"datadkxzxol\",\"jfzizxl\":\"dataperrplfmfvm\"}},\"parameters\":{\"agbahdbtjmku\":{\"type\":\"Float\",\"defaultValue\":\"databarxknfvbsy\"},\"lo\":{\"type\":\"Object\",\"defaultValue\":\"datarklbizrxhuqfvpa\"},\"g\":{\"type\":\"Bool\",\"defaultValue\":\"datavcxgqtquirgo\"},\"uoqhqrcsksxqfhl\":{\"type\":\"SecureString\",\"defaultValue\":\"dataucujtjuzvyjxuxch\"}},\"annotations\":[\"datavdagvyjcdpncvfye\",\"datayodiij\",\"datasapqhipajsniv\",\"datamevljbcuwrfgpjfv\"],\"folder\":{\"name\":\"seodvlmdzgv\"},\"\":{\"crsm\":\"datazzugctygbbmumljv\",\"umnru\":\"dataojmxwc\",\"keqjftvltjop\":\"dataq\"}}") - .toObject(SalesforceV2ObjectDataset.class); - Assertions.assertEquals("mtcepzimfcfs", model.description()); - Assertions.assertEquals("qct", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("agbahdbtjmku").type()); - Assertions.assertEquals("seodvlmdzgv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2ObjectDataset model = new SalesforceV2ObjectDataset().withDescription("mtcepzimfcfs") - .withStructure("datawexpasckpgbmly") - .withSchema("datawslxgcmxtoejtq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qct") - .withParameters(mapOf("zntbpcaddpxqrx", "datadkxzxol", "jfzizxl", "dataperrplfmfvm"))) - .withParameters(mapOf("agbahdbtjmku", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("databarxknfvbsy"), "lo", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datarklbizrxhuqfvpa"), - "g", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datavcxgqtquirgo"), - "uoqhqrcsksxqfhl", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataucujtjuzvyjxuxch"))) - .withAnnotations( - Arrays.asList("datavdagvyjcdpncvfye", "datayodiij", "datasapqhipajsniv", "datamevljbcuwrfgpjfv")) - .withFolder(new DatasetFolder().withName("seodvlmdzgv")) - .withObjectApiName("dataalrjwaez") - .withReportId("dataybsps"); - model = BinaryData.fromObject(model).toObject(SalesforceV2ObjectDataset.class); - Assertions.assertEquals("mtcepzimfcfs", model.description()); - Assertions.assertEquals("qct", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("agbahdbtjmku").type()); - Assertions.assertEquals("seodvlmdzgv", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTypePropertiesTests.java deleted file mode 100644 index 4e0683c0878f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceV2ObjectDatasetTypeProperties; - -public final class SalesforceV2ObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2ObjectDatasetTypeProperties model - = BinaryData.fromString("{\"objectApiName\":\"datavpkbz\",\"reportId\":\"datanowpajfhxsmu\"}") - .toObject(SalesforceV2ObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2ObjectDatasetTypeProperties model - = new SalesforceV2ObjectDatasetTypeProperties().withObjectApiName("datavpkbz") - .withReportId("datanowpajfhxsmu"); - model = BinaryData.fromObject(model).toObject(SalesforceV2ObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SinkTests.java deleted file mode 100644 index 35e377b513ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceV2Sink; -import com.azure.resourcemanager.datafactory.models.SalesforceV2SinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2Sink model = BinaryData.fromString( - "{\"type\":\"SalesforceV2Sink\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datansbbhd\",\"ignoreNullValues\":\"dataegllc\",\"writeBatchSize\":\"dataihy\",\"writeBatchTimeout\":\"datagukf\",\"sinkRetryCount\":\"dataqokzvxknygimohrl\",\"sinkRetryWait\":\"datajyxhwvnyupszchq\",\"maxConcurrentConnections\":\"dataudd\",\"disableMetricsCollection\":\"datazvsmnxb\",\"\":{\"mgfwdxukmeo\":\"dataib\"}}") - .toObject(SalesforceV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2Sink model = new SalesforceV2Sink().withWriteBatchSize("dataihy") - .withWriteBatchTimeout("datagukf") - .withSinkRetryCount("dataqokzvxknygimohrl") - .withSinkRetryWait("datajyxhwvnyupszchq") - .withMaxConcurrentConnections("dataudd") - .withDisableMetricsCollection("datazvsmnxb") - .withWriteBehavior(SalesforceV2SinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datansbbhd") - .withIgnoreNullValues("dataegllc"); - model = BinaryData.fromObject(model).toObject(SalesforceV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.UPSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SourceTests.java deleted file mode 100644 index cec666bee7f0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceV2Source; - -public final class SalesforceV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2Source model = BinaryData.fromString( - "{\"type\":\"SalesforceV2Source\",\"SOQLQuery\":\"datahzfjmnaby\",\"query\":\"datachhkwlmittpbi\",\"includeDeletedObjects\":\"datakdxhnvyb\",\"pageSize\":\"datalbdazsjbgvdzz\",\"queryTimeout\":\"datahlwvvhovkad\",\"additionalColumns\":\"datahgbtnle\",\"sourceRetryCount\":\"datadah\",\"sourceRetryWait\":\"dataijvikpgzkfjqob\",\"maxConcurrentConnections\":\"datajlrvxryjxjdlg\",\"disableMetricsCollection\":\"datanjalccix\",\"\":{\"jznzgmfufszvsji\":\"datazgbuhcrwqrf\",\"lcqaafuwxeho\":\"datajve\",\"q\":\"dataazbgcbd\"}}") - .toObject(SalesforceV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2Source model = new SalesforceV2Source().withSourceRetryCount("datadah") - .withSourceRetryWait("dataijvikpgzkfjqob") - .withMaxConcurrentConnections("datajlrvxryjxjdlg") - .withDisableMetricsCollection("datanjalccix") - .withQueryTimeout("datahlwvvhovkad") - .withAdditionalColumns("datahgbtnle") - .withSoqlQuery("datahzfjmnaby") - .withQuery("datachhkwlmittpbi") - .withIncludeDeletedObjects("datakdxhnvyb") - .withPageSize("datalbdazsjbgvdzz"); - model = BinaryData.fromObject(model).toObject(SalesforceV2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java deleted file mode 100644 index f62e908a0b24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapBwCubeDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapBwCubeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapBwCubeDataset model = BinaryData.fromString( - "{\"type\":\"SapBwCube\",\"description\":\"pu\",\"structure\":\"dataa\",\"schema\":\"datasujtgg\",\"linkedServiceName\":{\"referenceName\":\"bszam\",\"parameters\":{\"lrnhhjtvhqsz\":\"dataejpdcliqwzutiy\",\"dp\":\"datasyovqmqc\"}},\"parameters\":{\"kjthl\":{\"type\":\"Object\",\"defaultValue\":\"datanf\"},\"wfubk\":{\"type\":\"String\",\"defaultValue\":\"dataxw\"},\"uktdrsjtmnkxjouw\":{\"type\":\"Int\",\"defaultValue\":\"datajjxumowynjmoozm\"}},\"annotations\":[\"datafdt\",\"datatia\"],\"folder\":{\"name\":\"rnuhcfhepisqbc\"},\"\":{\"blcyeqdobobaq\":\"dataoiommemsoq\",\"srsixwn\":\"dataabebckc\",\"qyyfrridzfpsfyak\":\"datapjcxbjgfm\"}}") - .toObject(SapBwCubeDataset.class); - Assertions.assertEquals("pu", model.description()); - Assertions.assertEquals("bszam", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("kjthl").type()); - Assertions.assertEquals("rnuhcfhepisqbc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwCubeDataset model = new SapBwCubeDataset().withDescription("pu") - .withStructure("dataa") - .withSchema("datasujtgg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bszam") - .withParameters(mapOf("lrnhhjtvhqsz", "dataejpdcliqwzutiy", "dp", "datasyovqmqc"))) - .withParameters( - mapOf("kjthl", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanf"), - "wfubk", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxw"), - "uktdrsjtmnkxjouw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datajjxumowynjmoozm"))) - .withAnnotations(Arrays.asList("datafdt", "datatia")) - .withFolder(new DatasetFolder().withName("rnuhcfhepisqbc")); - model = BinaryData.fromObject(model).toObject(SapBwCubeDataset.class); - Assertions.assertEquals("pu", model.description()); - Assertions.assertEquals("bszam", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("kjthl").type()); - Assertions.assertEquals("rnuhcfhepisqbc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java deleted file mode 100644 index 72294564d3ac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapBwSource; - -public final class SapBwSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapBwSource model = BinaryData.fromString( - "{\"type\":\"SapBwSource\",\"query\":\"datacnk\",\"queryTimeout\":\"datamiecfmqc\",\"additionalColumns\":\"datapcdbvcxo\",\"sourceRetryCount\":\"datahefuhnbdl\",\"sourceRetryWait\":\"datawectz\",\"maxConcurrentConnections\":\"datagvcbt\",\"disableMetricsCollection\":\"datampnkyvujhej\",\"\":{\"nbqhmuqyz\":\"datavlguysbrn\",\"ffdaxlyhxpdq\":\"datakormrcjshtcfn\"}}") - .toObject(SapBwSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwSource model = new SapBwSource().withSourceRetryCount("datahefuhnbdl") - .withSourceRetryWait("datawectz") - .withMaxConcurrentConnections("datagvcbt") - .withDisableMetricsCollection("datampnkyvujhej") - .withQueryTimeout("datamiecfmqc") - .withAdditionalColumns("datapcdbvcxo") - .withQuery("datacnk"); - model = BinaryData.fromObject(model).toObject(SapBwSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java deleted file mode 100644 index ef2686eac14d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapCloudForCustomerResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapCloudForCustomerResource\",\"typeProperties\":{\"path\":\"datadfhmlx\"},\"description\":\"keknumkqafzv\",\"structure\":\"datariysjrgt\",\"schema\":\"datawpuqpsrc\",\"linkedServiceName\":{\"referenceName\":\"kdvvoydwedggwg\",\"parameters\":{\"drjbjngoars\":\"databwatz\"}},\"parameters\":{\"rqw\":{\"type\":\"Float\",\"defaultValue\":\"dataemzcyniapypimrx\"},\"stuinytkmlfupjzc\":{\"type\":\"Object\",\"defaultValue\":\"datae\"},\"yxjg\":{\"type\":\"Array\",\"defaultValue\":\"datazj\"}},\"annotations\":[\"datauerrdaktnytkbc\",\"datarfcvcp\"],\"folder\":{\"name\":\"j\"},\"\":{\"vlhnhhcikhleb\":\"datapw\",\"giflr\":\"datajgylsac\"}}") - .toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("keknumkqafzv", model.description()); - Assertions.assertEquals("kdvvoydwedggwg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("rqw").type()); - Assertions.assertEquals("j", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDataset model - = new SapCloudForCustomerResourceDataset().withDescription("keknumkqafzv") - .withStructure("datariysjrgt") - .withSchema("datawpuqpsrc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kdvvoydwedggwg") - .withParameters(mapOf("drjbjngoars", "databwatz"))) - .withParameters( - mapOf("rqw", - new ParameterSpecification().withType(ParameterType.FLOAT) - .withDefaultValue("dataemzcyniapypimrx"), - "stuinytkmlfupjzc", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datae"), "yxjg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazj"))) - .withAnnotations(Arrays.asList("datauerrdaktnytkbc", "datarfcvcp")) - .withFolder(new DatasetFolder().withName("j")) - .withPath("datadfhmlx"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("keknumkqafzv", model.description()); - Assertions.assertEquals("kdvvoydwedggwg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("rqw").type()); - Assertions.assertEquals("j", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java deleted file mode 100644 index e1661ced5b69..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerResourceDatasetTypeProperties; - -public final class SapCloudForCustomerResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model = BinaryData.fromString("{\"path\":\"dataygotoh\"}") - .toObject(SapCloudForCustomerResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model - = new SapCloudForCustomerResourceDatasetTypeProperties().withPath("dataygotoh"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java deleted file mode 100644 index e346865a2064..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSink; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SapCloudForCustomerSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerSink model = BinaryData.fromString( - "{\"type\":\"SapCloudForCustomerSink\",\"writeBehavior\":\"Insert\",\"httpRequestTimeout\":\"datavvufqukjuosajqn\",\"writeBatchSize\":\"datacqdthmlqamdlcu\",\"writeBatchTimeout\":\"datamrvryakc\",\"sinkRetryCount\":\"datasnprda\",\"sinkRetryWait\":\"dataqgabbxexacgmt\",\"maxConcurrentConnections\":\"dataxb\",\"disableMetricsCollection\":\"databovexsnmww\",\"\":{\"kdl\":\"dataujlsztpygq\",\"mkc\":\"datasn\",\"n\":\"datamksfejzmyvlbz\",\"ovhddvtnbtvl\":\"dataxzpdnb\"}}") - .toObject(SapCloudForCustomerSink.class); - Assertions.assertEquals(SapCloudForCustomerSinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSink model = new SapCloudForCustomerSink().withWriteBatchSize("datacqdthmlqamdlcu") - .withWriteBatchTimeout("datamrvryakc") - .withSinkRetryCount("datasnprda") - .withSinkRetryWait("dataqgabbxexacgmt") - .withMaxConcurrentConnections("dataxb") - .withDisableMetricsCollection("databovexsnmww") - .withWriteBehavior(SapCloudForCustomerSinkWriteBehavior.INSERT) - .withHttpRequestTimeout("datavvufqukjuosajqn"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerSink.class); - Assertions.assertEquals(SapCloudForCustomerSinkWriteBehavior.INSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java deleted file mode 100644 index d3d798c443ac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSource; - -public final class SapCloudForCustomerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerSource model = BinaryData.fromString( - "{\"type\":\"SapCloudForCustomerSource\",\"query\":\"datauztb\",\"httpRequestTimeout\":\"datatfmcnrgwgcsto\",\"queryTimeout\":\"dataveehmvr\",\"additionalColumns\":\"dataurpzry\",\"sourceRetryCount\":\"datafdhch\",\"sourceRetryWait\":\"datawahaxyrdlvb\",\"maxConcurrentConnections\":\"datahfqsjzlckt\",\"disableMetricsCollection\":\"datagxteehyhxgnlpj\",\"\":{\"mijhnjk\":\"dataez\",\"huwz\":\"dataco\",\"bhobdocfv\":\"datankzbdeyhw\",\"jfzxsazu\":\"datajmmdmbylyndtq\"}}") - .toObject(SapCloudForCustomerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSource model = new SapCloudForCustomerSource().withSourceRetryCount("datafdhch") - .withSourceRetryWait("datawahaxyrdlvb") - .withMaxConcurrentConnections("datahfqsjzlckt") - .withDisableMetricsCollection("datagxteehyhxgnlpj") - .withQueryTimeout("dataveehmvr") - .withAdditionalColumns("dataurpzry") - .withQuery("datauztb") - .withHttpRequestTimeout("datatfmcnrgwgcsto"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java deleted file mode 100644 index 29eb5bb6953f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapEccResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapEccResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapEccResource\",\"typeProperties\":{\"path\":\"datawtoi\"},\"description\":\"bxitrapwzhlutj\",\"structure\":\"datazelsr\",\"schema\":\"datamvupm\",\"linkedServiceName\":{\"referenceName\":\"akosysycvldee\",\"parameters\":{\"egbvbbd\":\"datasaipusuof\",\"f\":\"dataedfflzvsluazz\",\"ee\":\"dataveugpx\",\"scboxra\":\"datapup\"}},\"parameters\":{\"fdr\":{\"type\":\"Float\",\"defaultValue\":\"datarjgobekxeheowsec\"},\"seesacuicnvq\":{\"type\":\"Int\",\"defaultValue\":\"dataskiwrjsbdb\"},\"vmrfaptndrmmn\":{\"type\":\"Array\",\"defaultValue\":\"datau\"}},\"annotations\":[\"datak\",\"dataxrqkekcdavi\",\"dataebeqrfza\",\"dataqymcwt\"],\"folder\":{\"name\":\"ceplbrzgkuorwpq\"},\"\":{\"ykk\":\"dataweobptscr\",\"sbnlyoifgdfzjqth\":\"dataelayynoyjyfls\",\"kxxlwwo\":\"datakcvoevcwfzo\",\"ubdmg\":\"dataxgbsdzcgcvypj\"}}") - .toObject(SapEccResourceDataset.class); - Assertions.assertEquals("bxitrapwzhlutj", model.description()); - Assertions.assertEquals("akosysycvldee", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fdr").type()); - Assertions.assertEquals("ceplbrzgkuorwpq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDataset model = new SapEccResourceDataset().withDescription("bxitrapwzhlutj") - .withStructure("datazelsr") - .withSchema("datamvupm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("akosysycvldee") - .withParameters(mapOf("egbvbbd", "datasaipusuof", "f", "dataedfflzvsluazz", "ee", "dataveugpx", - "scboxra", "datapup"))) - .withParameters(mapOf("fdr", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datarjgobekxeheowsec"), - "seesacuicnvq", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataskiwrjsbdb"), - "vmrfaptndrmmn", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datau"))) - .withAnnotations(Arrays.asList("datak", "dataxrqkekcdavi", "dataebeqrfza", "dataqymcwt")) - .withFolder(new DatasetFolder().withName("ceplbrzgkuorwpq")) - .withPath("datawtoi"); - model = BinaryData.fromObject(model).toObject(SapEccResourceDataset.class); - Assertions.assertEquals("bxitrapwzhlutj", model.description()); - Assertions.assertEquals("akosysycvldee", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fdr").type()); - Assertions.assertEquals("ceplbrzgkuorwpq", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 414df87ef63b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapEccResourceDatasetTypeProperties; - -public final class SapEccResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccResourceDatasetTypeProperties model = BinaryData.fromString("{\"path\":\"databxehujcqgzwvx\"}") - .toObject(SapEccResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDatasetTypeProperties model - = new SapEccResourceDatasetTypeProperties().withPath("databxehujcqgzwvx"); - model = BinaryData.fromObject(model).toObject(SapEccResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java deleted file mode 100644 index 37a7516e9212..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapEccSource; - -public final class SapEccSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccSource model = BinaryData.fromString( - "{\"type\":\"SapEccSource\",\"query\":\"datahwwtlerhpfrarq\",\"httpRequestTimeout\":\"dataushs\",\"queryTimeout\":\"datatvnqcmrr\",\"additionalColumns\":\"datalwgomhscs\",\"sourceRetryCount\":\"datalcnwbijxfcngef\",\"sourceRetryWait\":\"datag\",\"maxConcurrentConnections\":\"datadmrowhrrguvd\",\"disableMetricsCollection\":\"datagucwawlmsikl\",\"\":{\"mijzhrbsxjvu\":\"datadfcphg\"}}") - .toObject(SapEccSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccSource model = new SapEccSource().withSourceRetryCount("datalcnwbijxfcngef") - .withSourceRetryWait("datag") - .withMaxConcurrentConnections("datadmrowhrrguvd") - .withDisableMetricsCollection("datagucwawlmsikl") - .withQueryTimeout("datatvnqcmrr") - .withAdditionalColumns("datalwgomhscs") - .withQuery("datahwwtlerhpfrarq") - .withHttpRequestTimeout("dataushs"); - model = BinaryData.fromObject(model).toObject(SapEccSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaPartitionSettingsTests.java deleted file mode 100644 index 2ebdc604e812..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaPartitionSettingsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapHanaPartitionSettings; - -public final class SapHanaPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaPartitionSettings model = BinaryData.fromString("{\"partitionColumnName\":\"datapadkts\"}") - .toObject(SapHanaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaPartitionSettings model = new SapHanaPartitionSettings().withPartitionColumnName("datapadkts"); - model = BinaryData.fromObject(model).toObject(SapHanaPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java deleted file mode 100644 index 9ec97976a8a2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapHanaPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SapHanaSource; - -public final class SapHanaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaSource model = BinaryData.fromString( - "{\"type\":\"SapHanaSource\",\"query\":\"dataouelfyqf\",\"packetSize\":\"dataeblpdwckmnpzubzq\",\"partitionOption\":\"datawgfjrgngcpbsh\",\"partitionSettings\":{\"partitionColumnName\":\"datalcfem\"},\"queryTimeout\":\"datayxnklfswz\",\"additionalColumns\":\"dataigxsyxhygczab\",\"sourceRetryCount\":\"dataeu\",\"sourceRetryWait\":\"datazf\",\"maxConcurrentConnections\":\"datauop\",\"disableMetricsCollection\":\"dataiaos\",\"\":{\"qgllnhgisiw\":\"datautgkmrsq\",\"aefw\":\"datazkaeqrnglgit\"}}") - .toObject(SapHanaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaSource model = new SapHanaSource().withSourceRetryCount("dataeu") - .withSourceRetryWait("datazf") - .withMaxConcurrentConnections("datauop") - .withDisableMetricsCollection("dataiaos") - .withQueryTimeout("datayxnklfswz") - .withAdditionalColumns("dataigxsyxhygczab") - .withQuery("dataouelfyqf") - .withPacketSize("dataeblpdwckmnpzubzq") - .withPartitionOption("datawgfjrgngcpbsh") - .withPartitionSettings(new SapHanaPartitionSettings().withPartitionColumnName("datalcfem")); - model = BinaryData.fromObject(model).toObject(SapHanaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java deleted file mode 100644 index 7f34ead98907..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapHanaTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapHanaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaTableDataset model = BinaryData.fromString( - "{\"type\":\"SapHanaTable\",\"typeProperties\":{\"schema\":\"dataaoibmjk\",\"table\":\"datarljd\"},\"description\":\"kylaxrjiqoqovqhg\",\"structure\":\"datagxuwudgcyqru\",\"schema\":\"datamryddnqivahfcq\",\"linkedServiceName\":{\"referenceName\":\"njze\",\"parameters\":{\"w\":\"datacciyoypoedks\",\"xuyxsxteuikhzn\":\"dataibpybqei\",\"rkrgsdc\":\"dataffnhcgnaqsrmrfqd\"}},\"parameters\":{\"byzposzfutgpbygb\":{\"type\":\"Array\",\"defaultValue\":\"dataqlwyqzn\"},\"zpvqewflwzhxzuxe\":{\"type\":\"SecureString\",\"defaultValue\":\"datamoiqg\"},\"ajdqxymxx\":{\"type\":\"Float\",\"defaultValue\":\"dataywlrkqsqvvdkfpfj\"}},\"annotations\":[\"datadjidcetfvgwfws\",\"datadigwoup\"],\"folder\":{\"name\":\"ddqsvclrsnxfrp\"},\"\":{\"tfxxepzpxzxlcqz\":\"dataqclmd\",\"jbsmkirpqni\":\"dataxaitiqm\",\"uzltenlb\":\"dataudmhkcomeobwk\",\"uomtxj\":\"dataxlmxozesndo\"}}") - .toObject(SapHanaTableDataset.class); - Assertions.assertEquals("kylaxrjiqoqovqhg", model.description()); - Assertions.assertEquals("njze", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("byzposzfutgpbygb").type()); - Assertions.assertEquals("ddqsvclrsnxfrp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDataset model = new SapHanaTableDataset().withDescription("kylaxrjiqoqovqhg") - .withStructure("datagxuwudgcyqru") - .withSchema("datamryddnqivahfcq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("njze") - .withParameters(mapOf("w", "datacciyoypoedks", "xuyxsxteuikhzn", "dataibpybqei", "rkrgsdc", - "dataffnhcgnaqsrmrfqd"))) - .withParameters(mapOf("byzposzfutgpbygb", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataqlwyqzn"), - "zpvqewflwzhxzuxe", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datamoiqg"), - "ajdqxymxx", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataywlrkqsqvvdkfpfj"))) - .withAnnotations(Arrays.asList("datadjidcetfvgwfws", "datadigwoup")) - .withFolder(new DatasetFolder().withName("ddqsvclrsnxfrp")) - .withSchemaTypePropertiesSchema("dataaoibmjk") - .withTable("datarljd"); - model = BinaryData.fromObject(model).toObject(SapHanaTableDataset.class); - Assertions.assertEquals("kylaxrjiqoqovqhg", model.description()); - Assertions.assertEquals("njze", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("byzposzfutgpbygb").type()); - Assertions.assertEquals("ddqsvclrsnxfrp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java deleted file mode 100644 index c974699733ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapHanaTableDatasetTypeProperties; - -public final class SapHanaTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"dataixymckik\",\"table\":\"datayvurhwishy\"}") - .toObject(SapHanaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDatasetTypeProperties model - = new SapHanaTableDatasetTypeProperties().withSchema("dataixymckik").withTable("datayvurhwishy"); - model = BinaryData.fromObject(model).toObject(SapHanaTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java deleted file mode 100644 index 058ac193f1c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapOdpResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapOdpResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapOdpResource\",\"typeProperties\":{\"context\":\"datauzimbwttmhlvr\",\"objectName\":\"datacyxrn\"},\"description\":\"kfajnpdwzjggkw\",\"structure\":\"datap\",\"schema\":\"dataziayfiqiidxcor\",\"linkedServiceName\":{\"referenceName\":\"vudyhgtrttcuayi\",\"parameters\":{\"zifb\":\"datankmm\",\"rtgqrqkk\":\"datagqexowq\",\"kuobpw\":\"datafy\",\"pnyjtu\":\"datainpgobothxiew\"}},\"parameters\":{\"uwh\":{\"type\":\"Object\",\"defaultValue\":\"dataextchslroldo\"},\"gkudsozodwjc\":{\"type\":\"Bool\",\"defaultValue\":\"dataifiozttcbiic\"},\"mz\":{\"type\":\"Float\",\"defaultValue\":\"datayxryqyc\"}},\"annotations\":[\"datafgdwzauz\",\"datadheadnyciwz\",\"datailykqadfgesv\"],\"folder\":{\"name\":\"a\"},\"\":{\"ovqmxqsxofx\":\"dataizmadjrsbgailj\",\"kgltsxooiobhieb\":\"datankiu\",\"tlsrvqzgaqsosrn\":\"datau\",\"npesw\":\"datalvgrghnhuoxrqhjn\"}}") - .toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("kfajnpdwzjggkw", model.description()); - Assertions.assertEquals("vudyhgtrttcuayi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("uwh").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDataset model = new SapOdpResourceDataset().withDescription("kfajnpdwzjggkw") - .withStructure("datap") - .withSchema("dataziayfiqiidxcor") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vudyhgtrttcuayi") - .withParameters(mapOf("zifb", "datankmm", "rtgqrqkk", "datagqexowq", "kuobpw", "datafy", "pnyjtu", - "datainpgobothxiew"))) - .withParameters(mapOf("uwh", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataextchslroldo"), - "gkudsozodwjc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataifiozttcbiic"), "mz", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datayxryqyc"))) - .withAnnotations(Arrays.asList("datafgdwzauz", "datadheadnyciwz", "datailykqadfgesv")) - .withFolder(new DatasetFolder().withName("a")) - .withContext("datauzimbwttmhlvr") - .withObjectName("datacyxrn"); - model = BinaryData.fromObject(model).toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("kfajnpdwzjggkw", model.description()); - Assertions.assertEquals("vudyhgtrttcuayi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("uwh").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 88f69ca6009d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapOdpResourceDatasetTypeProperties; - -public final class SapOdpResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpResourceDatasetTypeProperties model - = BinaryData.fromString("{\"context\":\"datanhqkgebzqz\",\"objectName\":\"datacsviu\"}") - .toObject(SapOdpResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDatasetTypeProperties model - = new SapOdpResourceDatasetTypeProperties().withContext("datanhqkgebzqz").withObjectName("datacsviu"); - model = BinaryData.fromObject(model).toObject(SapOdpResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java deleted file mode 100644 index bb86ffc99d91..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapOdpSource; - -public final class SapOdpSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpSource model = BinaryData.fromString( - "{\"type\":\"SapOdpSource\",\"extractionMode\":\"dataimvlocdxvhkob\",\"subscriberProcess\":\"datahhipn\",\"selection\":\"datadd\",\"projection\":\"dataiwanvydgmqscijlf\",\"queryTimeout\":\"dataxgnzasvpm\",\"additionalColumns\":\"dataooqyp\",\"sourceRetryCount\":\"datalm\",\"sourceRetryWait\":\"dataebv\",\"maxConcurrentConnections\":\"datahoydehbvbex\",\"disableMetricsCollection\":\"dataynnladdhdklwzz\",\"\":{\"sacrnpscfke\":\"databb\",\"uvjvtgecehennle\":\"dataeltxefamimg\"}}") - .toObject(SapOdpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpSource model = new SapOdpSource().withSourceRetryCount("datalm") - .withSourceRetryWait("dataebv") - .withMaxConcurrentConnections("datahoydehbvbex") - .withDisableMetricsCollection("dataynnladdhdklwzz") - .withQueryTimeout("dataxgnzasvpm") - .withAdditionalColumns("dataooqyp") - .withExtractionMode("dataimvlocdxvhkob") - .withSubscriberProcess("datahhipn") - .withSelection("datadd") - .withProjection("dataiwanvydgmqscijlf"); - model = BinaryData.fromObject(model).toObject(SapOdpSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java deleted file mode 100644 index 645aa8dea1b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapOpenHubSource; - -public final class SapOpenHubSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubSource model = BinaryData.fromString( - "{\"type\":\"SapOpenHubSource\",\"excludeLastRequest\":\"datawaojrfq\",\"baseRequestId\":\"datakkiupmd\",\"customRfcReadTableFunctionModule\":\"dataqp\",\"sapDataColumnDelimiter\":\"datavzbejx\",\"queryTimeout\":\"datakiff\",\"additionalColumns\":\"datawdyzse\",\"sourceRetryCount\":\"datamvtqhn\",\"sourceRetryWait\":\"dataiju\",\"maxConcurrentConnections\":\"datarkqywybxgayomse\",\"disableMetricsCollection\":\"datacxl\",\"\":{\"loe\":\"dataqfblsizxpolpsa\"}}") - .toObject(SapOpenHubSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubSource model = new SapOpenHubSource().withSourceRetryCount("datamvtqhn") - .withSourceRetryWait("dataiju") - .withMaxConcurrentConnections("datarkqywybxgayomse") - .withDisableMetricsCollection("datacxl") - .withQueryTimeout("datakiff") - .withAdditionalColumns("datawdyzse") - .withExcludeLastRequest("datawaojrfq") - .withBaseRequestId("datakkiupmd") - .withCustomRfcReadTableFunctionModule("dataqp") - .withSapDataColumnDelimiter("datavzbejx"); - model = BinaryData.fromObject(model).toObject(SapOpenHubSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java deleted file mode 100644 index 36526dcd0a18..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapOpenHubTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapOpenHubTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubTableDataset model = BinaryData.fromString( - "{\"type\":\"SapOpenHubTable\",\"typeProperties\":{\"openHubDestinationName\":\"datamrzcqfevnkyakc\",\"excludeLastRequest\":\"dataehognsddjkkdede\",\"baseRequestId\":\"dataazogfc\"},\"description\":\"cx\",\"structure\":\"dataumtcqxmyvkxixypa\",\"schema\":\"datafjczgohvpsuwi\",\"linkedServiceName\":{\"referenceName\":\"hmxczbyfkocgmzd\",\"parameters\":{\"ngtwgxro\":\"datanlwsc\",\"ihavis\":\"datawvplksdksutacuc\",\"vpmqququxlph\":\"databvjh\"}},\"parameters\":{\"icgym\":{\"type\":\"SecureString\",\"defaultValue\":\"dataexoweorocr\"},\"vhtvijvwmrg\":{\"type\":\"String\",\"defaultValue\":\"dataqpfy\"},\"hbtqyzy\":{\"type\":\"Array\",\"defaultValue\":\"datahrplcxfmbzquuutq\"},\"vxjdqosxzmdz\":{\"type\":\"Int\",\"defaultValue\":\"datambky\"}},\"annotations\":[\"dataqfufkekzfkicxhs\",\"datavmnkgghvsryjok\"],\"folder\":{\"name\":\"vbjsarxsvmfp\"},\"\":{\"hgxg\":\"databpzgfgqpu\",\"ukgsn\":\"dataeabbfpxxavlo\",\"xj\":\"datahw\"}}") - .toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("cx", model.description()); - Assertions.assertEquals("hmxczbyfkocgmzd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("icgym").type()); - Assertions.assertEquals("vbjsarxsvmfp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDataset model = new SapOpenHubTableDataset().withDescription("cx") - .withStructure("dataumtcqxmyvkxixypa") - .withSchema("datafjczgohvpsuwi") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hmxczbyfkocgmzd") - .withParameters( - mapOf("ngtwgxro", "datanlwsc", "ihavis", "datawvplksdksutacuc", "vpmqququxlph", "databvjh"))) - .withParameters(mapOf("icgym", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataexoweorocr"), - "vhtvijvwmrg", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataqpfy"), - "hbtqyzy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahrplcxfmbzquuutq"), - "vxjdqosxzmdz", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datambky"))) - .withAnnotations(Arrays.asList("dataqfufkekzfkicxhs", "datavmnkgghvsryjok")) - .withFolder(new DatasetFolder().withName("vbjsarxsvmfp")) - .withOpenHubDestinationName("datamrzcqfevnkyakc") - .withExcludeLastRequest("dataehognsddjkkdede") - .withBaseRequestId("dataazogfc"); - model = BinaryData.fromObject(model).toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("cx", model.description()); - Assertions.assertEquals("hmxczbyfkocgmzd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("icgym").type()); - Assertions.assertEquals("vbjsarxsvmfp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java deleted file mode 100644 index deb57c73f8f8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubTableDatasetTypeProperties; - -public final class SapOpenHubTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubTableDatasetTypeProperties model = BinaryData.fromString( - "{\"openHubDestinationName\":\"dataf\",\"excludeLastRequest\":\"dataxcebnbeo\",\"baseRequestId\":\"dataemqqerwqx\"}") - .toObject(SapOpenHubTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDatasetTypeProperties model - = new SapOpenHubTableDatasetTypeProperties().withOpenHubDestinationName("dataf") - .withExcludeLastRequest("dataxcebnbeo") - .withBaseRequestId("dataemqqerwqx"); - model = BinaryData.fromObject(model).toObject(SapOpenHubTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java deleted file mode 100644 index 401afb72dfa3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapTablePartitionSettings; - -public final class SapTablePartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTablePartitionSettings model = BinaryData.fromString( - "{\"partitionColumnName\":\"datapnrcrjeypd\",\"partitionUpperBound\":\"datascxzsynbdrqirni\",\"partitionLowerBound\":\"dataothyeb\",\"maxPartitionsNumber\":\"dataesovsvjxnso\"}") - .toObject(SapTablePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTablePartitionSettings model = new SapTablePartitionSettings().withPartitionColumnName("datapnrcrjeypd") - .withPartitionUpperBound("datascxzsynbdrqirni") - .withPartitionLowerBound("dataothyeb") - .withMaxPartitionsNumber("dataesovsvjxnso"); - model = BinaryData.fromObject(model).toObject(SapTablePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java deleted file mode 100644 index 74139d5f1378..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapTableResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapTableResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapTableResource\",\"typeProperties\":{\"tableName\":\"datadngvnqdjgsbtwg\"},\"description\":\"dxuczl\",\"structure\":\"datab\",\"schema\":\"datacznrirpiiuvcqo\",\"linkedServiceName\":{\"referenceName\":\"kqwucqsd\",\"parameters\":{\"kjlamyvwprjmaiht\":\"datacwtvmijccp\",\"ppvolzayjw\":\"datanlbhxjppcbqetfz\"}},\"parameters\":{\"rwgxeegxbnjnczep\":{\"type\":\"Array\",\"defaultValue\":\"datamprklatwiuujxsuj\"},\"uyyaescjxna\":{\"type\":\"SecureString\",\"defaultValue\":\"dataymgbfmd\"},\"inzkefkzlxvc\":{\"type\":\"Float\",\"defaultValue\":\"dataxqbkxdtbfkih\"}},\"annotations\":[\"datagoeozlib\",\"databnunzuysajvvqlho\",\"datayonelivgtibtkqjq\",\"datacaj\"],\"folder\":{\"name\":\"y\"},\"\":{\"mrvkxeojtdyulglh\":\"datahk\",\"xspxgogypbztgae\":\"datalwruklfq\"}}") - .toObject(SapTableResourceDataset.class); - Assertions.assertEquals("dxuczl", model.description()); - Assertions.assertEquals("kqwucqsd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rwgxeegxbnjnczep").type()); - Assertions.assertEquals("y", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDataset model = new SapTableResourceDataset().withDescription("dxuczl") - .withStructure("datab") - .withSchema("datacznrirpiiuvcqo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kqwucqsd") - .withParameters(mapOf("kjlamyvwprjmaiht", "datacwtvmijccp", "ppvolzayjw", "datanlbhxjppcbqetfz"))) - .withParameters(mapOf("rwgxeegxbnjnczep", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamprklatwiuujxsuj"), - "uyyaescjxna", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataymgbfmd"), - "inzkefkzlxvc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxqbkxdtbfkih"))) - .withAnnotations(Arrays.asList("datagoeozlib", "databnunzuysajvvqlho", "datayonelivgtibtkqjq", "datacaj")) - .withFolder(new DatasetFolder().withName("y")) - .withTableName("datadngvnqdjgsbtwg"); - model = BinaryData.fromObject(model).toObject(SapTableResourceDataset.class); - Assertions.assertEquals("dxuczl", model.description()); - Assertions.assertEquals("kqwucqsd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rwgxeegxbnjnczep").type()); - Assertions.assertEquals("y", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 6096a2d00fb9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapTableResourceDatasetTypeProperties; - -public final class SapTableResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableResourceDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datajnskvct\"}") - .toObject(SapTableResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDatasetTypeProperties model - = new SapTableResourceDatasetTypeProperties().withTableName("datajnskvct"); - model = BinaryData.fromObject(model).toObject(SapTableResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java deleted file mode 100644 index e8c3f3a5e922..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapTablePartitionSettings; -import com.azure.resourcemanager.datafactory.models.SapTableSource; - -public final class SapTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableSource model = BinaryData.fromString( - "{\"type\":\"SapTableSource\",\"rowCount\":\"dataoukfjwkctdn\",\"rowSkips\":\"dataokqeuzslny\",\"rfcTableFields\":\"datauywijnlpeczq\",\"rfcTableOptions\":\"datamzkqydthf\",\"batchSize\":\"dataycmwvphrwuf\",\"customRfcReadTableFunctionModule\":\"dataov\",\"sapDataColumnDelimiter\":\"dataisqlekc\",\"partitionOption\":\"datadhlskeifwqtcownx\",\"partitionSettings\":{\"partitionColumnName\":\"dataptvbudb\",\"partitionUpperBound\":\"datajvmllyjelnhmu\",\"partitionLowerBound\":\"dataxkofzx\",\"maxPartitionsNumber\":\"datasleokbama\"},\"queryTimeout\":\"datawgccgblepamvl\",\"additionalColumns\":\"dataxdaoj\",\"sourceRetryCount\":\"datalqoxwqlnxvnmrl\",\"sourceRetryWait\":\"datajzya\",\"maxConcurrentConnections\":\"datafecwnufldzjc\",\"disableMetricsCollection\":\"datahjbzpoh\",\"\":{\"lnvfshtujaqp\":\"datagpefvboxvw\"}}") - .toObject(SapTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableSource model = new SapTableSource().withSourceRetryCount("datalqoxwqlnxvnmrl") - .withSourceRetryWait("datajzya") - .withMaxConcurrentConnections("datafecwnufldzjc") - .withDisableMetricsCollection("datahjbzpoh") - .withQueryTimeout("datawgccgblepamvl") - .withAdditionalColumns("dataxdaoj") - .withRowCount("dataoukfjwkctdn") - .withRowSkips("dataokqeuzslny") - .withRfcTableFields("datauywijnlpeczq") - .withRfcTableOptions("datamzkqydthf") - .withBatchSize("dataycmwvphrwuf") - .withCustomRfcReadTableFunctionModule("dataov") - .withSapDataColumnDelimiter("dataisqlekc") - .withPartitionOption("datadhlskeifwqtcownx") - .withPartitionSettings(new SapTablePartitionSettings().withPartitionColumnName("dataptvbudb") - .withPartitionUpperBound("datajvmllyjelnhmu") - .withPartitionLowerBound("dataxkofzx") - .withMaxPartitionsNumber("datasleokbama")); - model = BinaryData.fromObject(model).toObject(SapTableSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java deleted file mode 100644 index bde36d167bae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleTriggerRecurrenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleTriggerRecurrence model = BinaryData.fromString( - "{\"frequency\":\"Minute\",\"interval\":1468937933,\"startTime\":\"2021-08-02T13:39:35Z\",\"endTime\":\"2021-02-16T06:48:38Z\",\"timeZone\":\"dxuzoxmajpxb\",\"schedule\":{\"minutes\":[711985239],\"hours\":[1240812360,1065282334,987445485,1494770482],\"weekDays\":[\"Monday\",\"Monday\",\"Sunday\"],\"monthDays\":[1235095597],\"monthlyOccurrences\":[{\"day\":\"Wednesday\",\"occurrence\":727069286,\"\":{\"lri\":\"dataivqaqzttog\"}}],\"\":{\"ql\":\"dataiqucolpos\",\"jpalnzrjqlqh\":\"datalwkj\",\"xhawsnqktbgu\":\"datayneyoxj\",\"tcupo\":\"datafcr\"}},\"\":{\"qkufqjmylrtnzyos\":\"datargcl\",\"w\":\"datavkqezeeeuligu\",\"cvwzywxzxrohtqcw\":\"datafk\",\"aiskecmc\":\"datadspegxd\"}}") - .toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1468937933, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-02T13:39:35Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T06:48:38Z"), model.endTime()); - Assertions.assertEquals("dxuzoxmajpxb", model.timeZone()); - Assertions.assertEquals(711985239, model.schedule().minutes().get(0)); - Assertions.assertEquals(1240812360, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.MONDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(1235095597, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(727069286, model.schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTriggerRecurrence model = new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE) - .withInterval(1468937933) - .withStartTime(OffsetDateTime.parse("2021-08-02T13:39:35Z")) - .withEndTime(OffsetDateTime.parse("2021-02-16T06:48:38Z")) - .withTimeZone("dxuzoxmajpxb") - .withSchedule(new RecurrenceSchedule().withMinutes(Arrays.asList(711985239)) - .withHours(Arrays.asList(1240812360, 1065282334, 987445485, 1494770482)) - .withWeekDays(Arrays.asList(DaysOfWeek.MONDAY, DaysOfWeek.MONDAY, DaysOfWeek.SUNDAY)) - .withMonthDays(Arrays.asList(1235095597)) - .withMonthlyOccurrences(Arrays.asList(new RecurrenceScheduleOccurrence().withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(727069286) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1468937933, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-02T13:39:35Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T06:48:38Z"), model.endTime()); - Assertions.assertEquals("dxuzoxmajpxb", model.timeZone()); - Assertions.assertEquals(711985239, model.schedule().minutes().get(0)); - Assertions.assertEquals(1240812360, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.MONDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(1235095597, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(727069286, model.schedule().monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java deleted file mode 100644 index d34158fb6098..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import com.azure.resourcemanager.datafactory.models.ScheduleTrigger; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleTrigger model = BinaryData.fromString( - "{\"type\":\"ScheduleTrigger\",\"typeProperties\":{\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1693781649,\"startTime\":\"2021-12-09T23:42:31Z\",\"endTime\":\"2021-10-30T05:40:14Z\",\"timeZone\":\"umjmpsxz\",\"schedule\":{\"minutes\":[1441509354,1208352481,15982153],\"hours\":[1683368107,1234651783],\"weekDays\":[\"Wednesday\",\"Friday\"],\"monthDays\":[343405067,1725868714,1760240817],\"monthlyOccurrences\":[{\"day\":\"Saturday\",\"occurrence\":101046964,\"\":{\"g\":\"dataxqtcnyhs\",\"zfyzbnko\":\"dataoxnelhx\",\"e\":\"datacsvipwa\",\"prgpm\":\"datauc\"}}],\"\":{\"zcsklvtcea\":\"datavuhcwc\",\"paywwesaqsuqpskv\":\"dataiuurqlcdhebjf\",\"lra\":\"datab\",\"thhxqsbyyleyopgy\":\"dataidi\"}},\"\":{\"gkpcwffoso\":\"datanyfjwoaom\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"gjuzgqkx\",\"name\":\"avbteaegyojy\"},\"parameters\":{\"hbztlvujbhw\":\"datapcdhqjc\",\"cihkjjjbit\":\"dataszrhf\",\"fwmasodsmjn\":\"datauriizyrgzxpr\"}},{\"pipelineReference\":{\"referenceName\":\"doomhrlgidqxbrdh\",\"name\":\"cq\"},\"parameters\":{\"hienkliyfgkzwkyq\":\"datapjd\"}}],\"description\":\"diybdoyykhi\",\"runtimeState\":\"Stopped\",\"annotations\":[\"dataktwijoxkkynppqt\"],\"\":{\"wjatyhkqqj\":\"dataf\"}}") - .toObject(ScheduleTrigger.class); - Assertions.assertEquals("diybdoyykhi", model.description()); - Assertions.assertEquals("gjuzgqkx", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("avbteaegyojy", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.MINUTE, model.recurrence().frequency()); - Assertions.assertEquals(1693781649, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-09T23:42:31Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T05:40:14Z"), model.recurrence().endTime()); - Assertions.assertEquals("umjmpsxz", model.recurrence().timeZone()); - Assertions.assertEquals(1441509354, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(1683368107, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(343405067, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(101046964, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTrigger model = new ScheduleTrigger().withDescription("diybdoyykhi") - .withAnnotations(Arrays.asList("dataktwijoxkkynppqt")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("gjuzgqkx").withName("avbteaegyojy")) - .withParameters(mapOf("hbztlvujbhw", "datapcdhqjc", "cihkjjjbit", "dataszrhf", "fwmasodsmjn", - "datauriizyrgzxpr")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("doomhrlgidqxbrdh").withName("cq")) - .withParameters(mapOf("hienkliyfgkzwkyq", "datapjd")))) - .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE) - .withInterval(1693781649) - .withStartTime(OffsetDateTime.parse("2021-12-09T23:42:31Z")) - .withEndTime(OffsetDateTime.parse("2021-10-30T05:40:14Z")) - .withTimeZone("umjmpsxz") - .withSchedule(new RecurrenceSchedule().withMinutes(Arrays.asList(1441509354, 1208352481, 15982153)) - .withHours(Arrays.asList(1683368107, 1234651783)) - .withWeekDays(Arrays.asList(DaysOfWeek.WEDNESDAY, DaysOfWeek.FRIDAY)) - .withMonthDays(Arrays.asList(343405067, 1725868714, 1760240817)) - .withMonthlyOccurrences(Arrays.asList(new RecurrenceScheduleOccurrence().withDay(DayOfWeek.SATURDAY) - .withOccurrence(101046964) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTrigger.class); - Assertions.assertEquals("diybdoyykhi", model.description()); - Assertions.assertEquals("gjuzgqkx", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("avbteaegyojy", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.MINUTE, model.recurrence().frequency()); - Assertions.assertEquals(1693781649, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-09T23:42:31Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T05:40:14Z"), model.recurrence().endTime()); - Assertions.assertEquals("umjmpsxz", model.recurrence().timeZone()); - Assertions.assertEquals(1441509354, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(1683368107, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(343405067, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(101046964, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java deleted file mode 100644 index 47421ba6216b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ScheduleTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleTriggerTypeProperties model = BinaryData.fromString( - "{\"recurrence\":{\"frequency\":\"Week\",\"interval\":1320814252,\"startTime\":\"2021-03-10T17:47:55Z\",\"endTime\":\"2021-04-17T10:32:31Z\",\"timeZone\":\"w\",\"schedule\":{\"minutes\":[1617858361],\"hours\":[653605955],\"weekDays\":[\"Wednesday\",\"Saturday\",\"Thursday\",\"Saturday\"],\"monthDays\":[1144219681,1904876430,794780703,1779734438],\"monthlyOccurrences\":[{\"day\":\"Friday\",\"occurrence\":1553291833,\"\":{\"pmvppg\":\"datauvshguu\",\"vafbdzokplolcal\":\"dataiyo\",\"tdqsqb\":\"datavcxvcpxdeqntb\",\"spzwa\":\"dataubswzafqrmwdofg\"}},{\"day\":\"Tuesday\",\"occurrence\":851506626,\"\":{\"nvhtrfckrm\":\"datacdjvlwczwdkkscoo\",\"ghjsxpptsvppf\":\"databaoidtfmpcbvko\",\"scgzqncd\":\"datanihxcijftsbpvy\"}},{\"day\":\"Thursday\",\"occurrence\":1309388141,\"\":{\"rohfv\":\"datayi\",\"nkkztjmqjrh\":\"datagjnexdlsangl\"}}],\"\":{\"ozwnpuyhqaylsmeh\":\"dataajyrhrywucpdzbnt\",\"efofujzwqpkhgr\":\"datazplzrrhabbdq\",\"qkv\":\"datagyiloe\",\"aoetrglpaocq\":\"datafnphbzs\"}},\"\":{\"vuhagoqxfxje\":\"dataleou\",\"hrymeynbiwowu\":\"datauoquacrdn\",\"rnwkt\":\"datakiocjn\"}}}") - .toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.WEEK, model.recurrence().frequency()); - Assertions.assertEquals(1320814252, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T17:47:55Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-17T10:32:31Z"), model.recurrence().endTime()); - Assertions.assertEquals("w", model.recurrence().timeZone()); - Assertions.assertEquals(1617858361, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(653605955, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(1144219681, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1553291833, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTriggerTypeProperties model = new ScheduleTriggerTypeProperties() - .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.WEEK) - .withInterval(1320814252) - .withStartTime(OffsetDateTime.parse("2021-03-10T17:47:55Z")) - .withEndTime(OffsetDateTime.parse("2021-04-17T10:32:31Z")) - .withTimeZone("w") - .withSchedule(new RecurrenceSchedule().withMinutes(Arrays.asList(1617858361)) - .withHours(Arrays.asList(653605955)) - .withWeekDays(Arrays.asList(DaysOfWeek.WEDNESDAY, DaysOfWeek.SATURDAY, DaysOfWeek.THURSDAY, - DaysOfWeek.SATURDAY)) - .withMonthDays(Arrays.asList(1144219681, 1904876430, 794780703, 1779734438)) - .withMonthlyOccurrences(Arrays.asList( - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.FRIDAY) - .withOccurrence(1553291833) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.TUESDAY) - .withOccurrence(851506626) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.THURSDAY) - .withOccurrence(1309388141) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.WEEK, model.recurrence().frequency()); - Assertions.assertEquals(1320814252, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T17:47:55Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-17T10:32:31Z"), model.recurrence().endTime()); - Assertions.assertEquals("w", model.recurrence().timeZone()); - Assertions.assertEquals(1617858361, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(653605955, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(1144219681, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1553291833, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java deleted file mode 100644 index 262d6f508c35..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ScriptAction; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptAction model = BinaryData.fromString( - "{\"name\":\"jttzfswohddliikk\",\"uri\":\"sqpli\",\"roles\":\"datagemtnbkevuuky\",\"parameters\":\"ksncrzbtlrbzqt\"}") - .toObject(ScriptAction.class); - Assertions.assertEquals("jttzfswohddliikk", model.name()); - Assertions.assertEquals("sqpli", model.uri()); - Assertions.assertEquals("ksncrzbtlrbzqt", model.parameters()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptAction model = new ScriptAction().withName("jttzfswohddliikk") - .withUri("sqpli") - .withRoles("datagemtnbkevuuky") - .withParameters("ksncrzbtlrbzqt"); - model = BinaryData.fromObject(model).toObject(ScriptAction.class); - Assertions.assertEquals("jttzfswohddliikk", model.name()); - Assertions.assertEquals("sqpli", model.uri()); - Assertions.assertEquals("ksncrzbtlrbzqt", model.parameters()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityParameterTests.java deleted file mode 100644 index 0c4577aee067..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityParameterTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityParameter model = BinaryData.fromString( - "{\"name\":\"dataanifcfr\",\"type\":\"Double\",\"value\":\"datasumgzebqbdewepo\",\"direction\":\"Output\",\"size\":487257197}") - .toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.DOUBLE, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, model.direction()); - Assertions.assertEquals(487257197, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityParameter model = new ScriptActivityParameter().withName("dataanifcfr") - .withType(ScriptActivityParameterType.DOUBLE) - .withValue("datasumgzebqbdewepo") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(487257197); - model = BinaryData.fromObject(model).toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.DOUBLE, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, model.direction()); - Assertions.assertEquals(487257197, model.size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.java deleted file mode 100644 index fd292695c8e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityScriptBlockTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityScriptBlock model = BinaryData.fromString( - "{\"text\":\"datagwwrclxhveso\",\"type\":\"datadxmmtyumejp\",\"parameters\":[{\"name\":\"dataodwblaujhox\",\"type\":\"Guid\",\"value\":\"dataeuywyamtzl\",\"direction\":\"InputOutput\",\"size\":1167066365},{\"name\":\"dataqjbjdyoc\",\"type\":\"Guid\",\"value\":\"datayhi\",\"direction\":\"Input\",\"size\":1743108327},{\"name\":\"datalsqymvihhgpe\",\"type\":\"Single\",\"value\":\"datakkhyfiuxda\",\"direction\":\"InputOutput\",\"size\":246649999}]}") - .toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptActivityParameterType.GUID, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT_OUTPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1167066365, model.parameters().get(0).size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityScriptBlock model = new ScriptActivityScriptBlock().withText("datagwwrclxhveso") - .withType("datadxmmtyumejp") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("dataodwblaujhox") - .withType(ScriptActivityParameterType.GUID) - .withValue("dataeuywyamtzl") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(1167066365), - new ScriptActivityParameter().withName("dataqjbjdyoc") - .withType(ScriptActivityParameterType.GUID) - .withValue("datayhi") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1743108327), - new ScriptActivityParameter().withName("datalsqymvihhgpe") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("datakkhyfiuxda") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(246649999))); - model = BinaryData.fromObject(model).toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptActivityParameterType.GUID, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT_OUTPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1167066365, model.parameters().get(0).size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java deleted file mode 100644 index f92b25dbdf19..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivity; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivity model = BinaryData.fromString( - "{\"type\":\"Script\",\"typeProperties\":{\"scriptBlockExecutionTimeout\":\"datavkzg\",\"scripts\":[{\"text\":\"datanvfekj\",\"type\":\"dataclbkkjz\",\"parameters\":[{\"name\":\"datalsjftqahfvpmw\",\"type\":\"Int64\",\"value\":\"datacjnkawkyh\",\"direction\":\"Input\",\"size\":53251602},{\"name\":\"datapbzktk\",\"type\":\"Double\",\"value\":\"datamjtgzu\",\"direction\":\"Output\",\"size\":2076493341}]},{\"text\":\"datal\",\"type\":\"dataj\",\"parameters\":[{\"name\":\"databbon\",\"type\":\"Guid\",\"value\":\"datafseykprgpqnesu\",\"direction\":\"Output\",\"size\":1419451177},{\"name\":\"datazadpwhldx\",\"type\":\"Int32\",\"value\":\"datatt\",\"direction\":\"Input\",\"size\":995318961},{\"name\":\"datagzssg\",\"type\":\"Boolean\",\"value\":\"datavqetvcxabzwehvs\",\"direction\":\"InputOutput\",\"size\":905453692},{\"name\":\"datahiaomldtkqoajp\",\"type\":\"Int32\",\"value\":\"dataafhz\",\"direction\":\"Output\",\"size\":1911604908}]},{\"text\":\"dataozqusdznnhh\",\"type\":\"datadfyusiupdmbh\",\"parameters\":[{\"name\":\"datawgteroaenvjouz\",\"type\":\"Int64\",\"value\":\"databraqzrbvogfm\",\"direction\":\"InputOutput\",\"size\":1572339861},{\"name\":\"datanlqnklbwyqoyp\",\"type\":\"Int32\",\"value\":\"dataajxmgxsp\",\"direction\":\"Input\",\"size\":779229082}]}],\"logSettings\":{\"logDestination\":\"ActivityOutput\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"kwvjo\",\"parameters\":{\"cloyvr\":\"dataaiydjgkdjmylhcjx\",\"bkigzvugwbc\":\"datazepnlwuhtfabafk\",\"ixp\":\"dataabsqpttulhanjui\",\"sk\":\"datatfdujuoiien\"}},\"path\":\"dataaqb\"}},\"returnMultistatementResult\":\"datacnbnlpp\"},\"linkedServiceName\":{\"referenceName\":\"bipfazsayrk\",\"parameters\":{\"nymdswrtifx\":\"datanobc\",\"vkx\":\"datahu\",\"vzrxaixx\":\"datanovk\"}},\"policy\":{\"timeout\":\"datas\",\"retry\":\"dataivpuuvz\",\"retryIntervalInSeconds\":662631486,\"secureInput\":false,\"secureOutput\":true,\"\":{\"jfmh\":\"datajaktszrcirrphtj\",\"gpqfflswqehtfr\":\"datadnxrwgd\"}},\"name\":\"zqeinnbu\",\"description\":\"vtykfxoss\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"l\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Skipped\",\"Failed\"],\"\":{\"rnkxswohshnc\":\"datawpgwpulrtjweuoro\",\"wdl\":\"datadzvlitntdidhhac\"}},{\"activity\":\"tgiontv\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"bgoe\":\"datahkqthuijvivtwswp\",\"fsfuzqpigirnmd\":\"datauxo\"}},{\"activity\":\"imagmwyfx\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\"],\"\":{\"ertgq\":\"datakllbfnn\",\"dkjayi\":\"datajcyhvyrhgeuvujyw\",\"jpgwseulfzxgh\":\"dataxpcxylquowunwac\"}}],\"userProperties\":[{\"name\":\"rvpaumkzd\",\"value\":\"datajngkfipxolpujlmb\"},{\"name\":\"jnalsbxvoux\",\"value\":\"datadenthgpwrmevk\"},{\"name\":\"kocexhlv\",\"value\":\"datanir\"}],\"\":{\"xjhzwsjqrmxpyz\":\"dataarohw\",\"tpczzqusf\":\"databamnkgmosayfyvod\",\"gij\":\"datagwsrr\"}}") - .toObject(ScriptActivity.class); - Assertions.assertEquals("zqeinnbu", model.name()); - Assertions.assertEquals("vtykfxoss", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("l", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rvpaumkzd", model.userProperties().get(0).name()); - Assertions.assertEquals("bipfazsayrk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(662631486, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(ScriptActivityParameterType.INT64, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(53251602, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logSettings().logDestination()); - Assertions.assertEquals("kwvjo", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivity model = new ScriptActivity().withName("zqeinnbu") - .withDescription("vtykfxoss") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("l") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tgiontv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("imagmwyfx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("rvpaumkzd").withValue("datajngkfipxolpujlmb"), - new UserProperty().withName("jnalsbxvoux").withValue("datadenthgpwrmevk"), - new UserProperty().withName("kocexhlv").withValue("datanir"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bipfazsayrk") - .withParameters(mapOf("nymdswrtifx", "datanobc", "vkx", "datahu", "vzrxaixx", "datanovk"))) - .withPolicy(new ActivityPolicy().withTimeout("datas") - .withRetry("dataivpuuvz") - .withRetryIntervalInSeconds(662631486) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withScriptBlockExecutionTimeout("datavkzg") - .withScripts( - Arrays - .asList( - new ScriptActivityScriptBlock().withText("datanvfekj") - .withType("dataclbkkjz") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datalsjftqahfvpmw") - .withType(ScriptActivityParameterType.INT64) - .withValue("datacjnkawkyh") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(53251602), - new ScriptActivityParameter().withName("datapbzktk") - .withType(ScriptActivityParameterType.DOUBLE) - .withValue("datamjtgzu") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(2076493341))), - new ScriptActivityScriptBlock().withText("datal") - .withType("dataj") - .withParameters( - Arrays.asList( - new ScriptActivityParameter().withName("databbon") - .withType(ScriptActivityParameterType.GUID) - .withValue("datafseykprgpqnesu") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1419451177), - new ScriptActivityParameter().withName("datazadpwhldx") - .withType(ScriptActivityParameterType.INT32) - .withValue("datatt") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(995318961), - new ScriptActivityParameter().withName("datagzssg") - .withType(ScriptActivityParameterType.BOOLEAN) - .withValue("datavqetvcxabzwehvs") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(905453692), - new ScriptActivityParameter().withName("datahiaomldtkqoajp") - .withType(ScriptActivityParameterType.INT32) - .withValue("dataafhz") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1911604908))), - new ScriptActivityScriptBlock().withText("dataozqusdznnhh") - .withType("datadfyusiupdmbh") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datawgteroaenvjouz") - .withType(ScriptActivityParameterType.INT64) - .withValue("databraqzrbvogfm") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(1572339861), - new ScriptActivityParameter().withName("datanlqnklbwyqoyp") - .withType(ScriptActivityParameterType.INT32) - .withValue("dataajxmgxsp") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(779229082))))) - .withLogSettings( - new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.ACTIVITY_OUTPUT) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kwvjo") - .withParameters(mapOf("cloyvr", "dataaiydjgkdjmylhcjx", "bkigzvugwbc", - "datazepnlwuhtfabafk", "ixp", "dataabsqpttulhanjui", "sk", "datatfdujuoiien"))) - .withPath("dataaqb"))) - .withReturnMultistatementResult("datacnbnlpp"); - model = BinaryData.fromObject(model).toObject(ScriptActivity.class); - Assertions.assertEquals("zqeinnbu", model.name()); - Assertions.assertEquals("vtykfxoss", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("l", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rvpaumkzd", model.userProperties().get(0).name()); - Assertions.assertEquals("bipfazsayrk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(662631486, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(ScriptActivityParameterType.INT64, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(53251602, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logSettings().logDestination()); - Assertions.assertEquals("kwvjo", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java deleted file mode 100644 index 670bebae64d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTypePropertiesLogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityTypePropertiesLogSettings model = BinaryData.fromString( - "{\"logDestination\":\"ActivityOutput\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"deewjgj\",\"parameters\":{\"ozjfigitiswxcvwh\":\"dataazuned\",\"ixsvoob\":\"datatjjqz\",\"u\":\"datasrisfccf\"}},\"path\":\"dataihifrkyvutwmc\"}}") - .toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logDestination()); - Assertions.assertEquals("deewjgj", model.logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityTypePropertiesLogSettings model - = new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.ACTIVITY_OUTPUT) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("deewjgj") - .withParameters(mapOf("ozjfigitiswxcvwh", "dataazuned", "ixsvoob", "datatjjqz", "u", - "datasrisfccf"))) - .withPath("dataihifrkyvutwmc")); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logDestination()); - Assertions.assertEquals("deewjgj", model.logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java deleted file mode 100644 index 9e940f1acdde..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ScriptActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityTypeProperties model = BinaryData.fromString( - "{\"scriptBlockExecutionTimeout\":\"datayspkyswyaejffv\",\"scripts\":[{\"text\":\"datahgqsjecccf\",\"type\":\"datacywcuhqfxfe\",\"parameters\":[{\"name\":\"dataurermnyph\",\"type\":\"Int16\",\"value\":\"datast\",\"direction\":\"Input\",\"size\":106174222}]},{\"text\":\"datanvubszjyttgkps\",\"type\":\"datamtcczz\",\"parameters\":[{\"name\":\"datamgezkb\",\"type\":\"Double\",\"value\":\"datatlomeczdn\",\"direction\":\"Output\",\"size\":1235599878},{\"name\":\"dataefn\",\"type\":\"Boolean\",\"value\":\"datavbsbhdtiaqafalb\",\"direction\":\"InputOutput\",\"size\":581465328}]},{\"text\":\"datalvdh\",\"type\":\"datadvdbrrkvxm\",\"parameters\":[{\"name\":\"dataziwndnpojmgke\",\"type\":\"Int16\",\"value\":\"datahdsuwonj\",\"direction\":\"Input\",\"size\":1854528563},{\"name\":\"dataik\",\"type\":\"Decimal\",\"value\":\"dataehiegkpukvalcv\",\"direction\":\"InputOutput\",\"size\":391306202},{\"name\":\"datai\",\"type\":\"DateTime\",\"value\":\"dataio\",\"direction\":\"Input\",\"size\":401236974}]},{\"text\":\"datakmwzsmyakph\",\"type\":\"datasmkhkuk\",\"parameters\":[{\"name\":\"databsii\",\"type\":\"Boolean\",\"value\":\"databnqyswpnoghk\",\"direction\":\"InputOutput\",\"size\":406966962},{\"name\":\"dataduwttrvgzjfptpr\",\"type\":\"Int64\",\"value\":\"datazgyondzvtfk\",\"direction\":\"Output\",\"size\":971597158},{\"name\":\"dataiyjqbezvxebdhp\",\"type\":\"DateTime\",\"value\":\"dataqkylmfy\",\"direction\":\"InputOutput\",\"size\":1357722450},{\"name\":\"datawbkfcajtxzduqt\",\"type\":\"String\",\"value\":\"datagrfzaexewftqo\",\"direction\":\"Input\",\"size\":436489942}]}],\"logSettings\":{\"logDestination\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"hmesk\",\"parameters\":{\"bdajc\":\"datap\",\"jryppvdhklcczg\":\"datarlnxjucoj\"}},\"path\":\"dataogzstc\"}},\"returnMultistatementResult\":\"databftafrbuvw\"}") - .toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptActivityParameterType.INT16, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(106174222, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("hmesk", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityTypeProperties model - = new ScriptActivityTypeProperties().withScriptBlockExecutionTimeout("datayspkyswyaejffv") - .withScripts( - Arrays.asList( - new ScriptActivityScriptBlock().withText("datahgqsjecccf") - .withType("datacywcuhqfxfe") - .withParameters(Arrays.asList(new ScriptActivityParameter().withName("dataurermnyph") - .withType(ScriptActivityParameterType.INT16) - .withValue("datast") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(106174222))), - new ScriptActivityScriptBlock().withText("datanvubszjyttgkps") - .withType("datamtcczz") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datamgezkb") - .withType(ScriptActivityParameterType.DOUBLE) - .withValue("datatlomeczdn") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1235599878), - new ScriptActivityParameter().withName("dataefn") - .withType(ScriptActivityParameterType.BOOLEAN) - .withValue("datavbsbhdtiaqafalb") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(581465328))), - new ScriptActivityScriptBlock().withText("datalvdh") - .withType("datadvdbrrkvxm") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("dataziwndnpojmgke") - .withType(ScriptActivityParameterType.INT16) - .withValue("datahdsuwonj") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1854528563), - new ScriptActivityParameter().withName("dataik") - .withType(ScriptActivityParameterType.DECIMAL) - .withValue("dataehiegkpukvalcv") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(391306202), - new ScriptActivityParameter().withName("datai") - .withType(ScriptActivityParameterType.DATE_TIME) - .withValue("dataio") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(401236974))), - new ScriptActivityScriptBlock().withText("datakmwzsmyakph") - .withType("datasmkhkuk") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("databsii") - .withType(ScriptActivityParameterType.BOOLEAN) - .withValue("databnqyswpnoghk") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(406966962), - new ScriptActivityParameter().withName("dataduwttrvgzjfptpr") - .withType(ScriptActivityParameterType.INT64) - .withValue("datazgyondzvtfk") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(971597158), - new ScriptActivityParameter().withName("dataiyjqbezvxebdhp") - .withType(ScriptActivityParameterType.DATE_TIME) - .withValue("dataqkylmfy") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(1357722450), - new ScriptActivityParameter().withName("datawbkfcajtxzduqt") - .withType(ScriptActivityParameterType.STRING) - .withValue("datagrfzaexewftqo") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(436489942))))) - .withLogSettings(new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.EXTERNAL_STORE) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hmesk") - .withParameters(mapOf("bdajc", "datap", "jryppvdhklcczg", "datarlnxjucoj"))) - .withPath("dataogzstc"))) - .withReturnMultistatementResult("databftafrbuvw"); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptActivityParameterType.INT16, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(106174222, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("hmesk", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java deleted file mode 100644 index e1268f0b1eae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecretBase; - -public final class SecretBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecretBase model = BinaryData.fromString("{\"type\":\"SecretBase\"}").toObject(SecretBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecretBase model = new SecretBase(); - model = BinaryData.fromObject(model).toObject(SecretBase.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java deleted file mode 100644 index ee3cc9e105d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecureInputOutputPolicy; -import org.junit.jupiter.api.Assertions; - -public final class SecureInputOutputPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecureInputOutputPolicy model = BinaryData.fromString("{\"secureInput\":true,\"secureOutput\":true}") - .toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureInputOutputPolicy model = new SecureInputOutputPolicy().withSecureInput(true).withSecureOutput(true); - model = BinaryData.fromObject(model).toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java deleted file mode 100644 index d74b8aa7be84..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecureString; -import org.junit.jupiter.api.Assertions; - -public final class SecureStringTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecureString model = BinaryData.fromString("{\"type\":\"SecureString\",\"value\":\"qxvztpbnfnqtxjt\"}") - .toObject(SecureString.class); - Assertions.assertEquals("qxvztpbnfnqtxjt", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureString model = new SecureString().withValue("qxvztpbnfnqtxjt"); - model = BinaryData.fromObject(model).toObject(SecureString.class); - Assertions.assertEquals("qxvztpbnfnqtxjt", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java deleted file mode 100644 index 09f258a210e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SelfDependencyTumblingWindowTriggerReference; -import org.junit.jupiter.api.Assertions; - -public final class SelfDependencyTumblingWindowTriggerReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfDependencyTumblingWindowTriggerReference model = BinaryData.fromString( - "{\"type\":\"SelfDependencyTumblingWindowTriggerReference\",\"offset\":\"jveujgsxrsxb\",\"size\":\"mv\"}") - .toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("jveujgsxrsxb", model.offset()); - Assertions.assertEquals("mv", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfDependencyTumblingWindowTriggerReference model - = new SelfDependencyTumblingWindowTriggerReference().withOffset("jveujgsxrsxb").withSize("mv"); - model = BinaryData.fromObject(model).toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("jveujgsxrsxb", model.offset()); - Assertions.assertEquals("mv", model.size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java deleted file mode 100644 index 3131e9319754..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeNodeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = BinaryData.fromString( - "{\"nodeName\":\"e\",\"machineName\":\"sgzvahapjyzhpv\",\"hostServiceUri\":\"zcjrvxdjzlmwlx\",\"status\":\"Online\",\"capabilities\":{\"nnprn\":\"hzovawjvzunlut\",\"eilpjzuaejxdu\":\"i\",\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\"},\"versionStatus\":\"sd\",\"version\":\"ouwaboekqvkeln\",\"registerTime\":\"2021-02-02T03:25:54Z\",\"lastConnectTime\":\"2020-12-28T23:28:21Z\",\"expiryTime\":\"2021-07-06T07:16:14Z\",\"lastStartTime\":\"2021-03-30T06:11:19Z\",\"lastStopTime\":\"2021-08-23T09:42:03Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-01-31T17:20:46Z\",\"lastEndUpdateTime\":\"2021-07-31T18:32:18Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1744629944,\"maxConcurrentJobs\":923639125,\"\":{\"iidzyexzne\":\"dataawjoyaqcslyjp\"}}") - .toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "e", "lastStartUpdateTime", "2021-01-31T17:20:46Z", - "lastConnectTime", "2020-12-28T23:28:21Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"nnprn\":\"hzovawjvzunlut\",\"eilpjzuaejxdu\":\"i\",\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "zcjrvxdjzlmwlx", "registerTime", "2021-02-02T03:25:54Z", "maxConcurrentJobs", - 923639125, "lastStopTime", "2021-08-23T09:42:03Z", "version", "ouwaboekqvkeln", "machineName", - "sgzvahapjyzhpv", "versionStatus", "sd", "concurrentJobsLimit", 1744629944, "lastEndUpdateTime", - "2021-07-31T18:32:18Z", "expiryTime", "2021-07-06T07:16:14Z", "lastStartTime", "2021-03-30T06:11:19Z", - "lastUpdateResult", "Fail", "isActiveDispatcher", true, "status", "Online")); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java deleted file mode 100644 index ec8e465a5ecd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeStatus; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = BinaryData.fromString( - "{\"type\":\"SelfHosted\",\"typeProperties\":{\"createTime\":\"2021-02-01T10:07:26Z\",\"taskQueueId\":\"mmmbipyse\",\"internalChannelEncryption\":\"NotSet\",\"version\":\"obfjcvmkkbpgdiw\",\"nodes\":[{\"nodeName\":\"d\",\"machineName\":\"embr\",\"hostServiceUri\":\"wvcwcehzrtrgp\",\"status\":\"Upgrading\",\"capabilities\":{\"pecsdk\":\"xhyfwjfqktuzrl\",\"njpbhjlugcupcyfr\":\"qfzbvttqjntv\"},\"versionStatus\":\"oyvmvuxyeeafd\",\"version\":\"uwlynxzhgbs\",\"registerTime\":\"2021-08-10T16:26:43Z\",\"lastConnectTime\":\"2021-08-16T00:47:39Z\",\"expiryTime\":\"2021-02-20T20:50:01Z\",\"lastStartTime\":\"2021-07-04T02:32:58Z\",\"lastStopTime\":\"2021-11-02T23:47:18Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-01-16T08:04:52Z\",\"lastEndUpdateTime\":\"2021-12-04T02:47:07Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":935204104,\"maxConcurrentJobs\":1895404533,\"\":{\"modwhqu\":\"datadzwnkbjqp\",\"wz\":\"datasochtuxap\",\"bx\":\"dataq\"}},{\"nodeName\":\"nslcvynavwttts\",\"machineName\":\"z\",\"hostServiceUri\":\"ddcaqimodnbjmjxk\",\"status\":\"Limited\",\"capabilities\":{\"cebgodjfyplav\":\"zkqtkfjackta\",\"ecedsoqwexie\":\"v\",\"ywylav\":\"nzoteikffjqdfad\"},\"versionStatus\":\"q\",\"version\":\"ohystdgjtpbtkogf\",\"registerTime\":\"2021-05-15T17:11Z\",\"lastConnectTime\":\"2021-08-02T13:45:25Z\",\"expiryTime\":\"2021-03-08T03:38:01Z\",\"lastStartTime\":\"2021-10-07T06:11:05Z\",\"lastStopTime\":\"2021-08-26T01:52:01Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-08-17T14:21:54Z\",\"lastEndUpdateTime\":\"2021-01-20T01:43:38Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1045454101,\"maxConcurrentJobs\":1577135191,\"\":{\"jy\":\"datagisw\"}},{\"nodeName\":\"vsobamtarirdzdgv\",\"machineName\":\"flz\",\"hostServiceUri\":\"e\",\"status\":\"Online\",\"capabilities\":{\"qsxblmnxrxkul\":\"pypbm\",\"godywxjikfrx\":\"tivviyqonbxxyfoz\",\"nkzimqa\":\"lused\"},\"versionStatus\":\"mvmycvjpaxjdqvvy\",\"version\":\"hyvnfjngoq\",\"registerTime\":\"2021-03-19T08:40:35Z\",\"lastConnectTime\":\"2021-09-10T09:59:19Z\",\"expiryTime\":\"2021-01-22T15:49:35Z\",\"lastStartTime\":\"2021-07-01T02:38:11Z\",\"lastStopTime\":\"2021-09-04T10:10:29Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-10-21T18:54:20Z\",\"lastEndUpdateTime\":\"2021-07-31T23:50:38Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":2080228934,\"maxConcurrentJobs\":1608026781,\"\":{\"x\":\"datazgz\",\"nterma\":\"datadusebkcfetxp\"}},{\"nodeName\":\"iqrsnmftubqwxv\",\"machineName\":\"rbi\",\"hostServiceUri\":\"jlgrwjb\",\"status\":\"Limited\",\"capabilities\":{\"eyx\":\"bocsitsxhvsgzpwq\",\"ttampqep\":\"kctyq\",\"ub\":\"ft\"},\"versionStatus\":\"zoepeqlhbtysyiz\",\"version\":\"lctpqnofkwh\",\"registerTime\":\"2021-01-16T19:09:50Z\",\"lastConnectTime\":\"2021-03-05T01:40:28Z\",\"expiryTime\":\"2021-07-01T01:46:58Z\",\"lastStartTime\":\"2021-05-10T10:09:31Z\",\"lastStopTime\":\"2021-06-01T06:29:17Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2020-12-20T02:18:07Z\",\"lastEndUpdateTime\":\"2021-06-28T10:21:14Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":585694832,\"maxConcurrentJobs\":1011648765,\"\":{\"wbmacvemmriyz\":\"datajsmvsiyqmlmwjwsm\",\"xplcsinb\":\"datavque\"}}],\"scheduledUpdateDate\":\"2021-04-08T05:40:51Z\",\"updateDelayOffset\":\"xxhcynnmvaiz\",\"localTimeZoneOffset\":\"wqqpwcidsjqcqyz\",\"capabilities\":{\"likalbcyuwahw\":\"fdlgpryy\"},\"serviceUrls\":[\"vaidzcephn\",\"nuhgy\",\"zkhi\"],\"autoUpdate\":\"Off\",\"versionStatus\":\"pekiprjbp\",\"links\":[{\"name\":\"pairpwjmcgi\",\"subscriptionId\":\"ywpejtvqopugrs\",\"dataFactoryName\":\"giuztqefzypul\",\"dataFactoryLocation\":\"mcbcen\",\"createTime\":\"2021-09-30T16:48:42Z\"},{\"name\":\"uepikwc\",\"subscriptionId\":\"asgukq\",\"dataFactoryName\":\"iy\",\"dataFactoryLocation\":\"fvkiw\",\"createTime\":\"2021-02-23T21:58:36Z\"},{\"name\":\"mytcctirgyut\",\"subscriptionId\":\"nzhdm\",\"dataFactoryName\":\"vjbryb\",\"dataFactoryLocation\":\"rkh\",\"createTime\":\"2021-07-10T18:03:20Z\"},{\"name\":\"ud\",\"subscriptionId\":\"m\",\"dataFactoryName\":\"h\",\"dataFactoryLocation\":\"jjhq\",\"createTime\":\"2021-11-04T10:24:23Z\"}],\"pushedVersion\":\"jfpxoygnmjniqwu\",\"latestVersion\":\"yxfknj\",\"autoUpdateETA\":\"2021-01-16T14:28:10Z\",\"selfContainedInteractiveAuthoringEnabled\":true},\"dataFactoryName\":\"vravntvklkwqi\",\"state\":\"Limited\",\"\":{\"tdmewwlkr\":\"dataymketot\",\"pgqqdhtctx\":\"dataz\",\"zjohdhczh\":\"dataregykjmpad\",\"xgjqqbactffxd\":\"dataxitydljgrpqua\"}}") - .toObject(SelfHostedIntegrationRuntimeStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = new SelfHostedIntegrationRuntimeStatus() - .withNodes(Arrays.asList( - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "d", "lastStartUpdateTime", "2021-01-16T08:04:52Z", - "lastConnectTime", "2021-08-16T00:47:39Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"pecsdk\":\"xhyfwjfqktuzrl\",\"njpbhjlugcupcyfr\":\"qfzbvttqjntv\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "wvcwcehzrtrgp", "registerTime", "2021-08-10T16:26:43Z", "maxConcurrentJobs", - 1895404533, "lastStopTime", "2021-11-02T23:47:18Z", "version", "uwlynxzhgbs", "machineName", - "embr", "versionStatus", "oyvmvuxyeeafd", "concurrentJobsLimit", 935204104, "lastEndUpdateTime", - "2021-12-04T02:47:07Z", "expiryTime", "2021-02-20T20:50:01Z", "lastStartTime", - "2021-07-04T02:32:58Z", "lastUpdateResult", "Fail", "isActiveDispatcher", true, "status", - "Upgrading")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "nslcvynavwttts", - "lastStartUpdateTime", "2021-08-17T14:21:54Z", "lastConnectTime", "2021-08-02T13:45:25Z", - "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"cebgodjfyplav\":\"zkqtkfjackta\",\"ecedsoqwexie\":\"v\",\"ywylav\":\"nzoteikffjqdfad\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "ddcaqimodnbjmjxk", "registerTime", "2021-05-15T17:11Z", "maxConcurrentJobs", - 1577135191, "lastStopTime", "2021-08-26T01:52:01Z", "version", "ohystdgjtpbtkogf", "machineName", - "z", "versionStatus", "q", "concurrentJobsLimit", 1045454101, "lastEndUpdateTime", - "2021-01-20T01:43:38Z", "expiryTime", "2021-03-08T03:38:01Z", "lastStartTime", - "2021-10-07T06:11:05Z", "lastUpdateResult", "Fail", "isActiveDispatcher", false, "status", - "Limited")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", - "vsobamtarirdzdgv", "lastStartUpdateTime", "2021-10-21T18:54:20Z", "lastConnectTime", - "2021-09-10T09:59:19Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"qsxblmnxrxkul\":\"pypbm\",\"godywxjikfrx\":\"tivviyqonbxxyfoz\",\"nkzimqa\":\"lused\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "e", "registerTime", "2021-03-19T08:40:35Z", "maxConcurrentJobs", 1608026781, - "lastStopTime", "2021-09-04T10:10:29Z", "version", "hyvnfjngoq", "machineName", "flz", - "versionStatus", "mvmycvjpaxjdqvvy", "concurrentJobsLimit", 2080228934, "lastEndUpdateTime", - "2021-07-31T23:50:38Z", "expiryTime", "2021-01-22T15:49:35Z", "lastStartTime", - "2021-07-01T02:38:11Z", "lastUpdateResult", "None", "isActiveDispatcher", true, "status", - "Online")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "iqrsnmftubqwxv", "lastStartUpdateTime", - "2020-12-20T02:18:07Z", "lastConnectTime", "2021-03-05T01:40:28Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"eyx\":\"bocsitsxhvsgzpwq\",\"ttampqep\":\"kctyq\",\"ub\":\"ft\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "jlgrwjb", "registerTime", "2021-01-16T19:09:50Z", "maxConcurrentJobs", - 1011648765, "lastStopTime", "2021-06-01T06:29:17Z", "version", "lctpqnofkwh", "machineName", - "rbi", "versionStatus", "zoepeqlhbtysyiz", "concurrentJobsLimit", 585694832, - "lastEndUpdateTime", "2021-06-28T10:21:14Z", "expiryTime", "2021-07-01T01:46:58Z", - "lastStartTime", "2021-05-10T10:09:31Z", "lastUpdateResult", "None", "isActiveDispatcher", - false, "status", "Limited")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime())); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatus.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java deleted file mode 100644 index f9a6bccd044b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeStatusTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeStatusTypeProperties model = BinaryData.fromString( - "{\"createTime\":\"2021-04-29T07:34:42Z\",\"taskQueueId\":\"humwafap\",\"internalChannelEncryption\":\"NotEncrypted\",\"version\":\"jopizqqihvbku\",\"nodes\":[{\"nodeName\":\"ddj\",\"machineName\":\"pgom\",\"hostServiceUri\":\"kjpajl\",\"status\":\"NeedRegistration\",\"capabilities\":{\"tafjjev\":\"ljlhejcccpxbnw\",\"skplqftqcxqm\":\"tvitghzqwvkpa\",\"rm\":\"sudcykgulellf\",\"oubxlpkdsnbqoyms\":\"uxyqbm\"},\"versionStatus\":\"ra\",\"version\":\"hgw\",\"registerTime\":\"2021-06-11T23:29:53Z\",\"lastConnectTime\":\"2021-08-07T06:11:26Z\",\"expiryTime\":\"2021-11-11T04:40:15Z\",\"lastStartTime\":\"2021-05-31T04:42:50Z\",\"lastStopTime\":\"2021-06-23T22:55:39Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-09-29T21:30:44Z\",\"lastEndUpdateTime\":\"2021-02-17T06:34:28Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1913572156,\"maxConcurrentJobs\":1190968303,\"\":{\"qtiqxgwsfrlyvzl\":\"dataibmbtmorikcze\",\"doqgrucw\":\"datajydg\",\"rru\":\"datacyjudhgwjqeglym\"}},{\"nodeName\":\"qpiyxkmqmgex\",\"machineName\":\"ilfiulgnnyxw\",\"hostServiceUri\":\"mcewqvvzx\",\"status\":\"NeedRegistration\",\"capabilities\":{\"kbyjuwhizcbqjxm\":\"rbbsnptmmvdpavc\",\"wkoltjdauujjl\":\"wdtunpcskdlrfo\",\"ehplmqyoduksa\":\"yhddzeykudjzrim\",\"qkrbyyakrjgbnw\":\"znqqkqxkdglse\"},\"versionStatus\":\"krllbeca\",\"version\":\"vxouhdcftptfcj\",\"registerTime\":\"2021-01-25T11:05:39Z\",\"lastConnectTime\":\"2021-06-23T07:24:03Z\",\"expiryTime\":\"2021-08-23T20:16:45Z\",\"lastStartTime\":\"2021-01-19T05:08:58Z\",\"lastStopTime\":\"2021-03-31T22:15:51Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-01-03T03:22:02Z\",\"lastEndUpdateTime\":\"2021-02-28T04:14:14Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":73571477,\"maxConcurrentJobs\":1351118080,\"\":{\"rtngiqcypmonfcor\":\"datahmqyufpfowweyls\",\"dtjfrponajzdj\":\"datanhfycigcbmay\",\"krbgvojcks\":\"datazbrwrfrmhouf\",\"gnzadqmvpehpn\":\"datarsnqunniklyxde\"}},{\"nodeName\":\"kyqhrpl\",\"machineName\":\"q\",\"hostServiceUri\":\"ojsrgc\",\"status\":\"Initializing\",\"capabilities\":{\"hhaq\":\"b\",\"ywdpuowl\":\"ytuecmgu\"},\"versionStatus\":\"xkr\",\"version\":\"tqzqnbseujcmtci\",\"registerTime\":\"2021-07-15T12:20:20Z\",\"lastConnectTime\":\"2021-11-07T15:09:17Z\",\"expiryTime\":\"2021-01-30T07:38:31Z\",\"lastStartTime\":\"2021-11-02T14:22:09Z\",\"lastStopTime\":\"2021-11-26T07:27:12Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-03-03T15:52:27Z\",\"lastEndUpdateTime\":\"2020-12-25T01:01:32Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":350719333,\"maxConcurrentJobs\":1822892993,\"\":{\"wkjzvqpsymt\":\"datak\",\"nqhyefnak\":\"datapyjtrxxzwd\"}},{\"nodeName\":\"tpjksdlulytjxhxw\",\"machineName\":\"ttl\",\"hostServiceUri\":\"u\",\"status\":\"Limited\",\"capabilities\":{\"tqdapyds\":\"plugulynvpdv\",\"pj\":\"p\"},\"versionStatus\":\"ilbn\",\"version\":\"cqehy\",\"registerTime\":\"2021-06-16T02:56:55Z\",\"lastConnectTime\":\"2021-07-12T09:43:58Z\",\"expiryTime\":\"2021-09-06T00:06:37Z\",\"lastStartTime\":\"2021-01-10T13:31:11Z\",\"lastStopTime\":\"2021-03-27T19:04:08Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-06-23T04:37:10Z\",\"lastEndUpdateTime\":\"2021-02-16T05:00:53Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":161997730,\"maxConcurrentJobs\":1564723464,\"\":{\"maxdwxrwq\":\"datae\"}}],\"scheduledUpdateDate\":\"2021-10-13T06:27:51Z\",\"updateDelayOffset\":\"sdta\",\"localTimeZoneOffset\":\"y\",\"capabilities\":{\"u\":\"gjhomywlypghhu\",\"b\":\"yfvgpqwgiqmbrisk\",\"lieegjnq\":\"ihtqfvyqmmczugu\",\"c\":\"hfjoxsehjscg\"},\"serviceUrls\":[\"ucftot\",\"dhjxdlmuhffjjq\",\"jyqmpmsknaxr\",\"ljw\"],\"autoUpdate\":\"Off\",\"versionStatus\":\"dpypb\",\"links\":[{\"name\":\"fxfpwmaj\",\"subscriptionId\":\"fijf\",\"dataFactoryName\":\"j\",\"dataFactoryLocation\":\"svhmsmrih\",\"createTime\":\"2021-09-22T10:36:59Z\"},{\"name\":\"wlbqntdder\",\"subscriptionId\":\"yiwuzpsvcmzs\",\"dataFactoryName\":\"tyyysqnwnl\",\"dataFactoryLocation\":\"zfjd\",\"createTime\":\"2021-11-13T07:00:46Z\"}],\"pushedVersion\":\"hsydph\",\"latestVersion\":\"zzetfg\",\"autoUpdateETA\":\"2021-08-29T00:05:45Z\",\"selfContainedInteractiveAuthoringEnabled\":false}") - .toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeStatusTypeProperties model = new SelfHostedIntegrationRuntimeStatusTypeProperties() - .withNodes(Arrays.asList(new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf( - "nodeName", "ddj", "lastStartUpdateTime", "2021-09-29T21:30:44Z", "lastConnectTime", - "2021-08-07T06:11:26Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"tafjjev\":\"ljlhejcccpxbnw\",\"skplqftqcxqm\":\"tvitghzqwvkpa\",\"rm\":\"sudcykgulellf\",\"oubxlpkdsnbqoyms\":\"uxyqbm\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "kjpajl", "registerTime", "2021-06-11T23:29:53Z", "maxConcurrentJobs", 1190968303, - "lastStopTime", "2021-06-23T22:55:39Z", "version", "hgw", "machineName", "pgom", "versionStatus", "ra", - "concurrentJobsLimit", 1913572156, "lastEndUpdateTime", "2021-02-17T06:34:28Z", "expiryTime", - "2021-11-11T04:40:15Z", "lastStartTime", "2021-05-31T04:42:50Z", "lastUpdateResult", "Fail", - "isActiveDispatcher", true, "status", "NeedRegistration")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "qpiyxkmqmgex", - "lastStartUpdateTime", "2021-01-03T03:22:02Z", "lastConnectTime", "2021-06-23T07:24:03Z", - "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"kbyjuwhizcbqjxm\":\"rbbsnptmmvdpavc\",\"wkoltjdauujjl\":\"wdtunpcskdlrfo\",\"ehplmqyoduksa\":\"yhddzeykudjzrim\",\"qkrbyyakrjgbnw\":\"znqqkqxkdglse\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "mcewqvvzx", "registerTime", "2021-01-25T11:05:39Z", "maxConcurrentJobs", - 1351118080, "lastStopTime", "2021-03-31T22:15:51Z", "version", "vxouhdcftptfcj", "machineName", - "ilfiulgnnyxw", "versionStatus", "krllbeca", "concurrentJobsLimit", 73571477, "lastEndUpdateTime", - "2021-02-28T04:14:14Z", "expiryTime", "2021-08-23T20:16:45Z", "lastStartTime", - "2021-01-19T05:08:58Z", "lastUpdateResult", "None", "isActiveDispatcher", false, "status", - "NeedRegistration")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "kyqhrpl", "lastStartUpdateTime", - "2021-03-03T15:52:27Z", "lastConnectTime", "2021-11-07T15:09:17Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"hhaq\":\"b\",\"ywdpuowl\":\"ytuecmgu\"}", Object.class, - SerializerEncoding.JSON), - "hostServiceUri", "ojsrgc", "registerTime", "2021-07-15T12:20:20Z", "maxConcurrentJobs", - 1822892993, "lastStopTime", "2021-11-26T07:27:12Z", "version", "tqzqnbseujcmtci", "machineName", - "q", "versionStatus", "xkr", "concurrentJobsLimit", 350719333, "lastEndUpdateTime", - "2020-12-25T01:01:32Z", "expiryTime", "2021-01-30T07:38:31Z", "lastStartTime", - "2021-11-02T14:22:09Z", "lastUpdateResult", "Fail", "isActiveDispatcher", true, "status", - "Initializing")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "tpjksdlulytjxhxw", "lastStartUpdateTime", - "2021-06-23T04:37:10Z", "lastConnectTime", "2021-07-12T09:43:58Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"tqdapyds\":\"plugulynvpdv\",\"pj\":\"p\"}", Object.class, - SerializerEncoding.JSON), - "hostServiceUri", "u", "registerTime", "2021-06-16T02:56:55Z", "maxConcurrentJobs", 1564723464, - "lastStopTime", "2021-03-27T19:04:08Z", "version", "cqehy", "machineName", "ttl", - "versionStatus", "ilbn", "concurrentJobsLimit", 161997730, "lastEndUpdateTime", - "2021-02-16T05:00:53Z", "expiryTime", "2021-09-06T00:06:37Z", "lastStartTime", - "2021-01-10T13:31:11Z", "lastUpdateResult", "None", "isActiveDispatcher", true, "status", - "Limited")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime())); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java deleted file mode 100644 index 38cf0b14aa2d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ServiceNowObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowObjectDataset model = BinaryData.fromString( - "{\"type\":\"ServiceNowObject\",\"typeProperties\":{\"tableName\":\"datamfvybfmpotal\"},\"description\":\"figrxxtrco\",\"structure\":\"dataqe\",\"schema\":\"dataldmxxbjh\",\"linkedServiceName\":{\"referenceName\":\"pvamsxrwqlwdf\",\"parameters\":{\"bboffgxtae\":\"datarplzeqzv\",\"fcyatbxdwr\":\"dataxt\",\"fbpeigkflvovriq\":\"datayvtkmxvztshnu\"}},\"parameters\":{\"txur\":{\"type\":\"Float\",\"defaultValue\":\"datakqcgzygtdjhtbar\"}},\"annotations\":[\"datayyumhzpst\",\"datacqacvttyh\",\"databilnszyjbuw\"],\"folder\":{\"name\":\"sydsci\"},\"\":{\"l\":\"dataayioxpqgqs\",\"akqsjymcfv\":\"datalefeombodvdgf\",\"nbpkfnxrlncmlzvv\":\"datazceuyuqktck\",\"cjqzrevfwcba\":\"datamesfhqs\"}}") - .toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("figrxxtrco", model.description()); - Assertions.assertEquals("pvamsxrwqlwdf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("txur").type()); - Assertions.assertEquals("sydsci", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowObjectDataset model = new ServiceNowObjectDataset().withDescription("figrxxtrco") - .withStructure("dataqe") - .withSchema("dataldmxxbjh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("pvamsxrwqlwdf") - .withParameters(mapOf("bboffgxtae", "datarplzeqzv", "fcyatbxdwr", "dataxt", "fbpeigkflvovriq", - "datayvtkmxvztshnu"))) - .withParameters(mapOf("txur", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakqcgzygtdjhtbar"))) - .withAnnotations(Arrays.asList("datayyumhzpst", "datacqacvttyh", "databilnszyjbuw")) - .withFolder(new DatasetFolder().withName("sydsci")) - .withTableName("datamfvybfmpotal"); - model = BinaryData.fromObject(model).toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("figrxxtrco", model.description()); - Assertions.assertEquals("pvamsxrwqlwdf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("txur").type()); - Assertions.assertEquals("sydsci", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java deleted file mode 100644 index d1e19bf13a9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ServiceNowSource; - -public final class ServiceNowSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowSource model = BinaryData.fromString( - "{\"type\":\"ServiceNowSource\",\"query\":\"databetzydtgpvnczf\",\"queryTimeout\":\"dataybjku\",\"additionalColumns\":\"dataajkyrhucbfkaqlp\",\"sourceRetryCount\":\"dataptero\",\"sourceRetryWait\":\"dataqaktao\",\"maxConcurrentConnections\":\"datagefobcqvzmyw\",\"disableMetricsCollection\":\"datayns\",\"\":{\"kklzabauvncln\":\"dataosqvojgol\",\"ikireetvjfizafd\":\"dataaoidjhoykgtyvrn\",\"csipfwlye\":\"datajhnuvndgrolgxa\",\"rzfppopwxxdgzhn\":\"dataajdpjmqteirrjjm\"}}") - .toObject(ServiceNowSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowSource model = new ServiceNowSource().withSourceRetryCount("dataptero") - .withSourceRetryWait("dataqaktao") - .withMaxConcurrentConnections("datagefobcqvzmyw") - .withDisableMetricsCollection("datayns") - .withQueryTimeout("dataybjku") - .withAdditionalColumns("dataajkyrhucbfkaqlp") - .withQuery("databetzydtgpvnczf"); - model = BinaryData.fromObject(model).toObject(ServiceNowSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2ObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2ObjectDatasetTests.java deleted file mode 100644 index 7f06cedd273a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2ObjectDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ServiceNowV2ObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"ServiceNowV2Object\",\"typeProperties\":{\"tableName\":\"datavsveamseauuuvhx\"},\"description\":\"h\",\"structure\":\"datamufzuuyszhae\",\"schema\":\"datatyosdpxtsdy\",\"linkedServiceName\":{\"referenceName\":\"fgefvwgwp\",\"parameters\":{\"puhhzwrsjumlkjsv\":\"dataiavwmixaqg\"}},\"parameters\":{\"cjg\":{\"type\":\"Int\",\"defaultValue\":\"dataixalphkgminh\"},\"kpismmrmrj\":{\"type\":\"Bool\",\"defaultValue\":\"datajmsngmluyr\"},\"sabcylzz\":{\"type\":\"Bool\",\"defaultValue\":\"datahi\"}},\"annotations\":[\"dataumzenk\",\"datadrue\",\"dataxexawxoib\",\"datactjwfebqqq\"],\"folder\":{\"name\":\"sqaclczfrofy\"},\"\":{\"ptldddorzljhnxfk\":\"dataiaiidkewqwa\",\"vx\":\"datafngfpilloir\",\"rqmznwwtkuy\":\"databktuqnbcjk\"}}") - .toObject(ServiceNowV2ObjectDataset.class); - Assertions.assertEquals("h", model.description()); - Assertions.assertEquals("fgefvwgwp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("cjg").type()); - Assertions.assertEquals("sqaclczfrofy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowV2ObjectDataset model = new ServiceNowV2ObjectDataset().withDescription("h") - .withStructure("datamufzuuyszhae") - .withSchema("datatyosdpxtsdy") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("fgefvwgwp") - .withParameters(mapOf("puhhzwrsjumlkjsv", "dataiavwmixaqg"))) - .withParameters(mapOf("cjg", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataixalphkgminh"), - "kpismmrmrj", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajmsngmluyr"), - "sabcylzz", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datahi"))) - .withAnnotations(Arrays.asList("dataumzenk", "datadrue", "dataxexawxoib", "datactjwfebqqq")) - .withFolder(new DatasetFolder().withName("sqaclczfrofy")) - .withTableName("datavsveamseauuuvhx"); - model = BinaryData.fromObject(model).toObject(ServiceNowV2ObjectDataset.class); - Assertions.assertEquals("h", model.description()); - Assertions.assertEquals("fgefvwgwp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("cjg").type()); - Assertions.assertEquals("sqaclczfrofy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2SourceTests.java deleted file mode 100644 index 7763c90e03af..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2SourceTests.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExpressionV2; -import com.azure.resourcemanager.datafactory.models.ExpressionV2Type; -import com.azure.resourcemanager.datafactory.models.ServiceNowV2Source; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowV2Source model = BinaryData.fromString( - "{\"type\":\"ServiceNowV2Source\",\"expression\":{\"type\":\"NAry\",\"value\":\"aejbmt\",\"operators\":[\"eudfhcl\",\"sedxiigwxzwqjpu\",\"upishcvsjaaedsqf\"],\"operands\":[{\"type\":\"Field\",\"value\":\"w\",\"operators\":[\"ptfvoljnromhsias\"],\"operands\":[{\"type\":\"Binary\",\"value\":\"qckwccpmsyhrv\",\"operators\":[\"rgnxhoqfvuqim\",\"gkvfghcuiipnsz\",\"rmqtkxya\"],\"operands\":[{},{},{}]},{\"type\":\"Constant\",\"value\":\"xhxkm\",\"operators\":[\"ryoffglwmkmbxusn\"],\"operands\":[{},{},{},{}]},{\"type\":\"Field\",\"value\":\"sdbfbkqiceh\",\"operators\":[\"tffngrduco\",\"dzbh\"],\"operands\":[{},{},{}]}]},{\"type\":\"Constant\",\"value\":\"oxzhpbjhhuimgd\",\"operators\":[\"a\"],\"operands\":[{\"type\":\"Constant\",\"value\":\"avmd\",\"operators\":[\"l\",\"cvwewognpu\",\"paqj\"],\"operands\":[{},{},{}]},{\"type\":\"NAry\",\"value\":\"lritsxuxregfb\",\"operators\":[\"zpf\",\"mjgtjckf\",\"ljrlrkvhgnm\",\"xmmpuksvoimdg\"],\"operands\":[{}]},{\"type\":\"Constant\",\"value\":\"ieomiovbmwitnih\",\"operators\":[\"zd\",\"ggghwxpgftshcss\",\"ie\"],\"operands\":[{},{}]}]}]},\"pageSize\":\"datahfezzgnwxro\",\"queryTimeout\":\"dataoppzgvt\",\"additionalColumns\":\"dataobowh\",\"sourceRetryCount\":\"datassmlwadstl\",\"sourceRetryWait\":\"datagqmuthxoldmhyppt\",\"maxConcurrentConnections\":\"datap\",\"disableMetricsCollection\":\"datalwvezthgwqqt\",\"\":{\"bouwuajsitgpz\":\"datakyipzehitdq\"}}") - .toObject(ServiceNowV2Source.class); - Assertions.assertEquals(ExpressionV2Type.NARY, model.expression().type()); - Assertions.assertEquals("aejbmt", model.expression().value()); - Assertions.assertEquals("eudfhcl", model.expression().operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.expression().operands().get(0).type()); - Assertions.assertEquals("w", model.expression().operands().get(0).value()); - Assertions.assertEquals("ptfvoljnromhsias", model.expression().operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.expression().operands().get(0).operands().get(0).type()); - Assertions.assertEquals("qckwccpmsyhrv", model.expression().operands().get(0).operands().get(0).value()); - Assertions.assertEquals("rgnxhoqfvuqim", - model.expression().operands().get(0).operands().get(0).operators().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowV2Source model - = new ServiceNowV2Source().withSourceRetryCount("datassmlwadstl") - .withSourceRetryWait("datagqmuthxoldmhyppt") - .withMaxConcurrentConnections("datap") - .withDisableMetricsCollection("datalwvezthgwqqt") - .withQueryTimeout("dataoppzgvt") - .withAdditionalColumns("dataobowh") - .withExpression( - new ExpressionV2().withType(ExpressionV2Type.NARY) - .withValue("aejbmt") - .withOperators(Arrays.asList("eudfhcl", "sedxiigwxzwqjpu", "upishcvsjaaedsqf")) - .withOperands( - Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("w") - .withOperators(Arrays.asList("ptfvoljnromhsias")) - .withOperands(Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("qckwccpmsyhrv") - .withOperators(Arrays.asList("rgnxhoqfvuqim", "gkvfghcuiipnsz", "rmqtkxya")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("xhxkm") - .withOperators(Arrays.asList("ryoffglwmkmbxusn")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2(), new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("sdbfbkqiceh") - .withOperators(Arrays.asList("tffngrduco", "dzbh")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())))), - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("oxzhpbjhhuimgd") - .withOperators(Arrays.asList("a")) - .withOperands(Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("avmd") - .withOperators(Arrays.asList("l", "cvwewognpu", "paqj")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.NARY) - .withValue("lritsxuxregfb") - .withOperators( - Arrays.asList("zpf", "mjgtjckf", "ljrlrkvhgnm", "xmmpuksvoimdg")) - .withOperands(Arrays.asList(new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("ieomiovbmwitnih") - .withOperators(Arrays.asList("zd", "ggghwxpgftshcss", "ie")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2()))))))) - .withPageSize("datahfezzgnwxro"); - model = BinaryData.fromObject(model).toObject(ServiceNowV2Source.class); - Assertions.assertEquals(ExpressionV2Type.NARY, model.expression().type()); - Assertions.assertEquals("aejbmt", model.expression().value()); - Assertions.assertEquals("eudfhcl", model.expression().operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.expression().operands().get(0).type()); - Assertions.assertEquals("w", model.expression().operands().get(0).value()); - Assertions.assertEquals("ptfvoljnromhsias", model.expression().operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.expression().operands().get(0).operands().get(0).type()); - Assertions.assertEquals("qckwccpmsyhrv", model.expression().operands().get(0).operands().get(0).value()); - Assertions.assertEquals("rgnxhoqfvuqim", - model.expression().operands().get(0).operands().get(0).operators().get(0)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java deleted file mode 100644 index 1e6eb51b1f17..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.SecureInputOutputPolicy; -import com.azure.resourcemanager.datafactory.models.SetVariableActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SetVariableActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SetVariableActivity model = BinaryData.fromString( - "{\"type\":\"SetVariable\",\"typeProperties\":{\"variableName\":\"adjllhzl\",\"value\":\"datavr\",\"setSystemVariable\":true},\"policy\":{\"secureInput\":true,\"secureOutput\":true},\"name\":\"vomxtosdbvudo\",\"description\":\"oheebzewbif\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"dhd\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"fhmuaoouu\":\"datawrhkjmp\",\"hlggobjcfb\":\"datahfdggsrzol\",\"phzdkikjyhaqkglu\":\"datagelfkhmgsphoc\"}},{\"activity\":\"myqitsar\",\"dependencyConditions\":[\"Failed\"],\"\":{\"yryy\":\"datammjwmldgrwglmmca\"}}],\"userProperties\":[{\"name\":\"venmvhbgpgvlii\",\"value\":\"dataueltcoiszqf\"},{\"name\":\"biyvowyyvsbjpy\",\"value\":\"datalzxjiruq\"},{\"name\":\"rshtwdgoqxfbsci\",\"value\":\"dataizrorupduwqovlq\"}],\"\":{\"kovubfugdgpmtzqp\":\"dataehagorbspotq\",\"vetuqi\":\"datavochmeximhmi\"}}") - .toObject(SetVariableActivity.class); - Assertions.assertEquals("vomxtosdbvudo", model.name()); - Assertions.assertEquals("oheebzewbif", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("dhd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("venmvhbgpgvlii", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("adjllhzl", model.variableName()); - Assertions.assertEquals(true, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivity model = new SetVariableActivity().withName("vomxtosdbvudo") - .withDescription("oheebzewbif") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("dhd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("myqitsar") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("venmvhbgpgvlii").withValue("dataueltcoiszqf"), - new UserProperty().withName("biyvowyyvsbjpy").withValue("datalzxjiruq"), - new UserProperty().withName("rshtwdgoqxfbsci").withValue("dataizrorupduwqovlq"))) - .withPolicy(new SecureInputOutputPolicy().withSecureInput(true).withSecureOutput(true)) - .withVariableName("adjllhzl") - .withValue("datavr") - .withSetSystemVariable(true); - model = BinaryData.fromObject(model).toObject(SetVariableActivity.class); - Assertions.assertEquals("vomxtosdbvudo", model.name()); - Assertions.assertEquals("oheebzewbif", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("dhd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("venmvhbgpgvlii", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("adjllhzl", model.variableName()); - Assertions.assertEquals(true, model.setSystemVariable()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.java deleted file mode 100644 index 6eb586203ba0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SetVariableActivityTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class SetVariableActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SetVariableActivityTypeProperties model = BinaryData - .fromString("{\"variableName\":\"jamihnrulgypna\",\"value\":\"datajsdwnanuqn\",\"setSystemVariable\":true}") - .toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("jamihnrulgypna", model.variableName()); - Assertions.assertEquals(true, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivityTypeProperties model - = new SetVariableActivityTypeProperties().withVariableName("jamihnrulgypna") - .withValue("datajsdwnanuqn") - .withSetSystemVariable(true); - model = BinaryData.fromObject(model).toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("jamihnrulgypna", model.variableName()); - Assertions.assertEquals(true, model.setSystemVariable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java deleted file mode 100644 index f805dc109d1c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SftpLocation; - -public final class SftpLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpLocation model = BinaryData.fromString( - "{\"type\":\"SftpLocation\",\"folderPath\":\"dataclbtxl\",\"fileName\":\"datavsolzwil\",\"\":{\"jx\":\"dataojfsqebuu\",\"kktpmbmxbmbr\":\"datafxfjwp\"}}") - .toObject(SftpLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpLocation model = new SftpLocation().withFolderPath("dataclbtxl").withFileName("datavsolzwil"); - model = BinaryData.fromObject(model).toObject(SftpLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java deleted file mode 100644 index 3a4996c118f9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SftpReadSettings; - -public final class SftpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpReadSettings model = BinaryData.fromString( - "{\"type\":\"SftpReadSettings\",\"recursive\":\"datab\",\"wildcardFolderPath\":\"datavkm\",\"wildcardFileName\":\"datajz\",\"enablePartitionDiscovery\":\"datakyvybljqgirpi\",\"partitionRootPath\":\"dataqrmxcu\",\"fileListPath\":\"datarkgg\",\"deleteFilesAfterCompletion\":\"dataqanrkhcdjfsvfbj\",\"modifiedDatetimeStart\":\"dataadwrbrntvhppykrl\",\"modifiedDatetimeEnd\":\"dataalsvxpola\",\"disableChunking\":\"datarjmsabnmu\",\"maxConcurrentConnections\":\"datathyxryv\",\"disableMetricsCollection\":\"datazhsigddgbcnqv\",\"\":{\"lemzrw\":\"databffcvtij\",\"kmkwddgyqeni\":\"datagvgogczgcm\",\"rtcbvifcrnxst\":\"datarznam\"}}") - .toObject(SftpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpReadSettings model = new SftpReadSettings().withMaxConcurrentConnections("datathyxryv") - .withDisableMetricsCollection("datazhsigddgbcnqv") - .withRecursive("datab") - .withWildcardFolderPath("datavkm") - .withWildcardFileName("datajz") - .withEnablePartitionDiscovery("datakyvybljqgirpi") - .withPartitionRootPath("dataqrmxcu") - .withFileListPath("datarkgg") - .withDeleteFilesAfterCompletion("dataqanrkhcdjfsvfbj") - .withModifiedDatetimeStart("dataadwrbrntvhppykrl") - .withModifiedDatetimeEnd("dataalsvxpola") - .withDisableChunking("datarjmsabnmu"); - model = BinaryData.fromObject(model).toObject(SftpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.java deleted file mode 100644 index a8c82963181c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.SftpWriteSettings; -import java.util.Arrays; - -public final class SftpWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpWriteSettings model = BinaryData.fromString( - "{\"type\":\"SftpWriteSettings\",\"operationTimeout\":\"datadzlyogzba\",\"useTempFileRename\":\"datackakikkkajmnvbi\",\"maxConcurrentConnections\":\"datankrqd\",\"disableMetricsCollection\":\"dataoebgkx\",\"copyBehavior\":\"dataklqr\",\"metadata\":[{\"name\":\"datasaadaypxeqedftk\",\"value\":\"datamjnkttvzyvzi\"}],\"\":{\"fliqntnoegxo\":\"datasiidivbbrt\",\"dytwdaiexisa\":\"datapucl\",\"oukaffzzf\":\"dataygi\",\"orvigrxmptu\":\"dataivfiypfvwyzjsi\"}}") - .toObject(SftpWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpWriteSettings model = new SftpWriteSettings().withMaxConcurrentConnections("datankrqd") - .withDisableMetricsCollection("dataoebgkx") - .withCopyBehavior("dataklqr") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datasaadaypxeqedftk").withValue("datamjnkttvzyvzi"))) - .withOperationTimeout("datadzlyogzba") - .withUseTempFileRename("datackakikkkajmnvbi"); - model = BinaryData.fromObject(model).toObject(SftpWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java deleted file mode 100644 index a733376b908c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListDatasetTypeProperties; - -public final class SharePointOnlineListDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model - = BinaryData.fromString("{\"listName\":\"datavihylrxsiyzsyium\"}") - .toObject(SharePointOnlineListDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model - = new SharePointOnlineListDatasetTypeProperties().withListName("datavihylrxsiyzsyium"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java deleted file mode 100644 index 22dfbf38ef20..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SharePointOnlineListResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SharePointOnlineListResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListResourceDataset model = BinaryData.fromString( - "{\"type\":\"SharePointOnlineListResource\",\"typeProperties\":{\"listName\":\"dataxtsa\"},\"description\":\"tcoojybolqox\",\"structure\":\"datatsl\",\"schema\":\"datavmlkwkzlinv\",\"linkedServiceName\":{\"referenceName\":\"mtykxszdekfxcsqm\",\"parameters\":{\"plrgcnbvmhvq\":\"datazktkdpczeo\"}},\"parameters\":{\"orfji\":{\"type\":\"String\",\"defaultValue\":\"dataxku\"},\"gavfyihu\":{\"type\":\"Float\",\"defaultValue\":\"datadawe\"},\"zgkooagrlwpame\":{\"type\":\"String\",\"defaultValue\":\"datapwnyfjcypazwiimd\"},\"atfamrna\":{\"type\":\"Float\",\"defaultValue\":\"datawqadewhuwxkyx\"}},\"annotations\":[\"datalxccprkiyf\",\"datazwhomydxgtuqbv\"],\"folder\":{\"name\":\"zihirqvvketyd\"},\"\":{\"aqgbb\":\"dataoktssgvqxerxrmhr\"}}") - .toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("tcoojybolqox", model.description()); - Assertions.assertEquals("mtykxszdekfxcsqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("orfji").type()); - Assertions.assertEquals("zihirqvvketyd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListResourceDataset model = new SharePointOnlineListResourceDataset() - .withDescription("tcoojybolqox") - .withStructure("datatsl") - .withSchema("datavmlkwkzlinv") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mtykxszdekfxcsqm") - .withParameters(mapOf("plrgcnbvmhvq", "datazktkdpczeo"))) - .withParameters( - mapOf("orfji", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxku"), - "gavfyihu", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datadawe"), - "zgkooagrlwpame", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datapwnyfjcypazwiimd"), - "atfamrna", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datawqadewhuwxkyx"))) - .withAnnotations(Arrays.asList("datalxccprkiyf", "datazwhomydxgtuqbv")) - .withFolder(new DatasetFolder().withName("zihirqvvketyd")) - .withListName("dataxtsa"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("tcoojybolqox", model.description()); - Assertions.assertEquals("mtykxszdekfxcsqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("orfji").type()); - Assertions.assertEquals("zihirqvvketyd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java deleted file mode 100644 index d8ef21480b70..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SharePointOnlineListSource; - -public final class SharePointOnlineListSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListSource model = BinaryData.fromString( - "{\"type\":\"SharePointOnlineListSource\",\"query\":\"dataricjmvs\",\"httpRequestTimeout\":\"datadtladfc\",\"sourceRetryCount\":\"datazcizuegyl\",\"sourceRetryWait\":\"datamefpijwr\",\"maxConcurrentConnections\":\"datauphbwaiswb\",\"disableMetricsCollection\":\"datagrysjgz\",\"\":{\"eduxyd\":\"datajupdcmpfwfdc\"}}") - .toObject(SharePointOnlineListSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListSource model = new SharePointOnlineListSource().withSourceRetryCount("datazcizuegyl") - .withSourceRetryWait("datamefpijwr") - .withMaxConcurrentConnections("datauphbwaiswb") - .withDisableMetricsCollection("datagrysjgz") - .withQuery("dataricjmvs") - .withHttpRequestTimeout("datadtladfc"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java deleted file mode 100644 index f8c488d9aed9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ShopifyObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ShopifyObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShopifyObjectDataset model = BinaryData.fromString( - "{\"type\":\"ShopifyObject\",\"typeProperties\":{\"tableName\":\"datandmtqvmkmzvag\"},\"description\":\"fblsxyfqgtodg\",\"structure\":\"datalefmizdcsr\",\"schema\":\"databnasgfyxhsxcg\",\"linkedServiceName\":{\"referenceName\":\"bmxbpqcnx\",\"parameters\":{\"uufhpdncokqrg\":\"datahojvmazuflfp\",\"fnmmib\":\"datavbhmnimjlyhb\",\"umqeobrwreu\":\"datawcduyrgcay\"}},\"parameters\":{\"aagwkrxjkcge\":{\"type\":\"Array\",\"defaultValue\":\"datahamigsqzmfk\"},\"t\":{\"type\":\"Float\",\"defaultValue\":\"databrfkjfkxn\"}},\"annotations\":[\"dataoeqcrjvcjskqsfn\",\"dataiwap\",\"dataunhdikatzmtuv\",\"datanh\"],\"folder\":{\"name\":\"kbibxlwzlvkcm\"},\"\":{\"aoboiahk\":\"dataaunlodincf\",\"ksaxyeedvpmodkt\":\"datapsvax\",\"mor\":\"datautydvvg\",\"yvuz\":\"datapcjes\"}}") - .toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("fblsxyfqgtodg", model.description()); - Assertions.assertEquals("bmxbpqcnx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("aagwkrxjkcge").type()); - Assertions.assertEquals("kbibxlwzlvkcm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifyObjectDataset model = new ShopifyObjectDataset().withDescription("fblsxyfqgtodg") - .withStructure("datalefmizdcsr") - .withSchema("databnasgfyxhsxcg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bmxbpqcnx") - .withParameters(mapOf("uufhpdncokqrg", "datahojvmazuflfp", "fnmmib", "datavbhmnimjlyhb", "umqeobrwreu", - "datawcduyrgcay"))) - .withParameters(mapOf("aagwkrxjkcge", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahamigsqzmfk"), "t", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("databrfkjfkxn"))) - .withAnnotations(Arrays.asList("dataoeqcrjvcjskqsfn", "dataiwap", "dataunhdikatzmtuv", "datanh")) - .withFolder(new DatasetFolder().withName("kbibxlwzlvkcm")) - .withTableName("datandmtqvmkmzvag"); - model = BinaryData.fromObject(model).toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("fblsxyfqgtodg", model.description()); - Assertions.assertEquals("bmxbpqcnx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("aagwkrxjkcge").type()); - Assertions.assertEquals("kbibxlwzlvkcm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java deleted file mode 100644 index 83830993657e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ShopifySource; - -public final class ShopifySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShopifySource model = BinaryData.fromString( - "{\"type\":\"ShopifySource\",\"query\":\"databuwauytq\",\"queryTimeout\":\"datagaxloafws\",\"additionalColumns\":\"dataxqrokw\",\"sourceRetryCount\":\"dataipn\",\"sourceRetryWait\":\"dataql\",\"maxConcurrentConnections\":\"datarhctbrvegdamoy\",\"disableMetricsCollection\":\"datafjpkezqjizbyczme\",\"\":{\"destarulnhbqt\":\"datacgvlnpjjbyryrktu\",\"xhcrffj\":\"datayh\",\"svzhlkeot\":\"dataexupcuizvx\"}}") - .toObject(ShopifySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifySource model = new ShopifySource().withSourceRetryCount("dataipn") - .withSourceRetryWait("dataql") - .withMaxConcurrentConnections("datarhctbrvegdamoy") - .withDisableMetricsCollection("datafjpkezqjizbyczme") - .withQueryTimeout("datagaxloafws") - .withAdditionalColumns("dataxqrokw") - .withQuery("databuwauytq"); - model = BinaryData.fromObject(model).toObject(ShopifySource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.java deleted file mode 100644 index 51b970c7f1c7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; - -public final class SkipErrorFileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkipErrorFile model = BinaryData.fromString("{\"fileMissing\":\"dataislep\",\"dataInconsistency\":\"datas\"}") - .toObject(SkipErrorFile.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkipErrorFile model = new SkipErrorFile().withFileMissing("dataislep").withDataInconsistency("datas"); - model = BinaryData.fromObject(model).toObject(SkipErrorFile.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java deleted file mode 100644 index 376c237b024d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SnowflakeDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnowflakeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeDataset model = BinaryData.fromString( - "{\"type\":\"SnowflakeTable\",\"typeProperties\":{\"schema\":\"dataybfby\",\"table\":\"datalqllbofsn\"},\"description\":\"cybrhxgiknrl\",\"structure\":\"dataseiqbroqjfeamzku\",\"schema\":\"datagpksgotbunvnjqld\",\"linkedServiceName\":{\"referenceName\":\"qqvcugusqlxlxedt\",\"parameters\":{\"lnlmpuyypaggpaih\":\"datalnvqacbyfis\",\"ymipvlxty\":\"dataaeyzwloqrmgd\",\"pllitx\":\"dataukhjd\",\"qoivxcodw\":\"datargkwiyoy\"}},\"parameters\":{\"fwfiikqcdnzsfi\":{\"type\":\"Array\",\"defaultValue\":\"datacachhsizfuew\"},\"ah\":{\"type\":\"Int\",\"defaultValue\":\"dataneoodmcrxlyz\"},\"brnlsyiaan\":{\"type\":\"SecureString\",\"defaultValue\":\"datafakrxjjwnbrmdw\"}},\"annotations\":[\"datacjhatclpphc\",\"datatmrycpana\",\"datafa\",\"dataizrinlpxngzzxqb\"],\"folder\":{\"name\":\"zmzctbxzjk\"},\"\":{\"dozw\":\"datapucv\",\"e\":\"datask\",\"qmbinpxmiwt\":\"datafz\"}}") - .toObject(SnowflakeDataset.class); - Assertions.assertEquals("cybrhxgiknrl", model.description()); - Assertions.assertEquals("qqvcugusqlxlxedt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("fwfiikqcdnzsfi").type()); - Assertions.assertEquals("zmzctbxzjk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDataset model = new SnowflakeDataset().withDescription("cybrhxgiknrl") - .withStructure("dataseiqbroqjfeamzku") - .withSchema("datagpksgotbunvnjqld") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qqvcugusqlxlxedt") - .withParameters(mapOf("lnlmpuyypaggpaih", "datalnvqacbyfis", "ymipvlxty", "dataaeyzwloqrmgd", "pllitx", - "dataukhjd", "qoivxcodw", "datargkwiyoy"))) - .withParameters(mapOf("fwfiikqcdnzsfi", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datacachhsizfuew"), "ah", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataneoodmcrxlyz"), - "brnlsyiaan", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datafakrxjjwnbrmdw"))) - .withAnnotations(Arrays.asList("datacjhatclpphc", "datatmrycpana", "datafa", "dataizrinlpxngzzxqb")) - .withFolder(new DatasetFolder().withName("zmzctbxzjk")) - .withSchemaTypePropertiesSchema("dataybfby") - .withTable("datalqllbofsn"); - model = BinaryData.fromObject(model).toObject(SnowflakeDataset.class); - Assertions.assertEquals("cybrhxgiknrl", model.description()); - Assertions.assertEquals("qqvcugusqlxlxedt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("fwfiikqcdnzsfi").type()); - Assertions.assertEquals("zmzctbxzjk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java deleted file mode 100644 index b035de9a2ebc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SnowflakeDatasetTypeProperties; - -public final class SnowflakeDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"dataifpvrdukcdnzo\",\"table\":\"dataabux\"}") - .toObject(SnowflakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDatasetTypeProperties model - = new SnowflakeDatasetTypeProperties().withSchema("dataifpvrdukcdnzo").withTable("dataabux"); - model = BinaryData.fromObject(model).toObject(SnowflakeDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java deleted file mode 100644 index 87b66a354c17..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeExportCopyCommand; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeExportCopyCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeExportCopyCommand model = BinaryData.fromString( - "{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"ofdhrifekstrmsb\":\"datawikmgwxysut\",\"nssmaaxzcdlnvup\":\"datadgrzkeuplorn\"},\"additionalFormatOptions\":{\"lvoyltmxqalq\":\"databzyhtbjyycaco\",\"jwwoxanefellhdsg\":\"datary\",\"cbvuvwdp\":\"datagdubwmalt\",\"hnaghglaxj\":\"datal\"},\"storageIntegration\":\"databmfm\",\"\":{\"dpicwnbt\":\"dataatswvt\",\"erkaiikbpf\":\"datalrsfmtrmodkn\",\"keyhjuaezkb\":\"dataqxpq\",\"tqvtpkod\":\"datavtaul\"}}") - .toObject(SnowflakeExportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeExportCopyCommand model = new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions( - mapOf("ofdhrifekstrmsb", "datawikmgwxysut", "nssmaaxzcdlnvup", "datadgrzkeuplorn")) - .withAdditionalFormatOptions(mapOf("lvoyltmxqalq", "databzyhtbjyycaco", "jwwoxanefellhdsg", "datary", - "cbvuvwdp", "datagdubwmalt", "hnaghglaxj", "datal")) - .withStorageIntegration("databmfm"); - model = BinaryData.fromObject(model).toObject(SnowflakeExportCopyCommand.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java deleted file mode 100644 index cd4dfbfa8374..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeImportCopyCommand; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeImportCopyCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeImportCopyCommand model = BinaryData.fromString( - "{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"jozbdwf\":\"dataloxazywijbvqae\"},\"additionalFormatOptions\":{\"dletjiudcoktsgc\":\"datawliitaieledmiup\",\"grebecxuuzeuklu\":\"datapjlmsta\"},\"storageIntegration\":\"dataxejamychwwrv\",\"\":{\"nmgabfz\":\"dataxkttxvmbedvvmr\",\"hylzwzhlbp\":\"dataai\"}}") - .toObject(SnowflakeImportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeImportCopyCommand model - = new SnowflakeImportCopyCommand().withAdditionalCopyOptions(mapOf("jozbdwf", "dataloxazywijbvqae")) - .withAdditionalFormatOptions( - mapOf("dletjiudcoktsgc", "datawliitaieledmiup", "grebecxuuzeuklu", "datapjlmsta")) - .withStorageIntegration("dataxejamychwwrv"); - model = BinaryData.fromObject(model).toObject(SnowflakeImportCopyCommand.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.java deleted file mode 100644 index 4be59006ce66..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeImportCopyCommand; -import com.azure.resourcemanager.datafactory.models.SnowflakeSink; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeSink model = BinaryData.fromString( - "{\"type\":\"SnowflakeSink\",\"preCopyScript\":\"datazqtimqics\",\"importSettings\":{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"ujwntnfoqwu\":\"datapjcpdtktfpjkx\",\"pnsyedpyrp\":\"dataoraxbeam\",\"odifghdgsyhncxoq\":\"datapslcfwgrzzqf\",\"soxxoqyik\":\"datatjzdpllgllvkorg\"},\"additionalFormatOptions\":{\"mttxqxvmybqjlg\":\"datao\",\"sdccmdplhzjiqi\":\"datalf\"},\"storageIntegration\":\"dataiwrhmzkxrqzgshqx\",\"\":{\"fslawimhoaqj\":\"datanu\",\"mdaiv\":\"datalhlpz\",\"zdipnhbs\":\"datazqz\",\"mnoasyyadyf\":\"datarlrcc\"}},\"writeBatchSize\":\"datatllnzcmdgsvaek\",\"writeBatchTimeout\":\"datavwiwtykprrddben\",\"sinkRetryCount\":\"datahfszmxposmqscvy\",\"sinkRetryWait\":\"datadkpdleeslj\",\"maxConcurrentConnections\":\"datapsubxggknmvkniqo\",\"disableMetricsCollection\":\"datarcpsjeaz\",\"\":{\"sddy\":\"datacsbkmaluchbfrtaj\",\"nzp\":\"datadx\",\"fpggi\":\"datak\",\"wtkqofrkfccqj\":\"dataxsyufexivhjyxa\"}}") - .toObject(SnowflakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSink model = new SnowflakeSink().withWriteBatchSize("datatllnzcmdgsvaek") - .withWriteBatchTimeout("datavwiwtykprrddben") - .withSinkRetryCount("datahfszmxposmqscvy") - .withSinkRetryWait("datadkpdleeslj") - .withMaxConcurrentConnections("datapsubxggknmvkniqo") - .withDisableMetricsCollection("datarcpsjeaz") - .withPreCopyScript("datazqtimqics") - .withImportSettings(new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions(mapOf("ujwntnfoqwu", "datapjcpdtktfpjkx", "pnsyedpyrp", "dataoraxbeam", - "odifghdgsyhncxoq", "datapslcfwgrzzqf", "soxxoqyik", "datatjzdpllgllvkorg")) - .withAdditionalFormatOptions(mapOf("mttxqxvmybqjlg", "datao", "sdccmdplhzjiqi", "datalf")) - .withStorageIntegration("dataiwrhmzkxrqzgshqx")); - model = BinaryData.fromObject(model).toObject(SnowflakeSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.java deleted file mode 100644 index 9da93380b808..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeExportCopyCommand; -import com.azure.resourcemanager.datafactory.models.SnowflakeSource; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeSource model = BinaryData.fromString( - "{\"type\":\"SnowflakeSource\",\"query\":\"datalazvcfhiayrop\",\"exportSettings\":{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"tkhyrwdsnpuo\":\"datazlqwbglytwz\",\"j\":\"dataorfpizyb\",\"xwls\":\"datapqatkzghwcywrb\"},\"additionalFormatOptions\":{\"jiezbmhsqy\":\"datafwf\"},\"storageIntegration\":\"datawbzhafcoayuq\",\"\":{\"yfjtsem\":\"dataghjmmjmmjnx\",\"ocyo\":\"dataidbaykvlrsbrn\",\"mbch\":\"datap\",\"ybugojzcargsxmaw\":\"dataskwaffsjqnjp\"}},\"sourceRetryCount\":\"dataaagazryyjjwggpc\",\"sourceRetryWait\":\"datagwddobpcsjwex\",\"maxConcurrentConnections\":\"datazmm\",\"disableMetricsCollection\":\"dataqifhyhzu\",\"\":{\"hxcrweeqkdmp\":\"dataqnmhfmllorvh\",\"njftnfdcjtvei\":\"datamcrcel\"}}") - .toObject(SnowflakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSource model = new SnowflakeSource().withSourceRetryCount("dataaagazryyjjwggpc") - .withSourceRetryWait("datagwddobpcsjwex") - .withMaxConcurrentConnections("datazmm") - .withDisableMetricsCollection("dataqifhyhzu") - .withQuery("datalazvcfhiayrop") - .withExportSettings(new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions( - mapOf("tkhyrwdsnpuo", "datazlqwbglytwz", "j", "dataorfpizyb", "xwls", "datapqatkzghwcywrb")) - .withAdditionalFormatOptions(mapOf("jiezbmhsqy", "datafwf")) - .withStorageIntegration("datawbzhafcoayuq")); - model = BinaryData.fromObject(model).toObject(SnowflakeSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.java deleted file mode 100644 index 40334c55caf6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SnowflakeV2Dataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnowflakeV2DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeV2Dataset model = BinaryData.fromString( - "{\"type\":\"SnowflakeV2Table\",\"typeProperties\":{\"schema\":\"datagba\",\"table\":\"datahramq\"},\"description\":\"gqcglmadfztofxvq\",\"structure\":\"datauuagwayfmcer\",\"schema\":\"datafeiqb\",\"linkedServiceName\":{\"referenceName\":\"s\",\"parameters\":{\"ozzjkugpd\":\"datawjipssvnonijcqc\",\"bpwarh\":\"dataqbtokvocuzxl\",\"i\":\"dataettohgpzwxyvtkzb\"}},\"parameters\":{\"wnfhmjusuqnku\":{\"type\":\"Bool\",\"defaultValue\":\"datadd\"},\"qnirmidtvhjcgs\":{\"type\":\"Array\",\"defaultValue\":\"datalxudhek\"}},\"annotations\":[\"dataqygkx\",\"datalfoj\"],\"folder\":{\"name\":\"pum\"},\"\":{\"rvykduumwbcu\":\"databod\",\"e\":\"dataj\"}}") - .toObject(SnowflakeV2Dataset.class); - Assertions.assertEquals("gqcglmadfztofxvq", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wnfhmjusuqnku").type()); - Assertions.assertEquals("pum", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Dataset model = new SnowflakeV2Dataset().withDescription("gqcglmadfztofxvq") - .withStructure("datauuagwayfmcer") - .withSchema("datafeiqb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("s") - .withParameters(mapOf("ozzjkugpd", "datawjipssvnonijcqc", "bpwarh", "dataqbtokvocuzxl", "i", - "dataettohgpzwxyvtkzb"))) - .withParameters(mapOf("wnfhmjusuqnku", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datadd"), "qnirmidtvhjcgs", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datalxudhek"))) - .withAnnotations(Arrays.asList("dataqygkx", "datalfoj")) - .withFolder(new DatasetFolder().withName("pum")) - .withSchemaTypePropertiesSchema("datagba") - .withTable("datahramq"); - model = BinaryData.fromObject(model).toObject(SnowflakeV2Dataset.class); - Assertions.assertEquals("gqcglmadfztofxvq", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wnfhmjusuqnku").type()); - Assertions.assertEquals("pum", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.java deleted file mode 100644 index ba71202e4099..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeImportCopyCommand; -import com.azure.resourcemanager.datafactory.models.SnowflakeV2Sink; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeV2Sink model = BinaryData.fromString( - "{\"type\":\"SnowflakeV2Sink\",\"preCopyScript\":\"datalethe\",\"importSettings\":{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"onsvjc\":\"dataamtvooaacef\",\"ywi\":\"dataytytyrvtuxv\",\"kfqznvahpxdg\":\"datammmgbynvoytdt\"},\"additionalFormatOptions\":{\"aztoias\":\"datawxcptxvxfwwvmygc\",\"camgjyt\":\"datajri\",\"bmnxpmoadjoo\":\"datakttit\",\"bpuoycawptxq\":\"datarnzlzzmygoutq\"},\"storageIntegration\":\"dataufdxpwj\",\"\":{\"cuk\":\"datavskpbuoc\",\"cepp\":\"datatcuvwwfgjjcaa\"}},\"writeBatchSize\":\"datailyxpqxnlifhjym\",\"writeBatchTimeout\":\"datajliivyatyzwy\",\"sinkRetryCount\":\"dataaycjphozymcypdbu\",\"sinkRetryWait\":\"datanktlzngidgwsc\",\"maxConcurrentConnections\":\"datamhgzapcgdk\",\"disableMetricsCollection\":\"dataa\",\"\":{\"bbyoudct\":\"datapohlfvsbaqdgzb\",\"muomdl\":\"datalkucxtyufsouhkmc\",\"lxoxwndfuyj\":\"datapsbgxpnygroqia\"}}") - .toObject(SnowflakeV2Sink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Sink model = new SnowflakeV2Sink().withWriteBatchSize("datailyxpqxnlifhjym") - .withWriteBatchTimeout("datajliivyatyzwy") - .withSinkRetryCount("dataaycjphozymcypdbu") - .withSinkRetryWait("datanktlzngidgwsc") - .withMaxConcurrentConnections("datamhgzapcgdk") - .withDisableMetricsCollection("dataa") - .withPreCopyScript("datalethe") - .withImportSettings(new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions( - mapOf("onsvjc", "dataamtvooaacef", "ywi", "dataytytyrvtuxv", "kfqznvahpxdg", "datammmgbynvoytdt")) - .withAdditionalFormatOptions(mapOf("aztoias", "datawxcptxvxfwwvmygc", "camgjyt", "datajri", - "bmnxpmoadjoo", "datakttit", "bpuoycawptxq", "datarnzlzzmygoutq")) - .withStorageIntegration("dataufdxpwj")); - model = BinaryData.fromObject(model).toObject(SnowflakeV2Sink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SourceTests.java deleted file mode 100644 index f3dc9f4c026e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SourceTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeExportCopyCommand; -import com.azure.resourcemanager.datafactory.models.SnowflakeV2Source; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeV2Source model = BinaryData.fromString( - "{\"type\":\"SnowflakeV2Source\",\"query\":\"datavscndbklscokafaq\",\"exportSettings\":{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"zsss\":\"datavnv\",\"qkotxodbxzhadm\":\"datancghgi\",\"yy\":\"datajnnoot\"},\"additionalFormatOptions\":{\"dhnzkmjoybyog\":\"dataqdo\",\"jewxphnlweyzvri\":\"datajrssnrykkhxawoh\"},\"storageIntegration\":\"dataveserltlhcjgjuop\",\"\":{\"f\":\"datamspk\",\"weiqvhfyvkxgo\":\"datadmbxfy\",\"cuxwnojvcrgqmbn\":\"datasvei\"}},\"sourceRetryCount\":\"dataygttdcfj\",\"sourceRetryWait\":\"datapsy\",\"maxConcurrentConnections\":\"datacksznngguucp\",\"disableMetricsCollection\":\"datasxnujwffthbzii\",\"\":{\"c\":\"datalbcc\",\"bdevjrbgcdx\":\"dataau\"}}") - .toObject(SnowflakeV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Source model = new SnowflakeV2Source().withSourceRetryCount("dataygttdcfj") - .withSourceRetryWait("datapsy") - .withMaxConcurrentConnections("datacksznngguucp") - .withDisableMetricsCollection("datasxnujwffthbzii") - .withQuery("datavscndbklscokafaq") - .withExportSettings(new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("zsss", "datavnv", "qkotxodbxzhadm", "datancghgi", "yy", "datajnnoot")) - .withAdditionalFormatOptions( - mapOf("dhnzkmjoybyog", "dataqdo", "jewxphnlweyzvri", "datajrssnrykkhxawoh")) - .withStorageIntegration("dataveserltlhcjgjuop")); - model = BinaryData.fromObject(model).toObject(SnowflakeV2Source.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkConfigurationParametrizationReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkConfigurationParametrizationReferenceTests.java deleted file mode 100644 index d414848ec8b5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkConfigurationParametrizationReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationParametrizationReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationParametrizationReference model - = BinaryData.fromString("{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"datarbdhrkhf\"}") - .toObject(SparkConfigurationParametrizationReference.class); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationParametrizationReference model = new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("datarbdhrkhf"); - model = BinaryData.fromObject(model).toObject(SparkConfigurationParametrizationReference.class); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java deleted file mode 100644 index 37b3665b3e04..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SparkDatasetTypeProperties; - -public final class SparkDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datawvbqcaww\",\"table\":\"dataqtsrnyotgnmz\",\"schema\":\"datacreluedcmk\"}") - .toObject(SparkDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkDatasetTypeProperties model = new SparkDatasetTypeProperties().withTableName("datawvbqcaww") - .withTable("dataqtsrnyotgnmz") - .withSchema("datacreluedcmk"); - model = BinaryData.fromObject(model).toObject(SparkDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java deleted file mode 100644 index 043b5ba76691..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SparkObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkObjectDataset model = BinaryData.fromString( - "{\"type\":\"SparkObject\",\"typeProperties\":{\"tableName\":\"datavmshkkgygfohrm\",\"table\":\"datahlclpkr\",\"schema\":\"datacbmjjviutivr\"},\"description\":\"ztxt\",\"structure\":\"datamgftjviiloh\",\"schema\":\"datarjcxhhfhznsjx\",\"linkedServiceName\":{\"referenceName\":\"fo\",\"parameters\":{\"sxhdkhm\":\"datauylyumbweprlnuo\",\"lyfzmnxr\":\"datamxkahapesnbyou\",\"fwzlmpx\":\"dataxxjvwbatjgzkm\"}},\"parameters\":{\"mmdzphxulx\":{\"type\":\"Bool\",\"defaultValue\":\"datai\"},\"cpbzxpz\":{\"type\":\"SecureString\",\"defaultValue\":\"datadnpfcghdttowqx\"},\"feomotquqlq\":{\"type\":\"Bool\",\"defaultValue\":\"datavhatiywtcvzuzp\"}},\"annotations\":[\"datasgqp\"],\"folder\":{\"name\":\"dpfvlsqmmetwtla\"},\"\":{\"cgrllyyfsmoc\":\"datajtefbdpnuvh\",\"chmetvzhuugdykgd\":\"dataxh\"}}") - .toObject(SparkObjectDataset.class); - Assertions.assertEquals("ztxt", model.description()); - Assertions.assertEquals("fo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("mmdzphxulx").type()); - Assertions.assertEquals("dpfvlsqmmetwtla", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkObjectDataset model = new SparkObjectDataset().withDescription("ztxt") - .withStructure("datamgftjviiloh") - .withSchema("datarjcxhhfhznsjx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("fo") - .withParameters(mapOf("sxhdkhm", "datauylyumbweprlnuo", "lyfzmnxr", "datamxkahapesnbyou", "fwzlmpx", - "dataxxjvwbatjgzkm"))) - .withParameters(mapOf("mmdzphxulx", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datai"), "cpbzxpz", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datadnpfcghdttowqx"), - "feomotquqlq", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datavhatiywtcvzuzp"))) - .withAnnotations(Arrays.asList("datasgqp")) - .withFolder(new DatasetFolder().withName("dpfvlsqmmetwtla")) - .withTableName("datavmshkkgygfohrm") - .withTable("datahlclpkr") - .withSchemaTypePropertiesSchema("datacbmjjviutivr"); - model = BinaryData.fromObject(model).toObject(SparkObjectDataset.class); - Assertions.assertEquals("ztxt", model.description()); - Assertions.assertEquals("fo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("mmdzphxulx").type()); - Assertions.assertEquals("dpfvlsqmmetwtla", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java deleted file mode 100644 index 14c584d162d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SparkSource; - -public final class SparkSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkSource model = BinaryData.fromString( - "{\"type\":\"SparkSource\",\"query\":\"datacq\",\"queryTimeout\":\"datazrflo\",\"additionalColumns\":\"datamvemliyddfqfn\",\"sourceRetryCount\":\"datarrhhgw\",\"sourceRetryWait\":\"dataizhanvcfxd\",\"maxConcurrentConnections\":\"datad\",\"disableMetricsCollection\":\"datagctxu\",\"\":{\"dyya\":\"datahqqvd\"}}") - .toObject(SparkSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkSource model = new SparkSource().withSourceRetryCount("datarrhhgw") - .withSourceRetryWait("dataizhanvcfxd") - .withMaxConcurrentConnections("datad") - .withDisableMetricsCollection("datagctxu") - .withQueryTimeout("datazrflo") - .withAdditionalColumns("datamvemliyddfqfn") - .withQuery("datacq"); - model = BinaryData.fromObject(model).toObject(SparkSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java deleted file mode 100644 index 2a33c7f9ee71..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlDWSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlDWSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlDWSource model = BinaryData.fromString( - "{\"type\":\"SqlDWSource\",\"sqlReaderQuery\":\"datatmhwgencmoswcxlg\",\"sqlReaderStoredProcedureName\":\"datauqxews\",\"storedProcedureParameters\":\"datapifzavctywappa\",\"isolationLevel\":\"dataprzrsqcu\",\"partitionOption\":\"datanp\",\"partitionSettings\":{\"partitionColumnName\":\"datal\",\"partitionUpperBound\":\"datau\",\"partitionLowerBound\":\"datasrnps\"},\"queryTimeout\":\"dataghoeqiwpdxp\",\"additionalColumns\":\"datasoajqxyplhsto\",\"sourceRetryCount\":\"datayb\",\"sourceRetryWait\":\"dataysvpikgqjdog\",\"maxConcurrentConnections\":\"datacjfgy\",\"disableMetricsCollection\":\"datas\",\"\":{\"pqp\":\"dataxcx\",\"yjch\":\"datainiidaxbesbwci\",\"q\":\"datauasjrs\"}}") - .toObject(SqlDWSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlDWSource model = new SqlDWSource().withSourceRetryCount("datayb") - .withSourceRetryWait("dataysvpikgqjdog") - .withMaxConcurrentConnections("datacjfgy") - .withDisableMetricsCollection("datas") - .withQueryTimeout("dataghoeqiwpdxp") - .withAdditionalColumns("datasoajqxyplhsto") - .withSqlReaderQuery("datatmhwgencmoswcxlg") - .withSqlReaderStoredProcedureName("datauqxews") - .withStoredProcedureParameters("datapifzavctywappa") - .withIsolationLevel("dataprzrsqcu") - .withPartitionOption("datanp") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datal") - .withPartitionUpperBound("datau") - .withPartitionLowerBound("datasrnps")); - model = BinaryData.fromObject(model).toObject(SqlDWSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java deleted file mode 100644 index 02c4fd508813..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlMISource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlMISourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlMISource model = BinaryData.fromString( - "{\"type\":\"SqlMISource\",\"sqlReaderQuery\":\"datardtrdukdmsktuv\",\"sqlReaderStoredProcedureName\":\"datazxtvytoyf\",\"storedProcedureParameters\":\"datagrzwdwdudxqeb\",\"isolationLevel\":\"datapsplwtlocseybv\",\"produceAdditionalTypes\":\"datacoznnjqxck\",\"partitionOption\":\"datakuuotlymybm\",\"partitionSettings\":{\"partitionColumnName\":\"datakxkmtuyn\",\"partitionUpperBound\":\"datap\",\"partitionLowerBound\":\"dataj\"},\"queryTimeout\":\"datasvfhqtqqshbip\",\"additionalColumns\":\"datauhujkz\",\"sourceRetryCount\":\"dataezgphipt\",\"sourceRetryWait\":\"dataqldnhwdfxgeccckk\",\"maxConcurrentConnections\":\"dataz\",\"disableMetricsCollection\":\"datas\",\"\":{\"pxdzmpjfbd\":\"datao\",\"iocqoydqyzhfny\":\"dataoawhbdxxnmyxz\",\"skt\":\"datagbwdsaqwywayjin\",\"ygyeyxmuwgn\":\"datarnknnql\"}}") - .toObject(SqlMISource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlMISource model = new SqlMISource().withSourceRetryCount("dataezgphipt") - .withSourceRetryWait("dataqldnhwdfxgeccckk") - .withMaxConcurrentConnections("dataz") - .withDisableMetricsCollection("datas") - .withQueryTimeout("datasvfhqtqqshbip") - .withAdditionalColumns("datauhujkz") - .withSqlReaderQuery("datardtrdukdmsktuv") - .withSqlReaderStoredProcedureName("datazxtvytoyf") - .withStoredProcedureParameters("datagrzwdwdudxqeb") - .withIsolationLevel("datapsplwtlocseybv") - .withProduceAdditionalTypes("datacoznnjqxck") - .withPartitionOption("datakuuotlymybm") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datakxkmtuyn") - .withPartitionUpperBound("datap") - .withPartitionLowerBound("dataj")); - model = BinaryData.fromObject(model).toObject(SqlMISource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlPartitionSettingsTests.java deleted file mode 100644 index 45601b0a15ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlPartitionSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPartitionSettings model = BinaryData.fromString( - "{\"partitionColumnName\":\"dataqnwpwrfe\",\"partitionUpperBound\":\"dataggrm\",\"partitionLowerBound\":\"datafhkoe\"}") - .toObject(SqlPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPartitionSettings model = new SqlPartitionSettings().withPartitionColumnName("dataqnwpwrfe") - .withPartitionUpperBound("dataggrm") - .withPartitionLowerBound("datafhkoe"); - model = BinaryData.fromObject(model).toObject(SqlPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerBaseLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerBaseLinkedServiceTypePropertiesTests.java deleted file mode 100644 index d235a4005e29..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerBaseLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties; - -public final class SqlServerBaseLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerBaseLinkedServiceTypeProperties model = BinaryData.fromString( - "{\"server\":\"dataerlbcetrvirdfsd\",\"database\":\"datap\",\"encrypt\":\"dataloopz\",\"trustServerCertificate\":\"dataegchtabhacjlf\",\"hostNameInCertificate\":\"datacklvvwvpfq\",\"applicationIntent\":\"datavzhmlnfvyhdhff\",\"connectTimeout\":\"datadmhawbxnlkmazhle\",\"connectRetryCount\":\"dataroksay\",\"connectRetryInterval\":\"datafzzipyqtmdhb\",\"loadBalanceTimeout\":\"datakgmwxzlphzu\",\"commandTimeout\":\"dataq\",\"integratedSecurity\":\"databejhxopehel\",\"failoverPartner\":\"dataykhdapxdiibj\",\"maxPoolSize\":\"datauekhh\",\"minPoolSize\":\"datahxhuhhnrmmfzfkh\",\"multipleActiveResultSets\":\"datazjf\",\"multiSubnetFailover\":\"datajhtvbskgciedlqv\",\"packetSize\":\"datatrlsmsr\",\"pooling\":\"datafgb\"}") - .toObject(SqlServerBaseLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerBaseLinkedServiceTypeProperties model - = new SqlServerBaseLinkedServiceTypeProperties().withServer("dataerlbcetrvirdfsd") - .withDatabase("datap") - .withEncrypt("dataloopz") - .withTrustServerCertificate("dataegchtabhacjlf") - .withHostnameInCertificate("datacklvvwvpfq") - .withApplicationIntent("datavzhmlnfvyhdhff") - .withConnectTimeout("datadmhawbxnlkmazhle") - .withConnectRetryCount("dataroksay") - .withConnectRetryInterval("datafzzipyqtmdhb") - .withLoadBalanceTimeout("datakgmwxzlphzu") - .withCommandTimeout("dataq") - .withIntegratedSecurity("databejhxopehel") - .withFailoverPartner("dataykhdapxdiibj") - .withMaxPoolSize("datauekhh") - .withMinPoolSize("datahxhuhhnrmmfzfkh") - .withMultipleActiveResultSets("datazjf") - .withMultiSubnetFailover("datajhtvbskgciedlqv") - .withPacketSize("datatrlsmsr") - .withPooling("datafgb"); - model = BinaryData.fromObject(model).toObject(SqlServerBaseLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java deleted file mode 100644 index 3bcf73a36662..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SqlServerSource; - -public final class SqlServerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerSource model = BinaryData.fromString( - "{\"type\":\"SqlServerSource\",\"sqlReaderQuery\":\"datarjmicha\",\"sqlReaderStoredProcedureName\":\"dataen\",\"storedProcedureParameters\":\"dataqjvdde\",\"isolationLevel\":\"datavrjhtpxydiuviup\",\"produceAdditionalTypes\":\"datatnsyrrybdyqiv\",\"partitionOption\":\"datasuhozihd\",\"partitionSettings\":{\"partitionColumnName\":\"datajwthwcpijgasnafd\",\"partitionUpperBound\":\"datanwgirnjgso\",\"partitionLowerBound\":\"databdhrcepanhygca\"},\"queryTimeout\":\"datajbjjlxsv\",\"additionalColumns\":\"databggsnanojty\",\"sourceRetryCount\":\"datahzxzazofr\",\"sourceRetryWait\":\"datasxjdgaimk\",\"maxConcurrentConnections\":\"datasowszb\",\"disableMetricsCollection\":\"datalhxik\",\"\":{\"tzjxgassmnatnp\":\"datakyngarwz\",\"gek\":\"datalueylqysgmiix\",\"hlgpe\":\"datawecbqtkdgin\",\"cqgqrsopq\":\"dataqqcceyowrwvbqv\"}}") - .toObject(SqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerSource model = new SqlServerSource().withSourceRetryCount("datahzxzazofr") - .withSourceRetryWait("datasxjdgaimk") - .withMaxConcurrentConnections("datasowszb") - .withDisableMetricsCollection("datalhxik") - .withQueryTimeout("datajbjjlxsv") - .withAdditionalColumns("databggsnanojty") - .withSqlReaderQuery("datarjmicha") - .withSqlReaderStoredProcedureName("dataen") - .withStoredProcedureParameters("dataqjvdde") - .withIsolationLevel("datavrjhtpxydiuviup") - .withProduceAdditionalTypes("datatnsyrrybdyqiv") - .withPartitionOption("datasuhozihd") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datajwthwcpijgasnafd") - .withPartitionUpperBound("datanwgirnjgso") - .withPartitionLowerBound("databdhrcepanhygca")); - model = BinaryData.fromObject(model).toObject(SqlServerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.java deleted file mode 100644 index 49e0fe07bd8a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.SqlServerStoredProcedureActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlServerStoredProcedureActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerStoredProcedureActivity model = BinaryData.fromString( - "{\"type\":\"SqlServerStoredProcedure\",\"typeProperties\":{\"storedProcedureName\":\"datamfbl\",\"storedProcedureParameters\":\"dataekoux\"},\"linkedServiceName\":{\"referenceName\":\"lif\",\"parameters\":{\"foibxj\":\"datad\",\"zlq\":\"datacuppwsgawqxren\"}},\"policy\":{\"timeout\":\"dataft\",\"retry\":\"datapzhox\",\"retryIntervalInSeconds\":1278696212,\"secureInput\":false,\"secureOutput\":true,\"\":{\"ypara\":\"datavtefevhedfzxs\",\"rlbsglqiuqsqzumx\":\"datargsfnjokrfpiqgqv\",\"muosoziqcuiekuya\":\"datax\",\"dxmdpfxlkwyqo\":\"datapukxtgeejxwbr\"}},\"name\":\"ejylqgenbeupaiat\",\"description\":\"xvbwsa\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ortjtylseudpyhvn\",\"dependencyConditions\":[\"Failed\"],\"\":{\"n\":\"datazlokxihf\",\"ssxid\":\"databljlrfwq\"}}],\"userProperties\":[{\"name\":\"vbicdzvypfo\",\"value\":\"datazxbf\"},{\"name\":\"tqnq\",\"value\":\"datalmqeauizk\"},{\"name\":\"jqfachfmvqnkgst\",\"value\":\"datae\"},{\"name\":\"ujvsc\",\"value\":\"datapwpqvg\"}],\"\":{\"tv\":\"datamoefhburxnagvcs\",\"bdxwy\":\"datapxvptqn\",\"iiegoolblvcalbud\":\"datatzlfhnfjuuwmcugv\"}}") - .toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("ejylqgenbeupaiat", model.name()); - Assertions.assertEquals("xvbwsa", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ortjtylseudpyhvn", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vbicdzvypfo", model.userProperties().get(0).name()); - Assertions.assertEquals("lif", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1278696212, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerStoredProcedureActivity model = new SqlServerStoredProcedureActivity().withName("ejylqgenbeupaiat") - .withDescription("xvbwsa") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("ortjtylseudpyhvn") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("vbicdzvypfo").withValue("datazxbf"), - new UserProperty().withName("tqnq").withValue("datalmqeauizk"), - new UserProperty().withName("jqfachfmvqnkgst").withValue("datae"), - new UserProperty().withName("ujvsc").withValue("datapwpqvg"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lif") - .withParameters(mapOf("foibxj", "datad", "zlq", "datacuppwsgawqxren"))) - .withPolicy(new ActivityPolicy().withTimeout("dataft") - .withRetry("datapzhox") - .withRetryIntervalInSeconds(1278696212) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStoredProcedureName("datamfbl") - .withStoredProcedureParameters("dataekoux"); - model = BinaryData.fromObject(model).toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("ejylqgenbeupaiat", model.name()); - Assertions.assertEquals("xvbwsa", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ortjtylseudpyhvn", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vbicdzvypfo", model.userProperties().get(0).name()); - Assertions.assertEquals("lif", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1278696212, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java deleted file mode 100644 index c3e626f36997..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerStoredProcedureActivityTypeProperties; - -public final class SqlServerStoredProcedureActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model = BinaryData - .fromString("{\"storedProcedureName\":\"dataqthohfqbeaizv\",\"storedProcedureParameters\":\"datahxgiy\"}") - .toObject(SqlServerStoredProcedureActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model - = new SqlServerStoredProcedureActivityTypeProperties().withStoredProcedureName("dataqthohfqbeaizv") - .withStoredProcedureParameters("datahxgiy"); - model = BinaryData.fromObject(model).toObject(SqlServerStoredProcedureActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java deleted file mode 100644 index 4395792416c3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SqlServerTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlServerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerTableDataset model = BinaryData.fromString( - "{\"type\":\"SqlServerTable\",\"typeProperties\":{\"tableName\":\"datav\",\"schema\":\"datadfkhttuobrxz\",\"table\":\"dataytebjkjge\"},\"description\":\"wtfma\",\"structure\":\"databmnhtwofx\",\"schema\":\"datahlvyqns\",\"linkedServiceName\":{\"referenceName\":\"bq\",\"parameters\":{\"hj\":\"dataqkie\",\"spt\":\"dataqqrugwespscvs\",\"supcvqgxcvw\":\"datauwozfvz\",\"cmcgmlmpnvq\":\"dataoq\"}},\"parameters\":{\"dqseypdlmajpuy\":{\"type\":\"Bool\",\"defaultValue\":\"datarzn\"},\"mzgccy\":{\"type\":\"String\",\"defaultValue\":\"dataf\"}},\"annotations\":[\"datavmsiehedm\",\"datavoneey\"],\"folder\":{\"name\":\"a\"},\"\":{\"qwddigebls\":\"dataza\",\"wveeozbjkj\":\"datalzdssi\"}}") - .toObject(SqlServerTableDataset.class); - Assertions.assertEquals("wtfma", model.description()); - Assertions.assertEquals("bq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dqseypdlmajpuy").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDataset model = new SqlServerTableDataset().withDescription("wtfma") - .withStructure("databmnhtwofx") - .withSchema("datahlvyqns") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bq") - .withParameters(mapOf("hj", "dataqkie", "spt", "dataqqrugwespscvs", "supcvqgxcvw", "datauwozfvz", - "cmcgmlmpnvq", "dataoq"))) - .withParameters(mapOf("dqseypdlmajpuy", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datarzn"), "mzgccy", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataf"))) - .withAnnotations(Arrays.asList("datavmsiehedm", "datavoneey")) - .withFolder(new DatasetFolder().withName("a")) - .withTableName("datav") - .withSchemaTypePropertiesSchema("datadfkhttuobrxz") - .withTable("dataytebjkjge"); - model = BinaryData.fromObject(model).toObject(SqlServerTableDataset.class); - Assertions.assertEquals("wtfma", model.description()); - Assertions.assertEquals("bq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dqseypdlmajpuy").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java deleted file mode 100644 index 23b8e6720883..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerTableDatasetTypeProperties; - -public final class SqlServerTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"dataizdnuehx\",\"schema\":\"datatssjd\",\"table\":\"databnklgerxac\"}") - .toObject(SqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDatasetTypeProperties model - = new SqlServerTableDatasetTypeProperties().withTableName("dataizdnuehx") - .withSchema("datatssjd") - .withTable("databnklgerxac"); - model = BinaryData.fromObject(model).toObject(SqlServerTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java deleted file mode 100644 index 42148bf077ed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SqlSource; - -public final class SqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlSource model = BinaryData.fromString( - "{\"type\":\"SqlSource\",\"sqlReaderQuery\":\"dataiob\",\"sqlReaderStoredProcedureName\":\"datatpyemppwkry\",\"storedProcedureParameters\":\"datadqpkqf\",\"isolationLevel\":\"datahoiq\",\"partitionOption\":\"databhmy\",\"partitionSettings\":{\"partitionColumnName\":\"datamfyernc\",\"partitionUpperBound\":\"datagwiquka\",\"partitionLowerBound\":\"dataokeolzizfbunzm\"},\"queryTimeout\":\"datafttmjomuwl\",\"additionalColumns\":\"datajwkpznsfbi\",\"sourceRetryCount\":\"datafzgpvdlx\",\"sourceRetryWait\":\"dataotclcuxzllnwmgqc\",\"maxConcurrentConnections\":\"datagjequox\",\"disableMetricsCollection\":\"datagfspwhfhdguuvg\",\"\":{\"ytqzx\":\"datazvd\"}}") - .toObject(SqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlSource model = new SqlSource().withSourceRetryCount("datafzgpvdlx") - .withSourceRetryWait("dataotclcuxzllnwmgqc") - .withMaxConcurrentConnections("datagjequox") - .withDisableMetricsCollection("datagfspwhfhdguuvg") - .withQueryTimeout("datafttmjomuwl") - .withAdditionalColumns("datajwkpznsfbi") - .withSqlReaderQuery("dataiob") - .withSqlReaderStoredProcedureName("datatpyemppwkry") - .withStoredProcedureParameters("datadqpkqf") - .withIsolationLevel("datahoiq") - .withPartitionOption("databhmy") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datamfyernc") - .withPartitionUpperBound("datagwiquka") - .withPartitionLowerBound("dataokeolzizfbunzm")); - model = BinaryData.fromObject(model).toObject(SqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java deleted file mode 100644 index 9af996d1bbc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SquareObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SquareObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SquareObjectDataset model = BinaryData.fromString( - "{\"type\":\"SquareObject\",\"typeProperties\":{\"tableName\":\"dataheexzhhllxwk\"},\"description\":\"oxdjklf\",\"structure\":\"datantk\",\"schema\":\"datay\",\"linkedServiceName\":{\"referenceName\":\"mddslwnlgjdlh\",\"parameters\":{\"s\":\"datapybnnnlpqdn\",\"jerndzzywxqraqx\":\"dataatupmrslwknrdvvm\",\"putl\":\"datakdeetnne\"}},\"parameters\":{\"sxwasfwqjz\":{\"type\":\"Array\",\"defaultValue\":\"datajmr\"},\"cfguam\":{\"type\":\"Int\",\"defaultValue\":\"datafqdnpp\"},\"blukgctvnspjvsy\":{\"type\":\"Array\",\"defaultValue\":\"datamuvkgdwpj\"}},\"annotations\":[\"datalhdukcsqvyeegx\",\"dataulojwumfjdymeq\",\"datanxpfyxdjspnonx\"],\"folder\":{\"name\":\"qpzhna\"},\"\":{\"evtwll\":\"datagcmcvdjlwwe\"}}") - .toObject(SquareObjectDataset.class); - Assertions.assertEquals("oxdjklf", model.description()); - Assertions.assertEquals("mddslwnlgjdlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("sxwasfwqjz").type()); - Assertions.assertEquals("qpzhna", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareObjectDataset model - = new SquareObjectDataset().withDescription("oxdjklf") - .withStructure("datantk") - .withSchema("datay") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mddslwnlgjdlh") - .withParameters(mapOf("s", "datapybnnnlpqdn", "jerndzzywxqraqx", "dataatupmrslwknrdvvm", "putl", - "datakdeetnne"))) - .withParameters(mapOf("sxwasfwqjz", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajmr"), "cfguam", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datafqdnpp"), - "blukgctvnspjvsy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamuvkgdwpj"))) - .withAnnotations(Arrays.asList("datalhdukcsqvyeegx", "dataulojwumfjdymeq", "datanxpfyxdjspnonx")) - .withFolder(new DatasetFolder().withName("qpzhna")) - .withTableName("dataheexzhhllxwk"); - model = BinaryData.fromObject(model).toObject(SquareObjectDataset.class); - Assertions.assertEquals("oxdjklf", model.description()); - Assertions.assertEquals("mddslwnlgjdlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("sxwasfwqjz").type()); - Assertions.assertEquals("qpzhna", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java deleted file mode 100644 index 8904ed1dde7e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SquareSource; - -public final class SquareSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SquareSource model = BinaryData.fromString( - "{\"type\":\"SquareSource\",\"query\":\"dataxnepub\",\"queryTimeout\":\"datainfauytmqvsdyqyj\",\"additionalColumns\":\"datafotwmxedlcxmyxt\",\"sourceRetryCount\":\"dataapoj\",\"sourceRetryWait\":\"datavxan\",\"maxConcurrentConnections\":\"datapspiipfgdn\",\"disableMetricsCollection\":\"datakvvrhoqy\",\"\":{\"xhskhkqlvocrdd\":\"datavnruodu\"}}") - .toObject(SquareSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareSource model = new SquareSource().withSourceRetryCount("dataapoj") - .withSourceRetryWait("datavxan") - .withMaxConcurrentConnections("datapspiipfgdn") - .withDisableMetricsCollection("datakvvrhoqy") - .withQueryTimeout("datainfauytmqvsdyqyj") - .withAdditionalColumns("datafotwmxedlcxmyxt") - .withQuery("dataxnepub"); - model = BinaryData.fromObject(model).toObject(SquareSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisChildPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisChildPackageTests.java deleted file mode 100644 index 42c02539672f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisChildPackageTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisChildPackage; -import org.junit.jupiter.api.Assertions; - -public final class SsisChildPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisChildPackage model = BinaryData.fromString( - "{\"packagePath\":\"dataykatjsebcuynqdli\",\"packageName\":\"e\",\"packageContent\":\"datadvjgbemrjbo\",\"packageLastModifiedDate\":\"uxpdp\"}") - .toObject(SsisChildPackage.class); - Assertions.assertEquals("e", model.packageName()); - Assertions.assertEquals("uxpdp", model.packageLastModifiedDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisChildPackage model = new SsisChildPackage().withPackagePath("dataykatjsebcuynqdli") - .withPackageName("e") - .withPackageContent("datadvjgbemrjbo") - .withPackageLastModifiedDate("uxpdp"); - model = BinaryData.fromObject(model).toObject(SsisChildPackage.class); - Assertions.assertEquals("e", model.packageName()); - Assertions.assertEquals("uxpdp", model.packageLastModifiedDate()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentReferenceTests.java deleted file mode 100644 index 88c2d60a67dd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentReferenceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisEnvironmentReference; -import org.junit.jupiter.api.Assertions; - -public final class SsisEnvironmentReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisEnvironmentReference model = BinaryData.fromString( - "{\"id\":8066126352512249391,\"environmentFolderName\":\"vofuyzvbploazc\",\"environmentName\":\"hgermm\",\"referenceType\":\"kbxui\"}") - .toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(8066126352512249391L, model.id()); - Assertions.assertEquals("vofuyzvbploazc", model.environmentFolderName()); - Assertions.assertEquals("hgermm", model.environmentName()); - Assertions.assertEquals("kbxui", model.referenceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironmentReference model = new SsisEnvironmentReference().withId(8066126352512249391L) - .withEnvironmentFolderName("vofuyzvbploazc") - .withEnvironmentName("hgermm") - .withReferenceType("kbxui"); - model = BinaryData.fromObject(model).toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(8066126352512249391L, model.id()); - Assertions.assertEquals("vofuyzvbploazc", model.environmentFolderName()); - Assertions.assertEquals("hgermm", model.environmentName()); - Assertions.assertEquals("kbxui", model.referenceType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java deleted file mode 100644 index 69957007bbe0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisEnvironment; -import com.azure.resourcemanager.datafactory.models.SsisVariable; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisEnvironmentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisEnvironment model = BinaryData.fromString( - "{\"type\":\"Environment\",\"folderId\":6305964571481835052,\"variables\":[{\"id\":8018758763891691267,\"name\":\"mny\",\"description\":\"tgslkokq\",\"dataType\":\"gzcojgdq\",\"sensitive\":true,\"value\":\"ecjgpjnydkkgbv\",\"sensitiveValue\":\"ks\"},{\"id\":8051176005880059497,\"name\":\"avnr\",\"description\":\"qqiwfysuj\",\"dataType\":\"hclgpexrxyrpwzsm\",\"sensitive\":false,\"value\":\"p\",\"sensitiveValue\":\"bpcifdv\"},{\"id\":4825989979528086841,\"name\":\"nfnyjwjmy\",\"description\":\"htmlgjaick\",\"dataType\":\"jdwi\",\"sensitive\":true,\"value\":\"ibjgvmkawuu\",\"sensitiveValue\":\"zfhurrw\"},{\"id\":3338369916044561912,\"name\":\"tzmxxi\",\"description\":\"ehyl\",\"dataType\":\"ayypsxyhoemsdn\",\"sensitive\":true,\"value\":\"opvfg\",\"sensitiveValue\":\"rxumwdqwy\"}],\"id\":5882503334253851296,\"name\":\"eleqpnk\",\"description\":\"krum\"}") - .toObject(SsisEnvironment.class); - Assertions.assertEquals(5882503334253851296L, model.id()); - Assertions.assertEquals("eleqpnk", model.name()); - Assertions.assertEquals("krum", model.description()); - Assertions.assertEquals(6305964571481835052L, model.folderId()); - Assertions.assertEquals(8018758763891691267L, model.variables().get(0).id()); - Assertions.assertEquals("mny", model.variables().get(0).name()); - Assertions.assertEquals("tgslkokq", model.variables().get(0).description()); - Assertions.assertEquals("gzcojgdq", model.variables().get(0).dataType()); - Assertions.assertEquals(true, model.variables().get(0).sensitive()); - Assertions.assertEquals("ecjgpjnydkkgbv", model.variables().get(0).value()); - Assertions.assertEquals("ks", model.variables().get(0).sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironment model = new SsisEnvironment().withId(5882503334253851296L) - .withName("eleqpnk") - .withDescription("krum") - .withFolderId(6305964571481835052L) - .withVariables(Arrays.asList( - new SsisVariable().withId(8018758763891691267L) - .withName("mny") - .withDescription("tgslkokq") - .withDataType("gzcojgdq") - .withSensitive(true) - .withValue("ecjgpjnydkkgbv") - .withSensitiveValue("ks"), - new SsisVariable().withId(8051176005880059497L) - .withName("avnr") - .withDescription("qqiwfysuj") - .withDataType("hclgpexrxyrpwzsm") - .withSensitive(false) - .withValue("p") - .withSensitiveValue("bpcifdv"), - new SsisVariable().withId(4825989979528086841L) - .withName("nfnyjwjmy") - .withDescription("htmlgjaick") - .withDataType("jdwi") - .withSensitive(true) - .withValue("ibjgvmkawuu") - .withSensitiveValue("zfhurrw"), - new SsisVariable().withId(3338369916044561912L) - .withName("tzmxxi") - .withDescription("ehyl") - .withDataType("ayypsxyhoemsdn") - .withSensitive(true) - .withValue("opvfg") - .withSensitiveValue("rxumwdqwy"))); - model = BinaryData.fromObject(model).toObject(SsisEnvironment.class); - Assertions.assertEquals(5882503334253851296L, model.id()); - Assertions.assertEquals("eleqpnk", model.name()); - Assertions.assertEquals("krum", model.description()); - Assertions.assertEquals(6305964571481835052L, model.folderId()); - Assertions.assertEquals(8018758763891691267L, model.variables().get(0).id()); - Assertions.assertEquals("mny", model.variables().get(0).name()); - Assertions.assertEquals("tgslkokq", model.variables().get(0).description()); - Assertions.assertEquals("gzcojgdq", model.variables().get(0).dataType()); - Assertions.assertEquals(true, model.variables().get(0).sensitive()); - Assertions.assertEquals("ecjgpjnydkkgbv", model.variables().get(0).value()); - Assertions.assertEquals("ks", model.variables().get(0).sensitiveValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java deleted file mode 100644 index 2df0a13fdebe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisExecutionParameter; - -public final class SsisExecutionParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisExecutionParameter model - = BinaryData.fromString("{\"value\":\"dataiblaumogu\"}").toObject(SsisExecutionParameter.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisExecutionParameter model = new SsisExecutionParameter().withValue("dataiblaumogu"); - model = BinaryData.fromObject(model).toObject(SsisExecutionParameter.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java deleted file mode 100644 index a20ba6eb501e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisFolder; -import org.junit.jupiter.api.Assertions; - -public final class SsisFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisFolder model = BinaryData.fromString( - "{\"type\":\"Folder\",\"id\":276539782360188700,\"name\":\"qsvru\",\"description\":\"yncppmmwhjerlurg\"}") - .toObject(SsisFolder.class); - Assertions.assertEquals(276539782360188700L, model.id()); - Assertions.assertEquals("qsvru", model.name()); - Assertions.assertEquals("yncppmmwhjerlurg", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisFolder model - = new SsisFolder().withId(276539782360188700L).withName("qsvru").withDescription("yncppmmwhjerlurg"); - model = BinaryData.fromObject(model).toObject(SsisFolder.class); - Assertions.assertEquals(276539782360188700L, model.id()); - Assertions.assertEquals("qsvru", model.name()); - Assertions.assertEquals("yncppmmwhjerlurg", model.description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java deleted file mode 100644 index bbeb7e51a343..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataListResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataListResponseInner model = BinaryData.fromString( - "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":1248291372184779781,\"name\":\"zvlvqhjkbegib\",\"description\":\"mxiebw\"},{\"type\":\"SsisObjectMetadata\",\"id\":9167362709610232735,\"name\":\"yqcgwrtzjuzgwy\",\"description\":\"htxongmtsavjc\"},{\"type\":\"SsisObjectMetadata\",\"id\":7752304449285326809,\"name\":\"p\",\"description\":\"knftguvriuh\"}],\"nextLink\":\"wmdyvxqtay\"}") - .toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(1248291372184779781L, model.value().get(0).id()); - Assertions.assertEquals("zvlvqhjkbegib", model.value().get(0).name()); - Assertions.assertEquals("mxiebw", model.value().get(0).description()); - Assertions.assertEquals("wmdyvxqtay", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataListResponseInner model = new SsisObjectMetadataListResponseInner().withValue(Arrays.asList( - new SsisObjectMetadata().withId(1248291372184779781L).withName("zvlvqhjkbegib").withDescription("mxiebw"), - new SsisObjectMetadata().withId(9167362709610232735L) - .withName("yqcgwrtzjuzgwy") - .withDescription("htxongmtsavjc"), - new SsisObjectMetadata().withId(7752304449285326809L).withName("p").withDescription("knftguvriuh"))) - .withNextLink("wmdyvxqtay"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(1248291372184779781L, model.value().get(0).id()); - Assertions.assertEquals("zvlvqhjkbegib", model.value().get(0).name()); - Assertions.assertEquals("mxiebw", model.value().get(0).description()); - Assertions.assertEquals("wmdyvxqtay", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java deleted file mode 100644 index 0b66b4b42fb8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataStatusResponseInner model = BinaryData - .fromString( - "{\"status\":\"tdhxujznbmpowuwp\",\"name\":\"qlveualupjmkh\",\"properties\":\"obbc\",\"error\":\"s\"}") - .toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("tdhxujznbmpowuwp", model.status()); - Assertions.assertEquals("qlveualupjmkh", model.name()); - Assertions.assertEquals("obbc", model.properties()); - Assertions.assertEquals("s", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataStatusResponseInner model - = new SsisObjectMetadataStatusResponseInner().withStatus("tdhxujznbmpowuwp") - .withName("qlveualupjmkh") - .withProperties("obbc") - .withError("s"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("tdhxujznbmpowuwp", model.status()); - Assertions.assertEquals("qlveualupjmkh", model.name()); - Assertions.assertEquals("obbc", model.properties()); - Assertions.assertEquals("s", model.error()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java deleted file mode 100644 index 35212259da5e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadata model = BinaryData.fromString( - "{\"type\":\"SsisObjectMetadata\",\"id\":1536045625796396557,\"name\":\"oyq\",\"description\":\"xrmcqibycnojvk\"}") - .toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1536045625796396557L, model.id()); - Assertions.assertEquals("oyq", model.name()); - Assertions.assertEquals("xrmcqibycnojvk", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadata model - = new SsisObjectMetadata().withId(1536045625796396557L).withName("oyq").withDescription("xrmcqibycnojvk"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1536045625796396557L, model.id()); - Assertions.assertEquals("oyq", model.name()); - Assertions.assertEquals("xrmcqibycnojvk", model.description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java deleted file mode 100644 index a412103fa35c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisPackage; -import com.azure.resourcemanager.datafactory.models.SsisParameter; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisPackage model = BinaryData.fromString( - "{\"type\":\"Package\",\"folderId\":6056512355996014897,\"projectVersion\":4550609594207854420,\"projectId\":8576241744456427452,\"parameters\":[{\"id\":4305402148108255233,\"name\":\"vllpfjguzsy\",\"description\":\"am\",\"dataType\":\"eoxxbzagwnompvy\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"ufysalbjfkjex\",\"defaultValue\":\"zmh\",\"sensitiveDefaultValue\":\"idipwczjnnmpifj\",\"valueType\":\"jen\",\"valueSet\":false,\"variable\":\"fpllosadjffllrs\"}],\"id\":6883034740159153282,\"name\":\"eoka\",\"description\":\"uddcc\"}") - .toObject(SsisPackage.class); - Assertions.assertEquals(6883034740159153282L, model.id()); - Assertions.assertEquals("eoka", model.name()); - Assertions.assertEquals("uddcc", model.description()); - Assertions.assertEquals(6056512355996014897L, model.folderId()); - Assertions.assertEquals(4550609594207854420L, model.projectVersion()); - Assertions.assertEquals(8576241744456427452L, model.projectId()); - Assertions.assertEquals(4305402148108255233L, model.parameters().get(0).id()); - Assertions.assertEquals("vllpfjguzsy", model.parameters().get(0).name()); - Assertions.assertEquals("am", model.parameters().get(0).description()); - Assertions.assertEquals("eoxxbzagwnompvy", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("ufysalbjfkjex", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("zmh", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("idipwczjnnmpifj", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("jen", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("fpllosadjffllrs", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisPackage model = new SsisPackage().withId(6883034740159153282L) - .withName("eoka") - .withDescription("uddcc") - .withFolderId(6056512355996014897L) - .withProjectVersion(4550609594207854420L) - .withProjectId(8576241744456427452L) - .withParameters(Arrays.asList(new SsisParameter().withId(4305402148108255233L) - .withName("vllpfjguzsy") - .withDescription("am") - .withDataType("eoxxbzagwnompvy") - .withRequired(false) - .withSensitive(true) - .withDesignDefaultValue("ufysalbjfkjex") - .withDefaultValue("zmh") - .withSensitiveDefaultValue("idipwczjnnmpifj") - .withValueType("jen") - .withValueSet(false) - .withVariable("fpllosadjffllrs"))); - model = BinaryData.fromObject(model).toObject(SsisPackage.class); - Assertions.assertEquals(6883034740159153282L, model.id()); - Assertions.assertEquals("eoka", model.name()); - Assertions.assertEquals("uddcc", model.description()); - Assertions.assertEquals(6056512355996014897L, model.folderId()); - Assertions.assertEquals(4550609594207854420L, model.projectVersion()); - Assertions.assertEquals(8576241744456427452L, model.projectId()); - Assertions.assertEquals(4305402148108255233L, model.parameters().get(0).id()); - Assertions.assertEquals("vllpfjguzsy", model.parameters().get(0).name()); - Assertions.assertEquals("am", model.parameters().get(0).description()); - Assertions.assertEquals("eoxxbzagwnompvy", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("ufysalbjfkjex", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("zmh", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("idipwczjnnmpifj", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("jen", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("fpllosadjffllrs", model.parameters().get(0).variable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java deleted file mode 100644 index 0d983b9b2e0d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisParameter; -import org.junit.jupiter.api.Assertions; - -public final class SsisParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisParameter model = BinaryData.fromString( - "{\"id\":2973458827491706517,\"name\":\"xugpubeq\",\"description\":\"xzmuzgueuygpbha\",\"dataType\":\"e\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"ygx\",\"defaultValue\":\"xw\",\"sensitiveDefaultValue\":\"qwdjvlwq\",\"valueType\":\"yylw\",\"valueSet\":false,\"variable\":\"cmejezj\"}") - .toObject(SsisParameter.class); - Assertions.assertEquals(2973458827491706517L, model.id()); - Assertions.assertEquals("xugpubeq", model.name()); - Assertions.assertEquals("xzmuzgueuygpbha", model.description()); - Assertions.assertEquals("e", model.dataType()); - Assertions.assertEquals(false, model.required()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("ygx", model.designDefaultValue()); - Assertions.assertEquals("xw", model.defaultValue()); - Assertions.assertEquals("qwdjvlwq", model.sensitiveDefaultValue()); - Assertions.assertEquals("yylw", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("cmejezj", model.variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisParameter model = new SsisParameter().withId(2973458827491706517L) - .withName("xugpubeq") - .withDescription("xzmuzgueuygpbha") - .withDataType("e") - .withRequired(false) - .withSensitive(false) - .withDesignDefaultValue("ygx") - .withDefaultValue("xw") - .withSensitiveDefaultValue("qwdjvlwq") - .withValueType("yylw") - .withValueSet(false) - .withVariable("cmejezj"); - model = BinaryData.fromObject(model).toObject(SsisParameter.class); - Assertions.assertEquals(2973458827491706517L, model.id()); - Assertions.assertEquals("xugpubeq", model.name()); - Assertions.assertEquals("xzmuzgueuygpbha", model.description()); - Assertions.assertEquals("e", model.dataType()); - Assertions.assertEquals(false, model.required()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("ygx", model.designDefaultValue()); - Assertions.assertEquals("xw", model.defaultValue()); - Assertions.assertEquals("qwdjvlwq", model.sensitiveDefaultValue()); - Assertions.assertEquals("yylw", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("cmejezj", model.variable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java deleted file mode 100644 index 1a2912747954..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisEnvironmentReference; -import com.azure.resourcemanager.datafactory.models.SsisParameter; -import com.azure.resourcemanager.datafactory.models.SsisProject; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisProjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisProject model = BinaryData.fromString( - "{\"type\":\"Project\",\"folderId\":2534337512728361991,\"version\":9204988078857470987,\"environmentRefs\":[{\"id\":3325608952724918572,\"environmentFolderName\":\"gpxd\",\"environmentName\":\"cqmguvdk\",\"referenceType\":\"ihrfcowla\"},{\"id\":4156102790350782968,\"environmentFolderName\":\"ywxjjylaqhxevfd\",\"environmentName\":\"vjhwgkynxlwrjgo\",\"referenceType\":\"tmcktkalhpiy\"},{\"id\":3297149062864782819,\"environmentFolderName\":\"lzrignqlwogqnb\",\"environmentName\":\"aiuvemqc\",\"referenceType\":\"kivexiathmar\"}],\"parameters\":[{\"id\":7853401833151195182,\"name\":\"nkbfxq\",\"description\":\"pggeciradmx\",\"dataType\":\"butbbzcxzayvcsej\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"iitr\",\"defaultValue\":\"djtgo\",\"sensitiveDefaultValue\":\"ybseckgaxm\",\"valueType\":\"szjietfs\",\"valueSet\":false,\"variable\":\"dvzcnlk\"},{\"id\":765164696607468515,\"name\":\"kreisojhuswm\",\"description\":\"bkob\",\"dataType\":\"wav\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"lwidtebwedjri\",\"defaultValue\":\"ppgijn\",\"sensitiveDefaultValue\":\"ba\",\"valueType\":\"xepgaxpy\",\"valueSet\":false,\"variable\":\"cqdssbmgersdudh\"},{\"id\":7742128413945850057,\"name\":\"fg\",\"description\":\"xtxfuh\",\"dataType\":\"ksfyz\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"lffnozzfysffrpjf\",\"defaultValue\":\"yx\",\"sensitiveDefaultValue\":\"osyhhwpuf\",\"valueType\":\"preyilq\",\"valueSet\":true,\"variable\":\"kteoykqr\"},{\"id\":3917509054195107271,\"name\":\"grddi\",\"description\":\"a\",\"dataType\":\"lyrbvmbdgexp\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"fpjpsbcxqiyapi\",\"defaultValue\":\"jlfugnrzowcgrz\",\"sensitiveDefaultValue\":\"q\",\"valueType\":\"zawqxnhlva\",\"valueSet\":false,\"variable\":\"xdwtfmf\"}],\"id\":2696284877511045447,\"name\":\"lhaljomgzorpr\",\"description\":\"ptvbjenylg\"}") - .toObject(SsisProject.class); - Assertions.assertEquals(2696284877511045447L, model.id()); - Assertions.assertEquals("lhaljomgzorpr", model.name()); - Assertions.assertEquals("ptvbjenylg", model.description()); - Assertions.assertEquals(2534337512728361991L, model.folderId()); - Assertions.assertEquals(9204988078857470987L, model.version()); - Assertions.assertEquals(3325608952724918572L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("gpxd", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("cqmguvdk", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("ihrfcowla", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(7853401833151195182L, model.parameters().get(0).id()); - Assertions.assertEquals("nkbfxq", model.parameters().get(0).name()); - Assertions.assertEquals("pggeciradmx", model.parameters().get(0).description()); - Assertions.assertEquals("butbbzcxzayvcsej", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(false, model.parameters().get(0).sensitive()); - Assertions.assertEquals("iitr", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("djtgo", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("ybseckgaxm", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("szjietfs", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("dvzcnlk", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisProject model = new SsisProject().withId(2696284877511045447L) - .withName("lhaljomgzorpr") - .withDescription("ptvbjenylg") - .withFolderId(2534337512728361991L) - .withVersion(9204988078857470987L) - .withEnvironmentRefs(Arrays.asList( - new SsisEnvironmentReference().withId(3325608952724918572L) - .withEnvironmentFolderName("gpxd") - .withEnvironmentName("cqmguvdk") - .withReferenceType("ihrfcowla"), - new SsisEnvironmentReference().withId(4156102790350782968L) - .withEnvironmentFolderName("ywxjjylaqhxevfd") - .withEnvironmentName("vjhwgkynxlwrjgo") - .withReferenceType("tmcktkalhpiy"), - new SsisEnvironmentReference().withId(3297149062864782819L) - .withEnvironmentFolderName("lzrignqlwogqnb") - .withEnvironmentName("aiuvemqc") - .withReferenceType("kivexiathmar"))) - .withParameters(Arrays.asList( - new SsisParameter().withId(7853401833151195182L) - .withName("nkbfxq") - .withDescription("pggeciradmx") - .withDataType("butbbzcxzayvcsej") - .withRequired(false) - .withSensitive(false) - .withDesignDefaultValue("iitr") - .withDefaultValue("djtgo") - .withSensitiveDefaultValue("ybseckgaxm") - .withValueType("szjietfs") - .withValueSet(false) - .withVariable("dvzcnlk"), - new SsisParameter().withId(765164696607468515L) - .withName("kreisojhuswm") - .withDescription("bkob") - .withDataType("wav") - .withRequired(false) - .withSensitive(false) - .withDesignDefaultValue("lwidtebwedjri") - .withDefaultValue("ppgijn") - .withSensitiveDefaultValue("ba") - .withValueType("xepgaxpy") - .withValueSet(false) - .withVariable("cqdssbmgersdudh"), - new SsisParameter().withId(7742128413945850057L) - .withName("fg") - .withDescription("xtxfuh") - .withDataType("ksfyz") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("lffnozzfysffrpjf") - .withDefaultValue("yx") - .withSensitiveDefaultValue("osyhhwpuf") - .withValueType("preyilq") - .withValueSet(true) - .withVariable("kteoykqr"), - new SsisParameter().withId(3917509054195107271L) - .withName("grddi") - .withDescription("a") - .withDataType("lyrbvmbdgexp") - .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("fpjpsbcxqiyapi") - .withDefaultValue("jlfugnrzowcgrz") - .withSensitiveDefaultValue("q") - .withValueType("zawqxnhlva") - .withValueSet(false) - .withVariable("xdwtfmf"))); - model = BinaryData.fromObject(model).toObject(SsisProject.class); - Assertions.assertEquals(2696284877511045447L, model.id()); - Assertions.assertEquals("lhaljomgzorpr", model.name()); - Assertions.assertEquals("ptvbjenylg", model.description()); - Assertions.assertEquals(2534337512728361991L, model.folderId()); - Assertions.assertEquals(9204988078857470987L, model.version()); - Assertions.assertEquals(3325608952724918572L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("gpxd", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("cqmguvdk", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("ihrfcowla", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(7853401833151195182L, model.parameters().get(0).id()); - Assertions.assertEquals("nkbfxq", model.parameters().get(0).name()); - Assertions.assertEquals("pggeciradmx", model.parameters().get(0).description()); - Assertions.assertEquals("butbbzcxzayvcsej", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(false, model.parameters().get(0).sensitive()); - Assertions.assertEquals("iitr", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("djtgo", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("ybseckgaxm", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("szjietfs", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("dvzcnlk", model.parameters().get(0).variable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPropertyOverrideTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPropertyOverrideTests.java deleted file mode 100644 index d4bd79d33014..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPropertyOverrideTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisPropertyOverride; -import org.junit.jupiter.api.Assertions; - -public final class SsisPropertyOverrideTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisPropertyOverride model = BinaryData.fromString("{\"value\":\"dataxwmwrjm\",\"isSensitive\":false}") - .toObject(SsisPropertyOverride.class); - Assertions.assertEquals(false, model.isSensitive()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisPropertyOverride model = new SsisPropertyOverride().withValue("dataxwmwrjm").withIsSensitive(false); - model = BinaryData.fromObject(model).toObject(SsisPropertyOverride.class); - Assertions.assertEquals(false, model.isSensitive()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisVariableTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisVariableTests.java deleted file mode 100644 index 45ccb9685091..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisVariableTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisVariable; -import org.junit.jupiter.api.Assertions; - -public final class SsisVariableTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisVariable model = BinaryData.fromString( - "{\"id\":8399935683656414000,\"name\":\"o\",\"description\":\"wjx\",\"dataType\":\"wxiyarfh\",\"sensitive\":false,\"value\":\"tidzvvndpr\",\"sensitiveValue\":\"uexhgdhpkplas\"}") - .toObject(SsisVariable.class); - Assertions.assertEquals(8399935683656414000L, model.id()); - Assertions.assertEquals("o", model.name()); - Assertions.assertEquals("wjx", model.description()); - Assertions.assertEquals("wxiyarfh", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("tidzvvndpr", model.value()); - Assertions.assertEquals("uexhgdhpkplas", model.sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisVariable model = new SsisVariable().withId(8399935683656414000L) - .withName("o") - .withDescription("wjx") - .withDataType("wxiyarfh") - .withSensitive(false) - .withValue("tidzvvndpr") - .withSensitiveValue("uexhgdhpkplas"); - model = BinaryData.fromObject(model).toObject(SsisVariable.class); - Assertions.assertEquals(8399935683656414000L, model.id()); - Assertions.assertEquals("o", model.name()); - Assertions.assertEquals("wjx", model.description()); - Assertions.assertEquals("wxiyarfh", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("tidzvvndpr", model.value()); - Assertions.assertEquals("uexhgdhpkplas", model.sensitiveValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.java deleted file mode 100644 index 8cbf4bf23928..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class StagingSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StagingSettings model = BinaryData.fromString( - "{\"linkedServiceName\":{\"referenceName\":\"qjftyaqdswfn\",\"parameters\":{\"u\":\"dataiwhumngihfndsj\",\"offckejx\":\"datalfvrpbcgdptf\",\"qwxxynttrn\":\"datamng\"}},\"path\":\"datavximgns\",\"enableCompression\":\"datacxuyzrnngnmf\",\"\":{\"tpyqalwlirapqhsi\":\"datafoummdomvd\",\"efgfqxejj\":\"datafhsfnoc\",\"fcrb\":\"datatiqbxzeiudog\",\"wzbew\":\"dataoeomufaza\"}}") - .toObject(StagingSettings.class); - Assertions.assertEquals("qjftyaqdswfn", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StagingSettings model = new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qjftyaqdswfn") - .withParameters( - mapOf("u", "dataiwhumngihfndsj", "offckejx", "datalfvrpbcgdptf", "qwxxynttrn", "datamng"))) - .withPath("datavximgns") - .withEnableCompression("datacxuyzrnngnmf") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(StagingSettings.class); - Assertions.assertEquals("qjftyaqdswfn", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java deleted file mode 100644 index 18a61537e2c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class StoreReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StoreReadSettings model = BinaryData.fromString( - "{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datarvjwbeeol\",\"disableMetricsCollection\":\"databaqolwfkb\",\"\":{\"vazf\":\"datavhtgfdygaphlwm\"}}") - .toObject(StoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreReadSettings model = new StoreReadSettings().withMaxConcurrentConnections("datarvjwbeeol") - .withDisableMetricsCollection("databaqolwfkb") - .withAdditionalProperties(mapOf("type", "StoreReadSettings")); - model = BinaryData.fromObject(model).toObject(StoreReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java deleted file mode 100644 index 618785c81633..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class StoreWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StoreWriteSettings model = BinaryData.fromString( - "{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataekbpqghxdpg\",\"disableMetricsCollection\":\"datafimlyx\",\"copyBehavior\":\"dataixjudbiac\",\"metadata\":[{\"name\":\"datacmfuvuslvbujwpnz\",\"value\":\"datapyyvecruhq\"},{\"name\":\"datawdsthktsaljk\",\"value\":\"datapgtpgxkkoyp\"},{\"name\":\"datalvthivapuax\",\"value\":\"datawqwbhlrzlg\"},{\"name\":\"datanpdkwerx\",\"value\":\"datazlmzsekvsuzyowra\"}],\"\":{\"nuvpkplt\":\"datafr\",\"atfpbxnretpg\":\"datayyey\"}}") - .toObject(StoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreWriteSettings model = new StoreWriteSettings().withMaxConcurrentConnections("dataekbpqghxdpg") - .withDisableMetricsCollection("datafimlyx") - .withCopyBehavior("dataixjudbiac") - .withMetadata(Arrays.asList(new MetadataItem().withName("datacmfuvuslvbujwpnz").withValue("datapyyvecruhq"), - new MetadataItem().withName("datawdsthktsaljk").withValue("datapgtpgxkkoyp"), - new MetadataItem().withName("datalvthivapuax").withValue("datawqwbhlrzlg"), - new MetadataItem().withName("datanpdkwerx").withValue("datazlmzsekvsuzyowra"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings")); - model = BinaryData.fromObject(model).toObject(StoreWriteSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java deleted file mode 100644 index 4c10a2c24b7c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SubResourceDebugResource; -import org.junit.jupiter.api.Assertions; - -public final class SubResourceDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubResourceDebugResource model - = BinaryData.fromString("{\"name\":\"svflyhbxcudch\"}").toObject(SubResourceDebugResource.class); - Assertions.assertEquals("svflyhbxcudch", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubResourceDebugResource model = new SubResourceDebugResource().withName("svflyhbxcudch"); - model = BinaryData.fromObject(model).toObject(SubResourceDebugResource.class); - Assertions.assertEquals("svflyhbxcudch", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java deleted file mode 100644 index 019af154799f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.SwitchActivity; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchActivity model = BinaryData.fromString( - "{\"type\":\"Switch\",\"typeProperties\":{\"on\":{\"value\":\"fskgxfmdpsreqor\"},\"cases\":[{\"value\":\"zqjqbwjiqru\",\"activities\":[{\"type\":\"Activity\",\"name\":\"uakd\",\"description\":\"wajal\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"lvfdvbslrhccey\",\"dependencyConditions\":[]},{\"activity\":\"bjsjunzwbby\",\"dependencyConditions\":[]},{\"activity\":\"xkvfuku\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"vxidmitmjccnjvg\",\"value\":\"datatmpjinrqgliq\"}],\"\":{\"wttqiresixigp\":\"datapysscngduewevh\",\"ycpwhybtxzaaa\":\"datacmequocawcbknyl\",\"xrkrvmhhgv\":\"dataeiadygoadtdx\",\"ktncigwfgvpft\":\"dataxvsuwbvrbwafwi\"}},{\"type\":\"Activity\",\"name\":\"wmuxcpyqbv\",\"description\":\"mghhzm\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"pywvgfdsrng\",\"dependencyConditions\":[]},{\"activity\":\"qvxzqwcmmolpfcv\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"nnyksskuscdnn\",\"value\":\"dataoftapyrh\"},{\"name\":\"tjtqww\",\"value\":\"dataaxhsjw\"},{\"name\":\"c\",\"value\":\"datatwywhrzntmzzzavx\"}],\"\":{\"teaisywopko\":\"dataexspoiqvuky\",\"cbyldsmyq\":\"datalwmaigd\"}},{\"type\":\"Activity\",\"name\":\"gvqthlimvyzrdqpg\",\"description\":\"nk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"tphnisijcj\",\"dependencyConditions\":[]},{\"activity\":\"btgfitpxpkb\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"jxbbyq\",\"value\":\"databd\"}],\"\":{\"m\":\"datakujgeppxiyovgha\",\"ameacjoaixhma\":\"datacog\",\"yblwjhpibgalefjs\":\"datakkgvwvlqqnfdwrws\",\"qnshnbfd\":\"datanxrgmvzcibqy\"}},{\"type\":\"Activity\",\"name\":\"xs\",\"description\":\"tskprgztzcib\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"hnbsxoebephohjo\",\"dependencyConditions\":[]},{\"activity\":\"g\",\"dependencyConditions\":[]},{\"activity\":\"ifchvr\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ngkqejrhwyyzz\",\"value\":\"datalfayichwcf\"},{\"name\":\"bywpwjvpgls\",\"value\":\"dataxznkbjkjez\"},{\"name\":\"n\",\"value\":\"dataddygpdn\"}],\"\":{\"bxd\":\"datapbocwbcxw\",\"ive\":\"dataopummphbfp\",\"ppizyenajjxz\":\"datal\"}}]},{\"value\":\"pnersmevhgsuq\",\"activities\":[{\"type\":\"Activity\",\"name\":\"lvrjqa\",\"description\":\"hzsyqpkpvbxgr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"v\",\"dependencyConditions\":[]},{\"activity\":\"yivgzeiocacngi\",\"dependencyConditions\":[]},{\"activity\":\"adgx\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"yceteidf\",\"value\":\"dataofmcnnicmlomlnpr\"},{\"name\":\"ikyn\",\"value\":\"datacsgquphqnuitu\"},{\"name\":\"xhv\",\"value\":\"datamogabcwvib\"},{\"name\":\"fkcmzanrut\",\"value\":\"datad\"}],\"\":{\"qehgrjgvrawjom\":\"datatbdtrqiuohijjlax\",\"dwfyagvhe\":\"datagb\"}},{\"type\":\"Activity\",\"name\":\"ptcuqzdwpcupejzo\",\"description\":\"dapxxgvcsvtflcj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"pf\",\"dependencyConditions\":[]},{\"activity\":\"pdfi\",\"dependencyConditions\":[]},{\"activity\":\"rutcedeygsrrgd\",\"dependencyConditions\":[]},{\"activity\":\"maqyesahvowlibr\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"dwzzacyrkc\",\"value\":\"dataokkagkaitihncysa\"},{\"name\":\"jlq\",\"value\":\"dataora\"}],\"\":{\"kkcebjaj\":\"datai\"}},{\"type\":\"Activity\",\"name\":\"ptydve\",\"description\":\"pkeo\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ghx\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qptvxibpzhkn\",\"value\":\"datauevzqawjnwj\"}],\"\":{\"sjghfaldxsd\":\"dataubpfe\",\"jseftvwu\":\"datalbbp\",\"naqyeswinoecwabu\":\"datafmakn\",\"eqayvkmp\":\"dataqflwskb\"}}]}],\"defaultActivities\":[{\"type\":\"Activity\",\"name\":\"qxiyllamdz\",\"description\":\"j\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"esxpcbglbpahbc\",\"dependencyConditions\":[\"Failed\"],\"\":{\"xtbdgp\":\"datao\",\"macztkypyvztd\":\"datadclbdcgl\",\"xdyyo\":\"dataoyarcum\"}},{\"activity\":\"bbtwpkg\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Completed\"],\"\":{\"doteidc\":\"datajejalybvxumtxu\",\"viymcyfszlu\":\"datarmdqqgtwegqm\"}},{\"activity\":\"mzgattagroejsae\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Failed\",\"Skipped\"],\"\":{\"rxgq\":\"datazwzgioz\",\"uriwbvyra\":\"dataddvu\",\"tp\":\"datazscxikjyjcsh\",\"b\":\"datavuixmkm\"}}],\"userProperties\":[{\"name\":\"xmvckf\",\"value\":\"dataviadqnnmcdqzgep\"}],\"\":{\"fraohiyeyfsvuy\":\"datap\",\"cuzpjnakqcs\":\"datay\",\"hkrklzn\":\"dataoozyxugieitpokjy\",\"yylkcbkljjiuirmc\":\"datafpxiqpjn\"}}]},\"name\":\"pbehqbmhqihlxdho\",\"description\":\"cuoocv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"nho\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"bxnqkbvhdbg\":\"datarefgetttzlokttp\",\"vmixfqqm\":\"databcwfp\",\"m\":\"datatcucfbr\",\"gw\":\"datadtz\"}},{\"activity\":\"rvpcwyn\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\"],\"\":{\"gpmad\":\"dataavdqeue\",\"nfhgdvgcgun\":\"datamloimaykbmkk\"}},{\"activity\":\"itzwndpkev\",\"dependencyConditions\":[\"Failed\"],\"\":{\"euppxdzpjewp\":\"datajrdydz\",\"rkokgrnxly\":\"datalyszw\",\"zrouwkkwtoxl\":\"datatfgbxiao\",\"vealwdltstxronbz\":\"datan\"}},{\"activity\":\"keeeakzys\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"kdwpcmy\":\"datatajdfqchj\",\"eedoruiycvourqd\":\"datadrrkfhlaygwxo\"}}],\"userProperties\":[{\"name\":\"itrsppucxigkpevt\",\"value\":\"datalmrjla\"},{\"name\":\"dggwaldtelnvcfum\",\"value\":\"dataz\"},{\"name\":\"zhiradklzg\",\"value\":\"dataqmmapxnoog\"}],\"\":{\"icmezexwzpgy\":\"datajeci\",\"umpydk\":\"datanljy\",\"sczcksjwdwzfdfkg\":\"databcufhkrvxxzhqouo\",\"vmbsmxhsqdotbnf\":\"datala\"}}") - .toObject(SwitchActivity.class); - Assertions.assertEquals("pbehqbmhqihlxdho", model.name()); - Assertions.assertEquals("cuoocv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("nho", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("itrsppucxigkpevt", model.userProperties().get(0).name()); - Assertions.assertEquals("fskgxfmdpsreqor", model.on().value()); - Assertions.assertEquals("zqjqbwjiqru", model.cases().get(0).value()); - Assertions.assertEquals("uakd", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("wajal", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lvfdvbslrhccey", - model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("vxidmitmjccnjvg", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qxiyllamdz", model.defaultActivities().get(0).name()); - Assertions.assertEquals("j", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("esxpcbglbpahbc", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xmvckf", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchActivity model - = new SwitchActivity().withName("pbehqbmhqihlxdho") - .withDescription("cuoocv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("nho") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rvpcwyn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("itzwndpkev") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("keeeakzys") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("itrsppucxigkpevt").withValue("datalmrjla"), - new UserProperty().withName("dggwaldtelnvcfum").withValue("dataz"), - new UserProperty().withName("zhiradklzg").withValue("dataqmmapxnoog"))) - .withOn(new Expression().withValue("fskgxfmdpsreqor")) - .withCases(Arrays.asList( - new SwitchCase().withValue("zqjqbwjiqru") - .withActivities(Arrays.asList( - new Activity().withName("uakd") - .withDescription("wajal") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("lvfdvbslrhccey") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bjsjunzwbby") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xkvfuku") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("vxidmitmjccnjvg").withValue("datatmpjinrqgliq"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("wmuxcpyqbv") - .withDescription("mghhzm") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("pywvgfdsrng") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qvxzqwcmmolpfcv") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("nnyksskuscdnn").withValue("dataoftapyrh"), - new UserProperty().withName("tjtqww").withValue("dataaxhsjw"), - new UserProperty().withName("c").withValue("datatwywhrzntmzzzavx"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("gvqthlimvyzrdqpg") - .withDescription("nk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("tphnisijcj") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("btgfitpxpkb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("jxbbyq").withValue("databd"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("xs") - .withDescription("tskprgztzcib") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hnbsxoebephohjo") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("g") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ifchvr") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("ngkqejrhwyyzz").withValue("datalfayichwcf"), - new UserProperty().withName("bywpwjvpgls").withValue("dataxznkbjkjez"), - new UserProperty().withName("n").withValue("dataddygpdn"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase().withValue("pnersmevhgsuq") - .withActivities(Arrays.asList( - new Activity().withName("lvrjqa") - .withDescription("hzsyqpkpvbxgr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("v") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yivgzeiocacngi") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("adgx") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("yceteidf").withValue("dataofmcnnicmlomlnpr"), - new UserProperty().withName("ikyn").withValue("datacsgquphqnuitu"), - new UserProperty().withName("xhv").withValue("datamogabcwvib"), - new UserProperty().withName("fkcmzanrut").withValue("datad"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("ptcuqzdwpcupejzo") - .withDescription("dapxxgvcsvtflcj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("pf") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pdfi") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rutcedeygsrrgd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("maqyesahvowlibr") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("dwzzacyrkc").withValue("dataokkagkaitihncysa"), - new UserProperty().withName("jlq").withValue("dataora"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("ptydve") - .withDescription("pkeo") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("ghx") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("qptvxibpzhkn").withValue("datauevzqawjnwj"))) - .withAdditionalProperties(mapOf("type", "Activity")))))) - .withDefaultActivities(Arrays.asList(new Activity().withName("qxiyllamdz") - .withDescription("j") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("esxpcbglbpahbc") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bbtwpkg") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mzgattagroejsae") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("xmvckf").withValue("dataviadqnnmcdqzgep"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchActivity.class); - Assertions.assertEquals("pbehqbmhqihlxdho", model.name()); - Assertions.assertEquals("cuoocv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("nho", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("itrsppucxigkpevt", model.userProperties().get(0).name()); - Assertions.assertEquals("fskgxfmdpsreqor", model.on().value()); - Assertions.assertEquals("zqjqbwjiqru", model.cases().get(0).value()); - Assertions.assertEquals("uakd", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("wajal", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lvfdvbslrhccey", - model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("vxidmitmjccnjvg", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qxiyllamdz", model.defaultActivities().get(0).name()); - Assertions.assertEquals("j", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("esxpcbglbpahbc", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xmvckf", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java deleted file mode 100644 index 484f596246ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java +++ /dev/null @@ -1,291 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SwitchActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchActivityTypeProperties model = BinaryData.fromString( - "{\"on\":{\"value\":\"niybotuq\"},\"cases\":[{\"value\":\"uqvterbsgwoyk\",\"activities\":[{\"type\":\"Activity\",\"name\":\"qyfixwgqmxm\",\"description\":\"fzr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"bnvqu\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"kwbsttmvaijn\",\"value\":\"dataqnqwkaevbg\"},{\"name\":\"hmyzsqovmtid\",\"value\":\"dataycyyajl\"},{\"name\":\"otmir\",\"value\":\"dataipnclnbfxme\"}],\"\":{\"njaqzdzkyqq\":\"datadmfrfzg\",\"ahf\":\"dataqbwbwvtwmmv\"}},{\"type\":\"Activity\",\"name\":\"kceyjtdeyoxtlqyt\",\"description\":\"tepzrcqnsjqrgtap\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"mwbtr\",\"dependencyConditions\":[]},{\"activity\":\"kl\",\"dependencyConditions\":[]},{\"activity\":\"ndb\",\"dependencyConditions\":[]},{\"activity\":\"lqtpebaa\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"xpy\",\"value\":\"databjtjvqdwzyvxdg\"},{\"name\":\"enieqlikyc\",\"value\":\"dataunfuk\"}],\"\":{\"prjs\":\"datavktlrcauad\",\"qamxxpfyl\":\"datawnrqfi\",\"e\":\"datapftw\"}},{\"type\":\"Activity\",\"name\":\"uortgwwtaolfdgjr\",\"description\":\"hpvohvcaq\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"na\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ueqouzjgvqz\",\"value\":\"dataihtn\"},{\"name\":\"adrmt\",\"value\":\"datahfxy\"},{\"name\":\"nn\",\"value\":\"dataazbfrqo\"},{\"name\":\"igxndfrxnvwqy\",\"value\":\"datakl\"}],\"\":{\"iungjbfmrsjgme\":\"datascpj\",\"xkjjhflrg\":\"dataam\",\"adgqpbgzyafazwie\":\"dataskgh\",\"rijcwnthtq\":\"datazzxjjdboxuinrs\"}},{\"type\":\"Activity\",\"name\":\"bcwtcqjsvlzdus\",\"description\":\"b\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"cjuajclrtssbk\",\"dependencyConditions\":[]},{\"activity\":\"dgwpyljn\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"rjah\",\"value\":\"dataq\"},{\"name\":\"byic\",\"value\":\"dataufnumf\"}],\"\":{\"flvazp\":\"datanruqhmuryajpp\"}}]},{\"value\":\"ossqm\",\"activities\":[{\"type\":\"Activity\",\"name\":\"bvfa\",\"description\":\"pobzvxntsfyntkfz\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"vwwhmldsn\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"pjkk\",\"value\":\"dataaenzuuf\"},{\"name\":\"d\",\"value\":\"dataknxep\"},{\"name\":\"wxdwlo\",\"value\":\"dataymeqiqnjcajmxu\"},{\"name\":\"xkvpleooom\",\"value\":\"dataqdjfldzvgo\"}],\"\":{\"ustr\":\"datacgaofobjlqnaxfvs\"}},{\"type\":\"Activity\",\"name\":\"je\",\"description\":\"jbknpzhfhibhgwb\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"cjbxochijwpsk\",\"dependencyConditions\":[]},{\"activity\":\"eprumhikwahbz\",\"dependencyConditions\":[]},{\"activity\":\"gwkimmvatrv\",\"dependencyConditions\":[]},{\"activity\":\"kxcrxqpenkujxdn\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"eterjerhwgiuduw\",\"value\":\"dataqytppjdyikdykxh\"}],\"\":{\"kmmcvftijl\":\"datadtucyutrpdgm\",\"aednczvnwyfzavsa\":\"datahlcrjynef\",\"yxhfejtywluxysm\":\"databahs\",\"m\":\"dataeeodfplwf\"}},{\"type\":\"Activity\",\"name\":\"bwwphjw\",\"description\":\"caofxgwyvjefnlxq\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jxkxjrttzhna\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qynwqcov\",\"value\":\"datajvrsurqhhbddxko\"},{\"name\":\"orcmayqas\",\"value\":\"datavepld\"},{\"name\":\"fxmpyvlfujsbcfog\",\"value\":\"dataubqcqnch\"}],\"\":{\"knblb\":\"datajug\"}}]},{\"value\":\"xv\",\"activities\":[{\"type\":\"Activity\",\"name\":\"svprumttrvkhu\",\"description\":\"txxwbjbanlmpm\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xplrtueg\",\"dependencyConditions\":[]},{\"activity\":\"hqulnjeybgpjy\",\"dependencyConditions\":[]},{\"activity\":\"vjuowkt\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"vhdk\",\"value\":\"datadqcgedipnnzmvt\"},{\"name\":\"ttjmdtfuwx\",\"value\":\"dataee\"},{\"name\":\"omiesgur\",\"value\":\"datac\"}],\"\":{\"p\":\"datatumttmixe\",\"hvqnkwjhjut\":\"datarbazgou\",\"dflgqso\":\"dataxggn\",\"petsxetneher\":\"datauncmuvfukl\"}},{\"type\":\"Activity\",\"name\":\"belms\",\"description\":\"xhkzcdni\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"vgydtdtomknzotm\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"kwpooaskflrqwfmb\",\"value\":\"datakshb\"},{\"name\":\"zvnouthbvvcbwudi\",\"value\":\"datafix\"},{\"name\":\"w\",\"value\":\"datarqivqzqcmrxh\"},{\"name\":\"lozg\",\"value\":\"datafhijcetcystrs\"}],\"\":{\"rlrq\":\"datatxspaafseqoyo\"}},{\"type\":\"Activity\",\"name\":\"q\",\"description\":\"hulgtqveumwbmqp\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"jqkykjzbxmgsxb\",\"dependencyConditions\":[]},{\"activity\":\"ckambdoqfeobkm\",\"dependencyConditions\":[]},{\"activity\":\"ohmrb\",\"dependencyConditions\":[]},{\"activity\":\"h\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"xnwcejczi\",\"value\":\"dataf\"},{\"name\":\"daq\",\"value\":\"datankjyfy\"}],\"\":{\"ofhu\":\"datatiugcaashgr\",\"yjaxkbyo\":\"datauokrkibnonuocmx\",\"zxhtvythpynlmfvq\":\"datawtpmyvasnmzsvdrr\"}},{\"type\":\"Activity\",\"name\":\"yzacjxczjosixter\",\"description\":\"jkhtmmkmezlhmt\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"aynhz\",\"dependencyConditions\":[]},{\"activity\":\"ziwxwwpitwle\",\"dependencyConditions\":[]},{\"activity\":\"uq\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"photb\",\"value\":\"datagkliu\"},{\"name\":\"txfzhvxqotwcfbqz\",\"value\":\"datazchpjh\"},{\"name\":\"hyxxftrfwmxwjc\",\"value\":\"dataxqkm\"},{\"name\":\"nauleofdxzno\",\"value\":\"datakdoffeu\"}],\"\":{\"jf\":\"datagnugiiyc\"}}]}],\"defaultActivities\":[{\"type\":\"Activity\",\"name\":\"tdynbrf\",\"description\":\"rabr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"lz\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"bgfz\":\"dataub\",\"tuzgceuzhp\":\"dataixyx\",\"vxpfayophpu\":\"datamnpodsqil\",\"hbqvbute\":\"datacca\"}},{\"activity\":\"xufrwiivekrgvzjt\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"tjnktheh\":\"datalweozccdo\",\"v\":\"datamijraei\",\"lbnroxgwqgbv\":\"datahhci\",\"bztwkz\":\"datactcbmnecozvx\"}},{\"activity\":\"puwjvju\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\",\"Skipped\"],\"\":{\"jxjnxznlx\":\"datauxtyvpvegxdzopfk\",\"b\":\"datajkteubntqvlktq\",\"jiktwfjyl\":\"dataurblbtvsxnaothlr\",\"nwegyhzucpixfdbi\":\"datammibaowclb\"}},{\"activity\":\"pchbcbdpyorhq\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"nhszmuvareakcxda\":\"datanhyxcw\",\"npcrsfqwqm\":\"datanmnmqydpieleruoy\",\"vjurjczdelqaz\":\"dataisjqo\"}}],\"userProperties\":[{\"name\":\"xg\",\"value\":\"datarkbhwwpaec\"}],\"\":{\"gdb\":\"dataqacaedvnloqjmo\",\"jksmyeegbertf\":\"databrrqxldkhgngyofe\",\"rd\":\"datancxkazmydsqvjkfz\",\"bw\":\"datacwgcmmv\"}}]}") - .toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("niybotuq", model.on().value()); - Assertions.assertEquals("uqvterbsgwoyk", model.cases().get(0).value()); - Assertions.assertEquals("qyfixwgqmxm", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("fzr", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("bnvqu", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("kwbsttmvaijn", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("tdynbrf", model.defaultActivities().get(0).name()); - Assertions.assertEquals("rabr", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lz", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xg", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchActivityTypeProperties model = new SwitchActivityTypeProperties() - .withOn(new Expression().withValue("niybotuq")) - .withCases(Arrays.asList( - new SwitchCase().withValue("uqvterbsgwoyk") - .withActivities(Arrays.asList( - new Activity().withName("qyfixwgqmxm") - .withDescription("fzr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("bnvqu") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("kwbsttmvaijn").withValue("dataqnqwkaevbg"), - new UserProperty().withName("hmyzsqovmtid").withValue("dataycyyajl"), - new UserProperty().withName("otmir").withValue("dataipnclnbfxme"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("kceyjtdeyoxtlqyt") - .withDescription("tepzrcqnsjqrgtap") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("mwbtr") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kl") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ndb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lqtpebaa") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("xpy").withValue("databjtjvqdwzyvxdg"), - new UserProperty().withName("enieqlikyc").withValue("dataunfuk"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("uortgwwtaolfdgjr") - .withDescription("hpvohvcaq") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("na") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ueqouzjgvqz").withValue("dataihtn"), - new UserProperty().withName("adrmt").withValue("datahfxy"), - new UserProperty().withName("nn").withValue("dataazbfrqo"), - new UserProperty().withName("igxndfrxnvwqy").withValue("datakl"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("bcwtcqjsvlzdus") - .withDescription("b") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cjuajclrtssbk") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dgwpyljn") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("rjah").withValue("dataq"), - new UserProperty().withName("byic").withValue("dataufnumf"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase().withValue("ossqm") - .withActivities(Arrays.asList( - new Activity().withName("bvfa") - .withDescription("pobzvxntsfyntkfz") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("vwwhmldsn") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("pjkk").withValue("dataaenzuuf"), - new UserProperty().withName("d").withValue("dataknxep"), - new UserProperty().withName("wxdwlo").withValue("dataymeqiqnjcajmxu"), - new UserProperty().withName("xkvpleooom").withValue("dataqdjfldzvgo"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("je") - .withDescription("jbknpzhfhibhgwb") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cjbxochijwpsk") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("eprumhikwahbz") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gwkimmvatrv") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kxcrxqpenkujxdn") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("eterjerhwgiuduw").withValue("dataqytppjdyikdykxh"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("bwwphjw") - .withDescription("caofxgwyvjefnlxq") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("jxkxjrttzhna") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qynwqcov").withValue("datajvrsurqhhbddxko"), - new UserProperty().withName("orcmayqas").withValue("datavepld"), - new UserProperty().withName("fxmpyvlfujsbcfog").withValue("dataubqcqnch"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase().withValue("xv") - .withActivities(Arrays.asList( - new Activity().withName("svprumttrvkhu") - .withDescription("txxwbjbanlmpm") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("xplrtueg") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hqulnjeybgpjy") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vjuowkt") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("vhdk").withValue("datadqcgedipnnzmvt"), - new UserProperty().withName("ttjmdtfuwx").withValue("dataee"), - new UserProperty().withName("omiesgur").withValue("datac"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("belms") - .withDescription("xhkzcdni") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("vgydtdtomknzotm") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("kwpooaskflrqwfmb").withValue("datakshb"), - new UserProperty().withName("zvnouthbvvcbwudi").withValue("datafix"), - new UserProperty().withName("w").withValue("datarqivqzqcmrxh"), - new UserProperty().withName("lozg").withValue("datafhijcetcystrs"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("q") - .withDescription("hulgtqveumwbmqp") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jqkykjzbxmgsxb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ckambdoqfeobkm") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ohmrb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("h") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("xnwcejczi").withValue("dataf"), - new UserProperty().withName("daq").withValue("datankjyfy"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("yzacjxczjosixter") - .withDescription("jkhtmmkmezlhmt") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("aynhz") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ziwxwwpitwle") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("uq") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("photb").withValue("datagkliu"), - new UserProperty().withName("txfzhvxqotwcfbqz").withValue("datazchpjh"), - new UserProperty().withName("hyxxftrfwmxwjc").withValue("dataxqkm"), - new UserProperty().withName("nauleofdxzno").withValue("datakdoffeu"))) - .withAdditionalProperties(mapOf("type", "Activity")))))) - .withDefaultActivities(Arrays.asList(new Activity().withName("tdynbrf") - .withDescription("rabr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("lz") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xufrwiivekrgvzjt") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("puwjvju") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pchbcbdpyorhq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("xg").withValue("datarkbhwwpaec"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("niybotuq", model.on().value()); - Assertions.assertEquals("uqvterbsgwoyk", model.cases().get(0).value()); - Assertions.assertEquals("qyfixwgqmxm", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("fzr", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("bnvqu", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("kwbsttmvaijn", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("tdynbrf", model.defaultActivities().get(0).name()); - Assertions.assertEquals("rabr", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lz", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xg", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.java deleted file mode 100644 index 18b42a27ebe5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchCaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchCase model = BinaryData.fromString( - "{\"value\":\"lcyepqtdvgd\",\"activities\":[{\"type\":\"Activity\",\"name\":\"dacuvyeckbudepul\",\"description\":\"gdfyhywmezoiywme\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"cp\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"vvnbbeys\":\"datav\",\"uq\":\"datafsiiadfjxfiv\",\"toqka\":\"dataptzxilwnvfbr\",\"huawiit\":\"datalek\"}},{\"activity\":\"yeb\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Completed\"],\"\":{\"duu\":\"datakcutxmqvbhfb\",\"k\":\"datakrskqgokhpzvph\",\"mhrfwch\":\"datafcxvfurkdhopz\"}}],\"userProperties\":[{\"name\":\"eovji\",\"value\":\"datazkwdexldocq\"},{\"name\":\"lbsvyokiexmfe\",\"value\":\"datachltxayqwfu\"},{\"name\":\"vo\",\"value\":\"datae\"}],\"\":{\"nochnmx\":\"datacgzifogbmeksegdj\",\"knazc\":\"datahgsimenjht\"}},{\"type\":\"Activity\",\"name\":\"ja\",\"description\":\"vnollpz\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"quiqkuxajl\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Skipped\"],\"\":{\"bnmaiq\":\"datarnowexfykdirc\",\"jrxoi\":\"datajoirxngmm\"}},{\"activity\":\"mnsmdsmzkjlh\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"medyb\":\"databyfiochf\"}}],\"userProperties\":[{\"name\":\"zoae\",\"value\":\"datadhvszwgmpzbxqf\"}],\"\":{\"lqnrds\":\"datapwglkvspbdjushzf\",\"wewgda\":\"datarvp\",\"dlilkw\":\"datahzdhszk\"}},{\"type\":\"Activity\",\"name\":\"zmyvdabgctm\",\"description\":\"tlrfxnokpkgr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hdkx\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Succeeded\",\"Failed\"],\"\":{\"rchnrhg\":\"datakd\",\"hluoyr\":\"datalsvosvqj\",\"hzpwsadwsent\":\"datahqq\",\"qvd\":\"datacdzyvxwnmiumduw\"}},{\"activity\":\"uvxmrbbgl\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"tywzrnxiktok\":\"datana\",\"cfprioabqxwid\":\"dataptxmdadfygj\"}},{\"activity\":\"xeonnolrsmxt\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"uotexlpqydgfzet\":\"dataaxmo\"}}],\"userProperties\":[{\"name\":\"mnseigoalxwuq\",\"value\":\"dataczrskdovgkpq\"},{\"name\":\"zrxhghsmlxogim\",\"value\":\"datahxyx\"},{\"name\":\"lxawixdcy\",\"value\":\"datadqamiy\"}],\"\":{\"zco\":\"datazlbcamdzoauvwjkg\",\"aqxztywzaq\":\"datawcnnzacqludq\",\"zlzpowsefpg\":\"datafqtstmyfebb\",\"pzbsytwt\":\"dataw\"}},{\"type\":\"Activity\",\"name\":\"vcdtsvgyzmafq\",\"description\":\"wupuubyvwejy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hrxoekyf\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"jxjaaocjlwco\":\"datapdgnsmhrpzbyudko\",\"vmzxrhve\":\"datawcrextdymkzbliu\",\"guvqghuehgcqhlfq\":\"datangzjxjbklta\",\"r\":\"datamjldeluqqnf\"}}],\"userProperties\":[{\"name\":\"luomaltvvp\",\"value\":\"datadhtdapkdahyn\"},{\"name\":\"tixrkjogyqrmt\",\"value\":\"dataiclsxuibyfylhf\"}],\"\":{\"cwuz\":\"dataauqylmlunquvlva\",\"gynqedn\":\"datalx\",\"qcxzdlfs\":\"dataidacskul\"}}]}") - .toObject(SwitchCase.class); - Assertions.assertEquals("lcyepqtdvgd", model.value()); - Assertions.assertEquals("dacuvyeckbudepul", model.activities().get(0).name()); - Assertions.assertEquals("gdfyhywmezoiywme", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("cp", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("eovji", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchCase model = new SwitchCase().withValue("lcyepqtdvgd") - .withActivities(Arrays.asList( - new Activity().withName("dacuvyeckbudepul") - .withDescription("gdfyhywmezoiywme") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cp") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yeb") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("eovji").withValue("datazkwdexldocq"), - new UserProperty().withName("lbsvyokiexmfe").withValue("datachltxayqwfu"), - new UserProperty().withName("vo").withValue("datae"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("ja") - .withDescription("vnollpz") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("quiqkuxajl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mnsmdsmzkjlh") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("zoae").withValue("datadhvszwgmpzbxqf"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("zmyvdabgctm") - .withDescription("tlrfxnokpkgr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hdkx") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("uvxmrbbgl") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xeonnolrsmxt") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("mnseigoalxwuq").withValue("dataczrskdovgkpq"), - new UserProperty().withName("zrxhghsmlxogim").withValue("datahxyx"), - new UserProperty().withName("lxawixdcy").withValue("datadqamiy"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("vcdtsvgyzmafq") - .withDescription("wupuubyvwejy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("hrxoekyf") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("luomaltvvp").withValue("datadhtdapkdahyn"), - new UserProperty().withName("tixrkjogyqrmt").withValue("dataiclsxuibyfylhf"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchCase.class); - Assertions.assertEquals("lcyepqtdvgd", model.value()); - Assertions.assertEquals("dacuvyeckbudepul", model.activities().get(0).name()); - Assertions.assertEquals("gdfyhywmezoiywme", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("cp", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("eovji", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java deleted file mode 100644 index abc3babf9e0a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SybaseSource; - -public final class SybaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseSource model = BinaryData.fromString( - "{\"type\":\"SybaseSource\",\"query\":\"datablucpmqwkfgmkp\",\"queryTimeout\":\"datakstzqz\",\"additionalColumns\":\"datawrcajfers\",\"sourceRetryCount\":\"dataxlkcw\",\"sourceRetryWait\":\"dataejssksgxykdepqcy\",\"maxConcurrentConnections\":\"datahwsxpzkmotgmd\",\"disableMetricsCollection\":\"datawwqevbiuntp\",\"\":{\"qgywr\":\"datawjxlycelf\",\"ruldt\":\"datau\"}}") - .toObject(SybaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseSource model = new SybaseSource().withSourceRetryCount("dataxlkcw") - .withSourceRetryWait("dataejssksgxykdepqcy") - .withMaxConcurrentConnections("datahwsxpzkmotgmd") - .withDisableMetricsCollection("datawwqevbiuntp") - .withQueryTimeout("datakstzqz") - .withAdditionalColumns("datawrcajfers") - .withQuery("datablucpmqwkfgmkp"); - model = BinaryData.fromObject(model).toObject(SybaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java deleted file mode 100644 index 4040ed36125a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SybaseTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SybaseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseTableDataset model = BinaryData.fromString( - "{\"type\":\"SybaseTable\",\"typeProperties\":{\"tableName\":\"datatxa\"},\"description\":\"ujdbq\",\"structure\":\"datayexb\",\"schema\":\"datagxqqqasfeooqftp\",\"linkedServiceName\":{\"referenceName\":\"evtarphklqlii\",\"parameters\":{\"wgjnofgij\":\"datan\",\"zmwyw\":\"datadgsebjuymtevae\",\"edogzougxbxx\":\"datarjkejv\"}},\"parameters\":{\"mtenfdvdoe\":{\"type\":\"String\",\"defaultValue\":\"dataphivfh\"}},\"annotations\":[\"datawusrjzhdt\",\"datasyfezfsmyljd\",\"datayyrwnmwtqi\"],\"folder\":{\"name\":\"nnkynkstd\"},\"\":{\"wvaosckfavhk\":\"datahjfphfxaqjyihjc\",\"weifdyfa\":\"datapsp\"}}") - .toObject(SybaseTableDataset.class); - Assertions.assertEquals("ujdbq", model.description()); - Assertions.assertEquals("evtarphklqlii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("mtenfdvdoe").type()); - Assertions.assertEquals("nnkynkstd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDataset model = new SybaseTableDataset().withDescription("ujdbq") - .withStructure("datayexb") - .withSchema("datagxqqqasfeooqftp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("evtarphklqlii") - .withParameters( - mapOf("wgjnofgij", "datan", "zmwyw", "datadgsebjuymtevae", "edogzougxbxx", "datarjkejv"))) - .withParameters(mapOf("mtenfdvdoe", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataphivfh"))) - .withAnnotations(Arrays.asList("datawusrjzhdt", "datasyfezfsmyljd", "datayyrwnmwtqi")) - .withFolder(new DatasetFolder().withName("nnkynkstd")) - .withTableName("datatxa"); - model = BinaryData.fromObject(model).toObject(SybaseTableDataset.class); - Assertions.assertEquals("ujdbq", model.description()); - Assertions.assertEquals("evtarphklqlii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("mtenfdvdoe").type()); - Assertions.assertEquals("nnkynkstd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java deleted file mode 100644 index e5e49a4bf53d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SybaseTableDatasetTypeProperties; - -public final class SybaseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"dataxnguwn\"}").toObject(SybaseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDatasetTypeProperties model = new SybaseTableDatasetTypeProperties().withTableName("dataxnguwn"); - model = BinaryData.fromObject(model).toObject(SybaseTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java deleted file mode 100644 index 7d902d7451ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType; -import com.azure.resourcemanager.datafactory.models.ConfigurationType; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.NotebookParameter; -import com.azure.resourcemanager.datafactory.models.NotebookParameterType; -import com.azure.resourcemanager.datafactory.models.NotebookReferenceType; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookActivity; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SynapseNotebookActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseNotebookActivity model = BinaryData.fromString( - "{\"type\":\"SynapseNotebook\",\"typeProperties\":{\"notebook\":{\"type\":\"NotebookReference\",\"referenceName\":\"datapfdhfp\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"datahggaziaps\"},\"parameters\":{\"gmeiihabo\":{\"value\":\"datamieheqmtet\",\"type\":\"string\"}},\"executorSize\":\"datargetnc\",\"conf\":\"datajwjrpljkcqed\",\"driverSize\":\"dataeefzlwohobaaccg\",\"numExecutors\":\"datai\",\"configurationType\":\"Artifact\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"dataoeiqhbrdcgmyjm\"},\"sparkConfig\":{\"bzvink\":\"datakpbrr\"}},\"linkedServiceName\":{\"referenceName\":\"eblrnu\",\"parameters\":{\"musudhjoshmmzotc\":\"datan\",\"difbeott\":\"dataffmik\"}},\"policy\":{\"timeout\":\"dataonejpjzqb\",\"retry\":\"datatv\",\"retryIntervalInSeconds\":148980075,\"secureInput\":false,\"secureOutput\":false,\"\":{\"bdqobngjbeihcaxk\":\"datalhnix\",\"vbcxnni\":\"datavr\"}},\"name\":\"nfuvesmepqrkjyp\",\"description\":\"vnotbenfshf\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"g\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\"],\"\":{\"duodp\":\"datavm\",\"ggn\":\"datati\",\"pqwucprpw\":\"dataocqaejlebcy\"}},{\"activity\":\"g\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"aoc\":\"datakefwmqialebcto\",\"oyjdnzrcjokgthyd\":\"datapjsfhxhulrek\"}},{\"activity\":\"zrr\",\"dependencyConditions\":[\"Completed\"],\"\":{\"vyceks\":\"datasoivaoryefgw\"}}],\"userProperties\":[{\"name\":\"jtgmfjzqvi\",\"value\":\"datadhixd\"}],\"\":{\"yzjdrkcs\":\"datacsmcqskrjnqaa\",\"sfztlxqhyyxhzgx\":\"dataeox\"}}") - .toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("nfuvesmepqrkjyp", model.name()); - Assertions.assertEquals("vnotbenfshf", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("g", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jtgmfjzqvi", model.userProperties().get(0).name()); - Assertions.assertEquals("eblrnu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(148980075, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.STRING, model.parameters().get("gmeiihabo").type()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookActivity model = new SynapseNotebookActivity().withName("nfuvesmepqrkjyp") - .withDescription("vnotbenfshf") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("g") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("g") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zrr") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("jtgmfjzqvi").withValue("datadhixd"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("eblrnu") - .withParameters(mapOf("musudhjoshmmzotc", "datan", "difbeott", "dataffmik"))) - .withPolicy(new ActivityPolicy().withTimeout("dataonejpjzqb") - .withRetry("datatv") - .withRetryIntervalInSeconds(148980075) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withNotebook(new SynapseNotebookReference().withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datapfdhfp")) - .withSparkPool( - new BigDataPoolParametrizationReference().withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("datahggaziaps")) - .withParameters(mapOf("gmeiihabo", - new NotebookParameter().withValue("datamieheqmtet").withType(NotebookParameterType.STRING))) - .withExecutorSize("datargetnc") - .withConf("datajwjrpljkcqed") - .withDriverSize("dataeefzlwohobaaccg") - .withNumExecutors("datai") - .withConfigurationType(ConfigurationType.ARTIFACT) - .withTargetSparkConfiguration(new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("dataoeiqhbrdcgmyjm")) - .withSparkConfig(mapOf("bzvink", "datakpbrr")); - model = BinaryData.fromObject(model).toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("nfuvesmepqrkjyp", model.name()); - Assertions.assertEquals("vnotbenfshf", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("g", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jtgmfjzqvi", model.userProperties().get(0).name()); - Assertions.assertEquals("eblrnu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(148980075, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.STRING, model.parameters().get("gmeiihabo").type()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java deleted file mode 100644 index 58249d7b02a8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SynapseNotebookActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType; -import com.azure.resourcemanager.datafactory.models.ConfigurationType; -import com.azure.resourcemanager.datafactory.models.NotebookParameter; -import com.azure.resourcemanager.datafactory.models.NotebookParameterType; -import com.azure.resourcemanager.datafactory.models.NotebookReferenceType; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SynapseNotebookActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseNotebookActivityTypeProperties model = BinaryData.fromString( - "{\"notebook\":{\"type\":\"NotebookReference\",\"referenceName\":\"datacqpvrrmlk\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"dataqsdvxddsfylbo\"},\"parameters\":{\"nsbzkumxbcnkojy\":{\"value\":\"dataykrxaevburav\",\"type\":\"string\"},\"ia\":{\"value\":\"datahbtycfj\",\"type\":\"int\"}},\"executorSize\":\"datasukdoyb\",\"conf\":\"datazniekedxvw\",\"driverSize\":\"dataipxzzcxqd\",\"numExecutors\":\"datasuvekzqybpoxqwcu\",\"configurationType\":\"Default\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"datazqazwyb\"},\"sparkConfig\":{\"cblmzaru\":\"datajvyrdownbwrnb\",\"abhpdkrjlwrqheh\":\"datasmpcajx\"}}") - .toObject(SynapseNotebookActivityTypeProperties.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.STRING, model.parameters().get("nsbzkumxbcnkojy").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookActivityTypeProperties model = new SynapseNotebookActivityTypeProperties() - .withNotebook(new SynapseNotebookReference().withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datacqpvrrmlk")) - .withSparkPool( - new BigDataPoolParametrizationReference().withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("dataqsdvxddsfylbo")) - .withParameters(mapOf("nsbzkumxbcnkojy", - new NotebookParameter().withValue("dataykrxaevburav").withType(NotebookParameterType.STRING), "ia", - new NotebookParameter().withValue("datahbtycfj").withType(NotebookParameterType.INT))) - .withExecutorSize("datasukdoyb") - .withConf("datazniekedxvw") - .withDriverSize("dataipxzzcxqd") - .withNumExecutors("datasuvekzqybpoxqwcu") - .withConfigurationType(ConfigurationType.DEFAULT) - .withTargetSparkConfiguration(new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("datazqazwyb")) - .withSparkConfig(mapOf("cblmzaru", "datajvyrdownbwrnb", "abhpdkrjlwrqheh", "datasmpcajx")); - model = BinaryData.fromObject(model).toObject(SynapseNotebookActivityTypeProperties.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.STRING, model.parameters().get("nsbzkumxbcnkojy").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java deleted file mode 100644 index a3a675d1b951..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NotebookReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookReference; -import org.junit.jupiter.api.Assertions; - -public final class SynapseNotebookReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseNotebookReference model - = BinaryData.fromString("{\"type\":\"NotebookReference\",\"referenceName\":\"datazckgbpysgzgiv\"}") - .toObject(SynapseNotebookReference.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookReference model - = new SynapseNotebookReference().withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datazckgbpysgzgiv"); - model = BinaryData.fromObject(model).toObject(SynapseNotebookReference.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseSparkJobReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseSparkJobReferenceTests.java deleted file mode 100644 index 1d91d00ad81f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseSparkJobReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SparkJobReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseSparkJobReference; -import org.junit.jupiter.api.Assertions; - -public final class SynapseSparkJobReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseSparkJobReference model - = BinaryData.fromString("{\"type\":\"SparkJobDefinitionReference\",\"referenceName\":\"datasbgj\"}") - .toObject(SynapseSparkJobReference.class); - Assertions.assertEquals(SparkJobReferenceType.SPARK_JOB_DEFINITION_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseSparkJobReference model - = new SynapseSparkJobReference().withType(SparkJobReferenceType.SPARK_JOB_DEFINITION_REFERENCE) - .withReferenceName("datasbgj"); - model = BinaryData.fromObject(model).toObject(SynapseSparkJobReference.class); - Assertions.assertEquals(SparkJobReferenceType.SPARK_JOB_DEFINITION_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java deleted file mode 100644 index 7757456aa2cc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TabularSource; - -public final class TabularSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TabularSource model = BinaryData.fromString( - "{\"type\":\"TabularSource\",\"queryTimeout\":\"datamxdrgimsioff\",\"additionalColumns\":\"dataoonl\",\"sourceRetryCount\":\"datafundkhdmy\",\"sourceRetryWait\":\"datasbtqhhgn\",\"maxConcurrentConnections\":\"datacbjxgjudgbwr\",\"disableMetricsCollection\":\"dataiuzlfq\",\"\":{\"gsmlujunqwkjf\":\"datahlzljqcm\"}}") - .toObject(TabularSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularSource model = new TabularSource().withSourceRetryCount("datafundkhdmy") - .withSourceRetryWait("datasbtqhhgn") - .withMaxConcurrentConnections("datacbjxgjudgbwr") - .withDisableMetricsCollection("dataiuzlfq") - .withQueryTimeout("datamxdrgimsioff") - .withAdditionalColumns("dataoonl"); - model = BinaryData.fromObject(model).toObject(TabularSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.java deleted file mode 100644 index 98a06e41650c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TabularTranslator; -import com.azure.resourcemanager.datafactory.models.TypeConversionSettings; - -public final class TabularTranslatorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TabularTranslator model = BinaryData.fromString( - "{\"type\":\"TabularTranslator\",\"columnMappings\":\"datapngyqlzozmbapj\",\"schemaMapping\":\"datazabl\",\"collectionReference\":\"datantjlzkymcgtbpb\",\"mapComplexValuesToString\":\"datagf\",\"mappings\":\"dataqwlvsefvkxxd\",\"typeConversion\":\"databnqmhrw\",\"typeConversionSettings\":{\"allowDataTruncation\":\"dataxwgrflqbugxudsmd\",\"treatBooleanAsNumber\":\"dataqrkstj\",\"dateTimeFormat\":\"datadasomxwsflylols\",\"dateTimeOffsetFormat\":\"dataiczwikglmcgyzz\",\"timeSpanFormat\":\"datadjx\",\"culture\":\"databjxkarxvguzvtw\"},\"\":{\"hd\":\"dataxoqnvi\",\"odnntoloezptngr\":\"dataolnxwdpp\",\"xacxcac\":\"datazvi\",\"u\":\"datacdkomr\"}}") - .toObject(TabularTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularTranslator model = new TabularTranslator().withColumnMappings("datapngyqlzozmbapj") - .withSchemaMapping("datazabl") - .withCollectionReference("datantjlzkymcgtbpb") - .withMapComplexValuesToString("datagf") - .withMappings("dataqwlvsefvkxxd") - .withTypeConversion("databnqmhrw") - .withTypeConversionSettings(new TypeConversionSettings().withAllowDataTruncation("dataxwgrflqbugxudsmd") - .withTreatBooleanAsNumber("dataqrkstj") - .withDateTimeFormat("datadasomxwsflylols") - .withDateTimeOffsetFormat("dataiczwikglmcgyzz") - .withTimeSpanFormat("datadjx") - .withCulture("databjxkarxvguzvtw")); - model = BinaryData.fromObject(model).toObject(TabularTranslator.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.java deleted file mode 100644 index 2a49749b9535..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TarGZipReadSettings; - -public final class TarGZipReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TarGZipReadSettings model = BinaryData.fromString( - "{\"type\":\"TarGZipReadSettings\",\"preserveCompressionFileNameAsFolder\":\"databjrsdiufqxrl\",\"\":{\"idnewrvjgwnmxc\":\"dataosuzegmcmlzmfe\",\"orzozf\":\"datagowdavpqyhax\"}}") - .toObject(TarGZipReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarGZipReadSettings model - = new TarGZipReadSettings().withPreserveCompressionFileNameAsFolder("databjrsdiufqxrl"); - model = BinaryData.fromObject(model).toObject(TarGZipReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java deleted file mode 100644 index 5e03467e75aa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TarReadSettings; - -public final class TarReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TarReadSettings model = BinaryData.fromString( - "{\"type\":\"TarReadSettings\",\"preserveCompressionFileNameAsFolder\":\"dataqkyaghfvublszs\",\"\":{\"jpn\":\"datauxax\"}}") - .toObject(TarReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarReadSettings model = new TarReadSettings().withPreserveCompressionFileNameAsFolder("dataqkyaghfvublszs"); - model = BinaryData.fromObject(model).toObject(TarReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataPartitionSettingsTests.java deleted file mode 100644 index be9f0bd73fe4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataPartitionSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TeradataPartitionSettings; - -public final class TeradataPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataPartitionSettings model = BinaryData.fromString( - "{\"partitionColumnName\":\"datacntdwijx\",\"partitionUpperBound\":\"dataltowdwiffagfe\",\"partitionLowerBound\":\"datambpgcbltthsuzx\"}") - .toObject(TeradataPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataPartitionSettings model = new TeradataPartitionSettings().withPartitionColumnName("datacntdwijx") - .withPartitionUpperBound("dataltowdwiffagfe") - .withPartitionLowerBound("datambpgcbltthsuzx"); - model = BinaryData.fromObject(model).toObject(TeradataPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java deleted file mode 100644 index d1b58eda061a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TeradataPartitionSettings; -import com.azure.resourcemanager.datafactory.models.TeradataSource; - -public final class TeradataSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataSource model = BinaryData.fromString( - "{\"type\":\"TeradataSource\",\"query\":\"datahndcpiwcgcw\",\"partitionOption\":\"datahlpqxjxhdwjfx\",\"partitionSettings\":{\"partitionColumnName\":\"dataclka\",\"partitionUpperBound\":\"datauomga\",\"partitionLowerBound\":\"datac\"},\"queryTimeout\":\"datajjfmzv\",\"additionalColumns\":\"databflyzc\",\"sourceRetryCount\":\"datamlybsy\",\"sourceRetryWait\":\"dataon\",\"maxConcurrentConnections\":\"datavbfpu\",\"disableMetricsCollection\":\"dataobtdhum\",\"\":{\"jefclih\":\"datawckapoetdfzj\",\"lqzopvhwmtdbfrj\":\"datanawipdqozv\",\"uv\":\"dataq\",\"feagordbs\":\"dataps\"}}") - .toObject(TeradataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataSource model = new TeradataSource().withSourceRetryCount("datamlybsy") - .withSourceRetryWait("dataon") - .withMaxConcurrentConnections("datavbfpu") - .withDisableMetricsCollection("dataobtdhum") - .withQueryTimeout("datajjfmzv") - .withAdditionalColumns("databflyzc") - .withQuery("datahndcpiwcgcw") - .withPartitionOption("datahlpqxjxhdwjfx") - .withPartitionSettings(new TeradataPartitionSettings().withPartitionColumnName("dataclka") - .withPartitionUpperBound("datauomga") - .withPartitionLowerBound("datac")); - model = BinaryData.fromObject(model).toObject(TeradataSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java deleted file mode 100644 index 2c8d19a44dfd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.TeradataTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TeradataTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataTableDataset model = BinaryData.fromString( - "{\"type\":\"TeradataTable\",\"typeProperties\":{\"database\":\"datairgcjfai\",\"table\":\"datalpj\"},\"description\":\"krxifqn\",\"structure\":\"dataorxsqtzngxbsale\",\"schema\":\"datauxcmmhipbvskc\",\"linkedServiceName\":{\"referenceName\":\"tlynkwfsaangfg\",\"parameters\":{\"idyli\":\"datavm\"}},\"parameters\":{\"eonmzrjjaojp\":{\"type\":\"Bool\",\"defaultValue\":\"datanacgdnx\"}},\"annotations\":[\"datad\",\"datazigecwsad\"],\"folder\":{\"name\":\"udd\"},\"\":{\"vyigdeipnf\":\"dataqdmohheuyuunxmy\"}}") - .toObject(TeradataTableDataset.class); - Assertions.assertEquals("krxifqn", model.description()); - Assertions.assertEquals("tlynkwfsaangfg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("eonmzrjjaojp").type()); - Assertions.assertEquals("udd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDataset model = new TeradataTableDataset().withDescription("krxifqn") - .withStructure("dataorxsqtzngxbsale") - .withSchema("datauxcmmhipbvskc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tlynkwfsaangfg") - .withParameters(mapOf("idyli", "datavm"))) - .withParameters(mapOf("eonmzrjjaojp", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datanacgdnx"))) - .withAnnotations(Arrays.asList("datad", "datazigecwsad")) - .withFolder(new DatasetFolder().withName("udd")) - .withDatabase("datairgcjfai") - .withTable("datalpj"); - model = BinaryData.fromObject(model).toObject(TeradataTableDataset.class); - Assertions.assertEquals("krxifqn", model.description()); - Assertions.assertEquals("tlynkwfsaangfg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("eonmzrjjaojp").type()); - Assertions.assertEquals("udd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java deleted file mode 100644 index 6414225df9fe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TeradataTableDatasetTypeProperties; - -public final class TeradataTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataTableDatasetTypeProperties model - = BinaryData.fromString("{\"database\":\"dataejwli\",\"table\":\"datacndjzwhajo\"}") - .toObject(TeradataTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDatasetTypeProperties model - = new TeradataTableDatasetTypeProperties().withDatabase("dataejwli").withTable("datacndjzwhajo"); - model = BinaryData.fromObject(model).toObject(TeradataTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java deleted file mode 100644 index ef9ef753f122..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TextFormat; - -public final class TextFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TextFormat model = BinaryData.fromString( - "{\"type\":\"TextFormat\",\"columnDelimiter\":\"datamgsdaluyckhefrbh\",\"rowDelimiter\":\"datauerbgpxebjl\",\"escapeChar\":\"datacaytujraxdtpryj\",\"quoteChar\":\"datatnsewou\",\"nullValue\":\"datayms\",\"encodingName\":\"datayljurkeposehqqyl\",\"treatEmptyAsNull\":\"datactwjwdsdlzm\",\"skipLineCount\":\"dataerxxxoteehkhowgo\",\"firstRowAsHeader\":\"datavhxowpcbapnpxra\",\"serializer\":\"datawbmpspfeylqloc\",\"deserializer\":\"dataujexayglxrk\",\"\":{\"jfiuofpi\":\"datamzpaslav\",\"kyhydvikmf\":\"dataidzlvssqywjopa\"}}") - .toObject(TextFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TextFormat model = new TextFormat().withSerializer("datawbmpspfeylqloc") - .withDeserializer("dataujexayglxrk") - .withColumnDelimiter("datamgsdaluyckhefrbh") - .withRowDelimiter("datauerbgpxebjl") - .withEscapeChar("datacaytujraxdtpryj") - .withQuoteChar("datatnsewou") - .withNullValue("datayms") - .withEncodingName("datayljurkeposehqqyl") - .withTreatEmptyAsNull("datactwjwdsdlzm") - .withSkipLineCount("dataerxxxoteehkhowgo") - .withFirstRowAsHeader("datavhxowpcbapnpxra"); - model = BinaryData.fromObject(model).toObject(TextFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java deleted file mode 100644 index ecf946390c41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TransformationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Transformation model = BinaryData.fromString( - "{\"name\":\"i\",\"description\":\"cqibzj\",\"dataset\":{\"referenceName\":\"weebiphryv\",\"parameters\":{\"atjhdhzybspijhf\":\"dataqwoqs\",\"hsusmmor\":\"datazgdkkagvwu\",\"mriprlk\":\"datamzhwilzzhni\",\"cxiv\":\"dataneyttl\"}},\"linkedService\":{\"referenceName\":\"kutpu\",\"parameters\":{\"xynbpvzlqywa\":\"datawjfl\",\"njc\":\"datay\",\"u\":\"datahmocgjshg\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"wvixq\",\"datasetParameters\":\"datagljkybsj\",\"parameters\":{\"nrbctbhpjhxpcvrd\":\"datarvtz\",\"it\":\"datay\"},\"\":{\"zjahwriuomz\":\"dataqady\"}}}") - .toObject(Transformation.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("cqibzj", model.description()); - Assertions.assertEquals("weebiphryv", model.dataset().referenceName()); - Assertions.assertEquals("kutpu", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("wvixq", model.flowlet().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Transformation model = new Transformation().withName("i") - .withDescription("cqibzj") - .withDataset(new DatasetReference().withReferenceName("weebiphryv") - .withParameters(mapOf("atjhdhzybspijhf", "dataqwoqs", "hsusmmor", "datazgdkkagvwu", "mriprlk", - "datamzhwilzzhni", "cxiv", "dataneyttl"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("kutpu") - .withParameters(mapOf("xynbpvzlqywa", "datawjfl", "njc", "datay", "u", "datahmocgjshg"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("wvixq") - .withDatasetParameters("datagljkybsj") - .withParameters(mapOf("nrbctbhpjhxpcvrd", "datarvtz", "it", "datay")) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(Transformation.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("cqibzj", model.description()); - Assertions.assertEquals("weebiphryv", model.dataset().referenceName()); - Assertions.assertEquals("kutpu", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("wvixq", model.flowlet().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java deleted file mode 100644 index 2470370b3f12..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerDependencyReference; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class TriggerDependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerDependencyReference model = BinaryData.fromString( - "{\"type\":\"TriggerDependencyReference\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"ilbsbhaq\"}}") - .toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("ilbsbhaq", model.referenceTrigger().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerDependencyReference model = new TriggerDependencyReference().withReferenceTrigger( - new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("ilbsbhaq")); - model = BinaryData.fromObject(model).toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("ilbsbhaq", model.referenceTrigger().referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java deleted file mode 100644 index 114269913375..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"Trigger\",\"description\":\"fcjnaeoisrvhmgor\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datascvwmzhwplef\"],\"\":{\"xtjjfzqlqhycav\":\"dataxilcbtgnhnzey\",\"knlrariaawiuagy\":\"datadggxdbeesmi\"}},\"name\":\"qfby\",\"type\":\"rfgi\",\"etag\":\"tcojocqwo\",\"id\":\"nzjvusfzldm\"}],\"nextLink\":\"uxylfsbtkadpy\"}") - .toObject(TriggerListResponse.class); - Assertions.assertEquals("nzjvusfzldm", model.value().get(0).id()); - Assertions.assertEquals("fcjnaeoisrvhmgor", model.value().get(0).properties().description()); - Assertions.assertEquals("uxylfsbtkadpy", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerListResponse model = new TriggerListResponse() - .withValue(Arrays.asList(new TriggerResourceInner().withId("nzjvusfzldm") - .withProperties(new Trigger().withDescription("fcjnaeoisrvhmgor") - .withAnnotations(Arrays.asList("datascvwmzhwplef")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped"))))) - .withNextLink("uxylfsbtkadpy"); - model = BinaryData.fromObject(model).toObject(TriggerListResponse.class); - Assertions.assertEquals("nzjvusfzldm", model.value().get(0).id()); - Assertions.assertEquals("fcjnaeoisrvhmgor", model.value().get(0).properties().description()); - Assertions.assertEquals("uxylfsbtkadpy", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java deleted file mode 100644 index aae31ad30643..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerPipelineReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerPipelineReference model = BinaryData.fromString( - "{\"pipelineReference\":{\"referenceName\":\"tnpdctuhspfefy\",\"name\":\"duyeuyl\"},\"parameters\":{\"h\":\"datamtybkcgsu\",\"fxexlfciatxtjrr\":\"datallnmwyn\",\"ajfoxc\":\"datakmdskjhhxd\",\"lxlhuavkrm\":\"datascv\"}}") - .toObject(TriggerPipelineReference.class); - Assertions.assertEquals("tnpdctuhspfefy", model.pipelineReference().referenceName()); - Assertions.assertEquals("duyeuyl", model.pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerPipelineReference model = new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("tnpdctuhspfefy").withName("duyeuyl")) - .withParameters(mapOf("h", "datamtybkcgsu", "fxexlfciatxtjrr", "datallnmwyn", "ajfoxc", "datakmdskjhhxd", - "lxlhuavkrm", "datascv")); - model = BinaryData.fromObject(model).toObject(TriggerPipelineReference.class); - Assertions.assertEquals("tnpdctuhspfefy", model.pipelineReference().referenceName()); - Assertions.assertEquals("duyeuyl", model.pipelineReference().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java deleted file mode 100644 index 9adf76a003d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class TriggerReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerReference model = BinaryData.fromString("{\"type\":\"TriggerReference\",\"referenceName\":\"behrholj\"}") - .toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("behrholj", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerReference model - = new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("behrholj"); - model = BinaryData.fromObject(model).toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("behrholj", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java deleted file mode 100644 index d59370c3b9dc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.Trigger; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Trigger\",\"description\":\"wn\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datau\",\"datarj\"],\"\":{\"foj\":\"dataojcmisofieyp\"}},\"name\":\"dh\",\"type\":\"plcplcwkhi\",\"etag\":\"hlhzdsqtzbsrgno\",\"id\":\"jhf\"}") - .toObject(TriggerResourceInner.class); - Assertions.assertEquals("jhf", model.id()); - Assertions.assertEquals("wn", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerResourceInner model = new TriggerResourceInner().withId("jhf") - .withProperties(new Trigger().withDescription("wn") - .withAnnotations(Arrays.asList("datau", "datarj")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped"))); - model = BinaryData.fromObject(model).toObject(TriggerResourceInner.class); - Assertions.assertEquals("jhf", model.id()); - Assertions.assertEquals("wn", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java deleted file mode 100644 index 804af115424f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.TriggerRun; -import java.util.HashMap; -import java.util.Map; - -public final class TriggerRunTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerRun model = BinaryData.fromString( - "{\"triggerRunId\":\"zddrt\",\"triggerName\":\"doj\",\"triggerType\":\"xv\",\"triggerRunTimestamp\":\"2021-02-28T00:16:23Z\",\"status\":\"Succeeded\",\"message\":\"eesvecu\",\"properties\":{\"awddjibab\":\"xtxsuwprtujw\",\"tvtzeexavoxtfg\":\"vit\"},\"triggeredPipelines\":{\"pypqtgsfj\":\"dmdqb\"},\"runDimension\":{\"d\":\"slhhxudbxv\"},\"dependencyStatus\":{\"gzrcxfailcfxwmdb\":\"datasirudhzmmesckdlp\",\"lnacgcc\":\"dataxdfgsftufqobr\"},\"\":{\"lj\":\"datahxkizvytnrzv\"}}") - .toObject(TriggerRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerRun model = new TriggerRun() - .withAdditionalProperties(mapOf("triggerRunId", "zddrt", "triggerName", "doj", "runDimension", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"d\":\"slhhxudbxv\"}", Object.class, SerializerEncoding.JSON), - "dependencyStatus", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"gzrcxfailcfxwmdb\":\"datasirudhzmmesckdlp\",\"lnacgcc\":\"dataxdfgsftufqobr\"}", - Object.class, SerializerEncoding.JSON), - "triggeredPipelines", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"pypqtgsfj\":\"dmdqb\"}", Object.class, SerializerEncoding.JSON), - "triggerType", "xv", "triggerRunTimestamp", "2021-02-28T00:16:23Z", "message", "eesvecu", "properties", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"awddjibab\":\"xtxsuwprtujw\",\"tvtzeexavoxtfg\":\"vit\"}", Object.class, - SerializerEncoding.JSON), - "status", "Succeeded")); - model = BinaryData.fromObject(model).toObject(TriggerRun.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java deleted file mode 100644 index 5d65e68bfaba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggerRunsCancelWithResponseMockTests { - @Test - public void testCancelWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.triggerRuns() - .cancelWithResponse("oexughztrmtimt", "auylqpzskng", "cbldpeforxa", "pmzkdisrgykrcj", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.java deleted file mode 100644 index b34eaa39685e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggerRunsRerunWithResponseMockTests { - @Test - public void testRerunWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.triggerRuns() - .rerunWithResponse("elakvhgefv", "chyvbyagqip", "bq", "tcibbgijkwzjlki", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java deleted file mode 100644 index b03bd1d8d1e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; - -public final class TriggerSubscriptionOperationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerSubscriptionOperationStatusInner model - = BinaryData.fromString("{\"triggerName\":\"axhnfh\",\"status\":\"Enabled\"}") - .toObject(TriggerSubscriptionOperationStatusInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerSubscriptionOperationStatusInner model = new TriggerSubscriptionOperationStatusInner(); - model = BinaryData.fromObject(model).toObject(TriggerSubscriptionOperationStatusInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java deleted file mode 100644 index ce74ac195fdd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Trigger; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Trigger model = BinaryData.fromString( - "{\"type\":\"Trigger\",\"description\":\"vecactx\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datayowc\"],\"\":{\"zmpjwyiv\":\"dataovekqvgqouwi\",\"cvhrfsp\":\"dataikf\",\"kvyklxubyjaffmm\":\"datauagrttikteusqc\"}}") - .toObject(Trigger.class); - Assertions.assertEquals("vecactx", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Trigger model = new Trigger().withDescription("vecactx") - .withAnnotations(Arrays.asList("datayowc")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped")); - model = BinaryData.fromObject(model).toObject(Trigger.class); - Assertions.assertEquals("vecactx", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 34a8316e10eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Trigger\",\"description\":\"gpt\",\"runtimeState\":\"Started\",\"annotations\":[\"datacrtpz\"],\"\":{\"hbf\":\"datahwbzrbqpzgsr\",\"nvwaxmeyjimf\":\"dataffytw\",\"vu\":\"datamhc\",\"vtypvwfllrie\":\"datawzajdxmaimwuf\"}},\"name\":\"xbcgnphen\",\"type\":\"whk\",\"etag\":\"xohqvqpwzoqtvm\",\"id\":\"l\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerResource response = manager.triggers() - .define("kjaqlszlymyqpw") - .withExistingFactory("sbygm", "nxeyfkrcmxtbwolz") - .withProperties(new Trigger().withDescription("uwqmi") - .withAnnotations(Arrays.asList("datazmhcvrfqqmbuvt", "datawrmcym")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Disabled"))) - .withIfMatch("vlfffymrzoupip") - .create(); - - Assertions.assertEquals("l", response.id()); - Assertions.assertEquals("gpt", response.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteWithResponseMockTests.java deleted file mode 100644 index c5749af026de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteWithResponseMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.triggers().deleteWithResponse("g", "o", "bhfrg", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java deleted file mode 100644 index fe95661fa0b2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersGetEventSubscriptionStatusWithResponseMockTests { - @Test - public void testGetEventSubscriptionStatusWithResponse() throws Exception { - String responseStr = "{\"triggerName\":\"tannmjpgzw\",\"status\":\"Provisioning\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerSubscriptionOperationStatus response = manager.triggers() - .getEventSubscriptionStatusWithResponse("alhwbypvpds", "ycjuxabpuphg", "gmggkkjciz", - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.java deleted file mode 100644 index ee4c001d9058..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Trigger\",\"description\":\"xdnckgdcszz\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datazle\",\"dataz\"],\"\":{\"seft\":\"dataeqmfzyhikhn\",\"ax\":\"datajzqfpfkdybe\",\"zcadoqijfll\":\"datathppjxtobeq\",\"wvg\":\"datamuzeolcgqjtvpalk\"}},\"name\":\"utdswjtuqw\",\"type\":\"pauiccjaea\",\"etag\":\"ebqhbbqodyv\",\"id\":\"coiaaagvaecwwd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerResource response = manager.triggers() - .getWithResponse("klnrzoafxoyddush", "yjhhynlmxzdwpdw", "noukyz", "yeghmf", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("coiaaagvaecwwd", response.id()); - Assertions.assertEquals("xdnckgdcszz", response.properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactoryMockTests.java deleted file mode 100644 index 3fa48c35e2be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactoryMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"Trigger\",\"description\":\"klxnbbkbjnnzqzu\",\"runtimeState\":\"Started\",\"annotations\":[\"datavlacll\"],\"\":{\"ielyhow\":\"dataksguccotgqge\",\"bdcheydcts\":\"datanzwhypjpypalptjp\"}},\"name\":\"wqsszd\",\"type\":\"kgbzmcprtanagehb\",\"etag\":\"wkaatjssebydus\",\"id\":\"ilp\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.triggers().listByFactory("rrixkobmrrnkdmn", "qhkju", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ilp", response.iterator().next().id()); - Assertions.assertEquals("klxnbbkbjnnzqzu", response.iterator().next().properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStartMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStartMockTests.java deleted file mode 100644 index 9cf541e5d438..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStartMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersStartMockTests { - @Test - public void testStart() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.triggers().start("vardbrdr", "jakezorhjh", "zqhbuuldztvumvx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStopMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStopMockTests.java deleted file mode 100644 index c63026137c0f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStopMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersStopMockTests { - @Test - public void testStop() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.triggers().stop("rxgaiddgd", "khiqwuwxrcydmky", "ojc", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsMockTests.java deleted file mode 100644 index 746307565a62..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersSubscribeToEventsMockTests { - @Test - public void testSubscribeToEvents() throws Exception { - String responseStr = "{\"triggerName\":\"qwqujpug\",\"status\":\"Provisioning\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerSubscriptionOperationStatus response - = manager.triggers().subscribeToEvents("p", "yfhskrfevwcxzx", "gfxz", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsMockTests.java deleted file mode 100644 index ef168cba9a7f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersUnsubscribeFromEventsMockTests { - @Test - public void testUnsubscribeFromEvents() throws Exception { - String responseStr = "{\"triggerName\":\"lyvzsk\",\"status\":\"Provisioning\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerSubscriptionOperationStatus response = manager.triggers() - .unsubscribeFromEvents("pzshgsidkz", "parpsrjsghuokjwv", "acwdukhzu", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java deleted file mode 100644 index 33c18f0c1c5c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import com.azure.resourcemanager.datafactory.models.TumblingWindowTriggerDependencyReference; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerDependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTriggerDependencyReference model = BinaryData.fromString( - "{\"type\":\"TumblingWindowTriggerDependencyReference\",\"offset\":\"cw\",\"size\":\"g\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"wwu\"}}") - .toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("wwu", model.referenceTrigger().referenceName()); - Assertions.assertEquals("cw", model.offset()); - Assertions.assertEquals("g", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerDependencyReference model = new TumblingWindowTriggerDependencyReference() - .withReferenceTrigger( - new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("wwu")) - .withOffset("cw") - .withSize("g"); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("wwu", model.referenceTrigger().referenceName()); - Assertions.assertEquals("cw", model.offset()); - Assertions.assertEquals("g", model.size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.java deleted file mode 100644 index d01f7f224bce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DependencyReference; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import com.azure.resourcemanager.datafactory.models.TumblingWindowTrigger; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTrigger model = BinaryData.fromString( - "{\"type\":\"TumblingWindowTrigger\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"jov\",\"name\":\"heijmwajvuwa\"},\"parameters\":{\"twow\":\"datamdlpbkfsl\",\"bobgwvhdbie\":\"datawrnkuwgrtvy\"}},\"typeProperties\":{\"frequency\":\"Hour\",\"interval\":181282605,\"startTime\":\"2021-02-19T11:56:14Z\",\"endTime\":\"2021-11-19T15:00:37Z\",\"delay\":\"datacaschhfmidkd\",\"maxConcurrency\":1051348296,\"retryPolicy\":{\"count\":\"datatessvmdoxxcvug\",\"intervalInSeconds\":102399606},\"dependsOn\":[{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"}]},\"description\":\"uukhssret\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datazkc\"],\"\":{\"ogmcblwhzvnisinp\":\"dataqtdwk\",\"jajahngaczggfia\":\"datacwwpuka\",\"ozxotwra\":\"datamuptnhuybtmtokoh\"}}") - .toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("uukhssret", model.description()); - Assertions.assertEquals("jov", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("heijmwajvuwa", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.HOUR, model.frequency()); - Assertions.assertEquals(181282605, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T11:56:14Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-19T15:00:37Z"), model.endTime()); - Assertions.assertEquals(1051348296, model.maxConcurrency()); - Assertions.assertEquals(102399606, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTrigger model = new TumblingWindowTrigger().withDescription("uukhssret") - .withAnnotations(Arrays.asList("datazkc")) - .withPipeline(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("jov").withName("heijmwajvuwa")) - .withParameters(mapOf("twow", "datamdlpbkfsl", "bobgwvhdbie", "datawrnkuwgrtvy"))) - .withFrequency(TumblingWindowFrequency.HOUR) - .withInterval(181282605) - .withStartTime(OffsetDateTime.parse("2021-02-19T11:56:14Z")) - .withEndTime(OffsetDateTime.parse("2021-11-19T15:00:37Z")) - .withDelay("datacaschhfmidkd") - .withMaxConcurrency(1051348296) - .withRetryPolicy(new RetryPolicy().withCount("datatessvmdoxxcvug").withIntervalInSeconds(102399606)) - .withDependsOn(Arrays.asList(new DependencyReference(), new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("uukhssret", model.description()); - Assertions.assertEquals("jov", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("heijmwajvuwa", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.HOUR, model.frequency()); - Assertions.assertEquals(181282605, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T11:56:14Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-19T15:00:37Z"), model.endTime()); - Assertions.assertEquals(1051348296, model.maxConcurrency()); - Assertions.assertEquals(102399606, model.retryPolicy().intervalInSeconds()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java deleted file mode 100644 index eb53dbb66b7d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TumblingWindowTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.DependencyReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTriggerTypeProperties model = BinaryData.fromString( - "{\"frequency\":\"Month\",\"interval\":1778345999,\"startTime\":\"2020-12-31T14:40:01Z\",\"endTime\":\"2021-05-06T17:10:59Z\",\"delay\":\"datarellwfgyabglsarf\",\"maxConcurrency\":1381920773,\"retryPolicy\":{\"count\":\"datahcxudromhhsum\",\"intervalInSeconds\":367806},\"dependsOn\":[{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"}]}") - .toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(1778345999, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-31T14:40:01Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T17:10:59Z"), model.endTime()); - Assertions.assertEquals(1381920773, model.maxConcurrency()); - Assertions.assertEquals(367806, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerTypeProperties model - = new TumblingWindowTriggerTypeProperties().withFrequency(TumblingWindowFrequency.MONTH) - .withInterval(1778345999) - .withStartTime(OffsetDateTime.parse("2020-12-31T14:40:01Z")) - .withEndTime(OffsetDateTime.parse("2021-05-06T17:10:59Z")) - .withDelay("datarellwfgyabglsarf") - .withMaxConcurrency(1381920773) - .withRetryPolicy(new RetryPolicy().withCount("datahcxudromhhsum").withIntervalInSeconds(367806)) - .withDependsOn(Arrays.asList(new DependencyReference(), new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(1778345999, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-31T14:40:01Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T17:10:59Z"), model.endTime()); - Assertions.assertEquals(1381920773, model.maxConcurrency()); - Assertions.assertEquals(367806, model.retryPolicy().intervalInSeconds()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.java deleted file mode 100644 index c6ed3df2d684..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TypeConversionSettings; - -public final class TypeConversionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TypeConversionSettings model = BinaryData.fromString( - "{\"allowDataTruncation\":\"datat\",\"treatBooleanAsNumber\":\"datapdqwywjnxdyskyr\",\"dateTimeFormat\":\"dataijxml\",\"dateTimeOffsetFormat\":\"dataymfxjsuwmbdt\",\"timeSpanFormat\":\"datatr\",\"culture\":\"dataybpr\"}") - .toObject(TypeConversionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TypeConversionSettings model = new TypeConversionSettings().withAllowDataTruncation("datat") - .withTreatBooleanAsNumber("datapdqwywjnxdyskyr") - .withDateTimeFormat("dataijxml") - .withDateTimeOffsetFormat("dataymfxjsuwmbdt") - .withTimeSpanFormat("datatr") - .withCulture("dataybpr"); - model = BinaryData.fromObject(model).toObject(TypeConversionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java deleted file mode 100644 index 0d652050a47e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UntilActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class UntilActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UntilActivity model = BinaryData.fromString( - "{\"type\":\"Until\",\"typeProperties\":{\"expression\":{\"value\":\"fppwobhkqgb\"},\"timeout\":\"datazoixutiz\",\"activities\":[{\"type\":\"Activity\",\"name\":\"cnknkukem\",\"description\":\"svajbg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ankzyqi\",\"dependencyConditions\":[\"Completed\"],\"\":{\"oqrutbfkynwwmlzp\":\"datakehtrgybfumo\",\"n\":\"datarzazkaljuvm\",\"bfntgsju\":\"datalbzloae\"}},{\"activity\":\"gueggph\",\"dependencyConditions\":[\"Failed\"],\"\":{\"vafhriua\":\"datapgvw\",\"lafv\":\"dataqgkvkoynjucmyj\",\"qenbgymgjneoh\":\"datandkvbc\",\"bhg\":\"datakis\"}}],\"userProperties\":[{\"name\":\"jodskqyjsdxgefk\",\"value\":\"datarfih\"},{\"name\":\"tor\",\"value\":\"datachfuwfrqagp\"}],\"\":{\"dgpxdjkwyzqnl\":\"dataiun\",\"kaciq\":\"datazymiv\",\"gzrg\":\"dataagfkksywd\"}},{\"type\":\"Activity\",\"name\":\"flpuxyakofrsoes\",\"description\":\"ttkqcpclootceit\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hidlscdoweorniy\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\"],\"\":{\"sqcbxkww\":\"dataojbxkodcopirg\"}},{\"activity\":\"q\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Failed\"],\"\":{\"hyqj\":\"datafgjztzh\",\"rbirv\":\"dataga\"}},{\"activity\":\"xubbnb\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Skipped\"],\"\":{\"rzchkww\":\"dataauub\",\"lujwcyvpxbqujno\":\"databxjpytkakhvao\",\"gwzvdqpxicpozzhf\":\"datafxirjcc\"}},{\"activity\":\"uraqpcspsbrd\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\"],\"\":{\"udqgf\":\"dataeasbvzufkzuzz\"}}],\"userProperties\":[{\"name\":\"mfqtnqaqltoxhf\",\"value\":\"datahawjovqtvbu\"},{\"name\":\"yqyfit\",\"value\":\"dataprbmmfqteox\"},{\"name\":\"ikdcjmbwrhpw\",\"value\":\"dataudegykzdspbjks\"}],\"\":{\"hjhivgera\":\"datar\"}},{\"type\":\"Activity\",\"name\":\"gxnafojt\",\"description\":\"qcxrvwduspxij\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"cgyvzpvz\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"poywymtwh\":\"datajucfsupkqpgfyjwx\",\"x\":\"datadgbg\",\"gia\":\"datazrzhkhmw\"}},{\"activity\":\"rftpgqxnyoakd\",\"dependencyConditions\":[\"Completed\",\"Succeeded\"],\"\":{\"fejtdboac\":\"datasujezgzsekbcedb\",\"ypykjorlrj\":\"datayacjypgbhf\",\"mibhkaqza\":\"datarzxa\"}},{\"activity\":\"jqslshceyhalbxr\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"rtcdavlri\":\"datafcoatsupaqzitho\",\"ezwkparj\":\"datamtke\",\"ykeawrumhzg\":\"dataxirsvjozexxzkci\"}}],\"userProperties\":[{\"name\":\"blags\",\"value\":\"datahdubqha\"},{\"name\":\"xlbo\",\"value\":\"datawnkhiwqiq\"}],\"\":{\"nntp\":\"databorm\",\"zsfdohytk\":\"datacffv\",\"wpeaivbzrms\":\"dataquhdyzuehqmtt\",\"fqameccuqkoat\":\"dataeddwjimrzavci\"}}]},\"name\":\"i\",\"description\":\"diecrbcv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"abddjbz\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\"],\"\":{\"x\":\"dataluqpzwlbc\",\"oihjnknfvpa\":\"databa\",\"anxuiiprfij\":\"dataraeeiboqc\",\"xs\":\"datailose\"}},{\"activity\":\"hfjzxeswzgrelg\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"jo\":\"dataeolxbgg\",\"atglar\":\"datamtwehvuttn\"}}],\"userProperties\":[{\"name\":\"guarkrfa\",\"value\":\"dataffeahypjqagce\"},{\"name\":\"juclffpvdjfws\",\"value\":\"databplbtmwae\"},{\"name\":\"ybrhn\",\"value\":\"datacxh\"}],\"\":{\"cmwix\":\"dataabnpdnbtymhheu\"}}") - .toObject(UntilActivity.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("diecrbcv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("abddjbz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("guarkrfa", model.userProperties().get(0).name()); - Assertions.assertEquals("fppwobhkqgb", model.expression().value()); - Assertions.assertEquals("cnknkukem", model.activities().get(0).name()); - Assertions.assertEquals("svajbg", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ankzyqi", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jodskqyjsdxgefk", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UntilActivity model = new UntilActivity().withName("i") - .withDescription("diecrbcv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("abddjbz") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hfjzxeswzgrelg") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("guarkrfa").withValue("dataffeahypjqagce"), - new UserProperty().withName("juclffpvdjfws").withValue("databplbtmwae"), - new UserProperty().withName("ybrhn").withValue("datacxh"))) - .withExpression(new Expression().withValue("fppwobhkqgb")) - .withTimeout("datazoixutiz") - .withActivities(Arrays.asList( - new Activity().withName("cnknkukem") - .withDescription("svajbg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ankzyqi") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gueggph") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("jodskqyjsdxgefk").withValue("datarfih"), - new UserProperty().withName("tor").withValue("datachfuwfrqagp"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("flpuxyakofrsoes") - .withDescription("ttkqcpclootceit") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hidlscdoweorniy") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("q") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xubbnb") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("uraqpcspsbrd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("mfqtnqaqltoxhf").withValue("datahawjovqtvbu"), - new UserProperty().withName("yqyfit").withValue("dataprbmmfqteox"), - new UserProperty().withName("ikdcjmbwrhpw").withValue("dataudegykzdspbjks"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("gxnafojt") - .withDescription("qcxrvwduspxij") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cgyvzpvz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rftpgqxnyoakd") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jqslshceyhalbxr") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("blags").withValue("datahdubqha"), - new UserProperty().withName("xlbo").withValue("datawnkhiwqiq"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(UntilActivity.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("diecrbcv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("abddjbz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("guarkrfa", model.userProperties().get(0).name()); - Assertions.assertEquals("fppwobhkqgb", model.expression().value()); - Assertions.assertEquals("cnknkukem", model.activities().get(0).name()); - Assertions.assertEquals("svajbg", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ankzyqi", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jodskqyjsdxgefk", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java deleted file mode 100644 index e4e85c224c2b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.UntilActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class UntilActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UntilActivityTypeProperties model = BinaryData.fromString( - "{\"expression\":{\"value\":\"rvrpujb\"},\"timeout\":\"dataviys\",\"activities\":[{\"type\":\"Activity\",\"name\":\"eihmv\",\"description\":\"pqfawwoxqj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"dwvvsnynvg\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\",\"Failed\"],\"\":{\"ddzkkik\":\"datandekpzgdr\",\"vxyeqdinwqse\":\"dataot\",\"xmnsrejq\":\"datatqoxethrxlpgrvtz\"}}],\"userProperties\":[{\"name\":\"hesmhoviea\",\"value\":\"databkdaomx\"}],\"\":{\"xtxhxfsknmrce\":\"databen\",\"woflfniislohftm\":\"datadfbdxwywdyqpkw\"}},{\"type\":\"Activity\",\"name\":\"m\",\"description\":\"x\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"tsgopmatubt\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Succeeded\"],\"\":{\"nqopoelqfsfxth\":\"datar\",\"kqkvfthbnikoybrs\":\"datadzeu\",\"wqmtzhiku\":\"dataf\",\"oxmzvlofzdnvsr\":\"dataymis\"}},{\"activity\":\"l\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"xtxgrh\":\"dataafcxpvxrqegkw\",\"sb\":\"dataqbstodeu\"}},{\"activity\":\"dcoqm\",\"dependencyConditions\":[\"Failed\",\"Skipped\"],\"\":{\"rjrx\":\"datawkpvsij\"}},{\"activity\":\"cnfyknx\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\"],\"\":{\"ehkqmlldeksgejmp\":\"dataq\"}}],\"userProperties\":[{\"name\":\"jacnbep\",\"value\":\"dataqhpkaamoovrb\"},{\"name\":\"buoqbclhnlqxuxr\",\"value\":\"datagxvkzhqpkckwaaf\"},{\"name\":\"yscjawqhpijur\",\"value\":\"dataoihxibji\"},{\"name\":\"m\",\"value\":\"dataj\"}],\"\":{\"nbluxomzg\":\"datafurdjjzsijmsaa\",\"wuiopgyunf\":\"datajmnvukovxfkxnevc\"}},{\"type\":\"Activity\",\"name\":\"oco\",\"description\":\"gdkikpqmdiihm\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"o\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Succeeded\",\"Completed\"],\"\":{\"nuys\":\"datacx\",\"jevu\":\"datavxaymxldorqp\",\"vfvirgbguewtcq\":\"datayzglssogze\"}},{\"activity\":\"eoma\",\"dependencyConditions\":[\"Succeeded\",\"Completed\"],\"\":{\"byviykwrffxorwx\":\"datauwepojm\",\"oyqlcvtdyuozmtsj\":\"datacxpzje\"}},{\"activity\":\"npuquyatvsnkrxh\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\",\"Skipped\"],\"\":{\"tjzid\":\"datagrzlrnuyhl\",\"nh\":\"datawzpauwhfh\"}},{\"activity\":\"lojca\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"qlghrcctvlnnkvdr\":\"datawgsyi\",\"bqzxqid\":\"dataekxvlejh\",\"wrwjbanteeu\":\"datau\",\"rrqjioltdlppyk\":\"dataricaikfvjktfpoba\"}}],\"userProperties\":[{\"name\":\"srvghvfo\",\"value\":\"datarqmcgeqy\"}],\"\":{\"bviym\":\"datadnwtuc\"}}]}") - .toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("rvrpujb", model.expression().value()); - Assertions.assertEquals("eihmv", model.activities().get(0).name()); - Assertions.assertEquals("pqfawwoxqj", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dwvvsnynvg", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hesmhoviea", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UntilActivityTypeProperties model - = new UntilActivityTypeProperties().withExpression(new Expression().withValue("rvrpujb")) - .withTimeout("dataviys") - .withActivities(Arrays.asList( - new Activity().withName("eihmv") - .withDescription("pqfawwoxqj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("dwvvsnynvg") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hesmhoviea").withValue("databkdaomx"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("m") - .withDescription("x") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("tsgopmatubt") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("l") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dcoqm") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("cnfyknx") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("jacnbep").withValue("dataqhpkaamoovrb"), - new UserProperty().withName("buoqbclhnlqxuxr").withValue("datagxvkzhqpkckwaaf"), - new UserProperty() - .withName("yscjawqhpijur") - .withValue("dataoihxibji"), - new UserProperty().withName("m").withValue("dataj"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("oco") - .withDescription("gdkikpqmdiihm") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("o") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("eoma") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("npuquyatvsnkrxh") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lojca") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("srvghvfo").withValue("datarqmcgeqy"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("rvrpujb", model.expression().value()); - Assertions.assertEquals("eihmv", model.activities().get(0).name()); - Assertions.assertEquals("pqfawwoxqj", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dwvvsnynvg", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hesmhoviea", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java deleted file mode 100644 index 834e5594e041..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeNodeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model = BinaryData.fromString("{\"concurrentJobsLimit\":712721872}") - .toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(712721872, model.concurrentJobsLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model - = new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(712721872); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(712721872, model.concurrentJobsLimit()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java deleted file mode 100644 index beb669b3500a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeRequest model - = BinaryData.fromString("{\"autoUpdate\":\"On\",\"updateDelayOffset\":\"cwscwsvlx\"}") - .toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("cwscwsvlx", model.updateDelayOffset()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeRequest model - = new UpdateIntegrationRuntimeRequest().withAutoUpdate(IntegrationRuntimeAutoUpdate.ON) - .withUpdateDelayOffset("cwscwsvlx"); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("cwscwsvlx", model.updateDelayOffset()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java deleted file mode 100644 index efcb128294b1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; -import org.junit.jupiter.api.Assertions; - -public final class UserAccessPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAccessPolicy model = BinaryData.fromString( - "{\"permissions\":\"eputtmrywnuzoqf\",\"accessResourcePath\":\"yqzrnkcqvyxlw\",\"profileName\":\"lsicohoqqnwv\",\"startTime\":\"yav\",\"expireTime\":\"heun\"}") - .toObject(UserAccessPolicy.class); - Assertions.assertEquals("eputtmrywnuzoqf", model.permissions()); - Assertions.assertEquals("yqzrnkcqvyxlw", model.accessResourcePath()); - Assertions.assertEquals("lsicohoqqnwv", model.profileName()); - Assertions.assertEquals("yav", model.startTime()); - Assertions.assertEquals("heun", model.expireTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAccessPolicy model = new UserAccessPolicy().withPermissions("eputtmrywnuzoqf") - .withAccessResourcePath("yqzrnkcqvyxlw") - .withProfileName("lsicohoqqnwv") - .withStartTime("yav") - .withExpireTime("heun"); - model = BinaryData.fromObject(model).toObject(UserAccessPolicy.class); - Assertions.assertEquals("eputtmrywnuzoqf", model.permissions()); - Assertions.assertEquals("yqzrnkcqvyxlw", model.accessResourcePath()); - Assertions.assertEquals("lsicohoqqnwv", model.profileName()); - Assertions.assertEquals("yav", model.startTime()); - Assertions.assertEquals("heun", model.expireTime()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java deleted file mode 100644 index 32c7454a906c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import org.junit.jupiter.api.Assertions; - -public final class UserPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserProperty model - = BinaryData.fromString("{\"name\":\"orwmduvwpklv\",\"value\":\"dataw\"}").toObject(UserProperty.class); - Assertions.assertEquals("orwmduvwpklv", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserProperty model = new UserProperty().withName("orwmduvwpklv").withValue("dataw"); - model = BinaryData.fromObject(model).toObject(UserProperty.class); - Assertions.assertEquals("orwmduvwpklv", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java deleted file mode 100644 index 2e8db358e29a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.ValidationActivity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ValidationActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidationActivity model = BinaryData.fromString( - "{\"type\":\"Validation\",\"typeProperties\":{\"timeout\":\"datanq\",\"sleep\":\"datanvdorsgcvgkn\",\"minimumSize\":\"datapcne\",\"childItems\":\"dataplcbq\",\"dataset\":{\"referenceName\":\"bbzfcjmhp\",\"parameters\":{\"xymby\":\"datajpdyztqpszbt\",\"xotizvw\":\"datatdnraxe\",\"vjiyluvebco\":\"datahadcotf\"}}},\"name\":\"bzs\",\"description\":\"eyokwaxehxsw\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"fttfqlcxymcmog\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"wnicdgim\":\"datatsgsqoadsbace\",\"xzmxww\":\"databumpplbcarcyrftc\"}},{\"activity\":\"hdlrfyonnb\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Skipped\",\"Succeeded\"],\"\":{\"jcou\":\"datam\",\"zirkyxhqwoxm\":\"datazodolehchimzrc\"}},{\"activity\":\"obuanybfm\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Failed\",\"Succeeded\"],\"\":{\"kqufdmgmfyi\":\"datapfpsp\",\"rilhyfxmrq\":\"datarfkfgr\",\"eavawywofgccj\":\"dataicknygzdrdicwm\"}},{\"activity\":\"hjvvrrxclf\",\"dependencyConditions\":[\"Completed\"],\"\":{\"xxfkfthw\":\"dataqwyiuhhuftnuigx\",\"lstgsmeijgjbev\":\"dataossokafy\",\"wvdklgwoyw\":\"datasrcsyjx\"}}],\"userProperties\":[{\"name\":\"fmenbaj\",\"value\":\"dataeelbcsyaohizfysa\"}],\"\":{\"ddohxvcsoqxydcqp\":\"dataupft\",\"iwtkhcmoc\":\"dataywttdanu\",\"khmbks\":\"datagtmfug\",\"mhn\":\"datakkztexds\"}}") - .toObject(ValidationActivity.class); - Assertions.assertEquals("bzs", model.name()); - Assertions.assertEquals("eyokwaxehxsw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("fttfqlcxymcmog", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fmenbaj", model.userProperties().get(0).name()); - Assertions.assertEquals("bbzfcjmhp", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivity model = new ValidationActivity().withName("bzs") - .withDescription("eyokwaxehxsw") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("fttfqlcxymcmog") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hdlrfyonnb") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("obuanybfm") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hjvvrrxclf") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("fmenbaj").withValue("dataeelbcsyaohizfysa"))) - .withTimeout("datanq") - .withSleep("datanvdorsgcvgkn") - .withMinimumSize("datapcne") - .withChildItems("dataplcbq") - .withDataset(new DatasetReference().withReferenceName("bbzfcjmhp") - .withParameters( - mapOf("xymby", "datajpdyztqpszbt", "xotizvw", "datatdnraxe", "vjiyluvebco", "datahadcotf"))); - model = BinaryData.fromObject(model).toObject(ValidationActivity.class); - Assertions.assertEquals("bzs", model.name()); - Assertions.assertEquals("eyokwaxehxsw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("fttfqlcxymcmog", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fmenbaj", model.userProperties().get(0).name()); - Assertions.assertEquals("bbzfcjmhp", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTypePropertiesTests.java deleted file mode 100644 index 4127c3935eba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTypePropertiesTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ValidationActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ValidationActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidationActivityTypeProperties model = BinaryData.fromString( - "{\"timeout\":\"datardveccmqenfgba\",\"sleep\":\"datauythdenvkolfi\",\"minimumSize\":\"dataoxohjyvpfisyyd\",\"childItems\":\"datamc\",\"dataset\":{\"referenceName\":\"wvcfayllxvhqvmi\",\"parameters\":{\"ogpetsmyfgtedfm\":\"dataxeaq\",\"odky\":\"dataorut\"}}}") - .toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("wvcfayllxvhqvmi", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivityTypeProperties model - = new ValidationActivityTypeProperties().withTimeout("datardveccmqenfgba") - .withSleep("datauythdenvkolfi") - .withMinimumSize("dataoxohjyvpfisyyd") - .withChildItems("datamc") - .withDataset(new DatasetReference().withReferenceName("wvcfayllxvhqvmi") - .withParameters(mapOf("ogpetsmyfgtedfm", "dataxeaq", "odky", "dataorut"))); - model = BinaryData.fromObject(model).toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("wvcfayllxvhqvmi", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java deleted file mode 100644 index 822451945f5d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import org.junit.jupiter.api.Assertions; - -public final class VariableSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VariableSpecification model - = BinaryData.fromString("{\"type\":\"String\",\"defaultValue\":\"datadxpgpqchiszepnnb\"}") - .toObject(VariableSpecification.class); - Assertions.assertEquals(VariableType.STRING, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VariableSpecification model - = new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datadxpgpqchiszepnnb"); - model = BinaryData.fromObject(model).toObject(VariableSpecification.class); - Assertions.assertEquals(VariableType.STRING, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java deleted file mode 100644 index c3ca40e60294..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.VerticaDatasetTypeProperties; - -public final class VerticaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaDatasetTypeProperties model = BinaryData - .fromString( - "{\"tableName\":\"datafhlzzgaps\",\"table\":\"datawwblscrmzqu\",\"schema\":\"dataywkgouxnroy\"}") - .toObject(VerticaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaDatasetTypeProperties model = new VerticaDatasetTypeProperties().withTableName("datafhlzzgaps") - .withTable("datawwblscrmzqu") - .withSchema("dataywkgouxnroy"); - model = BinaryData.fromObject(model).toObject(VerticaDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java deleted file mode 100644 index 99e7f2ad133a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.VerticaSource; - -public final class VerticaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaSource model = BinaryData.fromString( - "{\"type\":\"VerticaSource\",\"query\":\"datafyb\",\"queryTimeout\":\"datadzvuhw\",\"additionalColumns\":\"datanazjvyiiezdnez\",\"sourceRetryCount\":\"dataqzd\",\"sourceRetryWait\":\"datamyutzttroymi\",\"maxConcurrentConnections\":\"datakuz\",\"disableMetricsCollection\":\"datacegyztzhcfuwm\",\"\":{\"pxb\":\"datazumklroogflhho\"}}") - .toObject(VerticaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaSource model = new VerticaSource().withSourceRetryCount("dataqzd") - .withSourceRetryWait("datamyutzttroymi") - .withMaxConcurrentConnections("datakuz") - .withDisableMetricsCollection("datacegyztzhcfuwm") - .withQueryTimeout("datadzvuhw") - .withAdditionalColumns("datanazjvyiiezdnez") - .withQuery("datafyb"); - model = BinaryData.fromObject(model).toObject(VerticaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java deleted file mode 100644 index 2287d0716e3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.VerticaTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VerticaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaTableDataset model = BinaryData.fromString( - "{\"type\":\"VerticaTable\",\"typeProperties\":{\"tableName\":\"datakuobclobnaqeizpl\",\"table\":\"datalyugpnn\",\"schema\":\"datajmkffeonmnvmu\"},\"description\":\"iqywlpxmliyt\",\"structure\":\"datagcrun\",\"schema\":\"datailxstekb\",\"linkedServiceName\":{\"referenceName\":\"rhyvs\",\"parameters\":{\"kltrvgioguoxc\":\"datariemorszffi\",\"gxgrggy\":\"datadqoxhdenmj\"}},\"parameters\":{\"xvvmrnjrdi\":{\"type\":\"Float\",\"defaultValue\":\"dataqinr\"},\"gcmpnc\":{\"type\":\"Bool\",\"defaultValue\":\"dataqswsychdcj\"}},\"annotations\":[\"datagbnoqnowvfxe\"],\"folder\":{\"name\":\"gwjekyqirvcpoln\"},\"\":{\"v\":\"datappdilb\"}}") - .toObject(VerticaTableDataset.class); - Assertions.assertEquals("iqywlpxmliyt", model.description()); - Assertions.assertEquals("rhyvs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("xvvmrnjrdi").type()); - Assertions.assertEquals("gwjekyqirvcpoln", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaTableDataset model = new VerticaTableDataset().withDescription("iqywlpxmliyt") - .withStructure("datagcrun") - .withSchema("datailxstekb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rhyvs") - .withParameters(mapOf("kltrvgioguoxc", "datariemorszffi", "gxgrggy", "datadqoxhdenmj"))) - .withParameters(mapOf("xvvmrnjrdi", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqinr"), "gcmpnc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqswsychdcj"))) - .withAnnotations(Arrays.asList("datagbnoqnowvfxe")) - .withFolder(new DatasetFolder().withName("gwjekyqirvcpoln")) - .withTableName("datakuobclobnaqeizpl") - .withTable("datalyugpnn") - .withSchemaTypePropertiesSchema("datajmkffeonmnvmu"); - model = BinaryData.fromObject(model).toObject(VerticaTableDataset.class); - Assertions.assertEquals("iqywlpxmliyt", model.description()); - Assertions.assertEquals("rhyvs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("xvvmrnjrdi").type()); - Assertions.assertEquals("gwjekyqirvcpoln", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java deleted file mode 100644 index 8fa17cf9ea4c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.WaitActivity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WaitActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WaitActivity model = BinaryData.fromString( - "{\"type\":\"Wait\",\"typeProperties\":{\"waitTimeInSeconds\":\"dataevitvbz\"},\"name\":\"hexlhlkp\",\"description\":\"dcrtvdcbzpyn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"dmgwxowaawe\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"cuvj\":\"datazfx\",\"oswgkbzrmeftg\":\"datapy\"}},{\"activity\":\"fuuu\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Completed\"],\"\":{\"eykvgfhu\":\"dataghnqe\",\"rytkmfhbpcr\":\"datahotzygqdcaims\",\"sn\":\"dataynunrajtbumaid\"}},{\"activity\":\"vyutcvumvgttjvc\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"gx\":\"datanj\",\"kdqqombiao\":\"dataxkcen\"}},{\"activity\":\"qwwoi\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\",\"Succeeded\"],\"\":{\"pnzqqtipkreanak\":\"datarsqtjhtqbhr\",\"gukf\":\"datagqfk\"}}],\"userProperties\":[{\"name\":\"winwaymrlvhlf\",\"value\":\"datariqendtyccn\"},{\"name\":\"hszgaub\",\"value\":\"databizjbwufjogswf\"},{\"name\":\"qeebpyp\",\"value\":\"datarvnveetaydh\"},{\"name\":\"gxy\",\"value\":\"dataobsxshjsra\"}],\"\":{\"rhoujkcpyerf\":\"datawfzyvxkrtgofp\",\"ijbolksehtyx\":\"datangt\"}}") - .toObject(WaitActivity.class); - Assertions.assertEquals("hexlhlkp", model.name()); - Assertions.assertEquals("dcrtvdcbzpyn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("dmgwxowaawe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("winwaymrlvhlf", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivity model = new WaitActivity().withName("hexlhlkp") - .withDescription("dcrtvdcbzpyn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("dmgwxowaawe") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fuuu") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vyutcvumvgttjvc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qwwoi") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("winwaymrlvhlf").withValue("datariqendtyccn"), - new UserProperty().withName("hszgaub").withValue("databizjbwufjogswf"), - new UserProperty().withName("qeebpyp").withValue("datarvnveetaydh"), - new UserProperty().withName("gxy").withValue("dataobsxshjsra"))) - .withWaitTimeInSeconds("dataevitvbz"); - model = BinaryData.fromObject(model).toObject(WaitActivity.class); - Assertions.assertEquals("hexlhlkp", model.name()); - Assertions.assertEquals("dcrtvdcbzpyn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("dmgwxowaawe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("winwaymrlvhlf", model.userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTypePropertiesTests.java deleted file mode 100644 index 36ae16697959..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.WaitActivityTypeProperties; - -public final class WaitActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WaitActivityTypeProperties model = BinaryData.fromString("{\"waitTimeInSeconds\":\"datagsurfnktxht\"}") - .toObject(WaitActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivityTypeProperties model = new WaitActivityTypeProperties().withWaitTimeInSeconds("datagsurfnktxht"); - model = BinaryData.fromObject(model).toObject(WaitActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSinkTests.java deleted file mode 100644 index 006cd96d257a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSinkTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandDefaultValue; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandSettings; -import com.azure.resourcemanager.datafactory.models.WarehouseSink; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WarehouseSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseSink model = BinaryData.fromString( - "{\"type\":\"WarehouseSink\",\"preCopyScript\":\"dataamshqvku\",\"allowCopyCommand\":\"datazvzqhvzjdsn\",\"copyCommandSettings\":{\"defaultValues\":[{\"columnName\":\"dataani\",\"defaultValue\":\"dataz\"}],\"additionalOptions\":{\"vwwvznp\":\"xaqugjalmzpfylq\"}},\"tableOption\":\"datacizropzgjleecffb\",\"writeBehavior\":\"datakvb\",\"writeBatchSize\":\"datastqwnpegoupdq\",\"writeBatchTimeout\":\"datalvd\",\"sinkRetryCount\":\"dataqcqlexobeekzy\",\"sinkRetryWait\":\"datapatwbbf\",\"maxConcurrentConnections\":\"dataflhnwohlc\",\"disableMetricsCollection\":\"datahfuydgdhitavga\",\"\":{\"zeebdefepwkhr\":\"datapzlcvibpd\",\"qvnlhsxea\":\"datazzwgbbozivfo\",\"km\":\"dataxsqquvvscb\",\"ibwuzvmorsyi\":\"datahdukprq\"}}") - .toObject(WarehouseSink.class); - Assertions.assertEquals("xaqugjalmzpfylq", model.copyCommandSettings().additionalOptions().get("vwwvznp")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseSink model = new WarehouseSink().withWriteBatchSize("datastqwnpegoupdq") - .withWriteBatchTimeout("datalvd") - .withSinkRetryCount("dataqcqlexobeekzy") - .withSinkRetryWait("datapatwbbf") - .withMaxConcurrentConnections("dataflhnwohlc") - .withDisableMetricsCollection("datahfuydgdhitavga") - .withPreCopyScript("dataamshqvku") - .withAllowCopyCommand("datazvzqhvzjdsn") - .withCopyCommandSettings(new DWCopyCommandSettings() - .withDefaultValues( - Arrays.asList(new DWCopyCommandDefaultValue().withColumnName("dataani").withDefaultValue("dataz"))) - .withAdditionalOptions(mapOf("vwwvznp", "xaqugjalmzpfylq"))) - .withTableOption("datacizropzgjleecffb") - .withWriteBehavior("datakvb"); - model = BinaryData.fromObject(model).toObject(WarehouseSink.class); - Assertions.assertEquals("xaqugjalmzpfylq", model.copyCommandSettings().additionalOptions().get("vwwvznp")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSourceTests.java deleted file mode 100644 index e1370f90726d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.WarehouseSource; - -public final class WarehouseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseSource model = BinaryData.fromString( - "{\"type\":\"WarehouseSource\",\"sqlReaderQuery\":\"dataophtkyzsgayng\",\"sqlReaderStoredProcedureName\":\"datawvcnv\",\"storedProcedureParameters\":\"dataqxqhysu\",\"isolationLevel\":\"datadnslroqxrvycjdn\",\"partitionOption\":\"datamggy\",\"partitionSettings\":{\"partitionColumnName\":\"datamsacbamtoqseam\",\"partitionUpperBound\":\"dataxdigkggzmylq\",\"partitionLowerBound\":\"dataeosxdsxil\"},\"queryTimeout\":\"dataiottdawgkaohhtt\",\"additionalColumns\":\"datahypidzjjjfcyskpn\",\"sourceRetryCount\":\"dataxoic\",\"sourceRetryWait\":\"datasmfvltbocqhv\",\"maxConcurrentConnections\":\"datam\",\"disableMetricsCollection\":\"datapvgri\",\"\":{\"fmfkuvybem\":\"datagrlgkoqbzrclarr\"}}") - .toObject(WarehouseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseSource model = new WarehouseSource().withSourceRetryCount("dataxoic") - .withSourceRetryWait("datasmfvltbocqhv") - .withMaxConcurrentConnections("datam") - .withDisableMetricsCollection("datapvgri") - .withQueryTimeout("dataiottdawgkaohhtt") - .withAdditionalColumns("datahypidzjjjfcyskpn") - .withSqlReaderQuery("dataophtkyzsgayng") - .withSqlReaderStoredProcedureName("datawvcnv") - .withStoredProcedureParameters("dataqxqhysu") - .withIsolationLevel("datadnslroqxrvycjdn") - .withPartitionOption("datamggy") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datamsacbamtoqseam") - .withPartitionUpperBound("dataxdigkggzmylq") - .withPartitionLowerBound("dataeosxdsxil")); - model = BinaryData.fromObject(model).toObject(WarehouseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.java deleted file mode 100644 index 0c8a634bf726..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WarehouseTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WarehouseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseTableDataset model = BinaryData.fromString( - "{\"type\":\"WarehouseTable\",\"typeProperties\":{\"schema\":\"datajpj\",\"table\":\"datajdtuodoc\"},\"description\":\"u\",\"structure\":\"datanyxpmqd\",\"schema\":\"dataniiontqikdipkxs\",\"linkedServiceName\":{\"referenceName\":\"kuzabrsoih\",\"parameters\":{\"oadoh\":\"datajdtacvsynssxylsu\",\"wlxqdsxip\":\"datajyiehkxgfuzqqnz\",\"wwgze\":\"datanlbyitfz\",\"joygyn\":\"datalzpiimxacrk\"}},\"parameters\":{\"lquarbruvqb\":{\"type\":\"Object\",\"defaultValue\":\"databbnu\"}},\"annotations\":[\"datawrmu\",\"datazpexzbhgjaj\"],\"folder\":{\"name\":\"koc\"},\"\":{\"vnatbgvlpgf\":\"datadzl\",\"akybepsihz\":\"datagen\",\"gl\":\"dataieoymp\",\"zlycxlubrukhqb\":\"datajsfgbyyts\"}}") - .toObject(WarehouseTableDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("kuzabrsoih", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lquarbruvqb").type()); - Assertions.assertEquals("koc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseTableDataset model = new WarehouseTableDataset().withDescription("u") - .withStructure("datanyxpmqd") - .withSchema("dataniiontqikdipkxs") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kuzabrsoih") - .withParameters(mapOf("oadoh", "datajdtacvsynssxylsu", "wlxqdsxip", "datajyiehkxgfuzqqnz", "wwgze", - "datanlbyitfz", "joygyn", "datalzpiimxacrk"))) - .withParameters(mapOf("lquarbruvqb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("databbnu"))) - .withAnnotations(Arrays.asList("datawrmu", "datazpexzbhgjaj")) - .withFolder(new DatasetFolder().withName("koc")) - .withSchemaTypePropertiesSchema("datajpj") - .withTable("datajdtuodoc"); - model = BinaryData.fromObject(model).toObject(WarehouseTableDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("kuzabrsoih", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lquarbruvqb").type()); - Assertions.assertEquals("koc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.java deleted file mode 100644 index c65e7a784da7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.WarehouseTableDatasetTypeProperties; - -public final class WarehouseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datayrbdkgqdmvvvjm\",\"table\":\"datajf\"}") - .toObject(WarehouseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseTableDatasetTypeProperties model - = new WarehouseTableDatasetTypeProperties().withSchema("datayrbdkgqdmvvvjm").withTable("datajf"); - model = BinaryData.fromObject(model).toObject(WarehouseTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java deleted file mode 100644 index a7460d18ce35..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebAnonymousAuthentication; - -public final class WebAnonymousAuthenticationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebAnonymousAuthentication model - = BinaryData.fromString("{\"authenticationType\":\"Anonymous\",\"url\":\"dataayooghj\"}") - .toObject(WebAnonymousAuthentication.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebAnonymousAuthentication model = new WebAnonymousAuthentication().withUrl("dataayooghj"); - model = BinaryData.fromObject(model).toObject(WebAnonymousAuthentication.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.java deleted file mode 100644 index 1efb9cf84150..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WebLinkedService; -import com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WebLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebLinkedService model = BinaryData.fromString( - "{\"type\":\"Web\",\"typeProperties\":{\"authenticationType\":\"WebLinkedServiceTypeProperties\",\"url\":\"datacg\"},\"version\":\"t\",\"connectVia\":{\"referenceName\":\"lpihtepasjeb\",\"parameters\":{\"nybnt\":\"datavfcdsijs\",\"ayxujzoxgakqt\":\"datax\"}},\"description\":\"jucazwedmahulxgc\",\"parameters\":{\"dvqan\":{\"type\":\"Array\",\"defaultValue\":\"datan\"}},\"annotations\":[\"dataxgohm\",\"datagblqyf\"],\"\":{\"zfgxwfxjiqp\":\"datafpqifs\"}}") - .toObject(WebLinkedService.class); - Assertions.assertEquals("t", model.version()); - Assertions.assertEquals("lpihtepasjeb", model.connectVia().referenceName()); - Assertions.assertEquals("jucazwedmahulxgc", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("dvqan").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedService model = new WebLinkedService().withVersion("t") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("lpihtepasjeb") - .withParameters(mapOf("nybnt", "datavfcdsijs", "ayxujzoxgakqt", "datax"))) - .withDescription("jucazwedmahulxgc") - .withParameters( - mapOf("dvqan", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datan"))) - .withAnnotations(Arrays.asList("dataxgohm", "datagblqyf")) - .withTypeProperties(new WebLinkedServiceTypeProperties().withUrl("datacg")); - model = BinaryData.fromObject(model).toObject(WebLinkedService.class); - Assertions.assertEquals("t", model.version()); - Assertions.assertEquals("lpihtepasjeb", model.connectVia().referenceName()); - Assertions.assertEquals("jucazwedmahulxgc", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("dvqan").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 23549c5d134f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties; - -public final class WebLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebLinkedServiceTypeProperties model - = BinaryData.fromString("{\"authenticationType\":\"WebLinkedServiceTypeProperties\",\"url\":\"datasohwn\"}") - .toObject(WebLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedServiceTypeProperties model = new WebLinkedServiceTypeProperties().withUrl("datasohwn"); - model = BinaryData.fromObject(model).toObject(WebLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java deleted file mode 100644 index dc02f6f401c7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebSource; - -public final class WebSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebSource model = BinaryData.fromString( - "{\"type\":\"WebSource\",\"additionalColumns\":\"datavifl\",\"sourceRetryCount\":\"datarknsc\",\"sourceRetryWait\":\"datah\",\"maxConcurrentConnections\":\"dataljsvpokvh\",\"disableMetricsCollection\":\"dataygffuzhnusrfffag\",\"\":{\"hgonovwu\":\"datafwzysvnvrfjgbxup\",\"gkouf\":\"dataearowrmesziubkyv\"}}") - .toObject(WebSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebSource model = new WebSource().withSourceRetryCount("datarknsc") - .withSourceRetryWait("datah") - .withMaxConcurrentConnections("dataljsvpokvh") - .withDisableMetricsCollection("dataygffuzhnusrfffag") - .withAdditionalColumns("datavifl"); - model = BinaryData.fromObject(model).toObject(WebSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java deleted file mode 100644 index f27048613fb8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WebTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WebTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebTableDataset model = BinaryData.fromString( - "{\"type\":\"WebTable\",\"typeProperties\":{\"index\":\"dataojzdvmsnao\",\"path\":\"datasxoxvim\"},\"description\":\"etqhdbitqsby\",\"structure\":\"datasgomrihumg\",\"schema\":\"datasdbvq\",\"linkedServiceName\":{\"referenceName\":\"gfygfkgxbdpb\",\"parameters\":{\"porrvkxtfctane\":\"datawbdpsesboynpy\",\"g\":\"datainqxdhnpjnezj\",\"uxvf\":\"datadumltpmrzwvwetqf\",\"lmr\":\"datauqhngqqxjbsoto\"}},\"parameters\":{\"xedhxbboceksra\":{\"type\":\"Object\",\"defaultValue\":\"datadeatwxpx\"}},\"annotations\":[\"datahlugfnlvvk\"],\"folder\":{\"name\":\"rxdqhvhauimn\"},\"\":{\"ivlqcwyzhndqkzst\":\"datakqpwqcnbn\",\"u\":\"datapzecdlceirtah\"}}") - .toObject(WebTableDataset.class); - Assertions.assertEquals("etqhdbitqsby", model.description()); - Assertions.assertEquals("gfygfkgxbdpb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xedhxbboceksra").type()); - Assertions.assertEquals("rxdqhvhauimn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDataset model = new WebTableDataset().withDescription("etqhdbitqsby") - .withStructure("datasgomrihumg") - .withSchema("datasdbvq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("gfygfkgxbdpb") - .withParameters(mapOf("porrvkxtfctane", "datawbdpsesboynpy", "g", "datainqxdhnpjnezj", "uxvf", - "datadumltpmrzwvwetqf", "lmr", "datauqhngqqxjbsoto"))) - .withParameters(mapOf("xedhxbboceksra", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datadeatwxpx"))) - .withAnnotations(Arrays.asList("datahlugfnlvvk")) - .withFolder(new DatasetFolder().withName("rxdqhvhauimn")) - .withIndex("dataojzdvmsnao") - .withPath("datasxoxvim"); - model = BinaryData.fromObject(model).toObject(WebTableDataset.class); - Assertions.assertEquals("etqhdbitqsby", model.description()); - Assertions.assertEquals("gfygfkgxbdpb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xedhxbboceksra").type()); - Assertions.assertEquals("rxdqhvhauimn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java deleted file mode 100644 index bd92abb75493..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.WebTableDatasetTypeProperties; - -public final class WebTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebTableDatasetTypeProperties model - = BinaryData.fromString("{\"index\":\"datacimtcaumviud\",\"path\":\"datasjqrmlujmtun\"}") - .toObject(WebTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDatasetTypeProperties model - = new WebTableDatasetTypeProperties().withIndex("datacimtcaumviud").withPath("datasjqrmlujmtun"); - model = BinaryData.fromObject(model).toObject(WebTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java deleted file mode 100644 index be4112a29067..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import com.azure.resourcemanager.datafactory.models.WranglingDataFlow; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WranglingDataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WranglingDataFlow model = BinaryData.fromString( - "{\"type\":\"WranglingDataFlow\",\"typeProperties\":{\"sources\":[{\"script\":\"dusxurs\",\"schemaLinkedService\":{\"referenceName\":\"v\",\"parameters\":{\"coqwczsyiqri\":\"dataj\",\"qtnhjrfd\":\"datafwihvaan\",\"fkkauigvmua\":\"datafdvbbaexxjfwtg\",\"dajjvywe\":\"datamczfedyuepsvplt\"}},\"name\":\"cfkumcfjxo\",\"description\":\"elsy\",\"dataset\":{\"referenceName\":\"vfnkwmygjjekrk\",\"parameters\":{\"rdtulcrcjdklotcs\":\"datarugjqyckgtx\",\"zoonsv\":\"datab\"}},\"linkedService\":{\"referenceName\":\"chkxfpwhdysl\",\"parameters\":{\"wayqshwyqxrid\":\"dataglmnnk\",\"aqjmkgxqwque\":\"datatb\",\"fvezefk\":\"datauylztpziizevjyk\",\"zcntogffjwajnrtw\":\"datakqtwqlepjjzkcasf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qkifmxawostfz\",\"datasetParameters\":\"datahrkmjqncfv\",\"parameters\":{\"pvndrwb\":\"datanhemvwfnqqw\",\"ggrssgwjfkain\":\"dataod\",\"ztscbgmusaictds\":\"datamuymvec\"},\"\":{\"ddclzeqozr\":\"datazzohn\",\"exozonynp\":\"datahlbzqixbnjrqvzy\",\"dpabcreuwzosg\":\"datame\"}}},{\"script\":\"xvcvasormrexz\",\"schemaLinkedService\":{\"referenceName\":\"ubewgzygba\",\"parameters\":{\"qhzrtdbak\":\"dataecovs\",\"qsifjmclng\":\"datalimzfvppk\",\"ggorwjoqt\":\"datagnhrkombcdtajdo\"}},\"name\":\"otpvclp\",\"description\":\"yrlmwkptsk\",\"dataset\":{\"referenceName\":\"jgvhxcc\",\"parameters\":{\"g\":\"dataakmkookbput\",\"yakmlwktf\":\"datam\",\"qjimejtgzjxxlfej\":\"datawzkroyrdurxfl\",\"itcdqlhchwhrk\":\"datazuqloiwyayyzivr\"}},\"linkedService\":{\"referenceName\":\"l\",\"parameters\":{\"cjowlyeyzmu\":\"dataibfiplhxfnsm\",\"hnxlzbuwodmachb\":\"datasqc\",\"qplehmumkzdllczd\":\"datavnrpbjrmvg\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nhkgq\",\"datasetParameters\":\"dataoxsstc\",\"parameters\":{\"j\":\"dataakfrry\"},\"\":{\"mgnukxrke\":\"datahl\",\"bc\":\"datajpequlrlzaudgjt\"}}}],\"script\":\"kkucddwnh\",\"documentLocale\":\"butoucgj\"},\"description\":\"rjwayhicqq\",\"annotations\":[\"datagw\"],\"folder\":{\"name\":\"vlizedvb\"}}") - .toObject(WranglingDataFlow.class); - Assertions.assertEquals("rjwayhicqq", model.description()); - Assertions.assertEquals("vlizedvb", model.folder().name()); - Assertions.assertEquals("cfkumcfjxo", model.sources().get(0).name()); - Assertions.assertEquals("elsy", model.sources().get(0).description()); - Assertions.assertEquals("vfnkwmygjjekrk", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("chkxfpwhdysl", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("qkifmxawostfz", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("v", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("dusxurs", model.sources().get(0).script()); - Assertions.assertEquals("kkucddwnh", model.script()); - Assertions.assertEquals("butoucgj", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WranglingDataFlow model = new WranglingDataFlow().withDescription("rjwayhicqq") - .withAnnotations(Arrays.asList("datagw")) - .withFolder(new DataFlowFolder().withName("vlizedvb")) - .withSources(Arrays.asList( - new PowerQuerySource().withName("cfkumcfjxo") - .withDescription("elsy") - .withDataset(new DatasetReference().withReferenceName("vfnkwmygjjekrk") - .withParameters(mapOf("rdtulcrcjdklotcs", "datarugjqyckgtx", "zoonsv", "datab"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("chkxfpwhdysl") - .withParameters(mapOf("wayqshwyqxrid", "dataglmnnk", "aqjmkgxqwque", "datatb", "fvezefk", - "datauylztpziizevjyk", "zcntogffjwajnrtw", "datakqtwqlepjjzkcasf"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qkifmxawostfz") - .withDatasetParameters("datahrkmjqncfv") - .withParameters(mapOf("pvndrwb", "datanhemvwfnqqw", "ggrssgwjfkain", "dataod", - "ztscbgmusaictds", "datamuymvec")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("v") - .withParameters(mapOf("coqwczsyiqri", "dataj", "qtnhjrfd", "datafwihvaan", "fkkauigvmua", - "datafdvbbaexxjfwtg", "dajjvywe", "datamczfedyuepsvplt"))) - .withScript("dusxurs"), - new PowerQuerySource().withName("otpvclp") - .withDescription("yrlmwkptsk") - .withDataset(new DatasetReference().withReferenceName("jgvhxcc") - .withParameters(mapOf("g", "dataakmkookbput", "yakmlwktf", "datam", "qjimejtgzjxxlfej", - "datawzkroyrdurxfl", "itcdqlhchwhrk", "datazuqloiwyayyzivr"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("l") - .withParameters(mapOf("cjowlyeyzmu", "dataibfiplhxfnsm", "hnxlzbuwodmachb", "datasqc", - "qplehmumkzdllczd", "datavnrpbjrmvg"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nhkgq") - .withDatasetParameters("dataoxsstc") - .withParameters(mapOf("j", "dataakfrry")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ubewgzygba") - .withParameters(mapOf("qhzrtdbak", "dataecovs", "qsifjmclng", "datalimzfvppk", "ggorwjoqt", - "datagnhrkombcdtajdo"))) - .withScript("xvcvasormrexz"))) - .withScript("kkucddwnh") - .withDocumentLocale("butoucgj"); - model = BinaryData.fromObject(model).toObject(WranglingDataFlow.class); - Assertions.assertEquals("rjwayhicqq", model.description()); - Assertions.assertEquals("vlizedvb", model.folder().name()); - Assertions.assertEquals("cfkumcfjxo", model.sources().get(0).name()); - Assertions.assertEquals("elsy", model.sources().get(0).description()); - Assertions.assertEquals("vfnkwmygjjekrk", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("chkxfpwhdysl", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("qkifmxawostfz", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("v", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("dusxurs", model.sources().get(0).script()); - Assertions.assertEquals("kkucddwnh", model.script()); - Assertions.assertEquals("butoucgj", model.documentLocale()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java deleted file mode 100644 index 7bf825a03b3e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.XeroObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class XeroObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XeroObjectDataset model = BinaryData.fromString( - "{\"type\":\"XeroObject\",\"typeProperties\":{\"tableName\":\"datamjcoyvfwgkzuhksh\"},\"description\":\"kckwbqwjyfmmkwa\",\"structure\":\"dataooyzhob\",\"schema\":\"datayuepaco\",\"linkedServiceName\":{\"referenceName\":\"rohextigukf\",\"parameters\":{\"ymbnpeenlqtqyv\":\"dataycb\",\"avqdvfjdsqephtos\":\"datafb\",\"jwgujrc\":\"dataqtua\"}},\"parameters\":{\"wscjwyyeomifl\":{\"type\":\"Float\",\"defaultValue\":\"datapyqoizfyasyddq\"}},\"annotations\":[\"dataeowctshwfrhhas\",\"databvau\",\"datanwwumkbpg\",\"datailbwtpwbjlpfwuq\"],\"folder\":{\"name\":\"dgi\"},\"\":{\"plan\":\"datayukslizmpnxgham\"}}") - .toObject(XeroObjectDataset.class); - Assertions.assertEquals("kckwbqwjyfmmkwa", model.description()); - Assertions.assertEquals("rohextigukf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("wscjwyyeomifl").type()); - Assertions.assertEquals("dgi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroObjectDataset model = new XeroObjectDataset().withDescription("kckwbqwjyfmmkwa") - .withStructure("dataooyzhob") - .withSchema("datayuepaco") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rohextigukf") - .withParameters( - mapOf("ymbnpeenlqtqyv", "dataycb", "avqdvfjdsqephtos", "datafb", "jwgujrc", "dataqtua"))) - .withParameters(mapOf("wscjwyyeomifl", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datapyqoizfyasyddq"))) - .withAnnotations(Arrays.asList("dataeowctshwfrhhas", "databvau", "datanwwumkbpg", "datailbwtpwbjlpfwuq")) - .withFolder(new DatasetFolder().withName("dgi")) - .withTableName("datamjcoyvfwgkzuhksh"); - model = BinaryData.fromObject(model).toObject(XeroObjectDataset.class); - Assertions.assertEquals("kckwbqwjyfmmkwa", model.description()); - Assertions.assertEquals("rohextigukf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("wscjwyyeomifl").type()); - Assertions.assertEquals("dgi", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java deleted file mode 100644 index c7de1b46e841..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.XeroSource; - -public final class XeroSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XeroSource model = BinaryData.fromString( - "{\"type\":\"XeroSource\",\"query\":\"datahegcolh\",\"queryTimeout\":\"datacklqrunqwcrkkaby\",\"additionalColumns\":\"datay\",\"sourceRetryCount\":\"dataipywgjgfbsfsva\",\"sourceRetryWait\":\"dataejypokk\",\"maxConcurrentConnections\":\"datatnwpwskckc\",\"disableMetricsCollection\":\"datamfyxpgvqioqrebwa\",\"\":{\"reqaqvspsy\":\"dataplkpemxc\"}}") - .toObject(XeroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroSource model = new XeroSource().withSourceRetryCount("dataipywgjgfbsfsva") - .withSourceRetryWait("dataejypokk") - .withMaxConcurrentConnections("datatnwpwskckc") - .withDisableMetricsCollection("datamfyxpgvqioqrebwa") - .withQueryTimeout("datacklqrunqwcrkkaby") - .withAdditionalColumns("datay") - .withQuery("datahegcolh"); - model = BinaryData.fromObject(model).toObject(XeroSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java deleted file mode 100644 index f0a56d153525..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.XmlDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class XmlDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlDataset model = BinaryData.fromString( - "{\"type\":\"Xml\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datalurb\",\"fileName\":\"dataygpnyhgdzuqsca\",\"\":{\"y\":\"datavoupr\",\"mgw\":\"dataqzssl\",\"hgyqvpbfj\":\"datanivrxpfduio\"}},\"encodingName\":\"dataqzucfzluczdquur\",\"nullValue\":\"datarmvhvzi\",\"compression\":{\"type\":\"databprnqujywzcqygg\",\"level\":\"datawsvh\",\"\":{\"jtobdrrp\":\"dataqiwy\",\"w\":\"datarehkunsbfjhh\"}}},\"description\":\"kvegeattbzkgtzq\",\"structure\":\"dataqsttewuvcysjeuf\",\"schema\":\"dataflpd\",\"linkedServiceName\":{\"referenceName\":\"tfnonpi\",\"parameters\":{\"lvtlrvbst\":\"datalvrhprrvbwonleq\",\"uninttlnrjdszd\":\"datahuy\",\"iciqppo\":\"datau\",\"e\":\"datavgp\"}},\"parameters\":{\"tfnressfepgck\":{\"type\":\"Array\",\"defaultValue\":\"datawjnoxuo\"},\"mjnhjlu\":{\"type\":\"Float\",\"defaultValue\":\"datamgvsnvbtqdxfmj\"}},\"annotations\":[\"databsupu\"],\"folder\":{\"name\":\"ck\"},\"\":{\"sjjfd\":\"datazwhcukvb\",\"kcgn\":\"datazhrjqfyaytvsly\"}}") - .toObject(XmlDataset.class); - Assertions.assertEquals("kvegeattbzkgtzq", model.description()); - Assertions.assertEquals("tfnonpi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("tfnressfepgck").type()); - Assertions.assertEquals("ck", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDataset model = new XmlDataset().withDescription("kvegeattbzkgtzq") - .withStructure("dataqsttewuvcysjeuf") - .withSchema("dataflpd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tfnonpi") - .withParameters(mapOf("lvtlrvbst", "datalvrhprrvbwonleq", "uninttlnrjdszd", "datahuy", "iciqppo", - "datau", "e", "datavgp"))) - .withParameters(mapOf("tfnressfepgck", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datawjnoxuo"), "mjnhjlu", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datamgvsnvbtqdxfmj"))) - .withAnnotations(Arrays.asList("databsupu")) - .withFolder(new DatasetFolder().withName("ck")) - .withLocation(new DatasetLocation().withFolderPath("datalurb") - .withFileName("dataygpnyhgdzuqsca") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("dataqzucfzluczdquur") - .withNullValue("datarmvhvzi") - .withCompression(new DatasetCompression().withType("databprnqujywzcqygg") - .withLevel("datawsvh") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(XmlDataset.class); - Assertions.assertEquals("kvegeattbzkgtzq", model.description()); - Assertions.assertEquals("tfnonpi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("tfnressfepgck").type()); - Assertions.assertEquals("ck", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java deleted file mode 100644 index 268dc0318e5b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.XmlDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class XmlDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataarlcjiwgsxfaiocw\",\"fileName\":\"dataujjgnfgrzxbarc\",\"\":{\"ymjwenjcyt\":\"dataefzq\",\"auzmzivrtrfzhhe\":\"datasmfucrtfodqh\"}},\"encodingName\":\"datahjud\",\"nullValue\":\"datayy\",\"compression\":{\"type\":\"datadmahswtvdkxb\",\"level\":\"datasgfenffdxb\",\"\":{\"ija\":\"dataqjchivd\",\"lmzjotprrmu\":\"dataxndmuvar\",\"pgarpfctw\":\"datacuhtuzlxiwy\"}}}") - .toObject(XmlDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDatasetTypeProperties model = new XmlDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("dataarlcjiwgsxfaiocw") - .withFileName("dataujjgnfgrzxbarc") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datahjud") - .withNullValue("datayy") - .withCompression(new DatasetCompression().withType("datadmahswtvdkxb") - .withLevel("datasgfenffdxb") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(XmlDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java deleted file mode 100644 index 5b560cee432f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class XmlReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlReadSettings model = BinaryData.fromString( - "{\"type\":\"XmlReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"mdrmasvghphlbk\":\"datae\",\"mviaasdexsrglxlj\":\"datauhmblni\",\"spdipdxq\":\"datayvkkpovz\",\"wvilky\":\"datapdjomddadwosjxy\"}},\"validationMode\":\"datan\",\"detectDataType\":\"datayhdb\",\"namespaces\":\"datagsjmcybrpwjenb\",\"namespacePrefixes\":\"datakghrrxauuhd\",\"\":{\"wip\":\"dataizyxoyxnhub\",\"ezzyrp\":\"dataryiv\"}}") - .toObject(XmlReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlReadSettings model = new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))) - .withValidationMode("datan") - .withDetectDataType("datayhdb") - .withNamespaces("datagsjmcybrpwjenb") - .withNamespacePrefixes("datakghrrxauuhd"); - model = BinaryData.fromObject(model).toObject(XmlReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java deleted file mode 100644 index 18eca6f04253..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlSource; -import java.util.HashMap; -import java.util.Map; - -public final class XmlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlSource model = BinaryData.fromString( - "{\"type\":\"XmlSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datalpkocre\",\"disableMetricsCollection\":\"datamqfuflupuvwl\",\"\":{\"gzscgslwujk\":\"datarjglacp\"}},\"formatSettings\":{\"type\":\"XmlReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"jnnbmods\":\"datal\",\"atujphqvfxvv\":\"datatqt\",\"fnwdrmzwmtsmeac\":\"datagwghxoxwpiqkkm\",\"mgnvcusvidkzbd\":\"dataypkhnr\"}},\"validationMode\":\"datalsnch\",\"detectDataType\":\"datarfomlh\",\"namespaces\":\"dataiktecs\",\"namespacePrefixes\":\"datacqweydaa\",\"\":{\"iwfsqjxxbsafqiw\":\"datatmfcx\",\"g\":\"dataduotsyjzda\"}},\"additionalColumns\":\"datazpr\",\"sourceRetryCount\":\"dataom\",\"sourceRetryWait\":\"dataohnpkofklbd\",\"maxConcurrentConnections\":\"datanzmffyvowlammvaz\",\"disableMetricsCollection\":\"datazie\",\"\":{\"hjxdnkgztfgcuz\":\"dataunmgdpxeiv\",\"eiidfpwbybmxf\":\"databrehdtqggzahngnr\"}}") - .toObject(XmlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlSource model = new XmlSource().withSourceRetryCount("dataom") - .withSourceRetryWait("dataohnpkofklbd") - .withMaxConcurrentConnections("datanzmffyvowlammvaz") - .withDisableMetricsCollection("datazie") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datalpkocre") - .withDisableMetricsCollection("datamqfuflupuvwl") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))) - .withValidationMode("datalsnch") - .withDetectDataType("datarfomlh") - .withNamespaces("dataiktecs") - .withNamespacePrefixes("datacqweydaa")) - .withAdditionalColumns("datazpr"); - model = BinaryData.fromObject(model).toObject(XmlSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java deleted file mode 100644 index 4381adf1ee17..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ZipDeflateReadSettings; - -public final class ZipDeflateReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZipDeflateReadSettings model = BinaryData.fromString( - "{\"type\":\"ZipDeflateReadSettings\",\"preserveZipFileNameAsFolder\":\"datajxwwqz\",\"\":{\"vwznwcq\":\"datatbffrhq\",\"jkltetfdpurvz\":\"dataapd\",\"sfu\":\"datatjb\",\"qhbwsv\":\"dataedsaafk\"}}") - .toObject(ZipDeflateReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZipDeflateReadSettings model = new ZipDeflateReadSettings().withPreserveZipFileNameAsFolder("datajxwwqz"); - model = BinaryData.fromObject(model).toObject(ZipDeflateReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java deleted file mode 100644 index d53aa8e81b70..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ZohoObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ZohoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZohoObjectDataset model = BinaryData.fromString( - "{\"type\":\"ZohoObject\",\"typeProperties\":{\"tableName\":\"dataotmmxlmxejwyv\"},\"description\":\"b\",\"structure\":\"datavtuekbb\",\"schema\":\"dataqsm\",\"linkedServiceName\":{\"referenceName\":\"sbeqieiuxhj\",\"parameters\":{\"lzyxvtajfjatoid\":\"datadalnjjhrgkjjpcpi\",\"gnpuelrnanbrpkoc\":\"dataekurdgcpzanaqve\"}},\"parameters\":{\"gijxmdboe\":{\"type\":\"Int\",\"defaultValue\":\"datagegjtjltckiwxggf\"},\"u\":{\"type\":\"Float\",\"defaultValue\":\"dataxha\"}},\"annotations\":[\"datanvzsodmokrqd\",\"datasgkq\"],\"folder\":{\"name\":\"otypcjxh\"},\"\":{\"p\":\"datalocjhz\",\"xbofpr\":\"databrbm\",\"wwsfvtgh\":\"datamivapesbfzllej\"}}") - .toObject(ZohoObjectDataset.class); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals("sbeqieiuxhj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gijxmdboe").type()); - Assertions.assertEquals("otypcjxh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoObjectDataset model = new ZohoObjectDataset().withDescription("b") - .withStructure("datavtuekbb") - .withSchema("dataqsm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("sbeqieiuxhj") - .withParameters( - mapOf("lzyxvtajfjatoid", "datadalnjjhrgkjjpcpi", "gnpuelrnanbrpkoc", "dataekurdgcpzanaqve"))) - .withParameters(mapOf("gijxmdboe", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datagegjtjltckiwxggf"), "u", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxha"))) - .withAnnotations(Arrays.asList("datanvzsodmokrqd", "datasgkq")) - .withFolder(new DatasetFolder().withName("otypcjxh")) - .withTableName("dataotmmxlmxejwyv"); - model = BinaryData.fromObject(model).toObject(ZohoObjectDataset.class); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals("sbeqieiuxhj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gijxmdboe").type()); - Assertions.assertEquals("otypcjxh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java deleted file mode 100644 index b703cd0e4c89..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ZohoSource; - -public final class ZohoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZohoSource model = BinaryData.fromString( - "{\"type\":\"ZohoSource\",\"query\":\"dataarwtkrbscw\",\"queryTimeout\":\"datawvwmcrhyo\",\"additionalColumns\":\"datatplmy\",\"sourceRetryCount\":\"datahvyj\",\"sourceRetryWait\":\"dataerh\",\"maxConcurrentConnections\":\"datastiawywppq\",\"disableMetricsCollection\":\"datajxbdyczplmljcisx\",\"\":{\"mufdynhqlzanta\":\"dataftytp\"}}") - .toObject(ZohoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoSource model = new ZohoSource().withSourceRetryCount("datahvyj") - .withSourceRetryWait("dataerh") - .withMaxConcurrentConnections("datastiawywppq") - .withDisableMetricsCollection("datajxbdyczplmljcisx") - .withQueryTimeout("datawvwmcrhyo") - .withAdditionalColumns("datatplmy") - .withQuery("dataarwtkrbscw"); - model = BinaryData.fromObject(model).toObject(ZohoSource.class); - } -}