From 1435e541c0f956787e0461b3b9cd7899ccf6d52d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 24 Apr 2024 08:02:51 +0000 Subject: [PATCH] CodeGen from PR 3256 in test-repo-billy/azure-rest-api-specs Merge 34317edabeb393a5161b00ffda2f90d9ed2a0330 into 3d8fc4117fc1de8ab32bf106b6ead1564414a80f --- .../CHANGELOG.md | 4 +- .../README.md | 2 +- .../SAMPLE.md | 25 -- .../datafactory/DataFactoryManager.java | 18 +- .../fluent/DataFactoryManagementClient.java | 7 - .../datafactory/fluent/OperationsClient.java | 40 --- .../fluent/models/OperationInner.java | 152 --------- .../fluent/models/OperationProperties.java | 58 ---- .../DataFactoryManagementClientImpl.java | 16 - .../implementation/OperationImpl.java | 45 --- .../implementation/OperationsClientImpl.java | 239 -------------- .../implementation/OperationsImpl.java | 45 --- .../datafactory/models/Operation.java | 47 --- .../datafactory/models/OperationDisplay.java | 132 -------- .../models/OperationListResponse.java | 85 ----- .../models/OperationLogSpecification.java | 106 ------ .../models/OperationMetricSpecification.java | 295 ----------------- .../models/OperationServiceSpecification.java | 88 ----- .../datafactory/models/Operations.java | 35 -- .../proxy-config.json | 2 +- .../reflect-config.json | 55 +-- .../generated/OperationsListSamples.java | 22 -- .../generated/ActivityDependencyTests.java | 47 --- .../generated/ActivityPolicyTests.java | 49 --- .../generated/ActivityRunTests.java | 41 --- .../datafactory/generated/ActivityTests.java | 78 ----- ...aFlowToDebugSessionResponseInnerTests.java | 25 -- .../AmazonMwsObjectDatasetTests.java | 64 ---- .../generated/AmazonMwsSourceTests.java | 29 -- ...zonRdsForOraclePartitionSettingsTests.java | 27 -- .../AmazonRdsForOracleSourceTests.java | 35 -- .../AmazonRdsForOracleTableDatasetTests.java | 62 ---- ...OracleTableDatasetTypePropertiesTests.java | 24 -- .../AmazonRdsForSqlServerSourceTests.java | 38 --- ...mazonRdsForSqlServerTableDatasetTests.java | 62 ---- ...ServerTableDatasetTypePropertiesTests.java | 24 -- .../generated/AmazonRedshiftSourceTests.java | 55 --- .../AmazonRedshiftTableDatasetTests.java | 63 ---- ...dshiftTableDatasetTypePropertiesTests.java | 26 -- .../AmazonS3CompatibleLocationTests.java | 26 -- .../AmazonS3CompatibleReadSettingsTests.java | 35 -- .../generated/AmazonS3LocationTests.java | 26 -- .../generated/AmazonS3ReadSettingsTests.java | 34 -- .../AppendVariableActivityTests.java | 72 ---- ...ndVariableActivityTypePropertiesTests.java | 28 -- .../generated/ArmIdWrapperTests.java | 21 -- .../generated/AvroFormatTests.java | 23 -- .../datafactory/generated/AvroSinkTests.java | 62 ---- .../generated/AvroSourceTests.java | 45 --- .../generated/AvroWriteSettingsTests.java | 31 -- .../generated/AzPowerShellSetupTests.java | 26 -- .../AzPowerShellSetupTypePropertiesTests.java | 25 -- .../generated/AzureBlobDatasetTests.java | 76 ----- .../AzureBlobDatasetTypePropertiesTests.java | 49 --- .../generated/AzureBlobFSDatasetTests.java | 69 ---- ...AzureBlobFSDatasetTypePropertiesTests.java | 46 --- .../generated/AzureBlobFSLocationTests.java | 25 -- .../AzureBlobFSReadSettingsTests.java | 34 -- .../generated/AzureBlobFSSinkTests.java | 36 -- .../generated/AzureBlobFSSourceTests.java | 29 -- .../AzureBlobFSWriteSettingsTests.java | 30 -- .../AzureBlobStorageLocationTests.java | 25 -- .../AzureBlobStorageReadSettingsTests.java | 35 -- .../AzureBlobStorageWriteSettingsTests.java | 31 -- ...AzureDataExplorerCommandActivityTests.java | 101 ------ ...rerCommandActivityTypePropertiesTests.java | 25 -- ...ataExplorerDatasetTypePropertiesTests.java | 23 -- .../generated/AzureDataExplorerSinkTests.java | 31 -- .../AzureDataExplorerSourceTests.java | 30 -- .../AzureDataExplorerTableDatasetTests.java | 63 ---- .../AzureDataLakeStoreDatasetTests.java | 71 ---- ...taLakeStoreDatasetTypePropertiesTests.java | 46 --- .../AzureDataLakeStoreLocationTests.java | 24 -- .../AzureDataLakeStoreReadSettingsTests.java | 36 -- .../AzureDataLakeStoreSinkTests.java | 30 -- .../AzureDataLakeStoreSourceTests.java | 27 -- .../AzureDataLakeStoreWriteSettingsTests.java | 31 -- .../AzureDatabricksDeltaLakeDatasetTests.java | 67 ---- ...ksDeltaLakeDatasetTypePropertiesTests.java | 25 -- ...DatabricksDeltaLakeExportCommandTests.java | 25 -- ...DatabricksDeltaLakeImportCommandTests.java | 25 -- .../AzureDatabricksDeltaLakeSinkTests.java | 33 -- .../AzureDatabricksDeltaLakeSourceTests.java | 30 -- .../AzureFileStorageLocationTests.java | 24 -- .../AzureFileStorageReadSettingsTests.java | 35 -- .../AzureFileStorageWriteSettingsTests.java | 31 -- .../generated/AzureFunctionActivityTests.java | 93 ------ ...reFunctionActivityTypePropertiesTests.java | 45 --- .../AzureMLBatchExecutionActivityTests.java | 131 -------- ...hExecutionActivityTypePropertiesTests.java | 73 ---- .../AzureMLExecutePipelineActivityTests.java | 103 ------ ...tePipelineActivityTypePropertiesTests.java | 31 -- .../AzureMLUpdateResourceActivityTests.java | 91 ----- ...teResourceActivityTypePropertiesTests.java | 45 --- .../generated/AzureMLWebServiceFileTests.java | 43 --- .../generated/AzureMariaDBSourceTests.java | 29 -- .../AzureMariaDBTableDatasetTests.java | 60 ---- .../generated/AzureMySqlSinkTests.java | 29 -- .../generated/AzureMySqlSourceTests.java | 29 -- .../AzureMySqlTableDatasetTests.java | 65 ---- ...eMySqlTableDatasetTypePropertiesTests.java | 24 -- .../generated/AzurePostgreSqlSinkTests.java | 29 -- .../generated/AzurePostgreSqlSourceTests.java | 29 -- .../AzurePostgreSqlTableDatasetTests.java | 66 ---- ...greSqlTableDatasetTypePropertiesTests.java | 26 -- .../generated/AzureQueueSinkTests.java | 28 -- .../AzureSearchIndexDatasetTests.java | 61 ---- ...SearchIndexDatasetTypePropertiesTests.java | 23 -- .../generated/AzureSearchIndexSinkTests.java | 33 -- .../AzureSqlDWTableDatasetTests.java | 63 ---- ...eSqlDWTableDatasetTypePropertiesTests.java | 26 -- .../AzureSqlMITableDatasetTests.java | 62 ---- ...eSqlMITableDatasetTypePropertiesTests.java | 25 -- .../generated/AzureSqlSourceTests.java | 38 --- .../generated/AzureSqlTableDatasetTests.java | 63 ---- ...ureSqlTableDatasetTypePropertiesTests.java | 26 -- ...ureSynapseArtifactsLinkedServiceTests.java | 61 ---- ...factsLinkedServiceTypePropertiesTests.java | 27 -- .../generated/AzureTableDatasetTests.java | 60 ---- .../AzureTableDatasetTypePropertiesTests.java | 22 -- .../generated/AzureTableSourceTests.java | 30 -- ...DataPoolParametrizationReferenceTests.java | 29 -- .../generated/BinaryDatasetTests.java | 68 ---- .../BinaryDatasetTypePropertiesTests.java | 45 --- .../generated/BinaryReadSettingsTests.java | 39 --- .../generated/BinarySinkTests.java | 52 --- .../generated/BinarySourceTests.java | 48 --- .../generated/BlobEventsTriggerTests.java | 81 ----- .../BlobEventsTriggerTypePropertiesTests.java | 41 --- .../datafactory/generated/BlobSinkTests.java | 35 -- .../generated/BlobSourceTests.java | 29 -- .../generated/BlobTriggerTests.java | 66 ---- .../BlobTriggerTypePropertiesTests.java | 49 --- .../generated/CassandraSourceTests.java | 34 -- .../generated/ChainingTriggerTests.java | 63 ---- .../ChainingTriggerTypePropertiesTests.java | 37 --- .../ChangeDataCaptureFolderTests.java | 25 -- .../ChangeDataCaptureListResponseTests.java | 199 ----------- .../ChangeDataCaptureResourceInnerTests.java | 268 --------------- .../generated/ChangeDataCaptureTests.java | 303 ----------------- ...esCreateOrUpdateWithResponseMockTests.java | 145 -------- ...taCapturesDeleteWithResponseMockTests.java | 34 -- ...eDataCapturesGetWithResponseMockTests.java | 61 ---- ...ngeDataCapturesListByFactoryMockTests.java | 64 ---- ...ataCapturesStartWithResponseMockTests.java | 35 -- ...taCapturesStatusWithResponseMockTests.java | 37 --- ...DataCapturesStopWithResponseMockTests.java | 34 -- .../generated/CmkIdentityDefinitionTests.java | 25 -- ...nDataServiceForAppsEntityDatasetTests.java | 69 ---- ...rAppsEntityDatasetTypePropertiesTests.java | 24 -- .../CommonDataServiceForAppsSourceTests.java | 29 -- .../CompressionReadSettingsTests.java | 37 --- .../generated/ConcurObjectDatasetTests.java | 62 ---- .../generated/ConcurSourceTests.java | 29 -- .../ConnectionStatePropertiesTests.java | 23 -- .../generated/ControlActivityTests.java | 73 ---- .../CopyActivityLogSettingsTests.java | 24 -- .../generated/CopyActivityTests.java | 183 ---------- .../CopyActivityTypePropertiesTests.java | 102 ------ .../CopyComputeScalePropertiesTests.java | 45 --- .../datafactory/generated/CopySinkTests.java | 43 --- .../generated/CopySourceTests.java | 41 --- .../generated/CopyTranslatorTests.java | 37 --- ...mosDbMongoDbApiCollectionDatasetTests.java | 63 ---- ...iCollectionDatasetTypePropertiesTests.java | 24 -- .../CosmosDbMongoDbApiLinkedServiceTests.java | 58 ---- ...DbApiLinkedServiceTypePropertiesTests.java | 26 -- .../CosmosDbMongoDbApiSinkTests.java | 29 -- .../CosmosDbMongoDbApiSourceTests.java | 50 --- .../CosmosDbSqlApiCollectionDatasetTests.java | 60 ---- ...iCollectionDatasetTypePropertiesTests.java | 24 -- .../generated/CosmosDbSqlApiSinkTests.java | 29 -- .../generated/CosmosDbSqlApiSourceTests.java | 31 -- .../generated/CouchbaseSourceTests.java | 29 -- .../generated/CouchbaseTableDatasetTests.java | 61 ---- ...reateDataFlowDebugSessionRequestTests.java | 40 --- ...ataFlowDebugSessionResponseInnerTests.java | 29 -- ...eLinkedIntegrationRuntimeRequestTests.java | 35 -- .../CreateRunResponseInnerTests.java | 25 -- .../CredentialListResponseTests.java | 59 ---- ...nsCreateOrUpdateWithResponseMockTests.java | 62 ---- ...OperationsDeleteWithResponseMockTests.java | 33 -- ...ialOperationsGetWithResponseMockTests.java | 40 --- ...ntialOperationsListByFactoryMockTests.java | 40 --- .../generated/CredentialReferenceTests.java | 45 --- .../CredentialResourceInnerTests.java | 47 --- .../generated/CredentialTests.java | 43 --- .../CustomActivityReferenceObjectTests.java | 64 ---- .../generated/CustomActivityTests.java | 128 ------- .../CustomActivityTypePropertiesTests.java | 67 ---- .../CustomDataSourceLinkedServiceTests.java | 56 ---- .../generated/CustomDatasetTests.java | 63 ---- .../generated/CustomEventsTriggerTests.java | 67 ---- ...ustomEventsTriggerTypePropertiesTests.java | 34 -- .../generated/CustomSetupBaseTests.java | 21 -- .../DWCopyCommandDefaultValueTests.java | 24 -- .../generated/DWCopyCommandSettingsTests.java | 48 --- .../DataFlowDebugCommandPayloadTests.java | 36 -- .../DataFlowDebugCommandRequestTests.java | 44 --- ...ataFlowDebugCommandResponseInnerTests.java | 29 -- ...ataFlowDebugPackageDebugSettingsTests.java | 49 --- .../generated/DataFlowDebugPackageTests.java | 173 ---------- .../generated/DataFlowDebugResourceTests.java | 36 -- .../DataFlowDebugSessionInfoInnerTests.java | 65 ---- ...sionsAddDataFlowWithResponseMockTests.java | 146 -------- .../DataFlowDebugSessionsCreateMockTests.java | 47 --- ...ugSessionsDeleteWithResponseMockTests.java | 36 -- ...wDebugSessionsExecuteCommandMockTests.java | 49 --- ...wDebugSessionsQueryByFactoryMockTests.java | 47 --- .../generated/DataFlowFolderTests.java | 24 -- .../generated/DataFlowListResponseTests.java | 53 --- .../generated/DataFlowReferenceTests.java | 47 --- .../generated/DataFlowResourceInnerTests.java | 36 -- .../generated/DataFlowSinkTests.java | 74 ----- .../generated/DataFlowSourceSettingTests.java | 44 --- .../generated/DataFlowSourceTests.java | 69 ---- .../generated/DataFlowStagingInfoTests.java | 47 --- .../datafactory/generated/DataFlowTests.java | 32 -- ...wsCreateOrUpdateWithResponseMockTests.java | 49 --- .../DataFlowsDeleteWithResponseMockTests.java | 33 -- .../DataFlowsGetWithResponseMockTests.java | 41 --- .../DataFlowsListByFactoryMockTests.java | 41 --- .../DataLakeAnalyticsUsqlActivityTests.java | 108 ------ ...lyticsUsqlActivityTypePropertiesTests.java | 49 --- .../generated/DataMapperMappingTests.java | 161 --------- .../DatabricksNotebookActivityTests.java | 91 ----- ...ksNotebookActivityTypePropertiesTests.java | 45 --- .../DatabricksSparkJarActivityTests.java | 103 ------ ...ksSparkJarActivityTypePropertiesTests.java | 46 --- .../DatabricksSparkPythonActivityTests.java | 105 ------ ...parkPythonActivityTypePropertiesTests.java | 41 --- .../generated/DatasetCompressionTests.java | 40 --- .../generated/DatasetDebugResourceTests.java | 69 ---- .../generated/DatasetFolderTests.java | 24 -- .../generated/DatasetListResponseTests.java | 111 ------- .../generated/DatasetLocationTests.java | 39 --- .../generated/DatasetReferenceTests.java | 41 --- .../generated/DatasetResourceInnerTests.java | 64 ---- .../DatasetSchemaDataElementTests.java | 39 --- .../generated/DatasetStorageFormatTests.java | 39 --- .../datafactory/generated/DatasetTests.java | 63 ---- ...tsCreateOrUpdateWithResponseMockTests.java | 76 ----- .../DatasetsDeleteWithResponseMockTests.java | 33 -- .../DatasetsGetWithResponseMockTests.java | 44 --- .../DatasetsListByFactoryMockTests.java | 46 --- .../datafactory/generated/Db2SourceTests.java | 29 -- .../generated/Db2TableDatasetTests.java | 64 ---- .../Db2TableDatasetTypePropertiesTests.java | 25 -- .../generated/DeleteActivityTests.java | 111 ------- .../DeleteActivityTypePropertiesTests.java | 62 ---- ...eleteDataFlowDebugSessionRequestTests.java | 25 -- .../DelimitedTextReadSettingsTests.java | 40 --- .../generated/DelimitedTextSinkTests.java | 58 ---- .../generated/DelimitedTextSourceTests.java | 50 --- .../DelimitedTextWriteSettingsTests.java | 26 -- .../generated/DependencyReferenceTests.java | 21 -- .../generated/DistcpSettingsTests.java | 25 -- .../DocumentDbCollectionDatasetTests.java | 64 ---- ...bCollectionDatasetTypePropertiesTests.java | 24 -- .../DocumentDbCollectionSinkTests.java | 30 -- .../DocumentDbCollectionSourceTests.java | 30 -- .../DrillDatasetTypePropertiesTests.java | 25 -- .../generated/DrillSourceTests.java | 29 -- .../generated/DrillTableDatasetTests.java | 62 ---- .../DynamicsAXResourceDatasetTests.java | 64 ---- ...sAXResourceDatasetTypePropertiesTests.java | 23 -- .../generated/DynamicsAXSourceTests.java | 30 -- .../DynamicsCrmEntityDatasetTests.java | 63 ---- ...csCrmEntityDatasetTypePropertiesTests.java | 24 -- .../generated/DynamicsCrmSourceTests.java | 28 -- .../generated/DynamicsEntityDatasetTests.java | 60 ---- ...amicsEntityDatasetTypePropertiesTests.java | 22 -- .../generated/DynamicsSourceTests.java | 28 -- .../generated/EloquaObjectDatasetTests.java | 64 ---- .../generated/EloquaSourceTests.java | 29 -- .../generated/EntityReferenceTests.java | 31 -- .../EnvironmentVariableSetupTests.java | 29 -- ...nmentVariableSetupTypePropertiesTests.java | 30 -- .../generated/ExcelDatasetTests.java | 73 ---- .../ExcelDatasetTypePropertiesTests.java | 50 --- .../generated/ExcelSourceTests.java | 45 --- .../ExecuteDataFlowActivityTests.java | 123 ------- ...lowActivityTypePropertiesComputeTests.java | 25 -- ...teDataFlowActivityTypePropertiesTests.java | 68 ---- .../ExecutePipelineActivityPolicyTests.java | 41 --- .../ExecutePipelineActivityTests.java | 95 ------ ...tePipelineActivityTypePropertiesTests.java | 48 --- ...PowerQueryActivityTypePropertiesTests.java | 226 ------------- ...ExecuteWranglingDataflowActivityTests.java | 290 ---------------- .../generated/ExecutionActivityTests.java | 85 ----- .../generated/ExportSettingsTests.java | 37 --- .../ExposureControlBatchRequestTests.java | 32 -- ...xposureControlBatchResponseInnerTests.java | 26 -- .../ExposureControlRequestTests.java | 29 -- .../ExposureControlResponseInnerTests.java | 23 -- ...reValueByFactoryWithResponseMockTests.java | 39 --- ...sGetFeatureValueWithResponseMockTests.java | 39 --- ...eValuesByFactoryWithResponseMockTests.java | 43 --- .../generated/ExpressionTests.java | 24 -- .../generated/ExpressionV2Tests.java | 101 ------ ...eByResourceGroupWithResponseMockTests.java | 33 -- .../generated/FactoryIdentityTests.java | 43 --- .../FactoryRepoConfigurationTests.java | 41 --- .../generated/FactoryRepoUpdateTests.java | 45 --- .../FactoryUpdateParametersTests.java | 50 --- .../FactoryUpdatePropertiesTests.java | 27 -- .../FactoryVstsConfigurationTests.java | 47 --- .../generated/FileServerLocationTests.java | 24 -- .../FileServerReadSettingsTests.java | 34 -- .../FileServerWriteSettingsTests.java | 28 -- .../generated/FileShareDatasetTests.java | 72 ---- .../FileShareDatasetTypePropertiesTests.java | 49 --- .../generated/FileSystemSinkTests.java | 29 -- .../generated/FileSystemSourceTests.java | 28 -- .../generated/FilterActivityTests.java | 88 ----- .../FilterActivityTypePropertiesTests.java | 31 -- .../datafactory/generated/FlowletTests.java | 238 ------------- .../generated/FlowletTypePropertiesTests.java | 218 ------------ .../generated/ForEachActivityTests.java | 113 ------- .../ForEachActivityTypePropertiesTests.java | 115 ------- .../generated/FormatReadSettingsTests.java | 37 --- .../generated/FormatWriteSettingsTests.java | 37 --- .../generated/FtpReadSettingsTests.java | 33 -- .../generated/FtpServerLocationTests.java | 23 -- .../GenericDatasetTypePropertiesTests.java | 22 -- ...taFactoryOperationStatusResponseTests.java | 41 --- .../generated/GetMetadataActivityTests.java | 108 ------ ...etMetadataActivityTypePropertiesTests.java | 52 --- .../GetSsisObjectMetadataRequestTests.java | 25 -- .../GlobalParameterListResponseTests.java | 68 ---- .../GlobalParameterResourceInnerTests.java | 46 --- .../GlobalParameterSpecificationTests.java | 28 -- ...rsCreateOrUpdateWithResponseMockTests.java | 62 ---- ...ParametersDeleteWithResponseMockTests.java | 33 -- ...balParametersGetWithResponseMockTests.java | 41 --- ...lobalParametersListByFactoryMockTests.java | 42 --- .../GoogleAdWordsObjectDatasetTests.java | 60 ---- .../generated/GoogleAdWordsSourceTests.java | 29 -- ...gleBigQueryDatasetTypePropertiesTests.java | 26 -- .../GoogleBigQueryObjectDatasetTests.java | 63 ---- .../generated/GoogleBigQuerySourceTests.java | 29 -- ...eBigQueryV2DatasetTypePropertiesTests.java | 25 -- .../GoogleBigQueryV2ObjectDatasetTests.java | 61 ---- .../GoogleBigQueryV2SourceTests.java | 29 -- .../GoogleCloudStorageLocationTests.java | 26 -- .../GoogleCloudStorageReadSettingsTests.java | 35 -- .../GreenplumDatasetTypePropertiesTests.java | 25 -- .../generated/GreenplumSourceTests.java | 29 -- .../generated/GreenplumTableDatasetTests.java | 62 ---- .../generated/HBaseObjectDatasetTests.java | 61 ---- .../generated/HBaseSourceTests.java | 29 -- .../generated/HDInsightHiveActivityTests.java | 121 ------- ...nsightHiveActivityTypePropertiesTests.java | 60 ---- .../HDInsightMapReduceActivityTests.java | 120 ------- ...tMapReduceActivityTypePropertiesTests.java | 68 ---- .../generated/HDInsightPigActivityTests.java | 113 ------- ...InsightPigActivityTypePropertiesTests.java | 59 ---- .../HDInsightSparkActivityTests.java | 115 ------- ...sightSparkActivityTypePropertiesTests.java | 57 ---- .../HDInsightStreamingActivityTests.java | 118 ------- ...tStreamingActivityTypePropertiesTests.java | 61 ---- .../generated/HdfsLocationTests.java | 23 -- .../generated/HdfsReadSettingsTests.java | 37 --- .../generated/HdfsSourceTests.java | 31 -- .../HiveDatasetTypePropertiesTests.java | 25 -- .../generated/HiveObjectDatasetTests.java | 66 ---- .../generated/HiveSourceTests.java | 29 -- .../generated/HttpDatasetTests.java | 72 ---- .../HttpDatasetTypePropertiesTests.java | 48 --- .../generated/HttpReadSettingsTests.java | 29 -- .../generated/HttpServerLocationTests.java | 25 -- .../generated/HttpSourceTests.java | 27 -- .../generated/HubspotObjectDatasetTests.java | 60 ---- .../generated/HubspotSourceTests.java | 29 -- .../generated/IfConditionActivityTests.java | 203 ------------ ...fConditionActivityTypePropertiesTests.java | 186 ----------- .../ImpalaDatasetTypePropertiesTests.java | 26 -- .../generated/ImpalaObjectDatasetTests.java | 66 ---- .../generated/ImpalaSourceTests.java | 29 -- .../generated/ImportSettingsTests.java | 37 --- .../generated/InformixSinkTests.java | 29 -- .../generated/InformixSourceTests.java | 29 -- .../generated/InformixTableDatasetTests.java | 62 ---- ...formixTableDatasetTypePropertiesTests.java | 22 -- ...egrationRuntimeComputePropertiesTests.java | 113 ------- ...ionRuntimeCustomerVirtualNetworkTests.java | 26 -- ...owPropertiesCustomPropertiesItemTests.java | 29 -- ...grationRuntimeDataFlowPropertiesTests.java | 64 ---- ...rationRuntimeDataProxyPropertiesTests.java | 47 --- .../IntegrationRuntimeDebugResourceTests.java | 30 -- .../IntegrationRuntimeListResponseTests.java | 41 --- ...rationRuntimeMonitoringDataInnerTests.java | 46 --- ...grationRuntimeNodeIpAddressInnerTests.java | 22 -- ...grationRuntimeNodeMonitoringDataTests.java | 40 --- ...ntimeNodesDeleteWithResponseMockTests.java | 34 -- ...odesGetIpAddressWithResponseMockTests.java | 37 --- ...nRuntimeNodesGetWithResponseMockTests.java | 37 --- ...ntimeNodesUpdateWithResponseMockTests.java | 40 --- ...jectMetadatasGetWithResponseMockTests.java | 44 --- ...untimeObjectMetadatasRefreshMockTests.java | 40 --- ...workDependenciesCategoryEndpointTests.java | 39 --- ...tworkDependenciesEndpointDetailsTests.java | 28 -- ...boundNetworkDependenciesEndpointTests.java | 33 -- ...pendenciesEndpointsResponseInnerTests.java | 56 ---- .../IntegrationRuntimeReferenceTests.java | 42 --- .../IntegrationRuntimeResourceInnerTests.java | 30 -- ...rationRuntimeStatusResponseInnerTests.java | 25 -- .../IntegrationRuntimeStatusTests.java | 24 -- .../generated/IntegrationRuntimeTests.java | 27 -- ...IntegrationRuntimeVNetPropertiesTests.java | 51 --- ...tegrationRuntimeWithResponseMockTests.java | 43 --- ...esCreateOrUpdateWithResponseMockTests.java | 44 --- ...onRuntimesDeleteWithResponseMockTests.java | 34 -- ...etMonitoringDataWithResponseMockTests.java | 39 --- ...untimesGetStatusWithResponseMockTests.java | 37 --- ...ationRuntimesGetWithResponseMockTests.java | 40 --- ...grationRuntimesListByFactoryMockTests.java | 40 --- ...denciesEndpointsWithResponseMockTests.java | 41 --- ...timesRemoveLinksWithResponseMockTests.java | 37 --- .../IntegrationRuntimesStartMockTests.java | 36 -- .../IntegrationRuntimesStopMockTests.java | 33 -- ...sSyncCredentialsWithResponseMockTests.java | 34 -- ...nRuntimesUpgradeWithResponseMockTests.java | 33 -- .../generated/JiraObjectDatasetTests.java | 60 ---- .../generated/JiraSourceTests.java | 29 -- .../generated/JsonDatasetTests.java | 69 ---- .../JsonDatasetTypePropertiesTests.java | 46 --- .../generated/JsonFormatTests.java | 29 -- .../generated/JsonReadSettingsTests.java | 39 --- .../datafactory/generated/JsonSinkTests.java | 53 --- .../generated/JsonSourceTests.java | 49 --- .../generated/JsonWriteSettingsTests.java | 23 -- .../generated/LakeHouseLocationTests.java | 24 -- .../generated/LakeHouseReadSettingsTests.java | 33 -- .../generated/LakeHouseTableDatasetTests.java | 66 ---- ...eHouseTableDatasetTypePropertiesTests.java | 23 -- .../generated/LakeHouseTableSinkTests.java | 31 -- .../generated/LakeHouseTableSourceTests.java | 29 -- .../LakeHouseWriteSettingsTests.java | 31 -- .../LinkedIntegrationRuntimeRequestTests.java | 25 -- .../LinkedIntegrationRuntimeTests.java | 23 -- .../LinkedServiceDebugResourceTests.java | 61 ---- .../LinkedServiceListResponseTests.java | 72 ---- .../LinkedServiceReferenceTests.java | 41 --- .../LinkedServiceResourceInnerTests.java | 60 ---- .../generated/LinkedServiceTests.java | 63 ---- ...esCreateOrUpdateWithResponseMockTests.java | 72 ---- ...edServicesDeleteWithResponseMockTests.java | 33 -- ...inkedServicesGetWithResponseMockTests.java | 44 --- .../LinkedServicesListByFactoryMockTests.java | 45 --- .../generated/LogLocationSettingsTests.java | 47 --- .../generated/LogSettingsTests.java | 49 --- .../generated/LogStorageSettingsTests.java | 48 --- .../generated/LookupActivityTests.java | 104 ------ .../LookupActivityTypePropertiesTests.java | 50 --- .../generated/MagentoObjectDatasetTests.java | 61 ---- .../generated/MagentoSourceTests.java | 29 -- ...anagedIdentityCredentialResourceTests.java | 32 -- .../ManagedIdentityCredentialTests.java | 31 -- .../ManagedIdentityTypePropertiesTests.java | 25 -- ...nagedPrivateEndpointListResponseTests.java | 59 ---- ...agedPrivateEndpointResourceInnerTests.java | 54 --- .../ManagedPrivateEndpointTests.java | 50 --- ...tsCreateOrUpdateWithResponseMockTests.java | 66 ---- ...eEndpointsDeleteWithResponseMockTests.java | 34 -- ...vateEndpointsGetWithResponseMockTests.java | 42 --- ...rivateEndpointsListByFactoryMockTests.java | 42 --- ...anagedVirtualNetworkListResponseTests.java | 53 --- .../ManagedVirtualNetworkReferenceTests.java | 31 -- ...nagedVirtualNetworkResourceInnerTests.java | 43 --- .../generated/ManagedVirtualNetworkTests.java | 39 --- ...ksCreateOrUpdateWithResponseMockTests.java | 57 ---- ...rtualNetworksGetWithResponseMockTests.java | 39 --- ...VirtualNetworksListByFactoryMockTests.java | 39 --- .../MapperAttributeMappingTests.java | 77 ----- .../MapperAttributeMappingsTests.java | 170 ---------- .../MapperAttributeReferenceTests.java | 37 --- .../MapperConnectionReferenceTests.java | 30 -- .../generated/MapperConnectionTests.java | 61 ---- .../MapperDslConnectorPropertiesTests.java | 26 -- .../MapperPolicyRecurrenceTests.java | 29 -- .../generated/MapperPolicyTests.java | 33 -- .../MapperSourceConnectionsInfoTests.java | 106 ------ .../generated/MapperTablePropertiesTests.java | 40 --- .../generated/MapperTableSchemaTests.java | 27 -- .../generated/MapperTableTests.java | 38 --- .../MapperTargetConnectionsInfoTests.java | 235 ------------- .../generated/MappingDataFlowTests.java | 236 ------------- .../MappingDataFlowTypePropertiesTests.java | 174 ---------- .../generated/MariaDBSourceTests.java | 29 -- .../generated/MariaDBTableDatasetTests.java | 64 ---- .../generated/MarketoObjectDatasetTests.java | 61 ---- .../generated/MarketoSourceTests.java | 29 -- .../generated/MetadataItemTests.java | 22 -- .../generated/MicrosoftAccessSinkTests.java | 29 -- .../generated/MicrosoftAccessSourceTests.java | 28 -- .../MicrosoftAccessTableDatasetTests.java | 61 ---- ...AccessTableDatasetTypePropertiesTests.java | 23 -- .../MongoDbAtlasCollectionDatasetTests.java | 61 ---- ...sCollectionDatasetTypePropertiesTests.java | 24 -- .../MongoDbAtlasLinkedServiceTests.java | 62 ---- ...AtlasLinkedServiceTypePropertiesTests.java | 26 -- .../generated/MongoDbAtlasSinkTests.java | 29 -- .../generated/MongoDbAtlasSourceTests.java | 50 --- .../MongoDbCollectionDatasetTests.java | 63 ---- ...bCollectionDatasetTypePropertiesTests.java | 23 -- .../MongoDbCursorMethodsPropertiesTests.java | 41 --- .../generated/MongoDbSourceTests.java | 28 -- .../MongoDbV2CollectionDatasetTests.java | 65 ---- ...2CollectionDatasetTypePropertiesTests.java | 24 -- .../MongoDbV2LinkedServiceTests.java | 59 ---- ...oDbV2LinkedServiceTypePropertiesTests.java | 25 -- .../generated/MongoDbV2SinkTests.java | 29 -- .../generated/MongoDbV2SourceTests.java | 50 --- .../MultiplePipelineTriggerTests.java | 61 ---- .../generated/MySqlSourceTests.java | 29 -- .../generated/MySqlTableDatasetTests.java | 61 ---- .../MySqlTableDatasetTypePropertiesTests.java | 23 -- .../NetezzaPartitionSettingsTests.java | 25 -- .../generated/NetezzaSourceTests.java | 34 -- .../generated/NetezzaTableDatasetTests.java | 65 ---- ...etezzaTableDatasetTypePropertiesTests.java | 26 -- .../generated/NotebookParameterTests.java | 27 -- .../generated/ODataResourceDatasetTests.java | 60 ---- ...ataResourceDatasetTypePropertiesTests.java | 22 -- .../generated/ODataSourceTests.java | 29 -- .../datafactory/generated/OdbcSinkTests.java | 29 -- .../generated/OdbcSourceTests.java | 29 -- .../generated/OdbcTableDatasetTests.java | 62 ---- .../OdbcTableDatasetTypePropertiesTests.java | 22 -- .../generated/Office365DatasetTests.java | 64 ---- .../Office365DatasetTypePropertiesTests.java | 24 -- .../generated/Office365SourceTests.java | 32 -- .../generated/OperationDisplayTests.java | 36 -- .../generated/OperationInnerTests.java | 104 ------ .../generated/OperationListResponseTests.java | 79 ----- .../OperationLogSpecificationTests.java | 32 -- .../OperationMetricAvailabilityTests.java | 29 -- .../OperationMetricDimensionTests.java | 32 -- .../OperationMetricSpecificationTests.java | 74 ----- .../generated/OperationPropertiesTests.java | 149 --------- .../OperationServiceSpecificationTests.java | 86 ----- .../generated/OperationsListMockTests.java | 65 ---- .../OracleCloudStorageLocationTests.java | 26 -- .../OracleCloudStorageReadSettingsTests.java | 35 -- .../OraclePartitionSettingsTests.java | 26 -- .../OracleServiceCloudObjectDatasetTests.java | 64 ---- .../OracleServiceCloudSourceTests.java | 29 -- .../generated/OracleSinkTests.java | 29 -- .../generated/OracleSourceTests.java | 35 -- .../generated/OracleTableDatasetTests.java | 66 ---- ...OracleTableDatasetTypePropertiesTests.java | 24 -- .../datafactory/generated/OrcFormatTests.java | 23 -- .../datafactory/generated/OrcSinkTests.java | 54 --- .../datafactory/generated/OrcSourceTests.java | 45 --- .../generated/OrcWriteSettingsTests.java | 24 -- .../generated/PackageStoreTests.java | 37 --- .../ParameterSpecificationTests.java | 28 -- .../generated/ParquetFormatTests.java | 23 -- .../generated/ParquetReadSettingsTests.java | 39 --- .../generated/ParquetSinkTests.java | 54 --- .../generated/ParquetSourceTests.java | 49 --- .../generated/ParquetWriteSettingsTests.java | 24 -- .../generated/PaypalObjectDatasetTests.java | 64 ---- .../generated/PaypalSourceTests.java | 29 -- .../PhoenixDatasetTypePropertiesTests.java | 24 -- .../generated/PhoenixObjectDatasetTests.java | 66 ---- .../generated/PhoenixSourceTests.java | 29 -- .../PipelineElapsedTimeMetricPolicyTests.java | 22 -- ...neExternalComputeScalePropertiesTests.java | 48 --- .../generated/PipelineFolderTests.java | 24 -- .../generated/PipelineListResponseTests.java | 256 -------------- .../generated/PipelinePolicyTests.java | 24 -- .../generated/PipelineReferenceTests.java | 27 -- .../generated/PipelineResourceInnerTests.java | 114 ------- .../generated/PipelineRunInnerTests.java | 55 --- .../generated/PipelineRunInvokedByTests.java | 23 -- ...pelineRunsCancelWithResponseMockTests.java | 35 -- .../PipelineRunsGetWithResponseMockTests.java | 37 --- .../datafactory/generated/PipelineTests.java | 105 ------ ...esCreateOrUpdateWithResponseMockTests.java | 145 -------- ...pelinesCreateRunWithResponseMockTests.java | 54 --- .../PipelinesDeleteWithResponseMockTests.java | 33 -- .../PipelinesGetWithResponseMockTests.java | 54 --- .../PipelinesListByFactoryMockTests.java | 56 ---- .../generated/PolybaseSettingsTests.java | 45 --- .../generated/PostgreSqlSourceTests.java | 29 -- .../PostgreSqlTableDatasetTests.java | 65 ---- ...greSqlTableDatasetTypePropertiesTests.java | 25 -- .../generated/PostgreSqlV2SourceTests.java | 29 -- .../PostgreSqlV2TableDatasetTests.java | 65 ---- ...eSqlV2TableDatasetTypePropertiesTests.java | 24 -- .../generated/PowerQuerySinkMappingTests.java | 85 ----- .../generated/PowerQuerySinkTests.java | 78 ----- .../generated/PowerQuerySourceTests.java | 72 ---- .../PowerQueryTypePropertiesTests.java | 134 -------- .../PrestoDatasetTypePropertiesTests.java | 25 -- .../generated/PrestoObjectDatasetTests.java | 66 ---- .../generated/PrestoSourceTests.java | 29 -- ...ointConnectionsListByFactoryMockTests.java | 45 --- ...teEndpointConnectionListResponseTests.java | 52 --- ...nsCreateOrUpdateWithResponseMockTests.java | 54 --- ...OperationsDeleteWithResponseMockTests.java | 34 -- ...ionOperationsGetWithResponseMockTests.java | 43 --- ...eEndpointConnectionResourceInnerTests.java | 40 --- .../generated/PrivateEndpointTests.java | 24 -- ...onnectionApprovalRequestResourceTests.java | 45 --- ...ateLinkConnectionApprovalRequestTests.java | 38 --- .../PrivateLinkConnectionStateTests.java | 32 -- .../PrivateLinkResourcePropertiesTests.java | 23 -- .../generated/PrivateLinkResourceTests.java | 28 -- ...LinkResourcesGetWithResponseMockTests.java | 39 --- ...PrivateLinkResourcesWrapperInnerTests.java | 32 -- .../generated/PurviewConfigurationTests.java | 25 -- ...eryDataFlowDebugSessionsResponseTests.java | 91 ----- .../QuickBooksObjectDatasetTests.java | 63 ---- .../generated/QuickBooksSourceTests.java | 29 -- .../RecurrenceScheduleOccurrenceTests.java | 45 --- .../generated/RecurrenceScheduleTests.java | 69 ---- .../RedirectIncompatibleRowSettingsTests.java | 40 --- .../RedshiftUnloadSettingsTests.java | 47 --- .../generated/RelationalSourceTests.java | 28 -- .../RelationalTableDatasetTests.java | 61 ---- ...tionalTableDatasetTypePropertiesTests.java | 23 -- .../RemotePrivateEndpointConnectionTests.java | 36 -- .../RerunTumblingWindowTriggerTests.java | 39 --- ...blingWindowTriggerTypePropertiesTests.java | 35 -- .../ResponsysObjectDatasetTests.java | 63 ---- .../generated/ResponsysSourceTests.java | 29 -- .../generated/RestResourceDatasetTests.java | 67 ---- ...estResourceDatasetTypePropertiesTests.java | 42 --- .../datafactory/generated/RestSinkTests.java | 33 -- .../generated/RestSourceTests.java | 33 -- .../generated/RetryPolicyTests.java | 25 -- .../generated/RunQueryFilterTests.java | 35 -- .../generated/RunQueryOrderByTests.java | 30 -- ...forceMarketingCloudObjectDatasetTests.java | 64 ---- .../SalesforceMarketingCloudSourceTests.java | 29 -- .../SalesforceObjectDatasetTests.java | 67 ---- ...forceObjectDatasetTypePropertiesTests.java | 23 -- ...esforceServiceCloudObjectDatasetTests.java | 63 ---- ...CloudObjectDatasetTypePropertiesTests.java | 24 -- .../SalesforceServiceCloudSinkTests.java | 35 -- .../SalesforceServiceCloudSourceTests.java | 30 -- ...forceServiceCloudV2ObjectDatasetTests.java | 63 ---- ...oudV2ObjectDatasetTypePropertiesTests.java | 25 -- .../SalesforceServiceCloudV2SinkTests.java | 35 -- .../SalesforceServiceCloudV2SourceTests.java | 29 -- .../generated/SalesforceSinkTests.java | 35 -- .../generated/SalesforceSourceTests.java | 30 -- .../SalesforceV2ObjectDatasetTests.java | 63 ---- ...rceV2ObjectDatasetTypePropertiesTests.java | 25 -- .../generated/SalesforceV2SinkTests.java | 35 -- .../generated/SalesforceV2SourceTests.java | 30 -- .../generated/SapBwCubeDatasetTests.java | 61 ---- .../generated/SapBwSourceTests.java | 29 -- ...pCloudForCustomerResourceDatasetTests.java | 61 ---- ...merResourceDatasetTypePropertiesTests.java | 24 -- .../SapCloudForCustomerSinkTests.java | 34 -- .../SapCloudForCustomerSourceTests.java | 30 -- .../generated/SapEccResourceDatasetTests.java | 68 ---- ...EccResourceDatasetTypePropertiesTests.java | 23 -- .../generated/SapEccSourceTests.java | 30 -- .../SapHanaPartitionSettingsTests.java | 22 -- .../generated/SapHanaSourceTests.java | 33 -- .../generated/SapHanaTableDatasetTests.java | 64 ---- ...apHanaTableDatasetTypePropertiesTests.java | 24 -- .../generated/SapOdpResourceDatasetTests.java | 67 ---- ...OdpResourceDatasetTypePropertiesTests.java | 24 -- .../generated/SapOdpSourceTests.java | 32 -- .../generated/SapOpenHubSourceTests.java | 32 -- .../SapOpenHubTableDatasetTests.java | 67 ---- ...penHubTableDatasetTypePropertiesTests.java | 26 -- .../SapTablePartitionSettingsTests.java | 26 -- .../SapTableResourceDatasetTests.java | 67 ---- ...bleResourceDatasetTypePropertiesTests.java | 23 -- .../generated/SapTableSourceTests.java | 41 --- .../ScheduleTriggerRecurrenceTests.java | 85 ----- .../generated/ScheduleTriggerTests.java | 111 ------- .../ScheduleTriggerTypePropertiesTests.java | 92 ------ .../generated/ScriptActionTests.java | 31 -- .../ScriptActivityParameterTests.java | 36 -- .../ScriptActivityScriptBlockTests.java | 51 --- .../generated/ScriptActivityTests.java | 118 ------- ...ctivityTypePropertiesLogSettingsTests.java | 53 --- .../ScriptActivityTypePropertiesTests.java | 120 ------- .../generated/SecretBaseTests.java | 21 -- .../SecureInputOutputPolicyTests.java | 27 -- .../generated/SecureStringTests.java | 25 -- ...cyTumblingWindowTriggerReferenceTests.java | 29 -- ...ostedIntegrationRuntimeNodeInnerTests.java | 48 --- ...lfHostedIntegrationRuntimeStatusTests.java | 88 ----- ...ationRuntimeStatusTypePropertiesTests.java | 85 ----- .../ServiceNowObjectDatasetTests.java | 65 ---- .../generated/ServiceNowSourceTests.java | 29 -- .../ServiceNowV2ObjectDatasetTests.java | 65 ---- .../generated/ServiceNowV2SourceTests.java | 76 ----- .../generated/SetVariableActivityTests.java | 92 ------ ...etVariableActivityTypePropertiesTests.java | 30 -- .../generated/SftpLocationTests.java | 23 -- .../generated/SftpReadSettingsTests.java | 34 -- .../generated/SftpWriteSettingsTests.java | 31 -- ...tOnlineListDatasetTypePropertiesTests.java | 23 -- ...rePointOnlineListResourceDatasetTests.java | 62 ---- .../SharePointOnlineListSourceTests.java | 28 -- .../generated/ShopifyObjectDatasetTests.java | 63 ---- .../generated/ShopifySourceTests.java | 29 -- .../generated/SkipErrorFileTests.java | 24 -- .../generated/SnowflakeDatasetTests.java | 63 ---- .../SnowflakeDatasetTypePropertiesTests.java | 24 -- .../SnowflakeExportCopyCommandTests.java | 40 --- .../SnowflakeImportCopyCommandTests.java | 41 --- .../generated/SnowflakeSinkTests.java | 49 --- .../generated/SnowflakeSourceTests.java | 46 --- .../generated/SnowflakeV2DatasetTests.java | 64 ---- .../generated/SnowflakeV2SinkTests.java | 48 --- .../generated/SnowflakeV2SourceTests.java | 47 --- ...gurationParametrizationReferenceTests.java | 29 -- .../SparkDatasetTypePropertiesTests.java | 25 -- .../generated/SparkObjectDatasetTests.java | 66 ---- .../generated/SparkSourceTests.java | 29 -- .../generated/SqlDWSourceTests.java | 37 --- .../generated/SqlMISourceTests.java | 38 --- .../generated/SqlPartitionSettingsTests.java | 25 -- .../generated/SqlServerSourceTests.java | 38 --- ...SqlServerStoredProcedureActivityTests.java | 96 ------ ...dProcedureActivityTypePropertiesTests.java | 26 -- .../generated/SqlServerTableDatasetTests.java | 64 ---- ...ServerTableDatasetTypePropertiesTests.java | 26 -- .../datafactory/generated/SqlSourceTests.java | 37 --- .../generated/SquareObjectDatasetTests.java | 64 ---- .../generated/SquareSourceTests.java | 29 -- .../generated/SsisChildPackageTests.java | 31 -- .../SsisEnvironmentReferenceTests.java | 35 -- .../SsisExecutionParameterTests.java | 22 -- .../generated/SsisFolderTests.java | 30 -- ...sObjectMetadataListResponseInnerTests.java | 44 --- ...bjectMetadataStatusResponseInnerTests.java | 37 --- .../generated/SsisObjectMetadataTests.java | 32 -- .../generated/SsisParameterTests.java | 59 ---- .../generated/SsisProjectTests.java | 139 -------- .../generated/SsisPropertyOverrideTests.java | 25 -- .../generated/SsisVariableTests.java | 44 --- .../generated/StagingSettingsTests.java | 46 --- .../generated/StoreReadSettingsTests.java | 39 --- .../generated/StoreWriteSettingsTests.java | 46 --- .../SubResourceDebugResourceTests.java | 25 -- .../generated/SwitchActivityTests.java | 263 --------------- .../SwitchActivityTypePropertiesTests.java | 312 ------------------ .../generated/SwitchCaseTests.java | 94 ------ .../generated/SybaseSourceTests.java | 29 -- .../generated/SybaseTableDatasetTests.java | 64 ---- ...SybaseTableDatasetTypePropertiesTests.java | 22 -- .../SynapseNotebookActivityTests.java | 125 ------- ...seNotebookActivityTypePropertiesTests.java | 77 ----- .../SynapseNotebookReferenceTests.java | 29 -- .../SynapseSparkJobReferenceTests.java | 29 -- .../generated/TabularSourceTests.java | 28 -- .../generated/TabularTranslatorTests.java | 35 -- .../generated/TarGZipReadSettingsTests.java | 23 -- .../generated/TarReadSettingsTests.java | 23 -- .../TeradataPartitionSettingsTests.java | 25 -- .../generated/TeradataSourceTests.java | 34 -- .../generated/TeradataTableDatasetTests.java | 64 ---- ...radataTableDatasetTypePropertiesTests.java | 25 -- .../generated/TextFormatTests.java | 33 -- .../generated/TransformationTests.java | 66 ---- .../TriggerDependencyReferenceTests.java | 31 -- .../generated/TriggerListResponseTests.java | 67 ---- .../TriggerPipelineReferenceTests.java | 45 --- .../generated/TriggerReferenceTests.java | 30 -- .../generated/TriggerResourceInnerTests.java | 47 --- .../generated/TriggerRunTests.java | 57 ---- ...riggerRunsCancelWithResponseMockTests.java | 35 -- ...TriggerRunsRerunWithResponseMockTests.java | 34 -- ...SubscriptionOperationStatusInnerTests.java | 23 -- .../datafactory/generated/TriggerTests.java | 43 --- ...rsCreateOrUpdateWithResponseMockTests.java | 61 ---- .../TriggersDeleteWithResponseMockTests.java | 33 -- ...bscriptionStatusWithResponseMockTests.java | 36 -- .../TriggersGetWithResponseMockTests.java | 40 --- .../TriggersListByFactoryMockTests.java | 40 --- .../generated/TriggersStartMockTests.java | 33 -- .../generated/TriggersStopMockTests.java | 33 -- .../TriggersSubscribeToEventsMockTests.java | 35 -- ...riggersUnsubscribeFromEventsMockTests.java | 35 -- ...WindowTriggerDependencyReferenceTests.java | 39 --- .../generated/TumblingWindowTriggerTests.java | 76 ----- ...blingWindowTriggerTypePropertiesTests.java | 49 --- .../TypeConversionSettingsTests.java | 28 -- .../generated/UntilActivityTests.java | 133 -------- .../UntilActivityTypePropertiesTests.java | 161 --------- ...ateIntegrationRuntimeNodeRequestTests.java | 26 -- .../UpdateIntegrationRuntimeRequestTests.java | 31 -- .../generated/UserAccessPolicyTests.java | 38 --- .../generated/UserPropertyTests.java | 25 -- .../generated/ValidationActivityTests.java | 85 ----- ...ValidationActivityTypePropertiesTests.java | 47 --- .../generated/VariableSpecificationTests.java | 27 -- .../VerticaDatasetTypePropertiesTests.java | 25 -- .../generated/VerticaSourceTests.java | 29 -- .../generated/VerticaTableDatasetTests.java | 65 ---- .../generated/WaitActivityTests.java | 72 ---- .../WaitActivityTypePropertiesTests.java | 22 -- .../generated/WarehouseSinkTests.java | 58 ---- .../generated/WarehouseSourceTests.java | 37 --- .../generated/WarehouseTableDatasetTests.java | 63 ---- ...ehouseTableDatasetTypePropertiesTests.java | 25 -- .../WebAnonymousAuthenticationTests.java | 23 -- .../generated/WebLinkedServiceTests.java | 61 ---- .../WebLinkedServiceTypePropertiesTests.java | 24 -- .../datafactory/generated/WebSourceTests.java | 27 -- .../generated/WebTableDatasetTests.java | 66 ---- .../WebTableDatasetTypePropertiesTests.java | 24 -- .../generated/WranglingDataFlowTests.java | 90 ----- .../generated/XeroObjectDatasetTests.java | 62 ---- .../generated/XeroSourceTests.java | 29 -- .../generated/XmlDatasetTests.java | 69 ---- .../XmlDatasetTypePropertiesTests.java | 47 --- .../generated/XmlReadSettingsTests.java | 44 --- .../datafactory/generated/XmlSourceTests.java | 54 --- .../ZipDeflateReadSettingsTests.java | 23 -- .../generated/ZohoObjectDatasetTests.java | 65 ---- .../generated/ZohoSourceTests.java | 29 -- 824 files changed, 16 insertions(+), 41447 deletions(-) delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationImpl.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsImpl.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operation.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationDisplay.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationListResponse.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationLogSpecification.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricSpecification.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationServiceSpecification.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityDependencyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOraclePartitionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BigDataPoolParametrizationReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStatusWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStopWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityLogSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsExecuteCommandMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsQueryByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePowerQueryActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteWranglingDataflowActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeCustomerVirtualNetworkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MetadataItemTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationDisplayTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationLogSpecificationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricAvailabilityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricDimensionTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricSpecificationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationPropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationServiceSpecificationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationsListMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OraclePartitionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PackageStoreTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleOccurrenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedirectIncompatibleRowSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RetryPolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaPartitionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityParameterTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2ObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkConfigurationParametrizationReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlPartitionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisChildPackageTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPropertyOverrideTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisVariableTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseSparkJobReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataPartitionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactoryMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStartMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStopMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsMockTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md index d6ba0667db5e..8b99682f9b0d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.29 (Unreleased) +## 1.0.0-beta.1 (2024-04-24) + +- 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). ### Features Added diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/README.md b/sdk/datafactory/azure-resourcemanager-datafactory/README.md index aaeaa8bb1525..94f4838fce87 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-beta.28 + 1.0.0-beta.29 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md index 8563cde04405..b782c8e32b24 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md @@ -121,10 +121,6 @@ - [Get](#managedvirtualnetworks_get) - [ListByFactory](#managedvirtualnetworks_listbyfactory) -## Operations - -- [List](#operations_list) - ## PipelineRuns - [Cancel](#pipelineruns_cancel) @@ -2381,27 +2377,6 @@ public final class ManagedVirtualNetworksListByFactorySamples { } ``` -### Operations_List - -```java -/** - * Samples for Operations List. - */ -public final class OperationsListSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json - */ - /** - * Sample code: Operations_List. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void operationsList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.operations().list(com.azure.core.util.Context.NONE); - } -} -``` - ### PipelineRuns_Cancel ```java 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 4fdb7a2af40e..cf8badf74d73 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 @@ -40,7 +40,6 @@ import com.azure.resourcemanager.datafactory.implementation.LinkedServicesImpl; import com.azure.resourcemanager.datafactory.implementation.ManagedPrivateEndpointsImpl; import com.azure.resourcemanager.datafactory.implementation.ManagedVirtualNetworksImpl; -import com.azure.resourcemanager.datafactory.implementation.OperationsImpl; import com.azure.resourcemanager.datafactory.implementation.PipelineRunsImpl; import com.azure.resourcemanager.datafactory.implementation.PipelinesImpl; import com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsImpl; @@ -63,7 +62,6 @@ import com.azure.resourcemanager.datafactory.models.LinkedServices; import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoints; import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworks; -import com.azure.resourcemanager.datafactory.models.Operations; import com.azure.resourcemanager.datafactory.models.PipelineRuns; import com.azure.resourcemanager.datafactory.models.Pipelines; import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionOperations; @@ -84,8 +82,6 @@ * V2 services. */ public final class DataFactoryManager { - private Operations operations; - private Factories factories; private ExposureControls exposureControls; @@ -294,7 +290,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.datafactory") .append("/") - .append("1.0.0-beta.28"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -340,18 +336,6 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile } } - /** - * Gets the resource collection API of Operations. - * - * @return Resource collection API of Operations. - */ - public Operations operations() { - if (this.operations == null) { - this.operations = new OperationsImpl(clientObject.getOperations(), this); - } - return operations; - } - /** * Gets the resource collection API of Factories. It manages Factory. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java index f57adc6ca8ca..48ac69f134f1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java @@ -46,13 +46,6 @@ public interface DataFactoryManagementClient { */ Duration getDefaultPollInterval(); - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - OperationsClient getOperations(); - /** * Gets the FactoriesClient object to access its operations. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java deleted file mode 100644 index d18434fedbf5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; - -/** - * An instance of this class provides access to all the operations defined in OperationsClient. - */ -public interface OperationsClient { - /** - * Lists the available Azure Data Factory API operations. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists the available Azure Data Factory API operations. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java deleted file mode 100644 index 99757b731906..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Azure Data Factory API operation definition. - */ -@Fluent -public final class OperationInner { - /* - * Operation name: {provider}/{resource}/{operation} - */ - @JsonProperty(value = "name") - private String name; - - /* - * The intended executor of the operation. - */ - @JsonProperty(value = "origin") - private String origin; - - /* - * Metadata associated with the operation. - */ - @JsonProperty(value = "display") - private OperationDisplay display; - - /* - * Additional details about the operation. - */ - @JsonProperty(value = "properties") - private OperationProperties innerProperties; - - /** - * Creates an instance of OperationInner class. - */ - public OperationInner() { - } - - /** - * Get the name property: Operation name: {provider}/{resource}/{operation}. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Operation name: {provider}/{resource}/{operation}. - * - * @param name the name value to set. - * @return the OperationInner object itself. - */ - public OperationInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the origin property: The intended executor of the operation. - * - * @return the origin value. - */ - public String origin() { - return this.origin; - } - - /** - * Set the origin property: The intended executor of the operation. - * - * @param origin the origin value to set. - * @return the OperationInner object itself. - */ - public OperationInner withOrigin(String origin) { - this.origin = origin; - return this; - } - - /** - * Get the display property: Metadata associated with the operation. - * - * @return the display value. - */ - public OperationDisplay display() { - return this.display; - } - - /** - * Set the display property: Metadata associated with the operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - - /** - * Get the innerProperties property: Additional details about the operation. - * - * @return the innerProperties value. - */ - private OperationProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the serviceSpecification property: Details about a service operation. - * - * @return the serviceSpecification value. - */ - public OperationServiceSpecification serviceSpecification() { - return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification(); - } - - /** - * Set the serviceSpecification property: Details about a service operation. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationInner object itself. - */ - public OperationInner withServiceSpecification(OperationServiceSpecification serviceSpecification) { - if (this.innerProperties() == null) { - this.innerProperties = new OperationProperties(); - } - this.innerProperties().withServiceSpecification(serviceSpecification); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (display() != null) { - display().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java deleted file mode 100644 index 709dfac44ef1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Additional details about an operation. - */ -@Fluent -public final class OperationProperties { - /* - * Details about a service operation. - */ - @JsonProperty(value = "serviceSpecification") - private OperationServiceSpecification serviceSpecification; - - /** - * Creates an instance of OperationProperties class. - */ - public OperationProperties() { - } - - /** - * Get the serviceSpecification property: Details about a service operation. - * - * @return the serviceSpecification value. - */ - public OperationServiceSpecification serviceSpecification() { - return this.serviceSpecification; - } - - /** - * Set the serviceSpecification property: Details about a service operation. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationProperties object itself. - */ - public OperationProperties withServiceSpecification(OperationServiceSpecification serviceSpecification) { - this.serviceSpecification = serviceSpecification; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (serviceSpecification() != null) { - serviceSpecification().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java index f7aa8ce11541..3bcce06aa84d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java @@ -39,7 +39,6 @@ import com.azure.resourcemanager.datafactory.fluent.LinkedServicesClient; import com.azure.resourcemanager.datafactory.fluent.ManagedPrivateEndpointsClient; import com.azure.resourcemanager.datafactory.fluent.ManagedVirtualNetworksClient; -import com.azure.resourcemanager.datafactory.fluent.OperationsClient; import com.azure.resourcemanager.datafactory.fluent.PipelineRunsClient; import com.azure.resourcemanager.datafactory.fluent.PipelinesClient; import com.azure.resourcemanager.datafactory.fluent.PrivateEndpointConnectionOperationsClient; @@ -145,20 +144,6 @@ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } - /** - * The OperationsClient object to access its operations. - */ - private final OperationsClient operations; - - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - public OperationsClient getOperations() { - return this.operations; - } - /** * The FactoriesClient object to access its operations. */ @@ -485,7 +470,6 @@ public ChangeDataCapturesClient getChangeDataCaptures() { this.subscriptionId = subscriptionId; this.endpoint = endpoint; this.apiVersion = "2018-06-01"; - this.operations = new OperationsClientImpl(this); this.factories = new FactoriesClientImpl(this); this.exposureControls = new ExposureControlsClientImpl(this); this.integrationRuntimes = new IntegrationRuntimesClientImpl(this); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationImpl.java deleted file mode 100644 index 7c52e332861a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationImpl.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.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.Operation; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; - -public final class OperationImpl implements Operation { - private OperationInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - OperationImpl(OperationInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String name() { - return this.innerModel().name(); - } - - public String origin() { - return this.innerModel().origin(); - } - - public OperationDisplay display() { - return this.innerModel().display(); - } - - public OperationServiceSpecification serviceSpecification() { - return this.innerModel().serviceSpecification(); - } - - public OperationInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java deleted file mode 100644 index dc4698dfaa21..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.OperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.OperationListResponse; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in OperationsClient. - */ -public final class OperationsClientImpl implements OperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final OperationsService service; - - /** - * The service client containing this operation class. - */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of OperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - OperationsClientImpl(DataFactoryManagementClientImpl client) { - this.service - = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientOperations to be used by the proxy service - * to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - public interface OperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/providers/Microsoft.DataFactory/operations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @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 operations that can be performed by the Data Factory service 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.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @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 operations that can be performed by the Data Factory service 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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @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 operations that can be performed by the Data Factory service as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @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 operations that can be performed by the Data Factory service 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 the available Azure Data Factory API operations. - * - * @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 operations that can be performed by the Data Factory service as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @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 operations that can be performed by the Data Factory service as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsImpl.java deleted file mode 100644 index 007783781099..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsImpl.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.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.OperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.Operation; -import com.azure.resourcemanager.datafactory.models.Operations; - -public final class OperationsImpl implements Operations { - private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); - - private final OperationsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public OperationsImpl(OperationsClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); - } - - private OperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operation.java deleted file mode 100644 index daaafa9af09a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operation.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.models; - -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; - -/** - * An immutable client-side representation of Operation. - */ -public interface Operation { - /** - * Gets the name property: Operation name: {provider}/{resource}/{operation}. - * - * @return the name value. - */ - String name(); - - /** - * Gets the origin property: The intended executor of the operation. - * - * @return the origin value. - */ - String origin(); - - /** - * Gets the display property: Metadata associated with the operation. - * - * @return the display value. - */ - OperationDisplay display(); - - /** - * Gets the serviceSpecification property: Details about a service operation. - * - * @return the serviceSpecification value. - */ - OperationServiceSpecification serviceSpecification(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.OperationInner object. - * - * @return the inner object. - */ - OperationInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationDisplay.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationDisplay.java deleted file mode 100644 index 193af8b77513..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationDisplay.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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Metadata associated with the operation. - */ -@Fluent -public final class OperationDisplay { - /* - * The description of the operation. - */ - @JsonProperty(value = "description") - private String description; - - /* - * The name of the provider. - */ - @JsonProperty(value = "provider") - private String provider; - - /* - * The name of the resource type on which the operation is performed. - */ - @JsonProperty(value = "resource") - private String resource; - - /* - * The type of operation: get, read, delete, etc. - */ - @JsonProperty(value = "operation") - private String operation; - - /** - * Creates an instance of OperationDisplay class. - */ - public OperationDisplay() { - } - - /** - * Get the description property: The description of the operation. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The description of the operation. - * - * @param description the description value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the provider property: The name of the provider. - * - * @return the provider value. - */ - public String provider() { - return this.provider; - } - - /** - * Set the provider property: The name of the provider. - * - * @param provider the provider value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withProvider(String provider) { - this.provider = provider; - return this; - } - - /** - * Get the resource property: The name of the resource type on which the operation is performed. - * - * @return the resource value. - */ - public String resource() { - return this.resource; - } - - /** - * Set the resource property: The name of the resource type on which the operation is performed. - * - * @param resource the resource value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withResource(String resource) { - this.resource = resource; - return this; - } - - /** - * Get the operation property: The type of operation: get, read, delete, etc. - * - * @return the operation value. - */ - public String operation() { - return this.operation; - } - - /** - * Set the operation property: The type of operation: get, read, delete, etc. - * - * @param operation the operation value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withOperation(String operation) { - this.operation = operation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationListResponse.java deleted file mode 100644 index d7db4ac196b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationListResponse.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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** - * A list of operations that can be performed by the Data Factory service. - */ -@Fluent -public final class OperationListResponse { - /* - * List of Data Factory operations supported by the Data Factory resource provider. - */ - @JsonProperty(value = "value") - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Creates an instance of OperationListResponse class. - */ - public OperationListResponse() { - } - - /** - * Get the value property: List of Data Factory operations supported by the Data Factory resource provider. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of Data Factory operations supported by the Data Factory resource provider. - * - * @param value the value value to set. - * @return the OperationListResponse object itself. - */ - public OperationListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the OperationListResponse object itself. - */ - public OperationListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationLogSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationLogSpecification.java deleted file mode 100644 index aeca27bdc4a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationLogSpecification.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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Details about an operation related to logs. - */ -@Fluent -public final class OperationLogSpecification { - /* - * The name of the log category. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Localized display name. - */ - @JsonProperty(value = "displayName") - private String displayName; - - /* - * Blobs created in the customer storage account, per hour. - */ - @JsonProperty(value = "blobDuration") - private String blobDuration; - - /** - * Creates an instance of OperationLogSpecification class. - */ - public OperationLogSpecification() { - } - - /** - * Get the name property: The name of the log category. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the log category. - * - * @param name the name value to set. - * @return the OperationLogSpecification object itself. - */ - public OperationLogSpecification withName(String name) { - this.name = name; - return this; - } - - /** - * Get the displayName property: Localized display name. - * - * @return the displayName value. - */ - public String displayName() { - return this.displayName; - } - - /** - * Set the displayName property: Localized display name. - * - * @param displayName the displayName value to set. - * @return the OperationLogSpecification object itself. - */ - public OperationLogSpecification withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Get the blobDuration property: Blobs created in the customer storage account, per hour. - * - * @return the blobDuration value. - */ - public String blobDuration() { - return this.blobDuration; - } - - /** - * Set the blobDuration property: Blobs created in the customer storage account, per hour. - * - * @param blobDuration the blobDuration value to set. - * @return the OperationLogSpecification object itself. - */ - public OperationLogSpecification withBlobDuration(String blobDuration) { - this.blobDuration = blobDuration; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricSpecification.java deleted file mode 100644 index 66fc0be30620..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricSpecification.java +++ /dev/null @@ -1,295 +0,0 @@ -// Copyright (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.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** - * Details about an operation related to metrics. - */ -@Fluent -public final class OperationMetricSpecification { - /* - * The name of the metric. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Localized display name of the metric. - */ - @JsonProperty(value = "displayName") - private String displayName; - - /* - * The description of the metric. - */ - @JsonProperty(value = "displayDescription") - private String displayDescription; - - /* - * The unit that the metric is measured in. - */ - @JsonProperty(value = "unit") - private String unit; - - /* - * The type of metric aggregation. - */ - @JsonProperty(value = "aggregationType") - private String aggregationType; - - /* - * Whether or not the service is using regional MDM accounts. - */ - @JsonProperty(value = "enableRegionalMdmAccount") - private String enableRegionalMdmAccount; - - /* - * The name of the MDM account. - */ - @JsonProperty(value = "sourceMdmAccount") - private String sourceMdmAccount; - - /* - * The name of the MDM namespace. - */ - @JsonProperty(value = "sourceMdmNamespace") - private String sourceMdmNamespace; - - /* - * Defines how often data for metrics becomes available. - */ - @JsonProperty(value = "availabilities") - private List availabilities; - - /* - * Defines the metric dimension. - */ - @JsonProperty(value = "dimensions") - private List dimensions; - - /** - * Creates an instance of OperationMetricSpecification class. - */ - public OperationMetricSpecification() { - } - - /** - * Get the name property: The name of the metric. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the metric. - * - * @param name the name value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withName(String name) { - this.name = name; - return this; - } - - /** - * Get the displayName property: Localized display name of the metric. - * - * @return the displayName value. - */ - public String displayName() { - return this.displayName; - } - - /** - * Set the displayName property: Localized display name of the metric. - * - * @param displayName the displayName value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Get the displayDescription property: The description of the metric. - * - * @return the displayDescription value. - */ - public String displayDescription() { - return this.displayDescription; - } - - /** - * Set the displayDescription property: The description of the metric. - * - * @param displayDescription the displayDescription value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withDisplayDescription(String displayDescription) { - this.displayDescription = displayDescription; - return this; - } - - /** - * Get the unit property: The unit that the metric is measured in. - * - * @return the unit value. - */ - public String unit() { - return this.unit; - } - - /** - * Set the unit property: The unit that the metric is measured in. - * - * @param unit the unit value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withUnit(String unit) { - this.unit = unit; - return this; - } - - /** - * Get the aggregationType property: The type of metric aggregation. - * - * @return the aggregationType value. - */ - public String aggregationType() { - return this.aggregationType; - } - - /** - * Set the aggregationType property: The type of metric aggregation. - * - * @param aggregationType the aggregationType value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withAggregationType(String aggregationType) { - this.aggregationType = aggregationType; - return this; - } - - /** - * Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. - * - * @return the enableRegionalMdmAccount value. - */ - public String enableRegionalMdmAccount() { - return this.enableRegionalMdmAccount; - } - - /** - * Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. - * - * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withEnableRegionalMdmAccount(String enableRegionalMdmAccount) { - this.enableRegionalMdmAccount = enableRegionalMdmAccount; - return this; - } - - /** - * Get the sourceMdmAccount property: The name of the MDM account. - * - * @return the sourceMdmAccount value. - */ - public String sourceMdmAccount() { - return this.sourceMdmAccount; - } - - /** - * Set the sourceMdmAccount property: The name of the MDM account. - * - * @param sourceMdmAccount the sourceMdmAccount value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withSourceMdmAccount(String sourceMdmAccount) { - this.sourceMdmAccount = sourceMdmAccount; - return this; - } - - /** - * Get the sourceMdmNamespace property: The name of the MDM namespace. - * - * @return the sourceMdmNamespace value. - */ - public String sourceMdmNamespace() { - return this.sourceMdmNamespace; - } - - /** - * Set the sourceMdmNamespace property: The name of the MDM namespace. - * - * @param sourceMdmNamespace the sourceMdmNamespace value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { - this.sourceMdmNamespace = sourceMdmNamespace; - return this; - } - - /** - * Get the availabilities property: Defines how often data for metrics becomes available. - * - * @return the availabilities value. - */ - public List availabilities() { - return this.availabilities; - } - - /** - * Set the availabilities property: Defines how often data for metrics becomes available. - * - * @param availabilities the availabilities value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withAvailabilities(List availabilities) { - this.availabilities = availabilities; - return this; - } - - /** - * Get the dimensions property: Defines the metric dimension. - * - * @return the dimensions value. - */ - public List dimensions() { - return this.dimensions; - } - - /** - * Set the dimensions property: Defines the metric dimension. - * - * @param dimensions the dimensions value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withDimensions(List dimensions) { - this.dimensions = dimensions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (availabilities() != null) { - availabilities().forEach(e -> e.validate()); - } - if (dimensions() != null) { - dimensions().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationServiceSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationServiceSpecification.java deleted file mode 100644 index 5961fcc67e0c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationServiceSpecification.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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** - * Details about a service operation. - */ -@Fluent -public final class OperationServiceSpecification { - /* - * Details about operations related to logs. - */ - @JsonProperty(value = "logSpecifications") - private List logSpecifications; - - /* - * Details about operations related to metrics. - */ - @JsonProperty(value = "metricSpecifications") - private List metricSpecifications; - - /** - * Creates an instance of OperationServiceSpecification class. - */ - public OperationServiceSpecification() { - } - - /** - * Get the logSpecifications property: Details about operations related to logs. - * - * @return the logSpecifications value. - */ - public List logSpecifications() { - return this.logSpecifications; - } - - /** - * Set the logSpecifications property: Details about operations related to logs. - * - * @param logSpecifications the logSpecifications value to set. - * @return the OperationServiceSpecification object itself. - */ - public OperationServiceSpecification withLogSpecifications(List logSpecifications) { - this.logSpecifications = logSpecifications; - return this; - } - - /** - * Get the metricSpecifications property: Details about operations related to metrics. - * - * @return the metricSpecifications value. - */ - public List metricSpecifications() { - return this.metricSpecifications; - } - - /** - * Set the metricSpecifications property: Details about operations related to metrics. - * - * @param metricSpecifications the metricSpecifications value to set. - * @return the OperationServiceSpecification object itself. - */ - public OperationServiceSpecification - withMetricSpecifications(List metricSpecifications) { - this.metricSpecifications = metricSpecifications; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (logSpecifications() != null) { - logSpecifications().forEach(e -> e.validate()); - } - if (metricSpecifications() != null) { - metricSpecifications().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java deleted file mode 100644 index 9c08d82b901f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; - -/** - * Resource collection API of Operations. - */ -public interface Operations { - /** - * Lists the available Azure Data Factory API operations. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Lists the available Azure Data Factory API operations. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/proxy-config.json b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/proxy-config.json index 7c41c2eae6af..918892bfa5c5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/proxy-config.json +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.datafactory.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.FactoriesClientImpl$FactoriesService" ], [ "com.azure.resourcemanager.datafactory.implementation.ExposureControlsClientImpl$ExposureControlsService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimesClientImpl$IntegrationRuntimesService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeObjectMetadatasClientImpl$IntegrationRuntimeObjectMetadatasService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeNodesClientImpl$IntegrationRuntimeNodesService" ], [ "com.azure.resourcemanager.datafactory.implementation.LinkedServicesClientImpl$LinkedServicesService" ], [ "com.azure.resourcemanager.datafactory.implementation.DatasetsClientImpl$DatasetsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PipelinesClientImpl$PipelinesService" ], [ "com.azure.resourcemanager.datafactory.implementation.PipelineRunsClientImpl$PipelineRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.ActivityRunsClientImpl$ActivityRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.TriggersClientImpl$TriggersService" ], [ "com.azure.resourcemanager.datafactory.implementation.TriggerRunsClientImpl$TriggerRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.DataFlowsClientImpl$DataFlowsService" ], [ "com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsClientImpl$DataFlowDebugSessionsService" ], [ "com.azure.resourcemanager.datafactory.implementation.ManagedVirtualNetworksClientImpl$ManagedVirtualNetworksService" ], [ "com.azure.resourcemanager.datafactory.implementation.ManagedPrivateEndpointsClientImpl$ManagedPrivateEndpointsService" ], [ "com.azure.resourcemanager.datafactory.implementation.CredentialOperationsClientImpl$CredentialOperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateEndPointConnectionsClientImpl$PrivateEndPointConnectionsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsClientImpl$PrivateEndpointConnectionOperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService" ], [ "com.azure.resourcemanager.datafactory.implementation.GlobalParametersClientImpl$GlobalParametersService" ], [ "com.azure.resourcemanager.datafactory.implementation.ChangeDataCapturesClientImpl$ChangeDataCapturesService" ] ] \ No newline at end of file +[ [ "com.azure.resourcemanager.datafactory.implementation.FactoriesClientImpl$FactoriesService" ], [ "com.azure.resourcemanager.datafactory.implementation.ExposureControlsClientImpl$ExposureControlsService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimesClientImpl$IntegrationRuntimesService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeObjectMetadatasClientImpl$IntegrationRuntimeObjectMetadatasService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeNodesClientImpl$IntegrationRuntimeNodesService" ], [ "com.azure.resourcemanager.datafactory.implementation.LinkedServicesClientImpl$LinkedServicesService" ], [ "com.azure.resourcemanager.datafactory.implementation.DatasetsClientImpl$DatasetsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PipelinesClientImpl$PipelinesService" ], [ "com.azure.resourcemanager.datafactory.implementation.PipelineRunsClientImpl$PipelineRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.ActivityRunsClientImpl$ActivityRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.TriggersClientImpl$TriggersService" ], [ "com.azure.resourcemanager.datafactory.implementation.TriggerRunsClientImpl$TriggerRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.DataFlowsClientImpl$DataFlowsService" ], [ "com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsClientImpl$DataFlowDebugSessionsService" ], [ "com.azure.resourcemanager.datafactory.implementation.ManagedVirtualNetworksClientImpl$ManagedVirtualNetworksService" ], [ "com.azure.resourcemanager.datafactory.implementation.ManagedPrivateEndpointsClientImpl$ManagedPrivateEndpointsService" ], [ "com.azure.resourcemanager.datafactory.implementation.CredentialOperationsClientImpl$CredentialOperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateEndPointConnectionsClientImpl$PrivateEndPointConnectionsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsClientImpl$PrivateEndpointConnectionOperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService" ], [ "com.azure.resourcemanager.datafactory.implementation.GlobalParametersClientImpl$GlobalParametersService" ], [ "com.azure.resourcemanager.datafactory.implementation.ChangeDataCapturesClientImpl$ChangeDataCapturesService" ] ] \ No newline at end of file diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/reflect-config.json b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/reflect-config.json index a1227b27c834..e6c1d452f6d8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/reflect-config.json +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/reflect-config.json @@ -1,49 +1,4 @@ [ { - "name" : "com.azure.resourcemanager.datafactory.models.OperationListResponse", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.fluent.models.OperationInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.models.OperationDisplay", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.fluent.models.OperationProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.models.OperationServiceSpecification", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.models.OperationLogSpecification", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricSpecification", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricAvailability", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricDimension", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { "name" : "com.azure.resourcemanager.datafactory.models.FactoryListResponse", "allDeclaredConstructors" : true, "allDeclaredFields" : true, @@ -813,6 +768,16 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricAvailability", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricDimension", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.datafactory.models.GetDataFactoryOperationStatusResponse", "allDeclaredConstructors" : true, diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java deleted file mode 100644 index 9d2e79197593..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.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; - -/** - * Samples for Operations List. - */ -public final class OperationsListSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json - */ - /** - * Sample code: Operations_List. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void operationsList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.operations().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityDependencyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityDependencyTests.java deleted file mode 100644 index 96325df73672..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityDependencyTests.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.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ActivityDependencyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ActivityDependency model = BinaryData.fromString( - "{\"activity\":\"biorktal\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Skipped\",\"Skipped\"],\"\":{\"iloxggdufiq\":\"datahxmsivfo\",\"hvcyyysfg\":\"datadieuzaofj\"}}") - .toObject(ActivityDependency.class); - Assertions.assertEquals("biorktal", model.activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependencyConditions().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityDependency model = new ActivityDependency().withActivity("biorktal") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ActivityDependency.class); - Assertions.assertEquals("biorktal", model.activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependencyConditions().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/ActivityPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java deleted file mode 100644 index 657471c12653..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\":\"dataqrfywwzsip\",\"retry\":\"dataqhvktcztmqdkh\",\"retryIntervalInSeconds\":1446450607,\"secureInput\":true,\"secureOutput\":false,\"\":{\"xqfrntz\":\"datavlyaprjzbx\"}}") - .toObject(ActivityPolicy.class); - Assertions.assertEquals(1446450607, model.retryIntervalInSeconds()); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(false, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityPolicy model = new ActivityPolicy().withTimeout("dataqrfywwzsip") - .withRetry("dataqhvktcztmqdkh") - .withRetryIntervalInSeconds(1446450607) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ActivityPolicy.class); - Assertions.assertEquals(1446450607, model.retryIntervalInSeconds()); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(false, 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 dccb1481b5d0..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\":\"xvd\",\"pipelineRunId\":\"fwafqrouda\",\"activityName\":\"avehhrvkbunzo\",\"activityType\":\"dhcxgkmoy\",\"activityRunId\":\"dyuib\",\"linkedServiceName\":\"fdn\",\"status\":\"ydvfvfcjnae\",\"activityRunStart\":\"2020-12-25T22:41:16Z\",\"activityRunEnd\":\"2021-04-06T16:13:31Z\",\"durationInMs\":716191050,\"input\":\"dataorffukiscv\",\"output\":\"datazhwplefaxvxilc\",\"error\":\"datagnhnzeyq\",\"\":{\"dbeesmie\":\"datajfzqlqhycavodgg\",\"wqfbylyrfgiagt\":\"datanlrariaawiuagy\",\"zjvusfzldmo\":\"dataojocqwogf\",\"own\":\"datauxylfsbtkadpy\"}}") - .toObject(ActivityRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityRun model = new ActivityRun().withAdditionalProperties( - mapOf("durationInMs", 716191050, "linkedServiceName", "fdn", "activityRunStart", "2020-12-25T22:41:16Z", - "activityRunEnd", "2021-04-06T16:13:31Z", "activityName", "avehhrvkbunzo", "error", "datagnhnzeyq", - "pipelineName", "xvd", "output", "datazhwplefaxvxilc", "activityRunId", "dyuib", "input", - "dataorffukiscv", "pipelineRunId", "fwafqrouda", "activityType", "dhcxgkmoy", "status", "ydvfvfcjnae")); - 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 0bc036ab7543..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.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.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\":\"hud\",\"name\":\"goo\",\"description\":\"kqfqjbvl\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"iqtqzfavyvnq\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"jkqa\":\"datayeua\"}},{\"activity\":\"qgzsles\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"vbquwr\":\"datatiewdj\",\"uffkmrqemvvh\":\"dataehwagoh\"}},{\"activity\":\"xtdr\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Failed\",\"Skipped\"],\"\":{\"ewzcjznmwcp\":\"databj\",\"v\":\"dataguaadraufactkahz\",\"eekulfgslqubkwd\":\"datajjziuxxpsh\"}}],\"userProperties\":[{\"name\":\"rds\",\"value\":\"datatujbazpju\"},{\"name\":\"hminyflnorwmduv\",\"value\":\"datapklvxw\"},{\"name\":\"ygdxpgpqchis\",\"value\":\"dataepn\"},{\"name\":\"bjcrxgibbdaxco\",\"value\":\"datafozauorsuk\"}],\"\":{\"vnuuepzl\":\"databqplh\",\"vmnnrw\":\"dataphwzsoldweyuqdu\"}}") - .toObject(Activity.class); - Assertions.assertEquals("goo", model.name()); - Assertions.assertEquals("kqfqjbvl", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("iqtqzfavyvnq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rds", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Activity model = new Activity().withName("goo") - .withDescription("kqfqjbvl") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("iqtqzfavyvnq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qgzsles") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xtdr") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("rds").withValue("datatujbazpju"), - new UserProperty().withName("hminyflnorwmduv").withValue("datapklvxw"), - new UserProperty().withName("ygdxpgpqchis").withValue("dataepn"), - new UserProperty().withName("bjcrxgibbdaxco").withValue("datafozauorsuk"))) - .withAdditionalProperties(mapOf("type", "hud")); - model = BinaryData.fromObject(model).toObject(Activity.class); - Assertions.assertEquals("goo", model.name()); - Assertions.assertEquals("kqfqjbvl", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("iqtqzfavyvnq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rds", 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 fa501b0264b2..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\":\"r\"}").toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("r", model.jobVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDataFlowToDebugSessionResponseInner model = new AddDataFlowToDebugSessionResponseInner().withJobVersion("r"); - model = BinaryData.fromObject(model).toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("r", 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 2ef6cf910199..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.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.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\":\"dfclmowurofofkbc\",\"typeProperties\":{\"tableName\":\"datatytvnpbgces\"},\"description\":\"zwweobl\",\"structure\":\"datadq\",\"schema\":\"dataixccnkfsog\",\"linkedServiceName\":{\"referenceName\":\"yoxmyqzyqepg\",\"parameters\":{\"dpwmgwxwukfjvqg\":\"datadsluokcevoxd\"}},\"parameters\":{\"kpalecztl\":{\"type\":\"Float\",\"defaultValue\":\"dataisvvvgyphheove\"},\"fssrgrq\":{\"type\":\"Array\",\"defaultValue\":\"datatzpu\"},\"louurmuzembqq\":{\"type\":\"Int\",\"defaultValue\":\"dataquo\"},\"gslqcxuthv\":{\"type\":\"Bool\",\"defaultValue\":\"datadhjofywwnaxoxlor\"}},\"annotations\":[\"datalyyhrgmabspmlu\",\"datayju\",\"datakedputocrb\",\"datagqicmdrgcuzjmvkr\"],\"folder\":{\"name\":\"cqhgcmljzksqimy\"},\"\":{\"qpvhszopeukufds\":\"datavfiomhc\",\"fsjbpwjwz\":\"databsskgqjemosq\"}}") - .toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("zwweobl", model.description()); - Assertions.assertEquals("yoxmyqzyqepg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("kpalecztl").type()); - Assertions.assertEquals("cqhgcmljzksqimy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsObjectDataset model = new AmazonMwsObjectDataset().withDescription("zwweobl") - .withStructure("datadq") - .withSchema("dataixccnkfsog") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("yoxmyqzyqepg") - .withParameters(mapOf("dpwmgwxwukfjvqg", "datadsluokcevoxd"))) - .withParameters(mapOf("kpalecztl", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataisvvvgyphheove"), - "fssrgrq", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datatzpu"), - "louurmuzembqq", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataquo"), - "gslqcxuthv", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datadhjofywwnaxoxlor"))) - .withAnnotations(Arrays.asList("datalyyhrgmabspmlu", "datayju", "datakedputocrb", "datagqicmdrgcuzjmvkr")) - .withFolder(new DatasetFolder().withName("cqhgcmljzksqimy")) - .withTableName("datatytvnpbgces"); - model = BinaryData.fromObject(model).toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("zwweobl", model.description()); - Assertions.assertEquals("yoxmyqzyqepg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("kpalecztl").type()); - Assertions.assertEquals("cqhgcmljzksqimy", 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 ffca45338b06..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\":\"imvziyicxnxci\",\"query\":\"datahdlwlehhqxy\",\"queryTimeout\":\"dataakzgryfxwwqbey\",\"additionalColumns\":\"datadnjmjies\",\"sourceRetryCount\":\"datalvzxucnpa\",\"sourceRetryWait\":\"datarairefifbisljhg\",\"maxConcurrentConnections\":\"datajm\",\"disableMetricsCollection\":\"datam\",\"\":{\"hjhpxjlgiurmli\":\"datagcbrmmweeuy\"}}") - .toObject(AmazonMwsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsSource model = new AmazonMwsSource().withSourceRetryCount("datalvzxucnpa") - .withSourceRetryWait("datarairefifbisljhg") - .withMaxConcurrentConnections("datajm") - .withDisableMetricsCollection("datam") - .withQueryTimeout("dataakzgryfxwwqbey") - .withAdditionalColumns("datadnjmjies") - .withQuery("datahdlwlehhqxy"); - 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 76df20489e85..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\":\"datagows\",\"partitionColumnName\":\"dataguap\",\"partitionUpperBound\":\"datalhhmby\",\"partitionLowerBound\":\"datacexpopqy\"}") - .toObject(AmazonRdsForOraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOraclePartitionSettings model - = new AmazonRdsForOraclePartitionSettings().withPartitionNames("datagows") - .withPartitionColumnName("dataguap") - .withPartitionUpperBound("datalhhmby") - .withPartitionLowerBound("datacexpopqy"); - 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 42492181de5c..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\":\"ftqkg\",\"oracleReaderQuery\":\"dataa\",\"queryTimeout\":\"databrwvio\",\"partitionOption\":\"datayhsorcavkfhyoig\",\"partitionSettings\":{\"partitionNames\":\"datadfteratvpkgaw\",\"partitionColumnName\":\"dataujizdmhepfj\",\"partitionUpperBound\":\"datawzgwmumuchvqwhs\",\"partitionLowerBound\":\"dataaqd\"},\"additionalColumns\":\"dataeln\",\"sourceRetryCount\":\"datagoullxpaylk\",\"sourceRetryWait\":\"datastbkskkziebmwyo\",\"maxConcurrentConnections\":\"datamplgdxdtxbrdbw\",\"disableMetricsCollection\":\"datatxpfofr\",\"\":{\"ukqscmd\":\"databbnoevkkrlkd\"}}") - .toObject(AmazonRdsForOracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleSource model = new AmazonRdsForOracleSource().withSourceRetryCount("datagoullxpaylk") - .withSourceRetryWait("datastbkskkziebmwyo") - .withMaxConcurrentConnections("datamplgdxdtxbrdbw") - .withDisableMetricsCollection("datatxpfofr") - .withOracleReaderQuery("dataa") - .withQueryTimeout("databrwvio") - .withPartitionOption("datayhsorcavkfhyoig") - .withPartitionSettings(new AmazonRdsForOraclePartitionSettings().withPartitionNames("datadfteratvpkgaw") - .withPartitionColumnName("dataujizdmhepfj") - .withPartitionUpperBound("datawzgwmumuchvqwhs") - .withPartitionLowerBound("dataaqd")) - .withAdditionalColumns("dataeln"); - 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 67f4702a25ec..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\":\"gmkokqoikx\",\"typeProperties\":{\"schema\":\"datawxcevdspt\",\"table\":\"dataffmwt\"},\"description\":\"fwlnmlkff\",\"structure\":\"datau\",\"schema\":\"datatbsliejdnccot\",\"linkedServiceName\":{\"referenceName\":\"likjiytehhxt\",\"parameters\":{\"rctysecpekhxdb\":\"datadwbymuqlngncrd\",\"zcvimmwcko\":\"datahq\"}},\"parameters\":{\"upqtzckj\":{\"type\":\"Int\",\"defaultValue\":\"datamtrtsv\"},\"nc\":{\"type\":\"Array\",\"defaultValue\":\"datakgnrfrjschj\"}},\"annotations\":[\"datahgt\",\"databgd\"],\"folder\":{\"name\":\"morzolxosg\"},\"\":{\"gvznjq\":\"datarxueqbmxq\",\"cxlngoufpi\":\"datawshesgcsqos\",\"mfxzspf\":\"datap\",\"zipplxg\":\"datavsl\"}}") - .toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("fwlnmlkff", model.description()); - Assertions.assertEquals("likjiytehhxt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("upqtzckj").type()); - Assertions.assertEquals("morzolxosg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDataset model = new AmazonRdsForOracleTableDataset().withDescription("fwlnmlkff") - .withStructure("datau") - .withSchema("datatbsliejdnccot") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("likjiytehhxt") - .withParameters(mapOf("rctysecpekhxdb", "datadwbymuqlngncrd", "zcvimmwcko", "datahq"))) - .withParameters(mapOf("upqtzckj", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datamtrtsv"), "nc", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datakgnrfrjschj"))) - .withAnnotations(Arrays.asList("datahgt", "databgd")) - .withFolder(new DatasetFolder().withName("morzolxosg")) - .withSchemaTypePropertiesSchema("datawxcevdspt") - .withTable("dataffmwt"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("fwlnmlkff", model.description()); - Assertions.assertEquals("likjiytehhxt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("upqtzckj").type()); - Assertions.assertEquals("morzolxosg", 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 d020881dbe70..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\":\"dataum\",\"table\":\"dataycildrzn\"}") - .toObject(AmazonRdsForOracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDatasetTypeProperties model - = new AmazonRdsForOracleTableDatasetTypeProperties().withSchema("dataum").withTable("dataycildrzn"); - 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 83548bb8e491..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\":\"i\",\"sqlReaderQuery\":\"datamthdqvcifwknlyt\",\"sqlReaderStoredProcedureName\":\"datartocadtnmqrpj\",\"storedProcedureParameters\":\"datajixcya\",\"isolationLevel\":\"dataii\",\"produceAdditionalTypes\":\"datadbtrkv\",\"partitionOption\":\"datauessuuzfrw\",\"partitionSettings\":{\"partitionColumnName\":\"datarngjqc\",\"partitionUpperBound\":\"datafbkrtpulp\",\"partitionLowerBound\":\"datayqsiniej\"},\"queryTimeout\":\"dataukbdtmr\",\"additionalColumns\":\"datatuzfhvb\",\"sourceRetryCount\":\"datauluilgmovadn\",\"sourceRetryWait\":\"datasmjxgqsbjc\",\"maxConcurrentConnections\":\"dataaruvbzcqgtzxtlr\",\"disableMetricsCollection\":\"datatdznvjgovyqppp\",\"\":{\"kntfwxkeu\":\"dataepttab\",\"noveabw\":\"dataxgpcrvvmrdlckp\",\"swhqmrpdxn\":\"dataaiqikzysdha\"}}") - .toObject(AmazonRdsForSqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerSource model = new AmazonRdsForSqlServerSource().withSourceRetryCount("datauluilgmovadn") - .withSourceRetryWait("datasmjxgqsbjc") - .withMaxConcurrentConnections("dataaruvbzcqgtzxtlr") - .withDisableMetricsCollection("datatdznvjgovyqppp") - .withQueryTimeout("dataukbdtmr") - .withAdditionalColumns("datatuzfhvb") - .withSqlReaderQuery("datamthdqvcifwknlyt") - .withSqlReaderStoredProcedureName("datartocadtnmqrpj") - .withStoredProcedureParameters("datajixcya") - .withIsolationLevel("dataii") - .withProduceAdditionalTypes("datadbtrkv") - .withPartitionOption("datauessuuzfrw") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datarngjqc") - .withPartitionUpperBound("datafbkrtpulp") - .withPartitionLowerBound("datayqsiniej")); - 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 7769daf572c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.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.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\":\"vlqcwyzhndqk\",\"typeProperties\":{\"schema\":\"dataauimnntf\",\"table\":\"datapwqcnbn\"},\"description\":\"tzpze\",\"structure\":\"datalce\",\"schema\":\"datat\",\"linkedServiceName\":{\"referenceName\":\"htuwc\",\"parameters\":{\"lujm\":\"datacaumviudzpsjqr\",\"mpjbh\":\"dataunlofwuzebfq\",\"wkhdlckdoxocj\":\"datayenfspetxeu\"}},\"parameters\":{\"eortwwyjmgvr\":{\"type\":\"Object\",\"defaultValue\":\"datapf\"}},\"annotations\":[\"datax\"],\"folder\":{\"name\":\"jnnhbcjywkdywks\"},\"\":{\"plkossjbzvxp\":\"datauafanefictp\",\"aczhfjdccjn\":\"datawdqzuhfgt\",\"g\":\"datauvbtcuhj\",\"bszsbzrrxey\":\"datatjkntomnlzthc\"}}") - .toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("tzpze", model.description()); - Assertions.assertEquals("htuwc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("eortwwyjmgvr").type()); - Assertions.assertEquals("jnnhbcjywkdywks", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDataset model = new AmazonRdsForSqlServerTableDataset().withDescription("tzpze") - .withStructure("datalce") - .withSchema("datat") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("htuwc") - .withParameters(mapOf("lujm", "datacaumviudzpsjqr", "mpjbh", "dataunlofwuzebfq", "wkhdlckdoxocj", - "datayenfspetxeu"))) - .withParameters(mapOf("eortwwyjmgvr", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datapf"))) - .withAnnotations(Arrays.asList("datax")) - .withFolder(new DatasetFolder().withName("jnnhbcjywkdywks")) - .withSchemaTypePropertiesSchema("dataauimnntf") - .withTable("datapwqcnbn"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("tzpze", model.description()); - Assertions.assertEquals("htuwc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("eortwwyjmgvr").type()); - Assertions.assertEquals("jnnhbcjywkdywks", 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 3ed2b2e67a34..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.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.AmazonRdsForSqlServerTableDatasetTypeProperties; - -public final class AmazonRdsForSqlServerTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datad\",\"table\":\"datawlrmbdctqx\"}") - .toObject(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model - = new AmazonRdsForSqlServerTableDatasetTypeProperties().withSchema("datad").withTable("datawlrmbdctqx"); - 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 f88057d40747..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\":\"joxwugdzwoczfizf\",\"query\":\"datajc\",\"redshiftUnloadSettings\":{\"s3LinkedServiceName\":{\"referenceName\":\"aaabtxrhemnkyk\",\"parameters\":{\"jpzeeqvku\":\"dataomwyoktzffpcdq\",\"coikstap\":\"dataykiyrfoko\",\"rmugkugwtgfktw\":\"databdh\",\"isatb\":\"datayhauhqvxeyl\"}},\"bucketName\":\"dataghtkdcuf\"},\"queryTimeout\":\"dataernq\",\"additionalColumns\":\"dataiyyys\",\"sourceRetryCount\":\"datapddzzdw\",\"sourceRetryWait\":\"datavmocnfzmuyykxlfl\",\"maxConcurrentConnections\":\"datauwunsnyqpmnyvnbm\",\"disableMetricsCollection\":\"dataomcrev\",\"\":{\"i\":\"dataclilzv\",\"nraeodixoflxv\":\"datadnobxcdx\",\"frbjrbqc\":\"datauhxrctcozfj\",\"icmhhv\":\"datarrwbcycwasmrfbw\"}}") - .toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("aaabtxrhemnkyk", model.redshiftUnloadSettings().s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftSource model - = new AmazonRedshiftSource().withSourceRetryCount("datapddzzdw") - .withSourceRetryWait("datavmocnfzmuyykxlfl") - .withMaxConcurrentConnections("datauwunsnyqpmnyvnbm") - .withDisableMetricsCollection("dataomcrev") - .withQueryTimeout("dataernq") - .withAdditionalColumns("dataiyyys") - .withQuery("datajc") - .withRedshiftUnloadSettings( - new RedshiftUnloadSettings() - .withS3LinkedServiceName(new LinkedServiceReference().withReferenceName("aaabtxrhemnkyk") - .withParameters(mapOf("jpzeeqvku", "dataomwyoktzffpcdq", "coikstap", "dataykiyrfoko", - "rmugkugwtgfktw", "databdh", "isatb", "datayhauhqvxeyl"))) - .withBucketName("dataghtkdcuf")); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("aaabtxrhemnkyk", 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 286f6e64a512..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.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.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\":\"hjbozvoo\",\"typeProperties\":{\"tableName\":\"datajejqa\",\"table\":\"datausqpfzxkczbd\",\"schema\":\"databb\"},\"description\":\"clnh\",\"structure\":\"datacyuzlybqscibv\",\"schema\":\"datakvck\",\"linkedServiceName\":{\"referenceName\":\"afnwqh\",\"parameters\":{\"mgjz\":\"datacnviulby\",\"wpbgumwhmxp\":\"datay\",\"trvlv\":\"datacknsastlpsmgomic\",\"xok\":\"dataj\"}},\"parameters\":{\"emklphx\":{\"type\":\"Float\",\"defaultValue\":\"dataecjrzvlcivqx\"}},\"annotations\":[\"datalojkbgnfbrzj\",\"datafsunh\",\"dataevlahxczywyw\",\"dataahwcorewcnn\"],\"folder\":{\"name\":\"qjfdajr\"},\"\":{\"bxexf\":\"datamomggewd\",\"vussuqks\":\"dataz\",\"qbyeywpmoh\":\"datawsfxay\",\"dzt\":\"datartlikff\"}}") - .toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("clnh", model.description()); - Assertions.assertEquals("afnwqh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("emklphx").type()); - Assertions.assertEquals("qjfdajr", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDataset model = new AmazonRedshiftTableDataset().withDescription("clnh") - .withStructure("datacyuzlybqscibv") - .withSchema("datakvck") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("afnwqh") - .withParameters(mapOf("mgjz", "datacnviulby", "wpbgumwhmxp", "datay", "trvlv", "datacknsastlpsmgomic", - "xok", "dataj"))) - .withParameters(mapOf("emklphx", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataecjrzvlcivqx"))) - .withAnnotations(Arrays.asList("datalojkbgnfbrzj", "datafsunh", "dataevlahxczywyw", "dataahwcorewcnn")) - .withFolder(new DatasetFolder().withName("qjfdajr")) - .withTableName("datajejqa") - .withTable("datausqpfzxkczbd") - .withSchemaTypePropertiesSchema("databb"); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("clnh", model.description()); - Assertions.assertEquals("afnwqh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("emklphx").type()); - Assertions.assertEquals("qjfdajr", 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 944f989d7b93..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\":\"datarfbg\",\"table\":\"datazfwvzdteqjmy\",\"schema\":\"datauh\"}") - .toObject(AmazonRedshiftTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDatasetTypeProperties model - = new AmazonRedshiftTableDatasetTypeProperties().withTableName("datarfbg") - .withTable("datazfwvzdteqjmy") - .withSchema("datauh"); - 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 4eb0555b97f5..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\":\"fnqh\",\"bucketName\":\"datakkt\",\"version\":\"datazejogmkorvvmvm\",\"folderPath\":\"datasnosnqliwkmzojf\",\"fileName\":\"datayalhtgm\",\"\":{\"sttcucrcmm\":\"datazgbjbhrpgi\"}}") - .toObject(AmazonS3CompatibleLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleLocation model = new AmazonS3CompatibleLocation().withFolderPath("datasnosnqliwkmzojf") - .withFileName("datayalhtgm") - .withBucketName("datakkt") - .withVersion("datazejogmkorvvmvm"); - 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 d14571fef9a9..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\":\"ojgmobkaligo\",\"recursive\":\"databpiie\",\"wildcardFolderPath\":\"datagchsgotgwerbpob\",\"wildcardFileName\":\"datah\",\"prefix\":\"dataicgrxceivvm\",\"fileListPath\":\"datakllqh\",\"enablePartitionDiscovery\":\"datautr\",\"partitionRootPath\":\"datamztrnniarje\",\"deleteFilesAfterCompletion\":\"datahyxiqfoq\",\"modifiedDatetimeStart\":\"datasqykqfserlsai\",\"modifiedDatetimeEnd\":\"datahhetagwmzg\",\"maxConcurrentConnections\":\"datakehpdssvlubdp\",\"disableMetricsCollection\":\"datawxsxbxdkmixurce\",\"\":{\"kcnkghkr\":\"datamjqqauftghmtbu\",\"eayodrvwnqb\":\"datairshl\"}}") - .toObject(AmazonS3CompatibleReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleReadSettings model - = new AmazonS3CompatibleReadSettings().withMaxConcurrentConnections("datakehpdssvlubdp") - .withDisableMetricsCollection("datawxsxbxdkmixurce") - .withRecursive("databpiie") - .withWildcardFolderPath("datagchsgotgwerbpob") - .withWildcardFileName("datah") - .withPrefix("dataicgrxceivvm") - .withFileListPath("datakllqh") - .withEnablePartitionDiscovery("datautr") - .withPartitionRootPath("datamztrnniarje") - .withDeleteFilesAfterCompletion("datahyxiqfoq") - .withModifiedDatetimeStart("datasqykqfserlsai") - .withModifiedDatetimeEnd("datahhetagwmzg"); - 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 d1d35d014279..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\":\"a\",\"bucketName\":\"datapaslavxjfiuofpi\",\"version\":\"datadzlvssqywj\",\"folderPath\":\"datayhydvikmfn\",\"fileName\":\"datamillxgjs\",\"\":{\"uynhbokayrgwybr\":\"datawgsoriobijeiydy\",\"or\":\"dataopdweoft\",\"gsioc\":\"dataa\"}}") - .toObject(AmazonS3Location.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3Location model = new AmazonS3Location().withFolderPath("datayhydvikmfn") - .withFileName("datamillxgjs") - .withBucketName("datapaslavxjfiuofpi") - .withVersion("datadzlvssqywj"); - 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 1155a7927f24..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\":\"vvkuzygzrzubdt\",\"recursive\":\"datavb\",\"wildcardFolderPath\":\"dataheyxewcskt\",\"wildcardFileName\":\"datawbprkf\",\"prefix\":\"dataxiikrjamzt\",\"fileListPath\":\"datamrg\",\"enablePartitionDiscovery\":\"dataypuotmkbofu\",\"partitionRootPath\":\"datahk\",\"deleteFilesAfterCompletion\":\"dataouzvegtnphnotr\",\"modifiedDatetimeStart\":\"datayje\",\"modifiedDatetimeEnd\":\"dataovjdunbaetsdufe\",\"maxConcurrentConnections\":\"dataachmhzpurnpkkbx\",\"disableMetricsCollection\":\"datacfiosra\",\"\":{\"cwuafbh\":\"datahdxnlu\",\"l\":\"dataoaqfpqfpkr\",\"oqdnxumefv\":\"datakvqogzaw\"}}") - .toObject(AmazonS3ReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3ReadSettings model = new AmazonS3ReadSettings().withMaxConcurrentConnections("dataachmhzpurnpkkbx") - .withDisableMetricsCollection("datacfiosra") - .withRecursive("datavb") - .withWildcardFolderPath("dataheyxewcskt") - .withWildcardFileName("datawbprkf") - .withPrefix("dataxiikrjamzt") - .withFileListPath("datamrg") - .withEnablePartitionDiscovery("dataypuotmkbofu") - .withPartitionRootPath("datahk") - .withDeleteFilesAfterCompletion("dataouzvegtnphnotr") - .withModifiedDatetimeStart("datayje") - .withModifiedDatetimeEnd("dataovjdunbaetsdufe"); - 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 42d2902f598a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.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.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\":\"ndirdlehjz\",\"typeProperties\":{\"variableName\":\"lrx\",\"value\":\"dataslccuyscjefa\"},\"name\":\"pdwyhggvhcoaoeti\",\"description\":\"tkeiram\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"glubqtfc\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"j\":\"datamir\"}}],\"userProperties\":[{\"name\":\"ksafjht\",\"value\":\"databrkghtsfp\"},{\"name\":\"junkhxthkqny\",\"value\":\"dataufvzrqaphep\"},{\"name\":\"eheeqq\",\"value\":\"datatasijiaqqwom\"}],\"\":{\"mvlfmv\":\"datamwqfdhg\",\"bafscdpbzpo\":\"dataumjmpsxz\",\"qtcnyhsdgmoxnelh\":\"datajhubzkzjazfwywv\",\"kofcsvipwa\":\"datahzfyzb\"}}") - .toObject(AppendVariableActivity.class); - Assertions.assertEquals("pdwyhggvhcoaoeti", model.name()); - Assertions.assertEquals("tkeiram", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("glubqtfc", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ksafjht", model.userProperties().get(0).name()); - Assertions.assertEquals("lrx", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivity model = new AppendVariableActivity().withName("pdwyhggvhcoaoeti") - .withDescription("tkeiram") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("glubqtfc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ksafjht").withValue("databrkghtsfp"), - new UserProperty().withName("junkhxthkqny").withValue("dataufvzrqaphep"), - new UserProperty().withName("eheeqq").withValue("datatasijiaqqwom"))) - .withVariableName("lrx") - .withValue("dataslccuyscjefa"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivity.class); - Assertions.assertEquals("pdwyhggvhcoaoeti", model.name()); - Assertions.assertEquals("tkeiram", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("glubqtfc", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ksafjht", model.userProperties().get(0).name()); - Assertions.assertEquals("lrx", 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 8714041a477f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.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.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\":\"huctprgpmgtjvu\",\"value\":\"datawcfzcsklvtcea\"}") - .toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("huctprgpmgtjvu", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivityTypeProperties model - = new AppendVariableActivityTypeProperties().withVariableName("huctprgpmgtjvu") - .withValue("datawcfzcsklvtcea"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("huctprgpmgtjvu", 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 5e971abcd200..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\":\"kxcpt\"}").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 f6cc657b6ceb..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\":\"kh\",\"serializer\":\"datagapvdgtfpeerscdx\",\"deserializer\":\"datarnjr\",\"\":{\"acnrgfdtncmspsan\":\"datamb\",\"b\":\"dataame\"}}") - .toObject(AvroFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroFormat model = new AvroFormat().withSerializer("datagapvdgtfpeerscdx").withDeserializer("datarnjr"); - 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 3b6e90047bed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.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.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\":\"p\",\"storeSettings\":{\"type\":\"nqcgbijyp\",\"maxConcurrentConnections\":\"databyrkxzebvxuzch\",\"disableMetricsCollection\":\"dataeogdkcrc\",\"copyBehavior\":\"datazzeu\",\"metadata\":[{\"name\":\"datapxir\",\"value\":\"datahuqkicimyykmke\"},{\"name\":\"dataqmnr\",\"value\":\"dataefxkattpkkwldvk\"},{\"name\":\"datagxakgoptbjooqo\",\"value\":\"datankvnuwjrxbbxkh\"}],\"\":{\"tglo\":\"databx\",\"jhyiey\":\"datafmlbhlimgzimtzz\",\"xalvdhmumsmnub\":\"datarwfu\",\"xidqnvhrbfepf\":\"datanxrpsty\"}},\"formatSettings\":{\"type\":\"kwoommqvzz\",\"recordName\":\"pxthsfuxhlgoexu\",\"recordNamespace\":\"bfoo\",\"maxRowsPerFile\":\"datatxdlewh\",\"fileNamePrefix\":\"datavrip\",\"\":{\"fh\":\"datawfo\"}},\"writeBatchSize\":\"dataljajz\",\"writeBatchTimeout\":\"datagwarbvblat\",\"sinkRetryCount\":\"datajk\",\"sinkRetryWait\":\"datatodgisfej\",\"maxConcurrentConnections\":\"datap\",\"disableMetricsCollection\":\"dataifujynfjwktiyhiy\",\"\":{\"wo\":\"datavaodifupdafuf\",\"rqhgnrxxhzwtrx\":\"datas\"}}") - .toObject(AvroSink.class); - Assertions.assertEquals("pxthsfuxhlgoexu", model.formatSettings().recordName()); - Assertions.assertEquals("bfoo", model.formatSettings().recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSink model = new AvroSink().withWriteBatchSize("dataljajz") - .withWriteBatchTimeout("datagwarbvblat") - .withSinkRetryCount("datajk") - .withSinkRetryWait("datatodgisfej") - .withMaxConcurrentConnections("datap") - .withDisableMetricsCollection("dataifujynfjwktiyhiy") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("databyrkxzebvxuzch") - .withDisableMetricsCollection("dataeogdkcrc") - .withCopyBehavior("datazzeu") - .withMetadata(Arrays.asList(new MetadataItem().withName("datapxir").withValue("datahuqkicimyykmke"), - new MetadataItem().withName("dataqmnr").withValue("dataefxkattpkkwldvk"), - new MetadataItem().withName("datagxakgoptbjooqo").withValue("datankvnuwjrxbbxkh"))) - .withAdditionalProperties(mapOf("type", "nqcgbijyp"))) - .withFormatSettings(new AvroWriteSettings().withRecordName("pxthsfuxhlgoexu") - .withRecordNamespace("bfoo") - .withMaxRowsPerFile("datatxdlewh") - .withFileNamePrefix("datavrip")); - model = BinaryData.fromObject(model).toObject(AvroSink.class); - Assertions.assertEquals("pxthsfuxhlgoexu", model.formatSettings().recordName()); - Assertions.assertEquals("bfoo", 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 081bbf228768..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\":\"ltozxdzoldwvfn\",\"storeSettings\":{\"type\":\"hgnf\",\"maxConcurrentConnections\":\"datanhwpnloifxzdo\",\"disableMetricsCollection\":\"datavxavhfhlxqww\",\"\":{\"b\":\"dataamcfrfaytcygoo\"}},\"additionalColumns\":\"datambcklfpemgfvvnk\",\"sourceRetryCount\":\"datayaterjjuz\",\"sourceRetryWait\":\"dataegeso\",\"maxConcurrentConnections\":\"datapudaluggdh\",\"disableMetricsCollection\":\"datatgekecu\",\"\":{\"sidityvvgxejhq\":\"datakuxvccpdact\"}}") - .toObject(AvroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSource model = new AvroSource().withSourceRetryCount("datayaterjjuz") - .withSourceRetryWait("dataegeso") - .withMaxConcurrentConnections("datapudaluggdh") - .withDisableMetricsCollection("datatgekecu") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datanhwpnloifxzdo") - .withDisableMetricsCollection("datavxavhfhlxqww") - .withAdditionalProperties(mapOf("type", "hgnf"))) - .withAdditionalColumns("datambcklfpemgfvvnk"); - 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 a8e3ea75597b..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\":\"jva\",\"recordName\":\"mktpykoicpk\",\"recordNamespace\":\"mqfdtbaobjaof\",\"maxRowsPerFile\":\"datavhhrgvkuuikr\",\"fileNamePrefix\":\"dataelrwsjvdxe\",\"\":{\"fm\":\"datagfvygrfyyknxua\",\"kt\":\"dataynlcimjmurocryfu\"}}") - .toObject(AvroWriteSettings.class); - Assertions.assertEquals("mktpykoicpk", model.recordName()); - Assertions.assertEquals("mqfdtbaobjaof", model.recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroWriteSettings model = new AvroWriteSettings().withRecordName("mktpykoicpk") - .withRecordNamespace("mqfdtbaobjaof") - .withMaxRowsPerFile("datavhhrgvkuuikr") - .withFileNamePrefix("dataelrwsjvdxe"); - model = BinaryData.fromObject(model).toObject(AvroWriteSettings.class); - Assertions.assertEquals("mktpykoicpk", model.recordName()); - Assertions.assertEquals("mqfdtbaobjaof", 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 cc22a54cb904..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\":\"ecjgpjnydkkgbv\",\"typeProperties\":{\"version\":\"kqaqgzcojgdqjh\"}}") - .toObject(AzPowerShellSetup.class); - Assertions.assertEquals("kqaqgzcojgdqjh", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetup model = new AzPowerShellSetup().withVersion("kqaqgzcojgdqjh"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetup.class); - Assertions.assertEquals("kqaqgzcojgdqjh", 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 e01eca68157f..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\":\"qksrgkvg\"}").toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("qksrgkvg", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetupTypeProperties model = new AzPowerShellSetupTypeProperties().withVersion("qksrgkvg"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("qksrgkvg", 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 b923e1d386c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.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.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\":\"pwnikxkcajgrbrc\",\"typeProperties\":{\"folderPath\":\"datauasnjeglhtrxb\",\"tableRootLocation\":\"datapcjcnwjzbqb\",\"fileName\":\"datarnwv\",\"modifiedDatetimeStart\":\"datavoqizawws\",\"modifiedDatetimeEnd\":\"dataorgfhjxsawooauff\",\"format\":{\"type\":\"qkmwzrdqyoybmrno\",\"serializer\":\"datacjnzdaiovrbh\",\"deserializer\":\"dataqphkv\",\"\":{\"yp\":\"dataadcrxyl\",\"iwhjdfrwpsshrmn\":\"datatyzvelffohu\",\"ogkscxj\":\"datacclpct\"}},\"compression\":{\"type\":\"datagmos\",\"level\":\"dataebnxsqcows\",\"\":{\"k\":\"datafqlamfbqhsu\",\"pn\":\"datafu\"}}},\"description\":\"vgoo\",\"structure\":\"datasazmzl\",\"schema\":\"dataxitmhxxrqic\",\"linkedServiceName\":{\"referenceName\":\"zfvwjdthkvpyeyoa\",\"parameters\":{\"kjr\":\"datampnqup\",\"qdcclcv\":\"datafwkyluobdxw\"}},\"parameters\":{\"cvwbz\":{\"type\":\"Int\",\"defaultValue\":\"dataay\"},\"qnpfydrfb\":{\"type\":\"Array\",\"defaultValue\":\"datalrymfjxlpiy\"},\"byxmkhmqyncgaull\":{\"type\":\"Array\",\"defaultValue\":\"datay\"},\"gm\":{\"type\":\"Array\",\"defaultValue\":\"datayygjqpulmw\"}},\"annotations\":[\"datamiwxzfvv\",\"dataucqfgufjnbxwbm\",\"datadukinhlxh\",\"datadekekzouyveww\"],\"folder\":{\"name\":\"dwcgldo\"},\"\":{\"dxfhhht\":\"dataa\",\"qtdn\":\"datast\",\"dshvvf\":\"datackkpl\"}}") - .toObject(AzureBlobDataset.class); - Assertions.assertEquals("vgoo", model.description()); - Assertions.assertEquals("zfvwjdthkvpyeyoa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("cvwbz").type()); - Assertions.assertEquals("dwcgldo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDataset model = new AzureBlobDataset().withDescription("vgoo") - .withStructure("datasazmzl") - .withSchema("dataxitmhxxrqic") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zfvwjdthkvpyeyoa") - .withParameters(mapOf("kjr", "datampnqup", "qdcclcv", "datafwkyluobdxw"))) - .withParameters(mapOf("cvwbz", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataay"), "qnpfydrfb", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datalrymfjxlpiy"), - "byxmkhmqyncgaull", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datay"), "gm", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datayygjqpulmw"))) - .withAnnotations(Arrays.asList("datamiwxzfvv", "dataucqfgufjnbxwbm", "datadukinhlxh", "datadekekzouyveww")) - .withFolder(new DatasetFolder().withName("dwcgldo")) - .withFolderPath("datauasnjeglhtrxb") - .withTableRootLocation("datapcjcnwjzbqb") - .withFileName("datarnwv") - .withModifiedDatetimeStart("datavoqizawws") - .withModifiedDatetimeEnd("dataorgfhjxsawooauff") - .withFormat(new DatasetStorageFormat().withSerializer("datacjnzdaiovrbh") - .withDeserializer("dataqphkv") - .withAdditionalProperties(mapOf("type", "qkmwzrdqyoybmrno"))) - .withCompression(new DatasetCompression().withType("datagmos") - .withLevel("dataebnxsqcows") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobDataset.class); - Assertions.assertEquals("vgoo", model.description()); - Assertions.assertEquals("zfvwjdthkvpyeyoa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("cvwbz").type()); - Assertions.assertEquals("dwcgldo", 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 bc4a78e07fda..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\":\"dataxccyijjimhijzr\",\"tableRootLocation\":\"datajxmvvsduydwn\",\"fileName\":\"dataruhhqldrdymnswx\",\"modifiedDatetimeStart\":\"dataxqwqnghxnim\",\"modifiedDatetimeEnd\":\"dataujrxgunnqgyp\",\"format\":{\"type\":\"ny\",\"serializer\":\"datauevqmvyumgmm\",\"deserializer\":\"databsnznwgsqufm\",\"\":{\"gcyjpgawepk\":\"datayoseqcazisvbr\",\"zpghlrdtbgblxbu\":\"dataon\",\"mfjihv\":\"databrvjztaflv\",\"tt\":\"datajcq\"}},\"compression\":{\"type\":\"datauqmmfjewfeqbavdo\",\"level\":\"datawy\",\"\":{\"lvxgwzz\":\"datamw\"}}}") - .toObject(AzureBlobDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDatasetTypeProperties model = new AzureBlobDatasetTypeProperties().withFolderPath("dataxccyijjimhijzr") - .withTableRootLocation("datajxmvvsduydwn") - .withFileName("dataruhhqldrdymnswx") - .withModifiedDatetimeStart("dataxqwqnghxnim") - .withModifiedDatetimeEnd("dataujrxgunnqgyp") - .withFormat(new DatasetStorageFormat().withSerializer("datauevqmvyumgmm") - .withDeserializer("databsnznwgsqufm") - .withAdditionalProperties(mapOf("type", "ny"))) - .withCompression(new DatasetCompression().withType("datauqmmfjewfeqbavdo") - .withLevel("datawy") - .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 1f96b5e3adc8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.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.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\":\"bjsdj\",\"typeProperties\":{\"folderPath\":\"datakfnyskwwunqhc\",\"fileName\":\"datavoj\",\"format\":{\"type\":\"hipcukvbljpx\",\"serializer\":\"datarvchyluqalp\",\"deserializer\":\"datafjjfxtizt\",\"\":{\"xxsri\":\"datatahhhsa\",\"yyefmxwoqotiiqb\":\"datarcwbaae\",\"sty\":\"datapasrvrmt\",\"k\":\"datakjhorlxkpy\"}},\"compression\":{\"type\":\"datanycntr\",\"level\":\"dataxwtdmbqjtsuhqh\",\"\":{\"x\":\"datatdyqav\",\"npaami\":\"dataqmzxsyaks\",\"hvwt\":\"datawb\",\"kiy\":\"datapbgchcgsfzhb\"}}},\"description\":\"xeysgwkcffe\",\"structure\":\"datanzcbivove\",\"schema\":\"datakhfeqcooplfpo\",\"linkedServiceName\":{\"referenceName\":\"imgckycjpeebznbz\",\"parameters\":{\"tn\":\"dataulo\",\"hgpncdmwkhupfhs\":\"databmxooq\"}},\"parameters\":{\"iunyevdyzdsytc\":{\"type\":\"Float\",\"defaultValue\":\"dataa\"}},\"annotations\":[\"datawhcamwuynfxkc\",\"datasfcmvhadrpb\",\"datatvyrkljqkq\"],\"folder\":{\"name\":\"jtvjkowggxawwd\"},\"\":{\"lprgeganihkjcner\":\"datapnkteiidlbovwb\"}}") - .toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("xeysgwkcffe", model.description()); - Assertions.assertEquals("imgckycjpeebznbz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("iunyevdyzdsytc").type()); - Assertions.assertEquals("jtvjkowggxawwd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDataset model = new AzureBlobFSDataset().withDescription("xeysgwkcffe") - .withStructure("datanzcbivove") - .withSchema("datakhfeqcooplfpo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("imgckycjpeebznbz") - .withParameters(mapOf("tn", "dataulo", "hgpncdmwkhupfhs", "databmxooq"))) - .withParameters(mapOf("iunyevdyzdsytc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataa"))) - .withAnnotations(Arrays.asList("datawhcamwuynfxkc", "datasfcmvhadrpb", "datatvyrkljqkq")) - .withFolder(new DatasetFolder().withName("jtvjkowggxawwd")) - .withFolderPath("datakfnyskwwunqhc") - .withFileName("datavoj") - .withFormat(new DatasetStorageFormat().withSerializer("datarvchyluqalp") - .withDeserializer("datafjjfxtizt") - .withAdditionalProperties(mapOf("type", "hipcukvbljpx"))) - .withCompression(new DatasetCompression().withType("datanycntr") - .withLevel("dataxwtdmbqjtsuhqh") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("xeysgwkcffe", model.description()); - Assertions.assertEquals("imgckycjpeebznbz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("iunyevdyzdsytc").type()); - Assertions.assertEquals("jtvjkowggxawwd", 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 73de1b4ff439..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\":\"datayjulskwwnqhq\",\"fileName\":\"datagpwxtvce\",\"format\":{\"type\":\"vbvx\",\"serializer\":\"dataegenlrj\",\"deserializer\":\"datamwevguyflnxel\",\"\":{\"owwe\":\"datafzcde\",\"sfqbirtybcelfjn\":\"datahyfkdilbwqlqa\",\"el\":\"dataodnjyhzfaxskdv\",\"qxsorchaz\":\"datamodpe\"}},\"compression\":{\"type\":\"datao\",\"level\":\"datayhl\",\"\":{\"b\":\"datavhs\",\"gf\":\"datapwxslaj\",\"awkmibu\":\"datagaef\"}}}") - .toObject(AzureBlobFSDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDatasetTypeProperties model - = new AzureBlobFSDatasetTypeProperties().withFolderPath("datayjulskwwnqhq") - .withFileName("datagpwxtvce") - .withFormat(new DatasetStorageFormat().withSerializer("dataegenlrj") - .withDeserializer("datamwevguyflnxel") - .withAdditionalProperties(mapOf("type", "vbvx"))) - .withCompression( - new DatasetCompression().withType("datao").withLevel("datayhl").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 2288823b24b8..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\":\"al\",\"fileSystem\":\"datasxrznmg\",\"folderPath\":\"datackhefrb\",\"fileName\":\"dataeu\",\"\":{\"jraxdtpryjmg\":\"datagpxebjludcayt\",\"msvvylj\":\"datansewouxl\",\"hqqylmpc\":\"datarkepos\"}}") - .toObject(AzureBlobFSLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSLocation model = new AzureBlobFSLocation().withFolderPath("datackhefrb") - .withFileName("dataeu") - .withFileSystem("datasxrznmg"); - 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 3768b6d805f3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.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.AzureBlobFSReadSettings; - -public final class AzureBlobFSReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSReadSettings model = BinaryData.fromString( - "{\"type\":\"qvfxvvog\",\"recursive\":\"datajoklb\",\"wildcardFolderPath\":\"datat\",\"wildcardFileName\":\"datatwxfjlpk\",\"fileListPath\":\"datarexf\",\"enablePartitionDiscovery\":\"datafuflupuvwlfzj\",\"partitionRootPath\":\"dataglac\",\"deleteFilesAfterCompletion\":\"datagzscgslwujk\",\"modifiedDatetimeStart\":\"datatpmlrjnnbmodsy\",\"modifiedDatetimeEnd\":\"datatvatuj\",\"maxConcurrentConnections\":\"datahxoxwpiqkkmpfnwd\",\"disableMetricsCollection\":\"datazwmtsm\",\"\":{\"vidkzbdbvl\":\"dataiypkhnrgmgnvcu\"}}") - .toObject(AzureBlobFSReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSReadSettings model - = new AzureBlobFSReadSettings().withMaxConcurrentConnections("datahxoxwpiqkkmpfnwd") - .withDisableMetricsCollection("datazwmtsm") - .withRecursive("datajoklb") - .withWildcardFolderPath("datat") - .withWildcardFileName("datatwxfjlpk") - .withFileListPath("datarexf") - .withEnablePartitionDiscovery("datafuflupuvwlfzj") - .withPartitionRootPath("dataglac") - .withDeleteFilesAfterCompletion("datagzscgslwujk") - .withModifiedDatetimeStart("datatpmlrjnnbmodsy") - .withModifiedDatetimeEnd("datatvatuj"); - 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 be26d43ab8e4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.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.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\":\"iehwmaxl\",\"copyBehavior\":\"dataeskmvrcyyzaal\",\"metadata\":[{\"name\":\"datawiegsswijqsndq\",\"value\":\"datadtczxwqmundle\"},{\"name\":\"datalcuedrmqkwk\",\"value\":\"databtrhrygdpjufmvoz\"},{\"name\":\"datatcfppjegctsatnry\",\"value\":\"datauewrwcqrvtwv\"},{\"name\":\"dataprrxhxqpmzznmns\",\"value\":\"datawadvbwewwd\"}],\"writeBatchSize\":\"dataag\",\"writeBatchTimeout\":\"datah\",\"sinkRetryCount\":\"dataneqapllodowsjcvp\",\"sinkRetryWait\":\"datayullivcym\",\"maxConcurrentConnections\":\"datablh\",\"disableMetricsCollection\":\"datamhc\",\"\":{\"o\":\"dataw\",\"glpglhlwulugrum\":\"datanajmwpeaoegg\",\"qrpbwykeeo\":\"dataprnbozvixamhi\"}}") - .toObject(AzureBlobFSSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSink model = new AzureBlobFSSink().withWriteBatchSize("dataag") - .withWriteBatchTimeout("datah") - .withSinkRetryCount("dataneqapllodowsjcvp") - .withSinkRetryWait("datayullivcym") - .withMaxConcurrentConnections("datablh") - .withDisableMetricsCollection("datamhc") - .withCopyBehavior("dataeskmvrcyyzaal") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datawiegsswijqsndq").withValue("datadtczxwqmundle"), - new MetadataItem().withName("datalcuedrmqkwk").withValue("databtrhrygdpjufmvoz"), - new MetadataItem().withName("datatcfppjegctsatnry").withValue("datauewrwcqrvtwv"), - new MetadataItem().withName("dataprrxhxqpmzznmns").withValue("datawadvbwewwd"))); - 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 c1321a4ae2cc..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\":\"tnhi\",\"treatEmptyAsNull\":\"dataoeegal\",\"skipHeaderLineCount\":\"dataqy\",\"recursive\":\"datayzilocn\",\"sourceRetryCount\":\"dataegjvhyvnqbhcl\",\"sourceRetryWait\":\"dataksoqzzyrovvnac\",\"maxConcurrentConnections\":\"datajmhclhcqcjngwmb\",\"disableMetricsCollection\":\"datagsidasovlrj\",\"\":{\"pxxbkxwhsfhe\":\"dataydtjebbacscirzts\"}}") - .toObject(AzureBlobFSSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSource model = new AzureBlobFSSource().withSourceRetryCount("dataegjvhyvnqbhcl") - .withSourceRetryWait("dataksoqzzyrovvnac") - .withMaxConcurrentConnections("datajmhclhcqcjngwmb") - .withDisableMetricsCollection("datagsidasovlrj") - .withTreatEmptyAsNull("dataoeegal") - .withSkipHeaderLineCount("dataqy") - .withRecursive("datayzilocn"); - 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 3de9245a4505..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\":\"lvxwlqlugnbudjy\",\"blockSizeInMB\":\"datakarggvyuewgy\",\"maxConcurrentConnections\":\"dataiotgtlans\",\"disableMetricsCollection\":\"datavlxsycqqdoxooxua\",\"copyBehavior\":\"dataqoobwxctkveqvp\",\"metadata\":[{\"name\":\"datahqcjrerypjbyqxey\",\"value\":\"datanupsipclxvaovss\"}],\"\":{\"iyo\":\"datavqqvicqdbmzwlej\"}}") - .toObject(AzureBlobFSWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSWriteSettings model = new AzureBlobFSWriteSettings().withMaxConcurrentConnections("dataiotgtlans") - .withDisableMetricsCollection("datavlxsycqqdoxooxua") - .withCopyBehavior("dataqoobwxctkveqvp") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datahqcjrerypjbyqxey").withValue("datanupsipclxvaovss"))) - .withBlockSizeInMB("datakarggvyuewgy"); - 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 6458b68a6dbe..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\":\"a\",\"container\":\"dataqr\",\"folderPath\":\"datavznllaslkskhjqj\",\"fileName\":\"databaihxjtgzg\",\"\":{\"enwl\":\"dataywbqgroigbsfsgs\",\"qlxspmrj\":\"datafmhl\"}}") - .toObject(AzureBlobStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageLocation model = new AzureBlobStorageLocation().withFolderPath("datavznllaslkskhjqj") - .withFileName("databaihxjtgzg") - .withContainer("dataqr"); - 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 ed5c28edec1f..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\":\"ecxvkqjpovjvvx\",\"recursive\":\"datapbfsxps\",\"wildcardFolderPath\":\"dataevz\",\"wildcardFileName\":\"dataydnokkkgiec\",\"prefix\":\"dataftsneftzetjclaq\",\"fileListPath\":\"datab\",\"enablePartitionDiscovery\":\"datamagpdsuyywnaqgoo\",\"partitionRootPath\":\"datahhvgddfzcnylz\",\"deleteFilesAfterCompletion\":\"datahufsgc\",\"modifiedDatetimeStart\":\"datartgtdegfhofoptb\",\"modifiedDatetimeEnd\":\"dataikpotj\",\"maxConcurrentConnections\":\"datanrewrbmhjm\",\"disableMetricsCollection\":\"datalqwqcxyi\",\"\":{\"eijzgnlaaxtte\":\"dataacjiqrllacylbtk\",\"rwbobawlntenh\":\"dataaugojvgje\",\"hehotqorrvwlceoj\":\"dataqtvxghbe\",\"fdsgrtkevim\":\"datayugzlvgjirjkkrs\"}}") - .toObject(AzureBlobStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageReadSettings model - = new AzureBlobStorageReadSettings().withMaxConcurrentConnections("datanrewrbmhjm") - .withDisableMetricsCollection("datalqwqcxyi") - .withRecursive("datapbfsxps") - .withWildcardFolderPath("dataevz") - .withWildcardFileName("dataydnokkkgiec") - .withPrefix("dataftsneftzetjclaq") - .withFileListPath("datab") - .withEnablePartitionDiscovery("datamagpdsuyywnaqgoo") - .withPartitionRootPath("datahhvgddfzcnylz") - .withDeleteFilesAfterCompletion("datahufsgc") - .withModifiedDatetimeStart("datartgtdegfhofoptb") - .withModifiedDatetimeEnd("dataikpotj"); - 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 fca1c51ed709..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.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.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\":\"enrcqickhvps\",\"blockSizeInMB\":\"dataoisbmv\",\"maxConcurrentConnections\":\"datauiuvingmonq\",\"disableMetricsCollection\":\"datatyuqdz\",\"copyBehavior\":\"dataojz\",\"metadata\":[{\"name\":\"datafjgakaysc\",\"value\":\"datadqyjzwmf\"},{\"name\":\"dataqziz\",\"value\":\"datavmuot\"}],\"\":{\"khprlt\":\"dataabfyjampvwx\",\"yw\":\"dataipmnqrbyq\"}}") - .toObject(AzureBlobStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageWriteSettings model - = new AzureBlobStorageWriteSettings().withMaxConcurrentConnections("datauiuvingmonq") - .withDisableMetricsCollection("datatyuqdz") - .withCopyBehavior("dataojz") - .withMetadata(Arrays.asList(new MetadataItem().withName("datafjgakaysc").withValue("datadqyjzwmf"), - new MetadataItem().withName("dataqziz").withValue("datavmuot"))) - .withBlockSizeInMB("dataoisbmv"); - 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 84f8fb75d534..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.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.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\":\"dc\",\"typeProperties\":{\"command\":\"datalahdpliciv\",\"commandTimeout\":\"dataudaubmjheyntsdwx\"},\"linkedServiceName\":{\"referenceName\":\"locrkfygjywpkbvv\",\"parameters\":{\"vhhouh\":\"datanwv\",\"lkfl\":\"datatih\",\"yvxb\":\"dataooiiviwlfmjoy\",\"rwwk\":\"datathwbi\"}},\"policy\":{\"timeout\":\"dataqrvnhcuoghvkzm\",\"retry\":\"datatemp\",\"retryIntervalInSeconds\":1946428911,\"secureInput\":false,\"secureOutput\":false,\"\":{\"ato\":\"datahrqjjl\",\"lyrtkvftlbt\":\"datasgarxtgexmxgqgqu\",\"asrwo\":\"datatub\",\"kwmvcxyuem\":\"dataumnucqewxcwr\"}},\"name\":\"tnzye\",\"description\":\"dwgqisrlhxfmvngd\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"hnh\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"qczoqp\":\"datarjyprcojwiigtd\",\"ntihlnay\":\"datapibeiftmozof\"}},{\"activity\":\"sgbyhouqugyc\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Succeeded\"],\"\":{\"objixoqqjbsagw\":\"dataven\",\"r\":\"datapuqf\",\"hwxu\":\"datamwlpa\",\"s\":\"dataaktnmwlklqhw\"}},{\"activity\":\"eoefwnjsorhpga\",\"dependencyConditions\":[\"Failed\"],\"\":{\"bildwqlxn\":\"dataoezcabfylsuiy\",\"wdvdtzdrv\":\"datajqeigpylpm\"}},{\"activity\":\"xswiindyurwz\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"slpbvponxhs\":\"datajambtvc\"}}],\"userProperties\":[{\"name\":\"tunnkbekzk\",\"value\":\"dataoonbzi\"},{\"name\":\"lqyzrtawjkjzvvk\",\"value\":\"datahasxjmfh\"}],\"\":{\"qfvczuuanrjcrpx\":\"dataqxwcimamtqfrdfo\",\"kmlfcgk\":\"datafyytjmlroxvsclmt\",\"bestyy\":\"dataeitphzuaznsbvu\"}}") - .toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("tnzye", model.name()); - Assertions.assertEquals("dwgqisrlhxfmvngd", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("hnh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("tunnkbekzk", model.userProperties().get(0).name()); - Assertions.assertEquals("locrkfygjywpkbvv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1946428911, 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 { - AzureDataExplorerCommandActivity model - = new AzureDataExplorerCommandActivity().withName("tnzye") - .withDescription("dwgqisrlhxfmvngd") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hnh") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("sgbyhouqugyc") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("eoefwnjsorhpga") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xswiindyurwz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("tunnkbekzk").withValue("dataoonbzi"), - new UserProperty().withName("lqyzrtawjkjzvvk").withValue("datahasxjmfh"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("locrkfygjywpkbvv") - .withParameters(mapOf("vhhouh", "datanwv", "lkfl", "datatih", "yvxb", "dataooiiviwlfmjoy", "rwwk", - "datathwbi"))) - .withPolicy(new ActivityPolicy().withTimeout("dataqrvnhcuoghvkzm") - .withRetry("datatemp") - .withRetryIntervalInSeconds(1946428911) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withCommand("datalahdpliciv") - .withCommandTimeout("dataudaubmjheyntsdwx"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("tnzye", model.name()); - Assertions.assertEquals("dwgqisrlhxfmvngd", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("hnh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("tunnkbekzk", model.userProperties().get(0).name()); - Assertions.assertEquals("locrkfygjywpkbvv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1946428911, 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/AzureDataExplorerCommandActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java deleted file mode 100644 index fdbe3dd1dafa..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\":\"dataljo\",\"commandTimeout\":\"datampuw\"}") - .toObject(AzureDataExplorerCommandActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerCommandActivityTypeProperties model - = new AzureDataExplorerCommandActivityTypeProperties().withCommand("dataljo") - .withCommandTimeout("datampuw"); - 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 c11cd03f3f3a..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\":\"dataumzenk\"}") - .toObject(AzureDataExplorerDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerDatasetTypeProperties model - = new AzureDataExplorerDatasetTypeProperties().withTable("dataumzenk"); - 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 9f0f2f4c7e54..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\":\"tmyfajygn\",\"ingestionMappingName\":\"datajocsq\",\"ingestionMappingAsJson\":\"databuflppnevujkzb\",\"flushImmediately\":\"datagvwkdg\",\"writeBatchSize\":\"dataoeoxsobljzodcx\",\"writeBatchTimeout\":\"datapmjfwm\",\"sinkRetryCount\":\"datafaucihqsog\",\"sinkRetryWait\":\"dataao\",\"maxConcurrentConnections\":\"datanlyzi\",\"disableMetricsCollection\":\"datatqvgpidrtb\",\"\":{\"e\":\"datawfkdblvbw\",\"nekwe\":\"datatxlujvmnooaga\"}}") - .toObject(AzureDataExplorerSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSink model = new AzureDataExplorerSink().withWriteBatchSize("dataoeoxsobljzodcx") - .withWriteBatchTimeout("datapmjfwm") - .withSinkRetryCount("datafaucihqsog") - .withSinkRetryWait("dataao") - .withMaxConcurrentConnections("datanlyzi") - .withDisableMetricsCollection("datatqvgpidrtb") - .withIngestionMappingName("datajocsq") - .withIngestionMappingAsJson("databuflppnevujkzb") - .withFlushImmediately("datagvwkdg"); - 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 166a22fb8449..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\":\"mbnfvygtt\",\"query\":\"dataf\",\"noTruncation\":\"datambxf\",\"queryTimeout\":\"dataweiqvhfyvkxgo\",\"additionalColumns\":\"dataveiucuxwnojvcr\",\"sourceRetryCount\":\"datafjalpsycvcksz\",\"sourceRetryWait\":\"datagguucpytsxnuj\",\"maxConcurrentConnections\":\"datafth\",\"disableMetricsCollection\":\"dataiieoxlbcccc\",\"\":{\"eksbksvvyvoi\":\"dataabdevjrbgcdxqgst\",\"wljmz\":\"datavvu\"}}") - .toObject(AzureDataExplorerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSource model = new AzureDataExplorerSource().withSourceRetryCount("datafjalpsycvcksz") - .withSourceRetryWait("datagguucpytsxnuj") - .withMaxConcurrentConnections("datafth") - .withDisableMetricsCollection("dataiieoxlbcccc") - .withQuery("dataf") - .withNoTruncation("datambxf") - .withQueryTimeout("dataweiqvhfyvkxgo") - .withAdditionalColumns("dataveiucuxwnojvcr"); - 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 3036990d4ed7..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\":\"faky\",\"typeProperties\":{\"table\":\"datatbgvlpgfyg\"},\"description\":\"psihzqieoympp\",\"structure\":\"dataxjsfgbyy\",\"schema\":\"dataazlycx\",\"linkedServiceName\":{\"referenceName\":\"ubru\",\"parameters\":{\"dkg\":\"databuoyr\"}},\"parameters\":{\"xuvsveamseauuuvh\":{\"type\":\"Array\",\"defaultValue\":\"datavjmfjjf\"},\"lmufzuuysz\":{\"type\":\"String\",\"defaultValue\":\"datah\"},\"fvwgwphwxiav\":{\"type\":\"String\",\"defaultValue\":\"dataemtyosdpxtsdywfg\"}},\"annotations\":[\"dataxaqgfpuhh\",\"datawrsjumlkjsvk\",\"datatmlixalphkg\",\"datainhecj\"],\"folder\":{\"name\":\"djmsngm\"},\"\":{\"pjthizsabcylzzi\":\"datarlkpismmrmr\"}}") - .toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("psihzqieoympp", model.description()); - Assertions.assertEquals("ubru", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("xuvsveamseauuuvh").type()); - Assertions.assertEquals("djmsngm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerTableDataset model = new AzureDataExplorerTableDataset().withDescription("psihzqieoympp") - .withStructure("dataxjsfgbyy") - .withSchema("dataazlycx") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("ubru").withParameters(mapOf("dkg", "databuoyr"))) - .withParameters(mapOf("xuvsveamseauuuvh", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datavjmfjjf"), - "lmufzuuysz", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datah"), - "fvwgwphwxiav", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataemtyosdpxtsdywfg"))) - .withAnnotations(Arrays.asList("dataxaqgfpuhh", "datawrsjumlkjsvk", "datatmlixalphkg", "datainhecj")) - .withFolder(new DatasetFolder().withName("djmsngm")) - .withTable("datatbgvlpgfyg"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("psihzqieoympp", model.description()); - Assertions.assertEquals("ubru", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("xuvsveamseauuuvh").type()); - Assertions.assertEquals("djmsngm", 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 4fc6b95c4d63..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.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.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\":\"tvnpccxzivxpmh\",\"typeProperties\":{\"folderPath\":\"datavykbyjecrqkwakk\",\"fileName\":\"datasfoulborcxu\",\"format\":{\"type\":\"dqbdyblp\",\"serializer\":\"datat\",\"deserializer\":\"datawpgweoqhbj\",\"\":{\"c\":\"datafblerufol\",\"tpnerxvjea\":\"datahjucihbymjj\"}},\"compression\":{\"type\":\"dataahelh\",\"level\":\"datamyi\",\"\":{\"cthtpq\":\"dataa\",\"zkdiuvflgzhcw\":\"datafzdos\",\"g\":\"datagwahcrxo\"}}},\"description\":\"hh\",\"structure\":\"datavnnjd\",\"schema\":\"datajq\",\"linkedServiceName\":{\"referenceName\":\"vhnjvpmxnhtmz\",\"parameters\":{\"vtlgx\":\"datalfxolr\",\"twwgwqubot\":\"datafjswequflzyyopoa\",\"jiemimdtnpo\":\"datavufrk\"}},\"parameters\":{\"ft\":{\"type\":\"String\",\"defaultValue\":\"datakreeeddd\"},\"uwbrnqyxfedqne\":{\"type\":\"String\",\"defaultValue\":\"dataulpclhsiige\"}},\"annotations\":[\"datawynxoqgvbz\"],\"folder\":{\"name\":\"pw\"},\"\":{\"a\":\"dataobqajejir\"}}") - .toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("hh", model.description()); - Assertions.assertEquals("vhnjvpmxnhtmz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ft").type()); - Assertions.assertEquals("pw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDataset model = new AzureDataLakeStoreDataset().withDescription("hh") - .withStructure("datavnnjd") - .withSchema("datajq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vhnjvpmxnhtmz") - .withParameters( - mapOf("vtlgx", "datalfxolr", "twwgwqubot", "datafjswequflzyyopoa", "jiemimdtnpo", "datavufrk"))) - .withParameters(mapOf("ft", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datakreeeddd"), - "uwbrnqyxfedqne", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataulpclhsiige"))) - .withAnnotations(Arrays.asList("datawynxoqgvbz")) - .withFolder(new DatasetFolder().withName("pw")) - .withFolderPath("datavykbyjecrqkwakk") - .withFileName("datasfoulborcxu") - .withFormat(new DatasetStorageFormat().withSerializer("datat") - .withDeserializer("datawpgweoqhbj") - .withAdditionalProperties(mapOf("type", "dqbdyblp"))) - .withCompression( - new DatasetCompression().withType("dataahelh").withLevel("datamyi").withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("hh", model.description()); - Assertions.assertEquals("vhnjvpmxnhtmz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ft").type()); - Assertions.assertEquals("pw", 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 92f92d9b0c25..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.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.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\":\"datavkgpogplbjuvlnhx\",\"fileName\":\"datanjhina\",\"format\":{\"type\":\"sbxnep\",\"serializer\":\"datajmoplukfy\",\"deserializer\":\"datafhsovadkrmjxmwq\",\"\":{\"wggijtspzjnrrhik\":\"dataesjqbzkqmxvporiw\"}},\"compression\":{\"type\":\"databz\",\"level\":\"datad\",\"\":{\"zfrunjfhrjhiycba\":\"datauhtr\",\"hvtuwyjsqwzsz\":\"dataseqnczkv\"}}}") - .toObject(AzureDataLakeStoreDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDatasetTypeProperties model - = new AzureDataLakeStoreDatasetTypeProperties().withFolderPath("datavkgpogplbjuvlnhx") - .withFileName("datanjhina") - .withFormat(new DatasetStorageFormat().withSerializer("datajmoplukfy") - .withDeserializer("datafhsovadkrmjxmwq") - .withAdditionalProperties(mapOf("type", "sbxnep"))) - .withCompression( - new DatasetCompression().withType("databz").withLevel("datad").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 758168a92bd6..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\":\"lzmkxerxxxotee\",\"folderPath\":\"datahowgomvvhxo\",\"fileName\":\"datac\",\"\":{\"ylqlocvvujexaygl\":\"datanpxraqawbmpspf\"}}") - .toObject(AzureDataLakeStoreLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreLocation model - = new AzureDataLakeStoreLocation().withFolderPath("datahowgomvvhxo").withFileName("datac"); - 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 f8bef1ed610f..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\":\"qggzahng\",\"recursive\":\"datatecsmocqwey\",\"wildcardFolderPath\":\"dataakettmfcxviwf\",\"wildcardFileName\":\"datajxxbsafqiwldu\",\"fileListPath\":\"datasyjzdasgkfz\",\"listAfter\":\"datahqomuzohnpkofklb\",\"listBefore\":\"dataln\",\"enablePartitionDiscovery\":\"dataffyvowlammvazv\",\"partitionRootPath\":\"dataie\",\"deleteFilesAfterCompletion\":\"datajunmgd\",\"modifiedDatetimeStart\":\"dataeivrhjxdnkgztfgc\",\"modifiedDatetimeEnd\":\"datavbreh\",\"maxConcurrentConnections\":\"dataseiidfpwbybmxf\",\"disableMetricsCollection\":\"datazgolfensibqi\",\"\":{\"ml\":\"datayjzvy\",\"vwr\":\"datasavzcz\"}}") - .toObject(AzureDataLakeStoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreReadSettings model - = new AzureDataLakeStoreReadSettings().withMaxConcurrentConnections("dataseiidfpwbybmxf") - .withDisableMetricsCollection("datazgolfensibqi") - .withRecursive("datatecsmocqwey") - .withWildcardFolderPath("dataakettmfcxviwf") - .withWildcardFileName("datajxxbsafqiwldu") - .withFileListPath("datasyjzdasgkfz") - .withListAfter("datahqomuzohnpkofklb") - .withListBefore("dataln") - .withEnablePartitionDiscovery("dataffyvowlammvazv") - .withPartitionRootPath("dataie") - .withDeleteFilesAfterCompletion("datajunmgd") - .withModifiedDatetimeStart("dataeivrhjxdnkgztfgc") - .withModifiedDatetimeEnd("datavbreh"); - 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 a725d06a8ea3..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\":\"fuvbgcyarsbhj\",\"copyBehavior\":\"datarldsijcmn\",\"enableAdlsSingleFileParallel\":\"datapxgxjmwz\",\"writeBatchSize\":\"dataxvsmrxypbiwn\",\"writeBatchTimeout\":\"datanaixjsfasxfamn\",\"sinkRetryCount\":\"datayx\",\"sinkRetryWait\":\"datalqybfn\",\"maxConcurrentConnections\":\"datajxwcojjmps\",\"disableMetricsCollection\":\"datatqc\",\"\":{\"iignrr\":\"datazjgkcxben\"}}") - .toObject(AzureDataLakeStoreSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSink model = new AzureDataLakeStoreSink().withWriteBatchSize("dataxvsmrxypbiwn") - .withWriteBatchTimeout("datanaixjsfasxfamn") - .withSinkRetryCount("datayx") - .withSinkRetryWait("datalqybfn") - .withMaxConcurrentConnections("datajxwcojjmps") - .withDisableMetricsCollection("datatqc") - .withCopyBehavior("datarldsijcmn") - .withEnableAdlsSingleFileParallel("datapxgxjmwz"); - 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 3210dc89246d..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\":\"khufktqgtj\",\"recursive\":\"datamhioar\",\"sourceRetryCount\":\"datactreotzgkokfztrv\",\"sourceRetryWait\":\"databt\",\"maxConcurrentConnections\":\"dataw\",\"disableMetricsCollection\":\"datakegyskmh\",\"\":{\"lpsswoslqmftk\":\"databznjngerwo\"}}") - .toObject(AzureDataLakeStoreSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSource model = new AzureDataLakeStoreSource().withSourceRetryCount("datactreotzgkokfztrv") - .withSourceRetryWait("databt") - .withMaxConcurrentConnections("dataw") - .withDisableMetricsCollection("datakegyskmh") - .withRecursive("datamhioar"); - 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 2c0b9fcd2d2f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.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.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\":\"gsxkyboysquygokh\",\"expiryDateTime\":\"dataopbabndwcfmzmqmg\",\"maxConcurrentConnections\":\"datatwcyigrhfevxypqu\",\"disableMetricsCollection\":\"dataojyxhhvoowrtcsuc\",\"copyBehavior\":\"dataawyiqzj\",\"metadata\":[{\"name\":\"datajnmpvsbludfbhzu\",\"value\":\"datapfbhihddiiuex\"}],\"\":{\"udmlqpward\":\"dataf\"}}") - .toObject(AzureDataLakeStoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreWriteSettings model - = new AzureDataLakeStoreWriteSettings().withMaxConcurrentConnections("datatwcyigrhfevxypqu") - .withDisableMetricsCollection("dataojyxhhvoowrtcsuc") - .withCopyBehavior("dataawyiqzj") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datajnmpvsbludfbhzu").withValue("datapfbhihddiiuex"))) - .withExpiryDateTime("dataopbabndwcfmzmqmg"); - 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 3ef0e311bfbc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.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.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\":\"vtoiqofzttqg\",\"typeProperties\":{\"table\":\"dataapaseqcppypfre\",\"database\":\"datavzhn\"},\"description\":\"lwyoxzuhellitpqv\",\"structure\":\"datavrsgqbm\",\"schema\":\"dataxeo\",\"linkedServiceName\":{\"referenceName\":\"ebzvtvxxfsfoy\",\"parameters\":{\"dybkb\":\"dataihnalpcu\",\"ywedbpirbzpauzbb\":\"datadwbmivzika\"}},\"parameters\":{\"xgmigsoebd\":{\"type\":\"SecureString\",\"defaultValue\":\"datazdwpave\"},\"vcymddoei\":{\"type\":\"Array\",\"defaultValue\":\"dataiuiimerffh\"},\"chh\":{\"type\":\"SecureString\",\"defaultValue\":\"datagajfeudbobmolji\"},\"cc\":{\"type\":\"String\",\"defaultValue\":\"dataih\"}},\"annotations\":[\"datajpoipdjxyotgvra\",\"datahntoiwfszkrl\",\"dataosjwrretsluqf\"],\"folder\":{\"name\":\"d\"},\"\":{\"uwhdqngqam\":\"dataioixviobuwbng\",\"exqzaffzqodoks\":\"databmggnqx\"}}") - .toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("lwyoxzuhellitpqv", model.description()); - Assertions.assertEquals("ebzvtvxxfsfoy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("xgmigsoebd").type()); - Assertions.assertEquals("d", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDataset model = new AzureDatabricksDeltaLakeDataset() - .withDescription("lwyoxzuhellitpqv") - .withStructure("datavrsgqbm") - .withSchema("dataxeo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ebzvtvxxfsfoy") - .withParameters(mapOf("dybkb", "dataihnalpcu", "ywedbpirbzpauzbb", "datadwbmivzika"))) - .withParameters(mapOf("xgmigsoebd", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datazdwpave"), - "vcymddoei", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataiuiimerffh"), "chh", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datagajfeudbobmolji"), - "cc", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataih"))) - .withAnnotations(Arrays.asList("datajpoipdjxyotgvra", "datahntoiwfszkrl", "dataosjwrretsluqf")) - .withFolder(new DatasetFolder().withName("d")) - .withTable("dataapaseqcppypfre") - .withDatabase("datavzhn"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("lwyoxzuhellitpqv", model.description()); - Assertions.assertEquals("ebzvtvxxfsfoy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("xgmigsoebd").type()); - Assertions.assertEquals("d", 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 aa59620adf14..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\":\"datavomdqxnoyzqipapi\",\"database\":\"datacydbjghunq\"}") - .toObject(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDatasetTypeProperties model - = new AzureDatabricksDeltaLakeDatasetTypeProperties().withTable("datavomdqxnoyzqipapi") - .withDatabase("datacydbjghunq"); - 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 cceb49045d63..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\":\"aenarfy\",\"dateFormat\":\"dataf\",\"timestampFormat\":\"datadqoepwyyeupkp\",\"\":{\"khoygfgchlc\":\"datai\",\"yklyhmymkcc\":\"datatxcsskgu\"}}") - .toObject(AzureDatabricksDeltaLakeExportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeExportCommand model - = new AzureDatabricksDeltaLakeExportCommand().withDateFormat("dataf") - .withTimestampFormat("datadqoepwyyeupkp"); - 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 ccf2321c94e1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.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.AzureDatabricksDeltaLakeImportCommand; - -public final class AzureDatabricksDeltaLakeImportCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeImportCommand model = BinaryData.fromString( - "{\"type\":\"bticnidubo\",\"dateFormat\":\"datacgmcthjgbrxmxqsk\",\"timestampFormat\":\"datatajjfmkwq\",\"\":{\"ptiqfu\":\"dataiibtvwalhaw\",\"dmmwylrvztaelpux\":\"dataavtapcxsmap\",\"vhyqexujlleweegv\":\"datakuemcbtumtnrcv\",\"gfwxthrcmgsimgo\":\"databsythycdckcpfom\"}}") - .toObject(AzureDatabricksDeltaLakeImportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeImportCommand model - = new AzureDatabricksDeltaLakeImportCommand().withDateFormat("datacgmcthjgbrxmxqsk") - .withTimestampFormat("datatajjfmkwq"); - 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 aebe41bb710a..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\":\"x\",\"preCopyScript\":\"dataogowfqrykikhfgw\",\"importSettings\":{\"type\":\"mkfy\",\"dateFormat\":\"dataazi\",\"timestampFormat\":\"datah\",\"\":{\"znf\":\"dataavfsehbxbqionnq\",\"pvxcqj\":\"dataiboyexjcrwwdtey\",\"mv\":\"datawtiasfbp\"}},\"writeBatchSize\":\"datarysnszsehoegvwb\",\"writeBatchTimeout\":\"datarndxbkvzwqgmfhl\",\"sinkRetryCount\":\"datayed\",\"sinkRetryWait\":\"datafncwiyfzuw\",\"maxConcurrentConnections\":\"dataaaxstn\",\"disableMetricsCollection\":\"datavv\",\"\":{\"wzbzedhcxyg\":\"datatuj\"}}") - .toObject(AzureDatabricksDeltaLakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSink model - = new AzureDatabricksDeltaLakeSink().withWriteBatchSize("datarysnszsehoegvwb") - .withWriteBatchTimeout("datarndxbkvzwqgmfhl") - .withSinkRetryCount("datayed") - .withSinkRetryWait("datafncwiyfzuw") - .withMaxConcurrentConnections("dataaaxstn") - .withDisableMetricsCollection("datavv") - .withPreCopyScript("dataogowfqrykikhfgw") - .withImportSettings( - new AzureDatabricksDeltaLakeImportCommand().withDateFormat("dataazi").withTimestampFormat("datah")); - 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 99b6b17b63a4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.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.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\":\"zdukamt\",\"query\":\"dataawmhbq\",\"exportSettings\":{\"type\":\"xxc\",\"dateFormat\":\"datamgvwbytz\",\"timestampFormat\":\"dataqvzwummw\",\"\":{\"dujhzaiw\":\"datag\",\"l\":\"dataqrbtrmi\"}},\"sourceRetryCount\":\"dataufvabci\",\"sourceRetryWait\":\"databyfs\",\"maxConcurrentConnections\":\"dataiwgkozlpsfraj\",\"disableMetricsCollection\":\"datau\",\"\":{\"lllsungzvytbqq\":\"datagf\",\"ugjea\":\"dataxkuyyrcqsyq\"}}") - .toObject(AzureDatabricksDeltaLakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSource model = new AzureDatabricksDeltaLakeSource().withSourceRetryCount("dataufvabci") - .withSourceRetryWait("databyfs") - .withMaxConcurrentConnections("dataiwgkozlpsfraj") - .withDisableMetricsCollection("datau") - .withQuery("dataawmhbq") - .withExportSettings(new AzureDatabricksDeltaLakeExportCommand().withDateFormat("datamgvwbytz") - .withTimestampFormat("dataqvzwummw")); - 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 c19890ce30c7..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\":\"nensmuffi\",\"folderPath\":\"databctvbpzuj\",\"fileName\":\"datatotdxposcslh\",\"\":{\"xidhhxomil\":\"datasiecktybhj\",\"xwjwilm\":\"datadxjxdu\",\"wuj\":\"datarslaatep\",\"gtvh\":\"datazgxqgqwlxr\"}}") - .toObject(AzureFileStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageLocation model - = new AzureFileStorageLocation().withFolderPath("databctvbpzuj").withFileName("datatotdxposcslh"); - 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 12ece49714ab..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\":\"oyusrbuydeyh\",\"recursive\":\"datalkpvaagrdf\",\"wildcardFolderPath\":\"dataglqdsphvosucryh\",\"wildcardFileName\":\"datahthzfotfrfhrjkah\",\"prefix\":\"datafshgmqxwoppn\",\"fileListPath\":\"datarmzv\",\"enablePartitionDiscovery\":\"datafkznyait\",\"partitionRootPath\":\"datamobrxhwpg\",\"deleteFilesAfterCompletion\":\"datanxrjmilogcnzfg\",\"modifiedDatetimeStart\":\"databbtplrtxhzt\",\"modifiedDatetimeEnd\":\"datawyrsfj\",\"maxConcurrentConnections\":\"datattkdrblehenj\",\"disableMetricsCollection\":\"dataiwdeosbijikjf\",\"\":{\"avfjx\":\"datauwhbpojujpifxtgr\",\"lauhr\":\"dataiwx\",\"r\":\"datachphovu\"}}") - .toObject(AzureFileStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageReadSettings model - = new AzureFileStorageReadSettings().withMaxConcurrentConnections("datattkdrblehenj") - .withDisableMetricsCollection("dataiwdeosbijikjf") - .withRecursive("datalkpvaagrdf") - .withWildcardFolderPath("dataglqdsphvosucryh") - .withWildcardFileName("datahthzfotfrfhrjkah") - .withPrefix("datafshgmqxwoppn") - .withFileListPath("datarmzv") - .withEnablePartitionDiscovery("datafkznyait") - .withPartitionRootPath("datamobrxhwpg") - .withDeleteFilesAfterCompletion("datanxrjmilogcnzfg") - .withModifiedDatetimeStart("databbtplrtxhzt") - .withModifiedDatetimeEnd("datawyrsfj"); - 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 a47945e3d243..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.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.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\":\"uufvo\",\"maxConcurrentConnections\":\"datakff\",\"disableMetricsCollection\":\"datawaewpils\",\"copyBehavior\":\"datasghdovcpbwfnap\",\"metadata\":[{\"name\":\"datahsixzcdaukh\",\"value\":\"datah\"},{\"name\":\"datacbomfoojkerdu\",\"value\":\"datanbzamroadutogbkd\"},{\"name\":\"datasgval\",\"value\":\"datacnecl\"}],\"\":{\"nsl\":\"datajsqcubyj\",\"subzfuhjnmdcyrbz\":\"dataiteenaheecsft\"}}") - .toObject(AzureFileStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageWriteSettings model - = new AzureFileStorageWriteSettings().withMaxConcurrentConnections("datakff") - .withDisableMetricsCollection("datawaewpils") - .withCopyBehavior("datasghdovcpbwfnap") - .withMetadata(Arrays.asList(new MetadataItem().withName("datahsixzcdaukh").withValue("datah"), - new MetadataItem().withName("datacbomfoojkerdu").withValue("datanbzamroadutogbkd"), - new MetadataItem().withName("datasgval").withValue("datacnecl"))); - 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 c9a53a167e70..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"doomhrlgidqxbrdh\",\"typeProperties\":{\"method\":\"POST\",\"functionName\":\"datafhpaywwesaqsuqps\",\"headers\":{\"lra\":\"datab\"},\"body\":\"datadiathhxqs\"},\"linkedServiceName\":{\"referenceName\":\"rnyf\",\"parameters\":{\"wffos\":\"dataaomogkp\",\"zgqkxsoavbteaegy\":\"datamxmvgj\",\"bztlvujbhw\":\"datajytoepcdhqjcz\",\"cihkjjjbit\":\"dataszrhf\"}},\"policy\":{\"timeout\":\"dataii\",\"retry\":\"datargz\",\"retryIntervalInSeconds\":114099002,\"secureInput\":true,\"secureOutput\":true,\"\":{\"jn\":\"dataods\"}},\"name\":\"wcqnaspjdah\",\"description\":\"nkliyfgkzw\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ybdoyykhidiand\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"ynppqtxpj\":\"dataoxk\",\"jcimoi\":\"dataowjatyhkq\",\"gyhschamwofqntt\":\"dataqzvawfpu\",\"hguubpmvp\":\"datakjcgupxnuv\"}}],\"userProperties\":[{\"name\":\"iyo\",\"value\":\"datavafbdzokplolcal\"},{\"name\":\"vcxvcpxdeqntb\",\"value\":\"datatdqsqb\"},{\"name\":\"ubswzafqrmwdofg\",\"value\":\"dataspzwa\"}],\"\":{\"djvlwczwdkkscooq\":\"dataxwvj\",\"fckrmrbaoidt\":\"datavht\",\"cbvkoughjsxp\":\"datam\",\"tsbpvyvsc\":\"datatsvppfdnihxcij\"}}") - .toObject(AzureFunctionActivity.class); - Assertions.assertEquals("wcqnaspjdah", model.name()); - Assertions.assertEquals("nkliyfgkzw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ybdoyykhidiand", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iyo", model.userProperties().get(0).name()); - Assertions.assertEquals("rnyf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(114099002, 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("wcqnaspjdah") - .withDescription("nkliyfgkzw") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("ybdoyykhidiand") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("iyo").withValue("datavafbdzokplolcal"), - new UserProperty().withName("vcxvcpxdeqntb").withValue("datatdqsqb"), - new UserProperty().withName("ubswzafqrmwdofg").withValue("dataspzwa"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rnyf") - .withParameters(mapOf("wffos", "dataaomogkp", "zgqkxsoavbteaegy", "datamxmvgj", "bztlvujbhw", - "datajytoepcdhqjcz", "cihkjjjbit", "dataszrhf"))) - .withPolicy(new ActivityPolicy().withTimeout("dataii") - .withRetry("datargz") - .withRetryIntervalInSeconds(114099002) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withMethod(AzureFunctionActivityMethod.POST) - .withFunctionName("datafhpaywwesaqsuqps") - .withHeaders(mapOf("lra", "datab")) - .withBody("datadiathhxqs"); - model = BinaryData.fromObject(model).toObject(AzureFunctionActivity.class); - Assertions.assertEquals("wcqnaspjdah", model.name()); - Assertions.assertEquals("nkliyfgkzw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ybdoyykhidiand", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iyo", model.userProperties().get(0).name()); - Assertions.assertEquals("rnyf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(114099002, 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 f17622ee5e1d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.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.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\":\"dataqncddaqq\",\"headers\":{\"rohfv\":\"datayi\",\"nkkztjmqjrh\":\"datagjnexdlsangl\"},\"body\":\"dataqajyrhrywucpdzb\"}") - .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("dataqncddaqq") - .withHeaders(mapOf("rohfv", "datayi", "nkkztjmqjrh", "datagjnexdlsangl")) - .withBody("dataqajyrhrywucpdzb"); - 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 4218d86380a4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.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.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\":\"crcpishj\",\"typeProperties\":{\"globalParameters\":{\"qlbjxps\":\"datarqponugco\",\"zygdkovytjsrboq\":\"datavvggvnqpar\"},\"webServiceOutputs\":{\"swlmxepygkfuwgkb\":{\"filePath\":\"dataqqvukjtcdppdmmf\",\"linkedServiceName\":{\"referenceName\":\"ubcccltygxzit\",\"parameters\":{\"vydvdjc\":\"datab\",\"rfayd\":\"datadhar\"}}},\"lefpuxjhxsfb\":{\"filePath\":\"datajqtk\",\"linkedServiceName\":{\"referenceName\":\"zwmqzkjecz\",\"parameters\":{\"jacvmhpueiuhhn\":\"datafew\",\"kvfjbxvhuili\":\"dataxnxxwafialipymn\",\"ahqqumoz\":\"datadyuuotqpljw\"}}}},\"webServiceInputs\":{\"ocjkqo\":{\"filePath\":\"dataaysmmztvkgxz\",\"linkedServiceName\":{\"referenceName\":\"rhnkm\",\"parameters\":{\"iypsmpgopcl\":\"datanplnnxopixx\",\"we\":\"datatysirhnwseb\",\"ddcqteozayjim\":\"datasxrnji\",\"jtmdw\":\"datacb\"}}},\"peafzvxbvk\":{\"filePath\":\"datacfnomwaoebvjmmsg\",\"linkedServiceName\":{\"referenceName\":\"koql\",\"parameters\":{\"hztdzmeiicdybcor\":\"dataerztenzkbppg\",\"ztzhwbwrocuv\":\"datamdzafdqqjds\",\"gzrt\":\"datapqag\",\"je\":\"datausxh\"}}},\"g\":{\"filePath\":\"dataj\",\"linkedServiceName\":{\"referenceName\":\"nmoekohxkgxyd\",\"parameters\":{\"wsage\":\"datapzetradbihn\",\"hoxux\":\"dataosbzydbt\",\"zeoxz\":\"datavbsazzh\",\"rjfpqemylkyg\":\"datarhakhaec\"}}}}},\"linkedServiceName\":{\"referenceName\":\"bv\",\"parameters\":{\"ctehxwnxp\":\"datamt\",\"b\":\"dataerhdablqol\"}},\"policy\":{\"timeout\":\"datahpcwwsqavpuwt\",\"retry\":\"dataqcfzdfmqoeofy\",\"retryIntervalInSeconds\":1978374101,\"secureInput\":true,\"secureOutput\":false,\"\":{\"qatgazd\":\"dataym\",\"aebaw\":\"datahih\",\"nmzraegyvxlnp\":\"datapajdkjq\"}},\"name\":\"ov\",\"description\":\"x\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"iv\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Succeeded\",\"Completed\"],\"\":{\"syd\":\"dataaxyyvxetgsdhwmbe\",\"rkqdbqhz\":\"datarkchbnatrdr\"}},{\"activity\":\"vatypjk\",\"dependencyConditions\":[\"Completed\"],\"\":{\"vrlbezhwsvoi\":\"datadlehcqbjjphuakpk\",\"fzrjcbadnwpruydc\":\"datadcxjcjiqxybbbytm\",\"pdmeeabcnh\":\"datav\"}},{\"activity\":\"amydwdb\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\"],\"\":{\"dhp\":\"dataixnuzbmffzig\",\"wfxgu\":\"dataecrviobfui\"}},{\"activity\":\"az\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Skipped\",\"Failed\"],\"\":{\"bsuqarm\":\"datanma\",\"rgbugprfiympy\":\"datajuldojor\",\"pdbc\":\"databcpieiqolym\",\"syylukpjdm\":\"dataedohhbnkhgp\"}}],\"userProperties\":[{\"name\":\"jhukngdf\",\"value\":\"dataspw\"},{\"name\":\"fjxljrrgvyuqunnv\",\"value\":\"datakpdlkviaen\"},{\"name\":\"ydkgicbkijyv\",\"value\":\"dataukauhnhdhssu\"},{\"name\":\"hkgfvgxmnan\",\"value\":\"datac\"}],\"\":{\"coruyistjwlnt\":\"datartvyvxbtpqjgb\",\"tu\":\"datapi\",\"gulymouwnnhbz\":\"datapncdebpelgy\",\"fqqjydrhwnnux\":\"datascztsatfu\"}}") - .toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("ov", model.name()); - Assertions.assertEquals("x", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("iv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jhukngdf", model.userProperties().get(0).name()); - Assertions.assertEquals("bv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1978374101, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ubcccltygxzit", - model.webServiceOutputs().get("swlmxepygkfuwgkb").linkedServiceName().referenceName()); - Assertions.assertEquals("rhnkm", model.webServiceInputs().get("ocjkqo").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivity model = new AzureMLBatchExecutionActivity().withName("ov") - .withDescription("x") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("iv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vatypjk") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("amydwdb") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("az") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("jhukngdf").withValue("dataspw"), - new UserProperty().withName("fjxljrrgvyuqunnv").withValue("datakpdlkviaen"), - new UserProperty().withName("ydkgicbkijyv").withValue("dataukauhnhdhssu"), - new UserProperty().withName("hkgfvgxmnan").withValue("datac"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bv") - .withParameters(mapOf("ctehxwnxp", "datamt", "b", "dataerhdablqol"))) - .withPolicy(new ActivityPolicy().withTimeout("datahpcwwsqavpuwt") - .withRetry("dataqcfzdfmqoeofy") - .withRetryIntervalInSeconds(1978374101) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withGlobalParameters(mapOf("qlbjxps", "datarqponugco", "zygdkovytjsrboq", "datavvggvnqpar")) - .withWebServiceOutputs(mapOf("swlmxepygkfuwgkb", - new AzureMLWebServiceFile().withFilePath("dataqqvukjtcdppdmmf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ubcccltygxzit") - .withParameters(mapOf("vydvdjc", "datab", "rfayd", "datadhar"))), - "lefpuxjhxsfb", - new AzureMLWebServiceFile().withFilePath("datajqtk") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zwmqzkjecz") - .withParameters(mapOf("jacvmhpueiuhhn", "datafew", "kvfjbxvhuili", "dataxnxxwafialipymn", - "ahqqumoz", "datadyuuotqpljw"))))) - .withWebServiceInputs(mapOf("ocjkqo", - new AzureMLWebServiceFile().withFilePath("dataaysmmztvkgxz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rhnkm") - .withParameters(mapOf("iypsmpgopcl", "datanplnnxopixx", "we", "datatysirhnwseb", - "ddcqteozayjim", "datasxrnji", "jtmdw", "datacb"))), - "peafzvxbvk", - new AzureMLWebServiceFile().withFilePath("datacfnomwaoebvjmmsg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("koql") - .withParameters(mapOf("hztdzmeiicdybcor", "dataerztenzkbppg", "ztzhwbwrocuv", "datamdzafdqqjds", - "gzrt", "datapqag", "je", "datausxh"))), - "g", - new AzureMLWebServiceFile().withFilePath("dataj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nmoekohxkgxyd") - .withParameters(mapOf("wsage", "datapzetradbihn", "hoxux", "dataosbzydbt", "zeoxz", - "datavbsazzh", "rjfpqemylkyg", "datarhakhaec"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("ov", model.name()); - Assertions.assertEquals("x", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("iv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jhukngdf", model.userProperties().get(0).name()); - Assertions.assertEquals("bv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1978374101, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ubcccltygxzit", - model.webServiceOutputs().get("swlmxepygkfuwgkb").linkedServiceName().referenceName()); - Assertions.assertEquals("rhnkm", model.webServiceInputs().get("ocjkqo").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 41fcb449ba86..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":{\"ovburvekbknr\":\"dataet\",\"qbyoyhfbbbhxly\":\"datakxcpnxdzpfzmdsly\"},\"webServiceOutputs\":{\"svhsieev\":{\"filePath\":\"datalqprhnchpets\",\"linkedServiceName\":{\"referenceName\":\"bfmttpz\",\"parameters\":{\"dusizsnhekpcnq\":\"datampu\"}}},\"qmaiegrxoo\":{\"filePath\":\"datamubzlmmctdkzp\",\"linkedServiceName\":{\"referenceName\":\"ud\",\"parameters\":{\"res\":\"datagxrsxvzwnuib\",\"w\":\"datajohrvkpnma\"}}}},\"webServiceInputs\":{\"oaallveezesdn\":{\"filePath\":\"datalmbuzkayfjzyco\",\"linkedServiceName\":{\"referenceName\":\"wjpyf\",\"parameters\":{\"hrl\":\"datamgw\",\"cvaibzbvkoxl\":\"dataosqlfvsvwauqxh\",\"fbiodgtziylp\":\"datatv\"}}},\"mddv\":{\"filePath\":\"datalkzzlokmrudepzl\",\"linkedServiceName\":{\"referenceName\":\"uzcwlbefjh\",\"parameters\":{\"txttahsojgf\":\"datapv\",\"fmgudkfoybih\":\"datay\",\"tkkufbi\":\"datapnkwt\"}}},\"vumvhpichsbzgwif\":{\"filePath\":\"dataub\",\"linkedServiceName\":{\"referenceName\":\"iomfflrnggwujy\",\"parameters\":{\"fmuwhgxvgkbffqsi\":\"datafsbmrgbnrnihx\",\"tyhd\":\"datalaubijvavqq\",\"atzgxtasryivlfbr\":\"datakd\"}}}}}") - .toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions.assertEquals("bfmttpz", - model.webServiceOutputs().get("svhsieev").linkedServiceName().referenceName()); - Assertions.assertEquals("wjpyf", - model.webServiceInputs().get("oaallveezesdn").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivityTypeProperties model - = new AzureMLBatchExecutionActivityTypeProperties() - .withGlobalParameters(mapOf("ovburvekbknr", "dataet", "qbyoyhfbbbhxly", "datakxcpnxdzpfzmdsly")) - .withWebServiceOutputs(mapOf("svhsieev", - new AzureMLWebServiceFile().withFilePath("datalqprhnchpets") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bfmttpz") - .withParameters(mapOf("dusizsnhekpcnq", "datampu"))), - "qmaiegrxoo", - new AzureMLWebServiceFile().withFilePath("datamubzlmmctdkzp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ud") - .withParameters(mapOf("res", "datagxrsxvzwnuib", "w", "datajohrvkpnma"))))) - .withWebServiceInputs(mapOf("oaallveezesdn", - new AzureMLWebServiceFile().withFilePath("datalmbuzkayfjzyco") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wjpyf") - .withParameters(mapOf("hrl", "datamgw", "cvaibzbvkoxl", "dataosqlfvsvwauqxh", - "fbiodgtziylp", "datatv"))), - "mddv", - new AzureMLWebServiceFile().withFilePath("datalkzzlokmrudepzl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uzcwlbefjh") - .withParameters( - mapOf("txttahsojgf", "datapv", "fmgudkfoybih", "datay", "tkkufbi", "datapnkwt"))), - "vumvhpichsbzgwif", - new AzureMLWebServiceFile().withFilePath("dataub") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iomfflrnggwujy") - .withParameters(mapOf("fmuwhgxvgkbffqsi", "datafsbmrgbnrnihx", "tyhd", "datalaubijvavqq", - "atzgxtasryivlfbr", "datakd"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions.assertEquals("bfmttpz", - model.webServiceOutputs().get("svhsieev").linkedServiceName().referenceName()); - Assertions.assertEquals("wjpyf", - model.webServiceInputs().get("oaallveezesdn").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 403e5971ce24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"qlvqkkceb\",\"typeProperties\":{\"mlPipelineId\":\"datawbxa\",\"mlPipelineEndpointId\":\"datajrxvthqjvoydeg\",\"version\":\"datawl\",\"experimentName\":\"datanypkppnz\",\"mlPipelineParameters\":\"datauafxwazfrs\",\"dataPathAssignments\":\"datagvfmbs\",\"mlParentRunId\":\"dataollntvfq\",\"continueOnStepFailure\":\"datafzfhspdsraxz\"},\"linkedServiceName\":{\"referenceName\":\"xkzcfxzcp\",\"parameters\":{\"zlreo\":\"dataqpwe\",\"mftziracz\":\"datasqqcqgnfdimgra\",\"ghznltjxstjge\":\"datalssqv\",\"jq\":\"datanjswnjoni\"}},\"policy\":{\"timeout\":\"dataxswineyjerf\",\"retry\":\"datamlppnmrftnf\",\"retryIntervalInSeconds\":155145237,\"secureInput\":false,\"secureOutput\":true,\"\":{\"gk\":\"datap\",\"zeemsfpmoiykts\":\"datafbfn\",\"cenk\":\"datansnikmwn\"}},\"name\":\"zoc\",\"description\":\"yshoeqpvkk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"vaiolfrce\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Failed\"],\"\":{\"jhocc\":\"datacpsviajksmwrbw\",\"pb\":\"datalayqskkpoufupad\"}},{\"activity\":\"z\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\"],\"\":{\"nozsflnmjschttl\":\"datayzhbtnagkndn\",\"ch\":\"datartwrnuklshrqrh\",\"tvp\":\"datatbdx\"}},{\"activity\":\"drfxqudyadxnrtk\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"jm\":\"datanbrpvos\"}}],\"userProperties\":[{\"name\":\"gvyztoqd\",\"value\":\"datawubuqxsncrsrtqor\"},{\"name\":\"xeuwbfjzwisx\",\"value\":\"dataasgfmrzxzbuhqm\"},{\"name\":\"adyi\",\"value\":\"datakthrd\"}],\"\":{\"gkikb\":\"databogmfetqw\"}}") - .toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("zoc", model.name()); - Assertions.assertEquals("yshoeqpvkk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("vaiolfrce", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gvyztoqd", model.userProperties().get(0).name()); - Assertions.assertEquals("xkzcfxzcp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(155145237, 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 { - AzureMLExecutePipelineActivity model = new AzureMLExecutePipelineActivity().withName("zoc") - .withDescription("yshoeqpvkk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("vaiolfrce") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("z") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("drfxqudyadxnrtk") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("gvyztoqd").withValue("datawubuqxsncrsrtqor"), - new UserProperty().withName("xeuwbfjzwisx").withValue("dataasgfmrzxzbuhqm"), - new UserProperty().withName("adyi").withValue("datakthrd"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xkzcfxzcp") - .withParameters(mapOf("zlreo", "dataqpwe", "mftziracz", "datasqqcqgnfdimgra", "ghznltjxstjge", - "datalssqv", "jq", "datanjswnjoni"))) - .withPolicy(new ActivityPolicy().withTimeout("dataxswineyjerf") - .withRetry("datamlppnmrftnf") - .withRetryIntervalInSeconds(155145237) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withMlPipelineId("datawbxa") - .withMlPipelineEndpointId("datajrxvthqjvoydeg") - .withVersion("datawl") - .withExperimentName("datanypkppnz") - .withMlPipelineParameters("datauafxwazfrs") - .withDataPathAssignments("datagvfmbs") - .withMlParentRunId("dataollntvfq") - .withContinueOnStepFailure("datafzfhspdsraxz"); - model = BinaryData.fromObject(model).toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("zoc", model.name()); - Assertions.assertEquals("yshoeqpvkk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("vaiolfrce", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gvyztoqd", model.userProperties().get(0).name()); - Assertions.assertEquals("xkzcfxzcp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(155145237, 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/AzureMLExecutePipelineActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java deleted file mode 100644 index ca2c5dcb7e59..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\":\"dataqdopxbnrnn\",\"mlPipelineEndpointId\":\"datasso\",\"version\":\"dataypvdbpuywxyg\",\"experimentName\":\"datalqszwcwa\",\"mlPipelineParameters\":\"datas\",\"dataPathAssignments\":\"datatq\",\"mlParentRunId\":\"datamagoqfmks\",\"continueOnStepFailure\":\"dataesgdlskw\"}") - .toObject(AzureMLExecutePipelineActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLExecutePipelineActivityTypeProperties model - = new AzureMLExecutePipelineActivityTypeProperties().withMlPipelineId("dataqdopxbnrnn") - .withMlPipelineEndpointId("datasso") - .withVersion("dataypvdbpuywxyg") - .withExperimentName("datalqszwcwa") - .withMlPipelineParameters("datas") - .withDataPathAssignments("datatq") - .withMlParentRunId("datamagoqfmks") - .withContinueOnStepFailure("dataesgdlskw"); - 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 55d5353dc1a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.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.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\":\"frgvcoulxhpvursm\",\"typeProperties\":{\"trainedModelName\":\"datanangkcddwm\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"sa\",\"parameters\":{\"rtgrz\":\"datalwpa\",\"yzoiqaijnahelf\":\"datatpqvhkjbgcqqeyt\",\"p\":\"dataha\",\"jcrqatx\":\"dataakqg\"}},\"trainedModelFilePath\":\"dataekidjbsfpaomlgyn\"},\"linkedServiceName\":{\"referenceName\":\"pypsjokjjrj\",\"parameters\":{\"tcjimsge\":\"datalcjtm\"}},\"policy\":{\"timeout\":\"datawwedbcrkepjnyrtl\",\"retry\":\"dataijcxvqjwlid\",\"retryIntervalInSeconds\":1580319500,\"secureInput\":true,\"secureOutput\":false,\"\":{\"wvwluzspkqxbtkwa\":\"datakzqass\",\"zjtudnnswwgrqiq\":\"dataw\",\"bjxo\":\"datao\",\"anvjhoshinljquqe\":\"datamwnrw\"}},\"name\":\"umyxps\",\"description\":\"ypwvhjskkgsf\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"alp\",\"dependencyConditions\":[\"Completed\"],\"\":{\"hjfseh\":\"datawtf\",\"inzukzb\":\"datazjbuz\",\"dhleuabsiqnyjjfj\":\"databc\",\"up\":\"datags\"}}],\"userProperties\":[{\"name\":\"exafql\",\"value\":\"datajmbzph\"},{\"name\":\"krjsgbcroltddify\",\"value\":\"dataxe\"}],\"\":{\"ackfupyivqpczx\":\"databijaqyiyefleju\",\"bperkeyhybc\":\"datazlxowgzt\"}}") - .toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("umyxps", model.name()); - Assertions.assertEquals("ypwvhjskkgsf", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("alp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("exafql", model.userProperties().get(0).name()); - Assertions.assertEquals("pypsjokjjrj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1580319500, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("sa", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivity model = new AzureMLUpdateResourceActivity().withName("umyxps") - .withDescription("ypwvhjskkgsf") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("alp") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("exafql").withValue("datajmbzph"), - new UserProperty().withName("krjsgbcroltddify").withValue("dataxe"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("pypsjokjjrj") - .withParameters(mapOf("tcjimsge", "datalcjtm"))) - .withPolicy(new ActivityPolicy().withTimeout("datawwedbcrkepjnyrtl") - .withRetry("dataijcxvqjwlid") - .withRetryIntervalInSeconds(1580319500) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withTrainedModelName("datanangkcddwm") - .withTrainedModelLinkedServiceName(new LinkedServiceReference().withReferenceName("sa") - .withParameters(mapOf("rtgrz", "datalwpa", "yzoiqaijnahelf", "datatpqvhkjbgcqqeyt", "p", "dataha", - "jcrqatx", "dataakqg"))) - .withTrainedModelFilePath("dataekidjbsfpaomlgyn"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("umyxps", model.name()); - Assertions.assertEquals("ypwvhjskkgsf", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("alp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("exafql", model.userProperties().get(0).name()); - Assertions.assertEquals("pypsjokjjrj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1580319500, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("sa", 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 7b6b9b60c4cf..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\":\"dataxurdfzynfm\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"jqrnuo\",\"parameters\":{\"crutf\":\"datatzeauifc\"}},\"trainedModelFilePath\":\"datazdobh\"}") - .toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("jqrnuo", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivityTypeProperties model = new AzureMLUpdateResourceActivityTypeProperties() - .withTrainedModelName("dataxurdfzynfm") - .withTrainedModelLinkedServiceName( - new LinkedServiceReference().withReferenceName("jqrnuo").withParameters(mapOf("crutf", "datatzeauifc"))) - .withTrainedModelFilePath("datazdobh"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("jqrnuo", 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 5241903a6023..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\":\"datarbjjswzk\",\"linkedServiceName\":{\"referenceName\":\"wtfe\",\"parameters\":{\"eb\":\"datahwtag\"}}}") - .toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("wtfe", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLWebServiceFile model = new AzureMLWebServiceFile().withFilePath("datarbjjswzk") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("wtfe").withParameters(mapOf("eb", "datahwtag"))); - model = BinaryData.fromObject(model).toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("wtfe", 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 0ac43bf01d59..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\":\"grtse\",\"query\":\"datarpjonmins\",\"queryTimeout\":\"datayigfdppgkk\",\"additionalColumns\":\"dataygjldljgd\",\"sourceRetryCount\":\"dataow\",\"sourceRetryWait\":\"dataxkofmtfwcu\",\"maxConcurrentConnections\":\"databnapzfdzmr\",\"disableMetricsCollection\":\"datarbclj\",\"\":{\"skjbasmrdpbmoq\":\"dataaawnzzlfve\",\"apmeomcpvmakdtg\":\"datasvukgfzby\",\"myewbfo\":\"datanyubnw\",\"etj\":\"datawv\"}}") - .toObject(AzureMariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBSource model = new AzureMariaDBSource().withSourceRetryCount("dataow") - .withSourceRetryWait("dataxkofmtfwcu") - .withMaxConcurrentConnections("databnapzfdzmr") - .withDisableMetricsCollection("datarbclj") - .withQueryTimeout("datayigfdppgkk") - .withAdditionalColumns("dataygjldljgd") - .withQuery("datarpjonmins"); - 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 0b523168b463..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.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.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\":\"wapdunhdikatzmtu\",\"typeProperties\":{\"tableName\":\"dataoeqcrjvcjskqsfn\"},\"description\":\"nh\",\"structure\":\"datajkbi\",\"schema\":\"datalwzlv\",\"linkedServiceName\":{\"referenceName\":\"cmcu\",\"parameters\":{\"cfbaobo\":\"datanlodi\"}},\"parameters\":{\"ksaxyeedvpmodkt\":{\"type\":\"Float\",\"defaultValue\":\"datapsvax\"}},\"annotations\":[\"dataydvvgkmorbpcjesf\",\"datavuztnsvmsh\",\"datakg\",\"datagf\"],\"folder\":{\"name\":\"meh\"},\"\":{\"ivrfnztx\":\"datalpkryrcbmjjviu\",\"ohlgrjcx\":\"datamrmgftjvii\"}}") - .toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("nh", model.description()); - Assertions.assertEquals("cmcu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ksaxyeedvpmodkt").type()); - Assertions.assertEquals("meh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBTableDataset model = new AzureMariaDBTableDataset().withDescription("nh") - .withStructure("datajkbi") - .withSchema("datalwzlv") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("cmcu").withParameters(mapOf("cfbaobo", "datanlodi"))) - .withParameters(mapOf("ksaxyeedvpmodkt", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datapsvax"))) - .withAnnotations(Arrays.asList("dataydvvgkmorbpcjesf", "datavuztnsvmsh", "datakg", "datagf")) - .withFolder(new DatasetFolder().withName("meh")) - .withTableName("dataoeqcrjvcjskqsfn"); - model = BinaryData.fromObject(model).toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("nh", model.description()); - Assertions.assertEquals("cmcu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ksaxyeedvpmodkt").type()); - Assertions.assertEquals("meh", 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 c3693bbbd5b6..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\":\"kggbmzdnyrmolm\",\"preCopyScript\":\"dataehsnlmdosiyzfdc\",\"writeBatchSize\":\"datakcpumckcbsa\",\"writeBatchTimeout\":\"dataucsscwdqilz\",\"sinkRetryCount\":\"datai\",\"sinkRetryWait\":\"datarqzwypwh\",\"maxConcurrentConnections\":\"databflrpvcgqqxek\",\"disableMetricsCollection\":\"datahpsqvuised\",\"\":{\"btpvwx\":\"datavfjkxxnqrqdx\",\"zss\":\"datalsvicvpagwohkro\",\"jpiezthflgpsal\":\"datamlozjyovrllvhbgk\",\"wzpfbiqjrz\":\"datanan\"}}") - .toObject(AzureMySqlSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSink model = new AzureMySqlSink().withWriteBatchSize("datakcpumckcbsa") - .withWriteBatchTimeout("dataucsscwdqilz") - .withSinkRetryCount("datai") - .withSinkRetryWait("datarqzwypwh") - .withMaxConcurrentConnections("databflrpvcgqqxek") - .withDisableMetricsCollection("datahpsqvuised") - .withPreCopyScript("dataehsnlmdosiyzfdc"); - 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 6ce8778711b9..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\":\"jnnoot\",\"query\":\"datapvnvdzssssn\",\"queryTimeout\":\"dataotx\",\"additionalColumns\":\"databxzhad\",\"sourceRetryCount\":\"datayupaqdoodhnzkmj\",\"sourceRetryWait\":\"databyogwjr\",\"maxConcurrentConnections\":\"datanrykkh\",\"disableMetricsCollection\":\"datawohsj\",\"\":{\"vrixcveser\":\"dataphnlwey\"}}") - .toObject(AzureMySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSource model = new AzureMySqlSource().withSourceRetryCount("datayupaqdoodhnzkmj") - .withSourceRetryWait("databyogwjr") - .withMaxConcurrentConnections("datanrykkh") - .withDisableMetricsCollection("datawohsj") - .withQueryTimeout("dataotx") - .withAdditionalColumns("databxzhad") - .withQuery("datapvnvdzssssn"); - 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 93960d54b079..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.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.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\":\"zq\",\"typeProperties\":{\"tableName\":\"dataozfrfawtnnsv\",\"table\":\"dataajynihtibu\"},\"description\":\"luctblf\",\"structure\":\"databgcgyohrcmeqlj\",\"schema\":\"dataumhycxonebld\",\"linkedServiceName\":{\"referenceName\":\"a\",\"parameters\":{\"ufzdtsrpju\":\"datafjwcngkwxjsjquvo\"}},\"parameters\":{\"nsbylgmgbh\":{\"type\":\"String\",\"defaultValue\":\"datarz\"},\"an\":{\"type\":\"Array\",\"defaultValue\":\"datazo\"},\"ztilqbzb\":{\"type\":\"Bool\",\"defaultValue\":\"datalvcxglxoqw\"},\"yodpiovnlhrwy\":{\"type\":\"Array\",\"defaultValue\":\"datawzhbhflj\"}},\"annotations\":[\"datauafapwxsvdeatjio\"],\"folder\":{\"name\":\"rgoextqdnw\"},\"\":{\"setk\":\"datatimznupbmt\",\"zmmmjyvdhdgdi\":\"datadsqvhedaakghc\"}}") - .toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("luctblf", model.description()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("nsbylgmgbh").type()); - Assertions.assertEquals("rgoextqdnw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDataset model = new AzureMySqlTableDataset().withDescription("luctblf") - .withStructure("databgcgyohrcmeqlj") - .withSchema("dataumhycxonebld") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("a") - .withParameters(mapOf("ufzdtsrpju", "datafjwcngkwxjsjquvo"))) - .withParameters(mapOf("nsbylgmgbh", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datarz"), "an", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazo"), "ztilqbzb", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datalvcxglxoqw"), - "yodpiovnlhrwy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datawzhbhflj"))) - .withAnnotations(Arrays.asList("datauafapwxsvdeatjio")) - .withFolder(new DatasetFolder().withName("rgoextqdnw")) - .withTableName("dataozfrfawtnnsv") - .withTable("dataajynihtibu"); - model = BinaryData.fromObject(model).toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("luctblf", model.description()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("nsbylgmgbh").type()); - Assertions.assertEquals("rgoextqdnw", 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 4e3885865154..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\":\"datalgstmfetq\",\"table\":\"datasjmol\"}") - .toObject(AzureMySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDatasetTypeProperties model - = new AzureMySqlTableDatasetTypeProperties().withTableName("datalgstmfetq").withTable("datasjmol"); - 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 cb6d50d00315..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\":\"b\",\"preCopyScript\":\"datayumqoqw\",\"writeBatchSize\":\"datayeigngrzvegxmx\",\"writeBatchTimeout\":\"datahqxzewlwwdmp\",\"sinkRetryCount\":\"datacpccovzkwhdtf\",\"sinkRetryWait\":\"datafctsfujdap\",\"maxConcurrentConnections\":\"datagamgbnktg\",\"disableMetricsCollection\":\"dataddydbatexkwcoln\",\"\":{\"d\":\"datawsdyvahn\",\"mekgtkojrr\":\"datacpmvnzhdsa\"}}") - .toObject(AzurePostgreSqlSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlSink model = new AzurePostgreSqlSink().withWriteBatchSize("datayeigngrzvegxmx") - .withWriteBatchTimeout("datahqxzewlwwdmp") - .withSinkRetryCount("datacpccovzkwhdtf") - .withSinkRetryWait("datafctsfujdap") - .withMaxConcurrentConnections("datagamgbnktg") - .withDisableMetricsCollection("dataddydbatexkwcoln") - .withPreCopyScript("datayumqoqw"); - 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 a866d0ac0dbb..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\":\"mjazqlmigkx\",\"query\":\"datakditkwokefde\",\"queryTimeout\":\"datafnsy\",\"additionalColumns\":\"dataytrwyojhmgvm\",\"sourceRetryCount\":\"datashadnholkoyxms\",\"sourceRetryWait\":\"datadsqwvzunrqvu\",\"maxConcurrentConnections\":\"dataxs\",\"disableMetricsCollection\":\"dataqzdfjwo\",\"\":{\"hwaepg\":\"dataifrmoftilhoye\",\"qmfvzubmhsxtryy\":\"datadircdtkvorif\",\"uovturdhnnmhriz\":\"datavwm\",\"tnbvueizua\":\"datamptsygq\"}}") - .toObject(AzurePostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlSource model = new AzurePostgreSqlSource().withSourceRetryCount("datashadnholkoyxms") - .withSourceRetryWait("datadsqwvzunrqvu") - .withMaxConcurrentConnections("dataxs") - .withDisableMetricsCollection("dataqzdfjwo") - .withQueryTimeout("datafnsy") - .withAdditionalColumns("dataytrwyojhmgvm") - .withQuery("datakditkwokefde"); - 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 ac895f853a67..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\":\"jvzmxyrazzstjvc\",\"typeProperties\":{\"tableName\":\"dataxfpzcuudq\",\"table\":\"datadxjvvlyibweuaugt\",\"schema\":\"datazncoqxtvytzqly\"},\"description\":\"bdbrl\",\"structure\":\"datazlty\",\"schema\":\"dataacbibtk\",\"linkedServiceName\":{\"referenceName\":\"iecup\",\"parameters\":{\"krlnrpeylfiiul\":\"datads\",\"hcxwwwvun\":\"datadgiql\",\"atrtcqyfjvifbmo\":\"datansgvxhxrm\",\"bhukdfpknv\":\"datatehqyoytrcoufkq\"}},\"parameters\":{\"hzjlrknckkfxm\":{\"type\":\"Float\",\"defaultValue\":\"datajezchmeo\"},\"fts\":{\"type\":\"Float\",\"defaultValue\":\"dataqkwqphfv\"},\"zgfctuuzow\":{\"type\":\"Bool\",\"defaultValue\":\"datalpxcachdt\"}},\"annotations\":[\"datavuxnx\",\"datauohshzultdbvm\"],\"folder\":{\"name\":\"ypngocbd\"},\"\":{\"zsuzgrzu\":\"dataivptb\",\"aatvogpyceinha\":\"dataekytkzvtv\",\"khwfjudapbq\":\"datahbdxsbypl\"}}") - .toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("bdbrl", model.description()); - Assertions.assertEquals("iecup", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("hzjlrknckkfxm").type()); - Assertions.assertEquals("ypngocbd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDataset model = new AzurePostgreSqlTableDataset().withDescription("bdbrl") - .withStructure("datazlty") - .withSchema("dataacbibtk") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iecup") - .withParameters(mapOf("krlnrpeylfiiul", "datads", "hcxwwwvun", "datadgiql", "atrtcqyfjvifbmo", - "datansgvxhxrm", "bhukdfpknv", "datatehqyoytrcoufkq"))) - .withParameters(mapOf("hzjlrknckkfxm", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datajezchmeo"), "fts", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqkwqphfv"), - "zgfctuuzow", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datalpxcachdt"))) - .withAnnotations(Arrays.asList("datavuxnx", "datauohshzultdbvm")) - .withFolder(new DatasetFolder().withName("ypngocbd")) - .withTableName("dataxfpzcuudq") - .withTable("datadxjvvlyibweuaugt") - .withSchemaTypePropertiesSchema("datazncoqxtvytzqly"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("bdbrl", model.description()); - Assertions.assertEquals("iecup", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("hzjlrknckkfxm").type()); - Assertions.assertEquals("ypngocbd", 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 2e1f906ca5c9..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\":\"dataez\",\"table\":\"datagdpftfcb\",\"schema\":\"datasrdp\"}") - .toObject(AzurePostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDatasetTypeProperties model - = new AzurePostgreSqlTableDatasetTypeProperties().withTableName("dataez") - .withTable("datagdpftfcb") - .withSchema("datasrdp"); - 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 e47e1870657f..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\":\"uxljiqyrwdmgr\",\"writeBatchSize\":\"datavewgvwmybokq\",\"writeBatchTimeout\":\"datahswbpjzoyzydlysz\",\"sinkRetryCount\":\"datapnwzpkisefy\",\"sinkRetryWait\":\"dataaumerkgmgqy\",\"maxConcurrentConnections\":\"datajqkasxiczv\",\"disableMetricsCollection\":\"dataoihcqxexbksa\",\"\":{\"gpszwvooxieyyww\":\"datacwyrtluujyesp\",\"fybktbviaqvzzszc\":\"dataiwiaqrc\",\"rxo\":\"dataw\",\"twwaxx\":\"datavygdefpy\"}}") - .toObject(AzureQueueSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureQueueSink model = new AzureQueueSink().withWriteBatchSize("datavewgvwmybokq") - .withWriteBatchTimeout("datahswbpjzoyzydlysz") - .withSinkRetryCount("datapnwzpkisefy") - .withSinkRetryWait("dataaumerkgmgqy") - .withMaxConcurrentConnections("datajqkasxiczv") - .withDisableMetricsCollection("dataoihcqxexbksa"); - 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 6b7dea4f849f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.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.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\":\"uiygtcyzcjefpub\",\"typeProperties\":{\"indexName\":\"datajyffwflbkjc\"},\"description\":\"djcgldry\",\"structure\":\"datar\",\"schema\":\"databhzirmx\",\"linkedServiceName\":{\"referenceName\":\"aujbfomfbozpj\",\"parameters\":{\"thpsnxebycymp\":\"datafppqcwdnnj\"}},\"parameters\":{\"sebcxno\":{\"type\":\"String\",\"defaultValue\":\"datannp\"},\"gspjlf\":{\"type\":\"Bool\",\"defaultValue\":\"datadyzssjlmykdygj\"}},\"annotations\":[\"datangwqxcrbcrgyoim\"],\"folder\":{\"name\":\"z\"},\"\":{\"kognhtvagwnn\":\"datat\"}}") - .toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("djcgldry", model.description()); - Assertions.assertEquals("aujbfomfbozpj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("sebcxno").type()); - Assertions.assertEquals("z", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDataset model = new AzureSearchIndexDataset().withDescription("djcgldry") - .withStructure("datar") - .withSchema("databhzirmx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("aujbfomfbozpj") - .withParameters(mapOf("thpsnxebycymp", "datafppqcwdnnj"))) - .withParameters(mapOf("sebcxno", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datannp"), "gspjlf", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datadyzssjlmykdygj"))) - .withAnnotations(Arrays.asList("datangwqxcrbcrgyoim")) - .withFolder(new DatasetFolder().withName("z")) - .withIndexName("datajyffwflbkjc"); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("djcgldry", model.description()); - Assertions.assertEquals("aujbfomfbozpj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("sebcxno").type()); - Assertions.assertEquals("z", 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 ed88b8afb249..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\":\"datacnvpnyldjdkjv\"}") - .toObject(AzureSearchIndexDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDatasetTypeProperties model - = new AzureSearchIndexDatasetTypeProperties().withIndexName("datacnvpnyldjdkjv"); - 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 419e5f6b3f9e..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\":\"ko\",\"writeBehavior\":\"Merge\",\"writeBatchSize\":\"dataquvf\",\"writeBatchTimeout\":\"dataaaozpcc\",\"sinkRetryCount\":\"datawfqtqbnakmgyd\",\"sinkRetryWait\":\"datakzgwf\",\"maxConcurrentConnections\":\"dataeqz\",\"disableMetricsCollection\":\"datae\",\"\":{\"qwfvxvoqbruyma\":\"datascrkkankjkszud\",\"fofxi\":\"dataj\",\"stuhlwzcn\":\"datajfmvydjax\",\"mnyfhkxcplhqzpw\":\"datavugb\"}}") - .toObject(AzureSearchIndexSink.class); - Assertions.assertEquals(AzureSearchIndexWriteBehaviorType.MERGE, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexSink model = new AzureSearchIndexSink().withWriteBatchSize("dataquvf") - .withWriteBatchTimeout("dataaaozpcc") - .withSinkRetryCount("datawfqtqbnakmgyd") - .withSinkRetryWait("datakzgwf") - .withMaxConcurrentConnections("dataeqz") - .withDisableMetricsCollection("datae") - .withWriteBehavior(AzureSearchIndexWriteBehaviorType.MERGE); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexSink.class); - Assertions.assertEquals(AzureSearchIndexWriteBehaviorType.MERGE, 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 de68bfb0ca36..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.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.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\":\"gwlckihbamyqs\",\"typeProperties\":{\"tableName\":\"datax\",\"schema\":\"datazsvmaigb\",\"table\":\"datavhyejthgeecbp\"},\"description\":\"knp\",\"structure\":\"datazjwdizcr\",\"schema\":\"datax\",\"linkedServiceName\":{\"referenceName\":\"ujzkcsexgkrs\",\"parameters\":{\"nwzoknvu\":\"dataykkbxktxbbwl\",\"a\":\"dataddlggb\",\"lkvggcmfnsffet\":\"datalgzubak\",\"gsmepnqvxgvoh\":\"datakmixwewzls\"}},\"parameters\":{\"gannvwxqhp\":{\"type\":\"String\",\"defaultValue\":\"dataxmoevvudeepf\"}},\"annotations\":[\"databohxvzgaybvrh\",\"dataog\"],\"folder\":{\"name\":\"xnwfmzvzt\"},\"\":{\"fcssanybzzghvd\":\"databpamq\",\"jsvcdhlyw\":\"dataeum\"}}") - .toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("knp", model.description()); - Assertions.assertEquals("ujzkcsexgkrs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("gannvwxqhp").type()); - Assertions.assertEquals("xnwfmzvzt", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDataset model = new AzureSqlDWTableDataset().withDescription("knp") - .withStructure("datazjwdizcr") - .withSchema("datax") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ujzkcsexgkrs") - .withParameters(mapOf("nwzoknvu", "dataykkbxktxbbwl", "a", "dataddlggb", "lkvggcmfnsffet", - "datalgzubak", "gsmepnqvxgvoh", "datakmixwewzls"))) - .withParameters(mapOf("gannvwxqhp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxmoevvudeepf"))) - .withAnnotations(Arrays.asList("databohxvzgaybvrh", "dataog")) - .withFolder(new DatasetFolder().withName("xnwfmzvzt")) - .withTableName("datax") - .withSchemaTypePropertiesSchema("datazsvmaigb") - .withTable("datavhyejthgeecbp"); - model = BinaryData.fromObject(model).toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("knp", model.description()); - Assertions.assertEquals("ujzkcsexgkrs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("gannvwxqhp").type()); - Assertions.assertEquals("xnwfmzvzt", 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 127e58c2e9e5..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\":\"dataookju\",\"schema\":\"dataxezriw\",\"table\":\"dataewapcqksaaa\"}") - .toObject(AzureSqlDWTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDatasetTypeProperties model - = new AzureSqlDWTableDatasetTypeProperties().withTableName("dataookju") - .withSchema("dataxezriw") - .withTable("dataewapcqksaaa"); - 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 5397a8a596a5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.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.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\":\"fmsxjwdy\",\"typeProperties\":{\"tableName\":\"datamcreihu\",\"schema\":\"datarnig\",\"table\":\"datainuwqxungrob\"},\"description\":\"xmvzjow\",\"structure\":\"datageerclbl\",\"schema\":\"datahpwachyeu\",\"linkedServiceName\":{\"referenceName\":\"jwmvwryvdi\",\"parameters\":{\"txsytrtexegwmrq\":\"dataikgpruccwmec\"}},\"parameters\":{\"oqkajwjuriarsbc\":{\"type\":\"String\",\"defaultValue\":\"datahvycfjncindi\"}},\"annotations\":[\"datanhzcknjxizb\"],\"folder\":{\"name\":\"ygzkztxfexwacyy\"},\"\":{\"p\":\"datax\",\"b\":\"datandzkfevuiiui\"}}") - .toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("xmvzjow", model.description()); - Assertions.assertEquals("jwmvwryvdi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("oqkajwjuriarsbc").type()); - Assertions.assertEquals("ygzkztxfexwacyy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDataset model = new AzureSqlMITableDataset().withDescription("xmvzjow") - .withStructure("datageerclbl") - .withSchema("datahpwachyeu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jwmvwryvdi") - .withParameters(mapOf("txsytrtexegwmrq", "dataikgpruccwmec"))) - .withParameters(mapOf("oqkajwjuriarsbc", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahvycfjncindi"))) - .withAnnotations(Arrays.asList("datanhzcknjxizb")) - .withFolder(new DatasetFolder().withName("ygzkztxfexwacyy")) - .withTableName("datamcreihu") - .withSchemaTypePropertiesSchema("datarnig") - .withTable("datainuwqxungrob"); - model = BinaryData.fromObject(model).toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("xmvzjow", model.description()); - Assertions.assertEquals("jwmvwryvdi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("oqkajwjuriarsbc").type()); - Assertions.assertEquals("ygzkztxfexwacyy", 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 c0c3b9ffad29..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.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.AzureSqlMITableDatasetTypeProperties; - -public final class AzureSqlMITableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datacjy\",\"schema\":\"datadcizeqqfop\",\"table\":\"dataopmotdsf\"}") - .toObject(AzureSqlMITableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model = new AzureSqlMITableDatasetTypeProperties().withTableName("datacjy") - .withSchema("datadcizeqqfop") - .withTable("dataopmotdsf"); - 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 525495f82f80..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\":\"hcyno\",\"sqlReaderQuery\":\"dataf\",\"sqlReaderStoredProcedureName\":\"dataks\",\"storedProcedureParameters\":\"dataehrajbatgmxkolt\",\"isolationLevel\":\"dataqjcmkpxbc\",\"produceAdditionalTypes\":\"datarfkwc\",\"partitionOption\":\"datamyowddhtwaxob\",\"partitionSettings\":{\"partitionColumnName\":\"datatqoc\",\"partitionUpperBound\":\"datadjp\",\"partitionLowerBound\":\"datac\"},\"queryTimeout\":\"datahocyvymvnla\",\"additionalColumns\":\"dataitxoibfo\",\"sourceRetryCount\":\"datahbvbqxtk\",\"sourceRetryWait\":\"dataeuapomoofbnbhp\",\"maxConcurrentConnections\":\"dataaljcqp\",\"disableMetricsCollection\":\"datamathiydmkyvsxc\",\"\":{\"mfmkpjoe\":\"dataghajpddgfoz\",\"drrruy\":\"dataozcuhunmfzbmwp\",\"bivgmckxhmxz\":\"datanoiumuxn\",\"biojncgjo\":\"datampoiutaatv\"}}") - .toObject(AzureSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlSource model = new AzureSqlSource().withSourceRetryCount("datahbvbqxtk") - .withSourceRetryWait("dataeuapomoofbnbhp") - .withMaxConcurrentConnections("dataaljcqp") - .withDisableMetricsCollection("datamathiydmkyvsxc") - .withQueryTimeout("datahocyvymvnla") - .withAdditionalColumns("dataitxoibfo") - .withSqlReaderQuery("dataf") - .withSqlReaderStoredProcedureName("dataks") - .withStoredProcedureParameters("dataehrajbatgmxkolt") - .withIsolationLevel("dataqjcmkpxbc") - .withProduceAdditionalTypes("datarfkwc") - .withPartitionOption("datamyowddhtwaxob") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datatqoc") - .withPartitionUpperBound("datadjp") - .withPartitionLowerBound("datac")); - 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 2f499e517422..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.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.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\":\"ihwpadhedbfobd\",\"typeProperties\":{\"tableName\":\"datacfddofxnfb\",\"schema\":\"datayyrqaedwov\",\"table\":\"dataytjgoeayokrw\"},\"description\":\"vothmkhjaoz\",\"structure\":\"datawfcn\",\"schema\":\"databpoelhscmyhrhjv\",\"linkedServiceName\":{\"referenceName\":\"zfq\",\"parameters\":{\"joevzzuf\":\"datandwpppqw\",\"krbuoggtdltlcuha\":\"datatdxmlynzlyvap\"}},\"parameters\":{\"tqkrvmhvbvvcpwtq\":{\"type\":\"String\",\"defaultValue\":\"dataaylzeohlps\"},\"ffetevrnt\":{\"type\":\"Array\",\"defaultValue\":\"datapnhmzy\"}},\"annotations\":[\"datawacycsyotctkhf\",\"datafsatvcsx\"],\"folder\":{\"name\":\"nmizhv\"},\"\":{\"obzgott\":\"dataqqwcublehhkp\",\"h\":\"dataksadzi\"}}") - .toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("vothmkhjaoz", model.description()); - Assertions.assertEquals("zfq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tqkrvmhvbvvcpwtq").type()); - Assertions.assertEquals("nmizhv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDataset model = new AzureSqlTableDataset().withDescription("vothmkhjaoz") - .withStructure("datawfcn") - .withSchema("databpoelhscmyhrhjv") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zfq") - .withParameters(mapOf("joevzzuf", "datandwpppqw", "krbuoggtdltlcuha", "datatdxmlynzlyvap"))) - .withParameters(mapOf("tqkrvmhvbvvcpwtq", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataaylzeohlps"), - "ffetevrnt", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datapnhmzy"))) - .withAnnotations(Arrays.asList("datawacycsyotctkhf", "datafsatvcsx")) - .withFolder(new DatasetFolder().withName("nmizhv")) - .withTableName("datacfddofxnfb") - .withSchemaTypePropertiesSchema("datayyrqaedwov") - .withTable("dataytjgoeayokrw"); - model = BinaryData.fromObject(model).toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("vothmkhjaoz", model.description()); - Assertions.assertEquals("zfq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tqkrvmhvbvvcpwtq").type()); - Assertions.assertEquals("nmizhv", 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 d4d78af04731..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.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.AzureSqlTableDatasetTypeProperties; - -public final class AzureSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlTableDatasetTypeProperties model = BinaryData - .fromString( - "{\"tableName\":\"datatbtdvu\",\"schema\":\"datavvraabeurdeewlsu\",\"table\":\"datacbwkdwjyj\"}") - .toObject(AzureSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDatasetTypeProperties model = new AzureSqlTableDatasetTypeProperties().withTableName("datatbtdvu") - .withSchema("datavvraabeurdeewlsu") - .withTable("datacbwkdwjyj"); - 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 28c414630b35..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.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.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\":\"efekfxmgjywwidnr\",\"typeProperties\":{\"endpoint\":\"datagfpqxse\",\"authentication\":\"datazkpdmmowftfrqeb\",\"workspaceResourceId\":\"dataop\"},\"connectVia\":{\"referenceName\":\"dkvhui\",\"parameters\":{\"adokuqnkoskflnj\":\"datahodisypgapfdwhwb\",\"rjee\":\"datay\"}},\"description\":\"bhemrhbzetsspw\",\"parameters\":{\"e\":{\"type\":\"Int\",\"defaultValue\":\"datatb\"},\"cscootfsgilwis\":{\"type\":\"Bool\",\"defaultValue\":\"datarlieeocyarvsfz\"},\"ogknocshmpcjqt\":{\"type\":\"SecureString\",\"defaultValue\":\"datapzitustrtrf\"}},\"annotations\":[\"datairbrvz\",\"datafjqpxydpamctzmwr\",\"dataccdgunsjssre\",\"datajsgkouenpgkxyr\"],\"\":{\"hyekggo\":\"datab\"}}") - .toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("dkvhui", model.connectVia().referenceName()); - Assertions.assertEquals("bhemrhbzetsspw", model.description()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("e").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedService model = new AzureSynapseArtifactsLinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("dkvhui") - .withParameters(mapOf("adokuqnkoskflnj", "datahodisypgapfdwhwb", "rjee", "datay"))) - .withDescription("bhemrhbzetsspw") - .withParameters(mapOf("e", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datatb"), "cscootfsgilwis", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datarlieeocyarvsfz"), - "ogknocshmpcjqt", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datapzitustrtrf"))) - .withAnnotations( - Arrays.asList("datairbrvz", "datafjqpxydpamctzmwr", "dataccdgunsjssre", "datajsgkouenpgkxyr")) - .withEndpoint("datagfpqxse") - .withAuthentication("datazkpdmmowftfrqeb") - .withWorkspaceResourceId("dataop"); - model = BinaryData.fromObject(model).toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("dkvhui", model.connectVia().referenceName()); - Assertions.assertEquals("bhemrhbzetsspw", model.description()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("e").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 05812a2fc93a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.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.AzureSynapseArtifactsLinkedServiceTypeProperties; - -public final class AzureSynapseArtifactsLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model = BinaryData - .fromString( - "{\"endpoint\":\"dataw\",\"authentication\":\"datavu\",\"workspaceResourceId\":\"dataqmwqsgy\"}") - .toObject(AzureSynapseArtifactsLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model - = new AzureSynapseArtifactsLinkedServiceTypeProperties().withEndpoint("dataw") - .withAuthentication("datavu") - .withWorkspaceResourceId("dataqmwqsgy"); - 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 218df2a0d685..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.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.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\":\"v\",\"typeProperties\":{\"tableName\":\"datarbvgwxhlxr\"},\"description\":\"rwynb\",\"structure\":\"datavazoymdvh\",\"schema\":\"datalkhw\",\"linkedServiceName\":{\"referenceName\":\"dkatveqmgk\",\"parameters\":{\"buklvsmfasg\":\"datazeyxryearmhp\"}},\"parameters\":{\"s\":{\"type\":\"String\",\"defaultValue\":\"datapoil\"}},\"annotations\":[\"datamcezevftmhllpok\",\"datayghz\",\"datams\"],\"folder\":{\"name\":\"tpcflcezsw\"},\"\":{\"jtvbfp\":\"dataift\",\"jnqswxd\":\"datahruptsyq\",\"ohclqddnhfkneb\":\"datawumxqukrcd\",\"yzcwy\":\"dataeddp\"}}") - .toObject(AzureTableDataset.class); - Assertions.assertEquals("rwynb", model.description()); - Assertions.assertEquals("dkatveqmgk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("s").type()); - Assertions.assertEquals("tpcflcezsw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDataset model = new AzureTableDataset().withDescription("rwynb") - .withStructure("datavazoymdvh") - .withSchema("datalkhw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dkatveqmgk") - .withParameters(mapOf("buklvsmfasg", "datazeyxryearmhp"))) - .withParameters( - mapOf("s", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datapoil"))) - .withAnnotations(Arrays.asList("datamcezevftmhllpok", "datayghz", "datams")) - .withFolder(new DatasetFolder().withName("tpcflcezsw")) - .withTableName("datarbvgwxhlxr"); - model = BinaryData.fromObject(model).toObject(AzureTableDataset.class); - Assertions.assertEquals("rwynb", model.description()); - Assertions.assertEquals("dkatveqmgk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("s").type()); - Assertions.assertEquals("tpcflcezsw", 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 ee4f97ac889d..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\":\"datasmkaqldqab\"}") - .toObject(AzureTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDatasetTypeProperties model = new AzureTableDatasetTypeProperties().withTableName("datasmkaqldqab"); - 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 535af087ef4e..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\":\"bii\",\"azureTableSourceQuery\":\"dataqeply\",\"azureTableSourceIgnoreTableNotFound\":\"dataad\",\"queryTimeout\":\"datajvyintgkve\",\"additionalColumns\":\"dataeldnmb\",\"sourceRetryCount\":\"databkxiujaagfeiwuux\",\"sourceRetryWait\":\"datamzmsivqeg\",\"maxConcurrentConnections\":\"datafzbrha\",\"disableMetricsCollection\":\"dataptkr\",\"\":{\"yxyoyjasqdhbftt\":\"datapziievcttszca\"}}") - .toObject(AzureTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableSource model = new AzureTableSource().withSourceRetryCount("databkxiujaagfeiwuux") - .withSourceRetryWait("datamzmsivqeg") - .withMaxConcurrentConnections("datafzbrha") - .withDisableMetricsCollection("dataptkr") - .withQueryTimeout("datajvyintgkve") - .withAdditionalColumns("dataeldnmb") - .withAzureTableSourceQuery("dataqeply") - .withAzureTableSourceIgnoreTableNotFound("dataad"); - 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 2244b71ffb21..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\":\"datauycnayhodtugrwp\"}") - .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("datauycnayhodtugrwp"); - 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 47435d323ac1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.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.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\":\"zkucszghdoaqipmn\",\"typeProperties\":{\"location\":{\"type\":\"qyho\",\"folderPath\":\"datajn\",\"fileName\":\"databggicnqwlctmw\",\"\":{\"jigcwtspanb\":\"dataxkrkqgvxrktj\",\"yy\":\"dataxasevchefpgee\"}},\"compression\":{\"type\":\"datauholaemwcgimmri\",\"level\":\"dataabsqqlon\",\"\":{\"ahdkmbjsmihrij\":\"dataow\",\"bgukbsvbwyoty\":\"datazbfsjwfczglk\",\"nhjgclxaxwcffasp\":\"datanb\"}}},\"description\":\"lfrsbzrnmuv\",\"structure\":\"datapu\",\"schema\":\"dataddtbfmekjcnginxd\",\"linkedServiceName\":{\"referenceName\":\"maoyqxfv\",\"parameters\":{\"xoqxtdnzujsj\":\"datazmxynofxlt\",\"ivd\":\"datarkrpskcjhmmofb\",\"accptbzetxy\":\"datatkykpaxnlsfgnys\"}},\"parameters\":{\"pzzwahdrdvhaztk\":{\"type\":\"Int\",\"defaultValue\":\"dataeecvjwyuveox\"}},\"annotations\":[\"datavz\"],\"folder\":{\"name\":\"mbrygmw\"},\"\":{\"fdaglmrcokzzert\":\"dataosiqsykqfdqwdrtx\",\"bym\":\"dataounzsiywh\"}}") - .toObject(BinaryDataset.class); - Assertions.assertEquals("lfrsbzrnmuv", model.description()); - Assertions.assertEquals("maoyqxfv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("pzzwahdrdvhaztk").type()); - Assertions.assertEquals("mbrygmw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDataset model = new BinaryDataset().withDescription("lfrsbzrnmuv") - .withStructure("datapu") - .withSchema("dataddtbfmekjcnginxd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("maoyqxfv") - .withParameters(mapOf("xoqxtdnzujsj", "datazmxynofxlt", "ivd", "datarkrpskcjhmmofb", "accptbzetxy", - "datatkykpaxnlsfgnys"))) - .withParameters(mapOf("pzzwahdrdvhaztk", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataeecvjwyuveox"))) - .withAnnotations(Arrays.asList("datavz")) - .withFolder(new DatasetFolder().withName("mbrygmw")) - .withLocation(new DatasetLocation().withFolderPath("datajn") - .withFileName("databggicnqwlctmw") - .withAdditionalProperties(mapOf("type", "qyho"))) - .withCompression(new DatasetCompression().withType("datauholaemwcgimmri") - .withLevel("dataabsqqlon") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(BinaryDataset.class); - Assertions.assertEquals("lfrsbzrnmuv", model.description()); - Assertions.assertEquals("maoyqxfv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("pzzwahdrdvhaztk").type()); - Assertions.assertEquals("mbrygmw", 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 976b48ec9951..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\":\"opikzebqnnfywtkq\",\"folderPath\":\"datasdlkhcz\",\"fileName\":\"datapmgfjculojhhylx\",\"\":{\"bwjmtftcveln\":\"datafiyymotuzb\",\"j\":\"datarupkqnstpaqpi\"}},\"compression\":{\"type\":\"datavswmehfxrtt\",\"level\":\"datamsennqfabqcama\",\"\":{\"kdnnyufxuzms\":\"datatcxsfmbzdxmsyn\",\"brnxhjtlxfikj\":\"datazyq\"}}}") - .toObject(BinaryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDatasetTypeProperties model = new BinaryDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datasdlkhcz") - .withFileName("datapmgfjculojhhylx") - .withAdditionalProperties(mapOf("type", "opikzebqnnfywtkq"))) - .withCompression(new DatasetCompression().withType("datavswmehfxrtt") - .withLevel("datamsennqfabqcama") - .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 02ff7c19cf84..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\":\"mxdrgimsioff\",\"compressionProperties\":{\"type\":\"zluilzgpghjakzmn\",\"\":{\"pbxvpfyupgo\":\"dataqmajslwmj\",\"frkzgtxwyqkk\":\"datarwpoxuykqyoyjptk\"}},\"\":{\"vfundkhdmyxmsbt\":\"dataonl\"}}") - .toObject(BinaryReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryReadSettings model = new BinaryReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "zluilzgpghjakzmn"))); - 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 7eb3cd2c6b01..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.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.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\":\"jyfbutqlotojfvba\",\"storeSettings\":{\"type\":\"islcfxs\",\"maxConcurrentConnections\":\"datadiqemcghorrj\",\"disableMetricsCollection\":\"datafczb\",\"copyBehavior\":\"datarmvhtmzwg\",\"metadata\":[{\"name\":\"datanzpybrflqv\",\"value\":\"datalqwpmmmhupv\"},{\"name\":\"datahpsugebgboq\",\"value\":\"dataiiiwu\"},{\"name\":\"dataofgfqge\",\"value\":\"dataypxm\"}],\"\":{\"fdsogl\":\"datajonasjdaxe\",\"duwncaifwogq\":\"dataih\",\"fachkzzn\":\"datadxtp\",\"oxhzcmgm\":\"datakmmsfnig\"}},\"writeBatchSize\":\"datawjgjlo\",\"writeBatchTimeout\":\"datahhkxlquupbihui\",\"sinkRetryCount\":\"datay\",\"sinkRetryWait\":\"dataqweptejryvvuktc\",\"maxConcurrentConnections\":\"datatp\",\"disableMetricsCollection\":\"datawjbmrkcqpyxjj\",\"\":{\"lyvqycknqmb\":\"dataovhuif\",\"i\":\"datassjbyneusnncnn\"}}") - .toObject(BinarySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySink model = new BinarySink().withWriteBatchSize("datawjgjlo") - .withWriteBatchTimeout("datahhkxlquupbihui") - .withSinkRetryCount("datay") - .withSinkRetryWait("dataqweptejryvvuktc") - .withMaxConcurrentConnections("datatp") - .withDisableMetricsCollection("datawjbmrkcqpyxjj") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datadiqemcghorrj") - .withDisableMetricsCollection("datafczb") - .withCopyBehavior("datarmvhtmzwg") - .withMetadata(Arrays.asList(new MetadataItem().withName("datanzpybrflqv").withValue("datalqwpmmmhupv"), - new MetadataItem().withName("datahpsugebgboq").withValue("dataiiiwu"), - new MetadataItem().withName("dataofgfqge").withValue("dataypxm"))) - .withAdditionalProperties(mapOf("type", "islcfxs"))); - 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 89a35c111fed..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\":\"pyavcbmzembv\",\"storeSettings\":{\"type\":\"vhf\",\"maxConcurrentConnections\":\"dataccffsbz\",\"disableMetricsCollection\":\"datatfxq\",\"\":{\"pzvqzml\":\"dataxoudjcttavbc\"}},\"formatSettings\":{\"type\":\"nodrfcl\",\"compressionProperties\":{\"type\":\"qttfqgdoowgqooip\",\"\":{\"etwfre\":\"datavsnedhkjiwf\",\"zdcwqalxpmiyt\":\"datavflrrtjuuik\",\"pvlsljutawg\":\"datajiscisolkw\"}},\"\":{\"eyjlyxdux\":\"dataopipvpe\"}},\"sourceRetryCount\":\"datarqx\",\"sourceRetryWait\":\"dataazyxmum\",\"maxConcurrentConnections\":\"datakaxzrycvac\",\"disableMetricsCollection\":\"datazjysyphxeoqm\",\"\":{\"sbbawrb\":\"dataikceiyuv\",\"rtnk\":\"dataooxvprqlxqhqgip\"}}") - .toObject(BinarySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySource model = new BinarySource().withSourceRetryCount("datarqx") - .withSourceRetryWait("dataazyxmum") - .withMaxConcurrentConnections("datakaxzrycvac") - .withDisableMetricsCollection("datazjysyphxeoqm") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataccffsbz") - .withDisableMetricsCollection("datatfxq") - .withAdditionalProperties(mapOf("type", "vhf"))) - .withFormatSettings(new BinaryReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "qttfqgdoowgqooip")))); - 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 087b5a6e8384..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.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.BlobEventsTrigger; -import com.azure.resourcemanager.datafactory.models.BlobEventTypes; -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\":\"ifv\",\"typeProperties\":{\"blobPathBeginsWith\":\"pswasveym\",\"blobPathEndsWith\":\"bmffcryyykwwhscu\",\"ignoreEmptyBlobs\":false,\"events\":[\"Microsoft.Storage.BlobDeleted\",\"Microsoft.Storage.BlobDeleted\",\"Microsoft.Storage.BlobCreated\",\"Microsoft.Storage.BlobDeleted\"],\"scope\":\"lzbzcgzhdrvkz\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"qrvz\",\"name\":\"beiqopjzzglgxvqd\"},\"parameters\":{\"wbpbi\":\"datazkzkhbiee\",\"t\":\"datateprq\"}},{\"pipelineReference\":{\"referenceName\":\"wapmtyfgswp\",\"name\":\"nvxtvmbwydqo\"},\"parameters\":{\"i\":\"datayjebgveuazwkze\"}},{\"pipelineReference\":{\"referenceName\":\"drrgzguupw\",\"name\":\"ohz\"},\"parameters\":{\"dlxqjshyyrcr\":\"databsncorini\"}},{\"pipelineReference\":{\"referenceName\":\"z\",\"name\":\"faurmqpk\"},\"parameters\":{\"dnpeamslvpxsy\":\"databltfxhmrhhxli\"}}],\"description\":\"dyaauls\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datac\"],\"\":{\"h\":\"databxgxgr\",\"ndvaf\":\"dataabhkyaspccwiev\",\"yxlcgycvcspcfx\":\"datacvn\",\"ioqtafmbxtn\":\"dataal\"}}") - .toObject(BlobEventsTrigger.class); - Assertions.assertEquals("dyaauls", model.description()); - Assertions.assertEquals("qrvz", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("beiqopjzzglgxvqd", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("pswasveym", model.blobPathBeginsWith()); - Assertions.assertEquals("bmffcryyykwwhscu", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("lzbzcgzhdrvkz", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTrigger model = new BlobEventsTrigger().withDescription("dyaauls") - .withAnnotations(Arrays.asList("datac")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("qrvz").withName("beiqopjzzglgxvqd")) - .withParameters(mapOf("wbpbi", "datazkzkhbiee", "t", "datateprq")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("wapmtyfgswp").withName("nvxtvmbwydqo")) - .withParameters(mapOf("i", "datayjebgveuazwkze")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("drrgzguupw").withName("ohz")) - .withParameters(mapOf("dlxqjshyyrcr", "databsncorini")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("z").withName("faurmqpk")) - .withParameters(mapOf("dnpeamslvpxsy", "databltfxhmrhhxli")))) - .withBlobPathBeginsWith("pswasveym") - .withBlobPathEndsWith("bmffcryyykwwhscu") - .withIgnoreEmptyBlobs(false) - .withEvents(Arrays.asList(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, - BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, - BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED)) - .withScope("lzbzcgzhdrvkz"); - model = BinaryData.fromObject(model).toObject(BlobEventsTrigger.class); - Assertions.assertEquals("dyaauls", model.description()); - Assertions.assertEquals("qrvz", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("beiqopjzzglgxvqd", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("pswasveym", model.blobPathBeginsWith()); - Assertions.assertEquals("bmffcryyykwwhscu", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("lzbzcgzhdrvkz", 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 c298af6d7e71..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.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.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\":\"byurutsabu\",\"blobPathEndsWith\":\"uweqbeygnetuvs\",\"ignoreEmptyBlobs\":false,\"events\":[\"Microsoft.Storage.BlobDeleted\"],\"scope\":\"umdznbl\"}") - .toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("byurutsabu", model.blobPathBeginsWith()); - Assertions.assertEquals("uweqbeygnetuvs", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("umdznbl", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTriggerTypeProperties model - = new BlobEventsTriggerTypeProperties().withBlobPathBeginsWith("byurutsabu") - .withBlobPathEndsWith("uweqbeygnetuvs") - .withIgnoreEmptyBlobs(false) - .withEvents(Arrays.asList(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED)) - .withScope("umdznbl"); - model = BinaryData.fromObject(model).toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("byurutsabu", model.blobPathBeginsWith()); - Assertions.assertEquals("uweqbeygnetuvs", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("umdznbl", 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 0e0b017c0245..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.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.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\":\"lae\",\"blobWriterOverwriteFiles\":\"datadu\",\"blobWriterDateTimeFormat\":\"datapl\",\"blobWriterAddHeader\":\"dataupfndafrziwjcy\",\"copyBehavior\":\"dataaneaveyvdru\",\"metadata\":[{\"name\":\"datarhzesqdvmxuf\",\"value\":\"datapawwjvdohzew\"}],\"writeBatchSize\":\"dataftlsfwpv\",\"writeBatchTimeout\":\"datamxjd\",\"sinkRetryCount\":\"datatxbrj\",\"sinkRetryWait\":\"dataeypuqwdm\",\"maxConcurrentConnections\":\"datamfvxfssho\",\"disableMetricsCollection\":\"datadeornzprdg\",\"\":{\"umyuiquzfotf\":\"datatqgzdfjfnreemp\"}}") - .toObject(BlobSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSink model = new BlobSink().withWriteBatchSize("dataftlsfwpv") - .withWriteBatchTimeout("datamxjd") - .withSinkRetryCount("datatxbrj") - .withSinkRetryWait("dataeypuqwdm") - .withMaxConcurrentConnections("datamfvxfssho") - .withDisableMetricsCollection("datadeornzprdg") - .withBlobWriterOverwriteFiles("datadu") - .withBlobWriterDateTimeFormat("datapl") - .withBlobWriterAddHeader("dataupfndafrziwjcy") - .withCopyBehavior("dataaneaveyvdru") - .withMetadata(Arrays.asList(new MetadataItem().withName("datarhzesqdvmxuf").withValue("datapawwjvdohzew"))); - 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 476f21934fd8..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\":\"bjledjxblobknfpd\",\"treatEmptyAsNull\":\"dataacsfbmb\",\"skipHeaderLineCount\":\"dataefqku\",\"recursive\":\"datayumoamqxwluslxyt\",\"sourceRetryCount\":\"datahzgj\",\"sourceRetryWait\":\"dataomctbgoccypxsrh\",\"maxConcurrentConnections\":\"datalbnuflfzawk\",\"disableMetricsCollection\":\"datae\",\"\":{\"jnhwwy\":\"datapyoqfbjpclboioj\"}}") - .toObject(BlobSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSource model = new BlobSource().withSourceRetryCount("datahzgj") - .withSourceRetryWait("dataomctbgoccypxsrh") - .withMaxConcurrentConnections("datalbnuflfzawk") - .withDisableMetricsCollection("datae") - .withTreatEmptyAsNull("dataacsfbmb") - .withSkipHeaderLineCount("dataefqku") - .withRecursive("datayumoamqxwluslxyt"); - 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 261babaa6f47..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.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.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\":\"bsegcogy\",\"typeProperties\":{\"folderPath\":\"hxjwiggca\",\"maxConcurrency\":1782911484,\"linkedService\":{\"referenceName\":\"koxpaytzqgsaeg\",\"parameters\":{\"kvoskjixbrd\":\"datawgerdxhgrgiumwk\",\"nmzaih\":\"datamdnebkonfl\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"hfohspv\",\"name\":\"jmt\"},\"parameters\":{\"jsakigrl\":\"datauecmdmcory\",\"qrmqefd\":\"dataigl\",\"ek\":\"datauwsfebhvkkpd\"}},{\"pipelineReference\":{\"referenceName\":\"io\",\"name\":\"vijrdyotejljdr\"},\"parameters\":{\"xyrr\":\"datajw\",\"bddcxfuizokzmeg\":\"databeuf\",\"iljsidvuptret\":\"datajsneybpqotfd\",\"tpbi\":\"dataauupwt\"}}],\"description\":\"ekaajuwkxbg\",\"runtimeState\":\"Disabled\",\"annotations\":[\"databjsyorsojvztqra\",\"dataqcmouxs\",\"datakxa\"],\"\":{\"gzqkkwz\":\"datay\",\"wwopssdws\":\"datag\",\"s\":\"datakrzcnl\",\"vhgkmx\":\"datamikbtzt\"}}") - .toObject(BlobTrigger.class); - Assertions.assertEquals("ekaajuwkxbg", model.description()); - Assertions.assertEquals("hfohspv", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("jmt", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("hxjwiggca", model.folderPath()); - Assertions.assertEquals(1782911484, model.maxConcurrency()); - Assertions.assertEquals("koxpaytzqgsaeg", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTrigger model = new BlobTrigger().withDescription("ekaajuwkxbg") - .withAnnotations(Arrays.asList("databjsyorsojvztqra", "dataqcmouxs", "datakxa")) - .withPipelines(Arrays.asList(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("hfohspv").withName("jmt")) - .withParameters(mapOf("jsakigrl", "datauecmdmcory", "qrmqefd", "dataigl", "ek", "datauwsfebhvkkpd")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("io").withName("vijrdyotejljdr")) - .withParameters(mapOf("xyrr", "datajw", "bddcxfuizokzmeg", "databeuf", "iljsidvuptret", - "datajsneybpqotfd", "tpbi", "dataauupwt")))) - .withFolderPath("hxjwiggca") - .withMaxConcurrency(1782911484) - .withLinkedService(new LinkedServiceReference().withReferenceName("koxpaytzqgsaeg") - .withParameters(mapOf("kvoskjixbrd", "datawgerdxhgrgiumwk", "nmzaih", "datamdnebkonfl"))); - model = BinaryData.fromObject(model).toObject(BlobTrigger.class); - Assertions.assertEquals("ekaajuwkxbg", model.description()); - Assertions.assertEquals("hfohspv", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("jmt", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("hxjwiggca", model.folderPath()); - Assertions.assertEquals(1782911484, model.maxConcurrency()); - Assertions.assertEquals("koxpaytzqgsaeg", 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 a853f9dd8db8..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\":\"rqtkzeopoxdwoxpn\",\"maxConcurrency\":1343583156,\"linkedService\":{\"referenceName\":\"zbsw\",\"parameters\":{\"lbflbax\":\"datatxfshaqpmlyzwgo\",\"yrdzogtrycb\":\"datawojt\",\"qw\":\"dataf\",\"jsxwukbcwym\":\"dataavgdzt\"}}}") - .toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("rqtkzeopoxdwoxpn", model.folderPath()); - Assertions.assertEquals(1343583156, model.maxConcurrency()); - Assertions.assertEquals("zbsw", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTriggerTypeProperties model = new BlobTriggerTypeProperties().withFolderPath("rqtkzeopoxdwoxpn") - .withMaxConcurrency(1343583156) - .withLinkedService(new LinkedServiceReference().withReferenceName("zbsw") - .withParameters(mapOf("lbflbax", "datatxfshaqpmlyzwgo", "yrdzogtrycb", "datawojt", "qw", "dataf", - "jsxwukbcwym", "dataavgdzt"))); - model = BinaryData.fromObject(model).toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("rqtkzeopoxdwoxpn", model.folderPath()); - Assertions.assertEquals(1343583156, model.maxConcurrency()); - Assertions.assertEquals("zbsw", 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 fe2a275d671b..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\":\"zeebdefepwkhr\",\"query\":\"datanwohlcahhfuydgd\",\"consistencyLevel\":\"QUORUM\",\"queryTimeout\":\"datayuspz\",\"additionalColumns\":\"datavibp\",\"sourceRetryCount\":\"datazwgbbozivf\",\"sourceRetryWait\":\"dataqvnlhsxea\",\"maxConcurrentConnections\":\"datasqquvv\",\"disableMetricsCollection\":\"datab\",\"\":{\"rsyirfkxazu\":\"dataohdukprqyibwuzvm\",\"qoilgkzn\":\"dataoigorwpbbjzdv\",\"iceqyraj\":\"datazpvjwego\"}}") - .toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.QUORUM, model.consistencyLevel()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CassandraSource model = new CassandraSource().withSourceRetryCount("datazwgbbozivf") - .withSourceRetryWait("dataqvnlhsxea") - .withMaxConcurrentConnections("datasqquvv") - .withDisableMetricsCollection("datab") - .withQueryTimeout("datayuspz") - .withAdditionalColumns("datavibp") - .withQuery("datanwohlcahhfuydgd") - .withConsistencyLevel(CassandraSourceReadConsistencyLevels.QUORUM); - model = BinaryData.fromObject(model).toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.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 d5180f0f1b88..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.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.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\":\"gr\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"ngfcbldpeforx\",\"name\":\"pmzkdisrgykrcj\"},\"parameters\":{\"jeguviphxi\":\"datavnfdovw\",\"blgwlejcxcrxuy\":\"datanwrhfrbwoylpmecc\",\"hqav\":\"datarhrtihzwdoflwl\",\"eh\":\"datafosfpgquxqvkuu\"}},\"typeProperties\":{\"dependsOn\":[{\"referenceName\":\"vfhyi\",\"name\":\"ezpwhczqjoovy\"},{\"referenceName\":\"sgughwo\",\"name\":\"wzpxlx\"},{\"referenceName\":\"vhhkabeox\",\"name\":\"o\"}],\"runDimension\":\"tckmtqn\"},\"description\":\"xhwvzdvujmukadz\",\"runtimeState\":\"Started\",\"annotations\":[\"dataqdda\",\"dataez\"],\"\":{\"vxel\":\"dataecdcvhxwegdsmnyp\",\"bqpddypw\":\"dataps\",\"enahhpnbvzd\":\"datamyftvejxmy\",\"jbzwvnxwduu\":\"datay\"}}") - .toObject(ChainingTrigger.class); - Assertions.assertEquals("xhwvzdvujmukadz", model.description()); - Assertions.assertEquals("ngfcbldpeforx", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("pmzkdisrgykrcj", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("vfhyi", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("ezpwhczqjoovy", model.dependsOn().get(0).name()); - Assertions.assertEquals("tckmtqn", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTrigger model = new ChainingTrigger().withDescription("xhwvzdvujmukadz") - .withAnnotations(Arrays.asList("dataqdda", "dataez")) - .withPipeline(new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("ngfcbldpeforx").withName("pmzkdisrgykrcj")) - .withParameters(mapOf("jeguviphxi", "datavnfdovw", "blgwlejcxcrxuy", "datanwrhfrbwoylpmecc", "hqav", - "datarhrtihzwdoflwl", "eh", "datafosfpgquxqvkuu"))) - .withDependsOn(Arrays.asList(new PipelineReference().withReferenceName("vfhyi").withName("ezpwhczqjoovy"), - new PipelineReference().withReferenceName("sgughwo").withName("wzpxlx"), - new PipelineReference().withReferenceName("vhhkabeox").withName("o"))) - .withRunDimension("tckmtqn"); - model = BinaryData.fromObject(model).toObject(ChainingTrigger.class); - Assertions.assertEquals("xhwvzdvujmukadz", model.description()); - Assertions.assertEquals("ngfcbldpeforx", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("pmzkdisrgykrcj", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("vfhyi", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("ezpwhczqjoovy", model.dependsOn().get(0).name()); - Assertions.assertEquals("tckmtqn", 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 eb7309d00d03..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.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.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\":\"vb\",\"name\":\"yedrkgrtda\"},{\"referenceName\":\"lito\",\"name\":\"tarefexkbmodbpc\"},{\"referenceName\":\"uyhhzcj\",\"name\":\"ijwkcllo\"},{\"referenceName\":\"jshfcuzzujcib\",\"name\":\"fkxiixnxx\"}],\"runDimension\":\"vyizya\"}") - .toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("vb", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("yedrkgrtda", model.dependsOn().get(0).name()); - Assertions.assertEquals("vyizya", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTriggerTypeProperties model = new ChainingTriggerTypeProperties() - .withDependsOn(Arrays.asList(new PipelineReference().withReferenceName("vb").withName("yedrkgrtda"), - new PipelineReference().withReferenceName("lito").withName("tarefexkbmodbpc"), - new PipelineReference().withReferenceName("uyhhzcj").withName("ijwkcllo"), - new PipelineReference().withReferenceName("jshfcuzzujcib").withName("fkxiixnxx"))) - .withRunDimension("vyizya"); - model = BinaryData.fromObject(model).toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("vb", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("yedrkgrtda", model.dependsOn().get(0).name()); - Assertions.assertEquals("vyizya", 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 e01649170aac..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\":\"mehllizhceu\"}").toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("mehllizhceu", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureFolder model = new ChangeDataCaptureFolder().withName("mehllizhceu"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("mehllizhceu", 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 cc4507c907c5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"mmzrrscub\"},\"description\":\"sd\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"dataabwibvjogjo\",\"datamcyefoyzbam\",\"datain\"]},{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"dataoldtvevboclzhz\"]},{\"targetEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datatxpnrupza\",\"datamrdixtreki\",\"dataswyskbruffg\"]},{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"dataxhrp\",\"datahvmblcouqehbhbc\"]}],\"policy\":{\"mode\":\"ziryrandoy\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1798358498}},\"allowVNetOverride\":true,\"status\":\"kfqlwx\"},\"name\":\"ykalsyga\",\"type\":\"njpnnbmj\",\"etag\":\"ibjgsjjxxahm\",\"\":{\"xyivpinbm\":\"datadzyqe\"},\"id\":\"bjijkgqxnh\"},{\"properties\":{\"folder\":{\"name\":\"eznjaujv\"},\"description\":\"nnggiycwkdtaawxw\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datanxwbjsidbirkfp\",\"datasokdgoge\",\"dataijymrhbguzozky\",\"datawnf\"]},{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"dataffjkutycyarnroo\",\"datag\",\"dataabzoghktdpyczhco\",\"dataocnhzqrottjzcfyj\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"datapqinf\",\"datazpyglqdhmrj\"]}],\"policy\":{\"mode\":\"alcxpjbyy\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":1715277105}},\"allowVNetOverride\":false,\"status\":\"kyhfqzvsqxfxj\"},\"name\":\"gcm\",\"type\":\"qjhhhqxuwyvc\",\"etag\":\"oyvivbsiz\",\"\":{\"lzijiufehgmvflnw\":\"dataszlbscm\",\"kxrerlniylylyfwx\":\"datav\"},\"id\":\"tgqztwhghmup\"},{\"properties\":{\"folder\":{\"name\":\"jtcdxabbujftaben\"},\"description\":\"klqpx\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datagnhgook\",\"datatalvnbwgp\",\"dataemeluclv\",\"datajjukyrdnqodxah\"]},{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datazoqgyipemchga\",\"datasczuejdtxptlghwz\",\"dataomew\",\"dataj\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"datamoaiancz\",\"datavodrrslblxydkxr\",\"datavvbxiwkgfbqljnq\",\"datahychocokuleh\"]}],\"policy\":{\"mode\":\"qlrqffaweyurk\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":662993818}},\"allowVNetOverride\":false,\"status\":\"juqdbrx\"},\"name\":\"gchbapxkiy\",\"type\":\"j\",\"etag\":\"ajb\",\"\":{\"u\":\"datagd\",\"vpmclujyxkyxlz\":\"dataioycbl\"},\"id\":\"jgkz\"}],\"nextLink\":\"taf\"}") - .toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("bjijkgqxnh", model.value().get(0).id()); - Assertions.assertEquals("mmzrrscub", model.value().get(0).folder().name()); - Assertions.assertEquals("sd", 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("ziryrandoy", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(1798358498, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("kfqlwx", model.value().get(0).status()); - Assertions.assertEquals("taf", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureListResponse model - = new ChangeDataCaptureListResponse() - .withValue(Arrays.asList( - new ChangeDataCaptureResourceInner().withId("bjijkgqxnh") - .withFolder(new ChangeDataCaptureFolder().withName("mmzrrscub")) - .withDescription("sd") - .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(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo( - Arrays.asList( - new MapperTargetConnectionsInfo().withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("dataabwibvjogjo", "datamcyefoyzbam", "datain")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("dataoldtvevboclzhz")), - new MapperTargetConnectionsInfo().withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships( - Arrays.asList("datatxpnrupza", "datamrdixtreki", "dataswyskbruffg")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("dataxhrp", "datahvmblcouqehbhbc")))) - .withPolicy(new MapperPolicy().withMode("ziryrandoy") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE) - .withInterval(1798358498))) - .withAllowVNetOverride(true) - .withStatus("kfqlwx") - .withAdditionalProperties( - mapOf("name", "ykalsyga", "etag", "ibjgsjjxxahm", "type", "njpnnbmj")), - new ChangeDataCaptureResourceInner() - .withId("tgqztwhghmup") - .withFolder(new ChangeDataCaptureFolder().withName("eznjaujv")) - .withDescription("nnggiycwkdtaawxw") - .withSourceConnectionsInfo(Arrays.asList( - 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())) - .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())) - .withRelationships(Arrays.asList("datanxwbjsidbirkfp", "datasokdgoge", - "dataijymrhbguzozky", "datawnf")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships( - Arrays.asList("dataffjkutycyarnroo", "datag", "dataabzoghktdpyczhco", - "dataocnhzqrottjzcfyj")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays - .asList(new DataMapperMapping(), new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datapqinf", "datazpyglqdhmrj")))) - .withPolicy(new MapperPolicy().withMode("alcxpjbyy") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND) - .withInterval(1715277105))) - .withAllowVNetOverride(false) - .withStatus("kyhfqzvsqxfxj") - .withAdditionalProperties(mapOf("name", "gcm", "etag", "oyvivbsiz", "type", "qjhhhqxuwyvc")), - new ChangeDataCaptureResourceInner() - .withId("jgkz") - .withFolder(new ChangeDataCaptureFolder().withName("jtcdxabbujftaben")) - .withDescription("klqpx") - .withSourceConnectionsInfo(Arrays.asList( - 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())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo(Arrays.asList( - new MapperTargetConnectionsInfo().withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("datagnhgook", "datatalvnbwgp", "dataemeluclv", - "datajjukyrdnqodxah")), - 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("datazoqgyipemchga", "datasczuejdtxptlghwz", "dataomew", "dataj")), - 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("datamoaiancz", "datavodrrslblxydkxr", - "datavvbxiwkgfbqljnq", "datahychocokuleh")))) - .withPolicy(new MapperPolicy().withMode("qlrqffaweyurk") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND) - .withInterval(662993818))) - .withAllowVNetOverride(false) - .withStatus("juqdbrx") - .withAdditionalProperties(mapOf("name", "gchbapxkiy", "etag", "ajb", "type", "j")))) - .withNextLink("taf"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("bjijkgqxnh", model.value().get(0).id()); - Assertions.assertEquals("mmzrrscub", model.value().get(0).folder().name()); - Assertions.assertEquals("sd", 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("ziryrandoy", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(1798358498, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("kfqlwx", model.value().get(0).status()); - Assertions.assertEquals("taf", 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 64fed79ac336..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java +++ /dev/null @@ -1,268 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"ffovwmbjlzqsczp\"},\"description\":\"dwnapf\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"ftptnuwj\",\"properties\":{}},{\"name\":\"chgcgqyh\",\"properties\":{}},{\"name\":\"eyqrhv\",\"properties\":{}},{\"name\":\"dotjvdk\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"skukjtasbv\",\"parameters\":{\"dlqvtwknvg\":\"datapkxkdtxfk\",\"gtywatmqaqkue\":\"datamb\"}},\"linkedServiceType\":\"groeshoyg\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]}},{\"sourceEntities\":[{\"name\":\"aoyte\",\"properties\":{}},{\"name\":\"uvjmv\",\"properties\":{}},{\"name\":\"dwckygroe\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ljdjuskbrreqy\",\"parameters\":{\"ysh\":\"dataeysfaqegplw\",\"ybwptda\":\"dataddkvbxgkqu\",\"mt\":\"dataarvvlfnt\"}},\"linkedServiceType\":\"iwenazero\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{\"name\":\"kdnwqapfgsdpcve\",\"properties\":{}},{\"name\":\"zhhkuuipldqqc\",\"properties\":{}},{\"name\":\"valblhtjqv\",\"properties\":{}},{\"name\":\"wehtaemxh\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ev\",\"parameters\":{\"yzatvfuzkaft\":\"dataivzrrryveimipsk\",\"syeipqd\":\"datavvruxwi\"}},\"linkedServiceType\":\"jtgrqgdgkkileplk\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"aedorvvmqf\",\"properties\":{}},{\"name\":\"gbdg\",\"properties\":{}},{\"name\":\"gxdgdhpab\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"jddvjsaqw\",\"parameters\":{\"f\":\"datamwllcolsrsxapt\",\"jbekpeeksnbksdq\":\"dataexcgjokjljnhvl\"}},\"linkedServiceType\":\"vyklxeslkhhus\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"wqjwgok\",\"sourceEntityName\":\"ejjjkxybwfdb\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datatensvkzykj\"},{\"targetEntityName\":\"kns\",\"sourceEntityName\":\"wushcdp\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataqrmgjfbpkuw\"}],\"relationships\":[\"dataiojfizfavkjzwfbc\",\"dataaykmmf\",\"datasbfwxr\",\"dataxmdewsrsxkrplbj\"]},{\"targetEntities\":[{\"name\":\"wwviyo\",\"properties\":{}},{\"name\":\"uhbrnnhjxsq\",\"properties\":{}},{\"name\":\"qkbiwet\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"c\",\"parameters\":{\"etzlexbsfledynoj\":\"dataqyhgf\",\"fbzkk\":\"dataziu\"}},\"linkedServiceType\":\"nhqs\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"pbafvafhlbylc\",\"sourceEntityName\":\"evxrhyz\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datasofpltd\"},{\"targetEntityName\":\"airrhvhfnracw\",\"sourceEntityName\":\"qigtuujwouhdaws\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datajbx\"},{\"targetEntityName\":\"ybvitvqkjyaznumt\",\"sourceEntityName\":\"m\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datahozfn\"},{\"targetEntityName\":\"exlvxnoakiz\",\"sourceEntityName\":\"aikn\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datauwiguyxlyk\"}],\"relationships\":[\"datavx\",\"datacwxhmpej\",\"datalkexaonwivkcqh\"]},{\"targetEntities\":[{\"name\":\"knlccrmmkyup\",\"properties\":{}},{\"name\":\"byqjfkakfqfrkem\",\"properties\":{}},{\"name\":\"dudxjascowvfdjk\",\"properties\":{}},{\"name\":\"phlkksnm\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"fijd\",\"parameters\":{\"uqwqulsutrjbhxyk\":\"dataqnwsithuqolyah\",\"g\":\"datahyqezvqq\",\"ve\":\"datarftb\"}},\"linkedServiceType\":\"e\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"fwhreagkhyxv\",\"sourceEntityName\":\"tvbczsulm\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datamepjpf\"}],\"relationships\":[\"datakgsangpszng\",\"datafpgylkve\",\"datajujcngoad\"]},{\"targetEntities\":[{\"name\":\"zrgjfok\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"oitpkpztrgdgx\",\"parameters\":{\"l\":\"dataqraswugyxpqitwei\",\"yltcoqcuj\":\"datavskbuhzacaq\",\"ztjofqcvovjufyc\":\"datadsxzakuejkmvb\",\"gthortudaw\":\"datajmlbemyejiriux\"}},\"linkedServiceType\":\"jfel\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"qnzmnhiil\",\"sourceEntityName\":\"lwcjgckbbcccgzpr\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datayuffatsgf\"},{\"targetEntityName\":\"p\",\"sourceEntityName\":\"x\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datahiqdxy\"}],\"relationships\":[\"datapnuhzafccnu\",\"dataiig\",\"datayl\",\"dataui\"]}],\"policy\":{\"mode\":\"xvatvcr\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1877089971}},\"allowVNetOverride\":false,\"status\":\"h\"},\"name\":\"yhzlwxaeaovurexd\",\"type\":\"sbdweaderzmwnt\",\"etag\":\"agttm\",\"\":{\"azjcgmxitpfin\":\"dataagoaqylkjztji\",\"mtbdrvcqgu\":\"datacpdltkrlg\",\"urelyujlfyoump\":\"datafzhompheq\"},\"id\":\"yec\"}") - .toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("yec", model.id()); - Assertions.assertEquals("ffovwmbjlzqsczp", model.folder().name()); - Assertions.assertEquals("dwnapf", model.description()); - Assertions.assertEquals("ftptnuwj", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("skukjtasbv", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("groeshoyg", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("aedorvvmqf", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("jddvjsaqw", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("vyklxeslkhhus", 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("wqjwgok", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("ejjjkxybwfdb", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("xvatvcr", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1877089971, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("h", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureResourceInner model - = new ChangeDataCaptureResourceInner().withId("yec") - .withFolder(new ChangeDataCaptureFolder().withName("ffovwmbjlzqsczp")) - .withDescription("dwnapf") - .withSourceConnectionsInfo( - Arrays.asList( - new MapperSourceConnectionsInfo().withSourceEntities(Arrays.asList(new MapperTable() - .withName("ftptnuwj"), new MapperTable().withName("chgcgqyh"), - new MapperTable().withName("eyqrhv"), new MapperTable().withName("dotjvdk"))) - .withConnection(new MapperConnection().withLinkedService( - new LinkedServiceReference().withReferenceName("skukjtasbv") - .withParameters(mapOf("dlqvtwknvg", "datapkxkdtxfk", "gtywatmqaqkue", "datamb"))) - .withLinkedServiceType("groeshoyg") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties( - Arrays - .asList(new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("aoyte"), - new MapperTable().withName("uvjmv"), new MapperTable().withName("dwckygroe"))) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ljdjuskbrreqy") - .withParameters(mapOf("ysh", "dataeysfaqegplw", "ybwptda", "dataddkvbxgkqu", - "mt", "dataarvvlfnt"))) - .withLinkedServiceType("iwenazero") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("kdnwqapfgsdpcve"), - new MapperTable().withName("zhhkuuipldqqc"), new MapperTable().withName("valblhtjqv"), - new MapperTable().withName("wehtaemxh"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ev") - .withParameters( - mapOf("yzatvfuzkaft", "dataivzrrryveimipsk", "syeipqd", "datavvruxwi"))) - .withLinkedServiceType("jtgrqgdgkkileplk") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("aedorvvmqf"), - new MapperTable().withName("gbdg"), new MapperTable().withName("gxdgdhpab"))) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("jddvjsaqw") - .withParameters(mapOf("f", "datamwllcolsrsxapt", "jbekpeeksnbksdq", - "dataexcgjokjljnhvl"))) - .withLinkedServiceType("vyklxeslkhhus") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties(), new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList( - new DataMapperMapping().withTargetEntityName("wqjwgok") - .withSourceEntityName("ejjjkxybwfdb") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datatensvkzykj"), - new DataMapperMapping().withTargetEntityName("kns") - .withSourceEntityName("wushcdp") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataqrmgjfbpkuw"))) - .withRelationships( - Arrays - .asList("dataiojfizfavkjzwfbc", "dataaykmmf", "datasbfwxr", - "dataxmdewsrsxkrplbj")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("wwviyo"), - new MapperTable().withName("uhbrnnhjxsq"), new MapperTable().withName("qkbiwet"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("c") - .withParameters(mapOf("etzlexbsfledynoj", "dataqyhgf", "fbzkk", "dataziu"))) - .withLinkedServiceType("nhqs") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays.asList( - new DataMapperMapping().withTargetEntityName("pbafvafhlbylc") - .withSourceEntityName("evxrhyz") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datasofpltd"), - new DataMapperMapping().withTargetEntityName("airrhvhfnracw") - .withSourceEntityName("qigtuujwouhdaws") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datajbx"), - new DataMapperMapping().withTargetEntityName("ybvitvqkjyaznumt") - .withSourceEntityName("m") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datahozfn"), - new DataMapperMapping().withTargetEntityName("exlvxnoakiz") - .withSourceEntityName("aikn") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datauwiguyxlyk"))) - .withRelationships(Arrays.asList("datavx", "datacwxhmpej", "datalkexaonwivkcqh")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("knlccrmmkyup"), - new MapperTable().withName("byqjfkakfqfrkem"), - new MapperTable().withName("dudxjascowvfdjk"), - new MapperTable().withName("phlkksnm"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("fijd") - .withParameters(mapOf("uqwqulsutrjbhxyk", "dataqnwsithuqolyah", "g", - "datahyqezvqq", "ve", "datarftb"))) - .withLinkedServiceType("e") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays - .asList(new DataMapperMapping().withTargetEntityName("fwhreagkhyxv") - .withSourceEntityName("tvbczsulm") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datamepjpf"))) - .withRelationships(Arrays.asList("datakgsangpszng", "datafpgylkve", "datajujcngoad")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("zrgjfok"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("oitpkpztrgdgx") - .withParameters(mapOf("l", "dataqraswugyxpqitwei", "yltcoqcuj", - "datavskbuhzacaq", "ztjofqcvovjufyc", "datadsxzakuejkmvb", "gthortudaw", - "datajmlbemyejiriux"))) - .withLinkedServiceType("jfel") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList( - new DataMapperMapping().withTargetEntityName("qnzmnhiil") - .withSourceEntityName("lwcjgckbbcccgzpr") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datayuffatsgf"), - new DataMapperMapping().withTargetEntityName("p") - .withSourceEntityName("x") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datahiqdxy"))) - .withRelationships(Arrays.asList("datapnuhzafccnu", "dataiig", "datayl", "dataui")))) - .withPolicy(new MapperPolicy().withMode("xvatvcr") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(1877089971))) - .withAllowVNetOverride(false) - .withStatus("h") - .withAdditionalProperties(mapOf("name", "yhzlwxaeaovurexd", "etag", "agttm", "type", "sbdweaderzmwnt")); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("yec", model.id()); - Assertions.assertEquals("ffovwmbjlzqsczp", model.folder().name()); - Assertions.assertEquals("dwnapf", model.description()); - Assertions.assertEquals("ftptnuwj", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("skukjtasbv", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("groeshoyg", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("aedorvvmqf", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("jddvjsaqw", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("vyklxeslkhhus", 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("wqjwgok", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("ejjjkxybwfdb", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("xvatvcr", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1877089971, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("h", 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 602a1ec128a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"igptajbrzmqxucyc\"},\"description\":\"oclxiut\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"yzjdnrqjbt\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"qbzg\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"tbwbqamteuli\",\"parameters\":{\"uxx\":\"datapkcvmwf\",\"iciijqpkzfbojx\":\"datapmywbormcq\",\"nkwywzwofa\":\"datamcsmyqwixvcp\",\"t\":\"dataickduoiqta\"}},\"linkedServiceType\":\"sknxrwzawnvsbcf\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"hycvdimwrzre\",\"value\":\"datagy\"},{\"name\":\"utrwpweryekz\",\"value\":\"datahmeott\"},{\"name\":\"jyosxwwh\",\"value\":\"datajtfvpndpmiljpn\"}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"qllzsauzpjlxeehu\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"aymezx\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"fdsajred\",\"parameters\":{\"afpwzyifrkgwl\":\"datayshtuwgmev\",\"zdyi\":\"dataxeqipx\",\"abnsmj\":\"datasfayorpravkjoges\",\"qpkevmyltjc\":\"datawynqxaekqsykvwj\"}},\"linkedServiceType\":\"pxklurccl\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"oytzpose\",\"value\":\"dataigpxvkq\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"xvpif\",\"sourceEntityName\":\"aifyzyzeyuubeids\",\"sourceConnectionReference\":{\"connectionName\":\"ytoithgygvfl\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{}]},\"sourceDenormalizeInfo\":\"dataynkrxwetw\"},{\"targetEntityName\":\"rcyrucpcunnu\",\"sourceEntityName\":\"qumoeno\",\"sourceConnectionReference\":{\"connectionName\":\"ienhqhskndnelq\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{}]},\"sourceDenormalizeInfo\":\"datawf\"}],\"relationships\":[\"datan\",\"datayopetxivc\",\"datarl\"]},{\"targetEntities\":[{\"name\":\"caephbl\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"bqsdtcjbctvi\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"uo\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"sqhzvbrzcdbanfz\",\"properties\":{\"schema\":[{},{},{}],\"dslConnectorProperties\":[{},{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"atkdbmwnrd\",\"parameters\":{\"axljal\":\"databqbnaomhjrmkuh\",\"cjmobcanc\":\"datai\",\"xf\":\"dataexxqcwg\"}},\"linkedServiceType\":\"aknokzwjjzrl\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"yfytpq\",\"value\":\"datax\"},{\"name\":\"m\",\"value\":\"datajivyqlkjuv\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"slzoyov\",\"sourceEntityName\":\"dbpqvybefgvm\",\"sourceConnectionReference\":{\"connectionName\":\"kcvtl\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{}]},\"sourceDenormalizeInfo\":\"datacua\"},{\"targetEntityName\":\"rhunlp\",\"sourceEntityName\":\"ykycndzfqi\",\"sourceConnectionReference\":{\"connectionName\":\"euy\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{},{}]},\"sourceDenormalizeInfo\":\"datagltbxoeeo\"},{\"targetEntityName\":\"lnf\",\"sourceEntityName\":\"y\",\"sourceConnectionReference\":{\"connectionName\":\"qdbpbhfckdvezc\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{}]},\"sourceDenormalizeInfo\":\"dataddubbnqfblhkal\"}],\"relationships\":[\"dataavawugiqj\",\"dataiogqgdminictte\",\"datajohiyg\",\"datapnbonhpcz\"]},{\"targetEntities\":[{\"name\":\"tp\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"chkhufm\",\"parameters\":{\"zulo\":\"datamqyjgy\"}},\"linkedServiceType\":\"aeuzanh\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"wphpzfngqj\",\"value\":\"dataidftujwjjufwbe\"},{\"name\":\"k\",\"value\":\"datarhtssr\"},{\"name\":\"nmdvha\",\"value\":\"datavjytiqswbq\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"xiytxtdgukvl\",\"sourceEntityName\":\"ktg\",\"sourceConnectionReference\":{\"connectionName\":\"youambewr\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{}]},\"sourceDenormalizeInfo\":\"datagmmuteyxey\"},{\"targetEntityName\":\"qigijiitnspxlzde\",\"sourceEntityName\":\"grijwaiufanrayb\",\"sourceConnectionReference\":{\"connectionName\":\"qfrojsydgrhyd\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{},{}]},\"sourceDenormalizeInfo\":\"dataskieca\"}],\"relationships\":[\"datazmxieqvdsmaklix\",\"datacahyhx\"]}],\"policy\":{\"mode\":\"ybxawoijpodtblx\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1810381006}},\"allowVNetOverride\":false,\"status\":\"qhykincn\"}") - .toObject(ChangeDataCapture.class); - Assertions.assertEquals("igptajbrzmqxucyc", model.folder().name()); - Assertions.assertEquals("oclxiut", model.description()); - Assertions.assertEquals("yzjdnrqjbt", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("tbwbqamteuli", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("sknxrwzawnvsbcf", - model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("hycvdimwrzre", - model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("qllzsauzpjlxeehu", - model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("fdsajred", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("pxklurccl", 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("oytzpose", - model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("xvpif", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("aifyzyzeyuubeids", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("ytoithgygvfl", - model.targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("ybxawoijpodtblx", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1810381006, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("qhykincn", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCapture model - = new ChangeDataCapture().withFolder(new ChangeDataCaptureFolder().withName("igptajbrzmqxucyc")) - .withDescription("oclxiut") - .withSourceConnectionsInfo(Arrays.asList(new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList( - new MapperTable().withName("yzjdnrqjbt") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties(), new MapperDslConnectorProperties())), - new MapperTable().withName("qbzg") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("tbwbqamteuli") - .withParameters(mapOf("uxx", "datapkcvmwf", "iciijqpkzfbojx", "datapmywbormcq", - "nkwywzwofa", "datamcsmyqwixvcp", "t", "dataickduoiqta"))) - .withLinkedServiceType("sknxrwzawnvsbcf") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("hycvdimwrzre").withValue("datagy"), - new MapperDslConnectorProperties().withName("utrwpweryekz").withValue("datahmeott"), - new MapperDslConnectorProperties().withName("jyosxwwh").withValue("datajtfvpndpmiljpn")))))) - .withTargetConnectionsInfo(Arrays.asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList( - new MapperTable().withName("qllzsauzpjlxeehu") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("aymezx") - .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("fdsajred") - .withParameters(mapOf("afpwzyifrkgwl", "datayshtuwgmev", "zdyi", "dataxeqipx", - "abnsmj", "datasfayorpravkjoges", "qpkevmyltjc", "datawynqxaekqsykvwj"))) - .withLinkedServiceType("pxklurccl") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("oytzpose").withValue("dataigpxvkq")))) - .withDataMapperMappings( - Arrays.asList( - new DataMapperMapping().withTargetEntityName("xvpif") - .withSourceEntityName("aifyzyzeyuubeids") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("ytoithgygvfl") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings( - Arrays.asList(new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataynkrxwetw"), - new DataMapperMapping().withTargetEntityName("rcyrucpcunnu") - .withSourceEntityName("qumoeno") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("ienhqhskndnelq") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList(new MapperAttributeMapping(), - new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("datawf"))) - .withRelationships(Arrays.asList("datan", "datayopetxivc", "datarl")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList( - new MapperTable().withName("caephbl") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable().withName("bqsdtcjbctvi") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("uo") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable().withName("sqhzvbrzcdbanfz") - .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("atkdbmwnrd") - .withParameters(mapOf("axljal", "databqbnaomhjrmkuh", "cjmobcanc", "datai", "xf", - "dataexxqcwg"))) - .withLinkedServiceType("aknokzwjjzrl") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("yfytpq").withValue("datax"), - new MapperDslConnectorProperties().withName("m").withValue("datajivyqlkjuv")))) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping().withTargetEntityName("slzoyov") - .withSourceEntityName("dbpqvybefgvm") - .withSourceConnectionReference(new MapperConnectionReference().withConnectionName("kcvtl") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList(new MapperAttributeMapping(), - new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("datacua"), - new DataMapperMapping().withTargetEntityName("rhunlp") - .withSourceEntityName("ykycndzfqi") - .withSourceConnectionReference(new MapperConnectionReference().withConnectionName("euy") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings( - Arrays.asList(new MapperAttributeMapping(), new MapperAttributeMapping(), - new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("datagltbxoeeo"), - new DataMapperMapping().withTargetEntityName("lnf") - .withSourceEntityName("y") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("qdbpbhfckdvezc") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList(new MapperAttributeMapping(), - new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataddubbnqfblhkal"))) - .withRelationships( - Arrays.asList("dataavawugiqj", "dataiogqgdminictte", "datajohiyg", "datapnbonhpcz")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable().withName("tp") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("chkhufm") - .withParameters(mapOf("zulo", "datamqyjgy"))) - .withLinkedServiceType("aeuzanh") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("wphpzfngqj") - .withValue("dataidftujwjjufwbe"), - new MapperDslConnectorProperties().withName("k").withValue("datarhtssr"), - new MapperDslConnectorProperties().withName("nmdvha").withValue("datavjytiqswbq")))) - .withDataMapperMappings(Arrays.asList( - new DataMapperMapping().withTargetEntityName("xiytxtdgukvl") - .withSourceEntityName("ktg") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("youambewr") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList(new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("datagmmuteyxey"), - new DataMapperMapping().withTargetEntityName("qigijiitnspxlzde") - .withSourceEntityName("grijwaiufanrayb") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("qfrojsydgrhyd") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings( - Arrays.asList(new MapperAttributeMapping(), new MapperAttributeMapping(), - new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataskieca"))) - .withRelationships(Arrays.asList("datazmxieqvdsmaklix", "datacahyhx")))) - .withPolicy(new MapperPolicy().withMode("ybxawoijpodtblx") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(1810381006))) - .withAllowVNetOverride(false) - .withStatus("qhykincn"); - model = BinaryData.fromObject(model).toObject(ChangeDataCapture.class); - Assertions.assertEquals("igptajbrzmqxucyc", model.folder().name()); - Assertions.assertEquals("oclxiut", model.description()); - Assertions.assertEquals("yzjdnrqjbt", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("tbwbqamteuli", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("sknxrwzawnvsbcf", - model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("hycvdimwrzre", - model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("qllzsauzpjlxeehu", - model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("fdsajred", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("pxklurccl", 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("oytzpose", - model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("xvpif", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("aifyzyzeyuubeids", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("ytoithgygvfl", - model.targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("ybxawoijpodtblx", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1810381006, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("qhykincn", 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 b68c682c73ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights 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\":\"szisd\"},\"description\":\"pimzwzxtshv\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"lkofxwbtlfxhhg\"},\"linkedServiceType\":\"cehzuozvu\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"nqzzadydnoetbku\"},\"linkedServiceType\":\"utwsabryo\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"etam\"},\"linkedServiceType\":\"dcwdpqzminxipozz\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"mzura\"},\"linkedServiceType\":\"ekpetxywerylj\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"jknxxuw\"},\"linkedServiceType\":\"fjldshvaentatu\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datauponspv\",\"datajjm\"]},{\"targetEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"cgelhy\"},\"linkedServiceType\":\"cwriibvtqq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"dataunwnuzktmlkofm\",\"dataviq\"]},{\"targetEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"dztpcrgpyz\"},\"linkedServiceType\":\"rscbproevodo\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"datadfuptppdzad\",\"datazx\",\"datamyulgqf\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"itzwyjklynxxgc\"},\"linkedServiceType\":\"okkiqccshf\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"dataqoaeshnzidczx\",\"dataxqgy\"]}],\"policy\":{\"mode\":\"bufhn\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":2006538711}},\"allowVNetOverride\":true,\"status\":\"eezsxyl\"},\"name\":\"fqy\",\"type\":\"bpjtypeinqptfh\",\"etag\":\"flrhssmfsbg\",\"\":{\"rs\":\"datawptay\",\"glsfzhvzyhqqhioi\":\"datarrkmucrg\",\"dwciewoixkfxguis\":\"dataeaimvezltzpyj\",\"de\":\"dataojqgxeywaee\"},\"id\":\"bzrf\"}"; - - 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("wvphp") - .withExistingFactory("u", "pxekl") - .withSourceConnectionsInfo( - Arrays.asList( - new MapperSourceConnectionsInfo().withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("pazlbn")) - .withLinkedServiceType("ksvramim") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("atimalsh")) - .withLinkedServiceType("dna") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("wocugfllcai")) - .withLinkedServiceType("ktqfp") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("thw")) - .withLinkedServiceType("nglsrlwcfmhz") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo(Arrays.asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("rclc")) - .withLinkedServiceType("kejncogooqwavrzi") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), new DataMapperMapping())) - .withRelationships( - Arrays.asList("dataplgtqumuytavachs", "datakejuahevtfvvnin", "datapbkg", "datagwmb")), - new MapperTargetConnectionsInfo().withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("mseswflyktrbgt")) - .withLinkedServiceType("imldceuhhludjwf") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datauryim", "datanhugttypgdlzuz")))) - .withPolicy(new MapperPolicy().withMode("kcqparvylu") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.HOUR).withInterval(2032913621))) - .withFolder(new ChangeDataCaptureFolder().withName("ryvqwqanhfekk")) - .withDescription("erbfuxbdtgjrssrb") - .withAllowVNetOverride(true) - .withStatus("qsx") - .withIfMatch("wyzclashtgzlwqer") - .create(); - - Assertions.assertEquals("bzrf", response.id()); - Assertions.assertEquals("szisd", response.folder().name()); - Assertions.assertEquals("pimzwzxtshv", response.description()); - Assertions.assertEquals("lkofxwbtlfxhhg", - response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("cehzuozvu", response.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, response.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("jknxxuw", - response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("fjldshvaentatu", - response.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, response.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("bufhn", response.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, response.policy().recurrence().frequency()); - Assertions.assertEquals(2006538711, response.policy().recurrence().interval()); - Assertions.assertEquals(true, response.allowVNetOverride()); - Assertions.assertEquals("eezsxyl", 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 45e516187450..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.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 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("plhzmezcsm", "kfgjqgbhulsqlets", "vmbpmdxbiueus", 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 967143a54aab..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.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.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\":\"kgrdmlf\"},\"description\":\"jveysui\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"pmyrkpi\"},\"linkedServiceType\":\"wcninypuoze\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"k\"},\"linkedServiceType\":\"iytnivtorqkvr\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"byakicpdwi\"},\"linkedServiceType\":\"nugil\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"dataqvgfqrpocieehf\"]},{\"targetEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"djeqyrca\"},\"linkedServiceType\":\"q\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datanr\",\"databf\",\"datauej\",\"dataqwsxsovhgtaelgfo\"]}],\"policy\":{\"mode\":\"huyawsyxsjprc\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":1515513738}},\"allowVNetOverride\":false,\"status\":\"mooa\"},\"name\":\"glnkrkoub\",\"type\":\"aeafkf\",\"etag\":\"unlgddbeoidm\",\"\":{\"rawpnlagqgwdk\":\"datadpkzsqzwicecdkw\",\"fyhymwghdh\":\"datasqzahhydyerrf\"},\"id\":\"lb\"}"; - - 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("dhslrtndbch", "gupwxy", "tnsck", "vshiiecsvdtibgts", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lb", response.id()); - Assertions.assertEquals("kgrdmlf", response.folder().name()); - Assertions.assertEquals("jveysui", response.description()); - Assertions.assertEquals("pmyrkpi", - response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("wcninypuoze", - 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("byakicpdwi", - response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("nugil", response.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, response.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("huyawsyxsjprc", response.policy().mode()); - Assertions.assertEquals(FrequencyType.SECOND, response.policy().recurrence().frequency()); - Assertions.assertEquals(1515513738, response.policy().recurrence().interval()); - Assertions.assertEquals(false, response.allowVNetOverride()); - Assertions.assertEquals("mooa", 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 4aa1bc8f3b09..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\":\"icuc\"},\"description\":\"lhdwmqmdivx\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"qpczcimpdjn\"},\"linkedServiceType\":\"w\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"gjptabdyvjhant\"},\"linkedServiceType\":\"zkiowzifhl\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"datadhxopjvqgwr\",\"datacpatpxrwsqfnuqeh\",\"dataypixghahz\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ciewbywblgja\"},\"linkedServiceType\":\"ggvxjwevnrknb\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"datawqvu\"]}],\"policy\":{\"mode\":\"jctwtgozaivfa\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":1938405349}},\"allowVNetOverride\":true,\"status\":\"pyllswjzhsfuvo\"},\"name\":\"h\",\"type\":\"lnb\",\"etag\":\"pehjgeqfpzh\",\"\":{\"lqt\":\"datalbziud\",\"rpzubem\":\"datacrverpvyusxx\",\"mqhujsb\":\"datadpryvnr\"},\"id\":\"bauljmnp\"}]}"; - - 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("xpcma", "ao", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bauljmnp", response.iterator().next().id()); - Assertions.assertEquals("icuc", response.iterator().next().folder().name()); - Assertions.assertEquals("lhdwmqmdivx", response.iterator().next().description()); - Assertions.assertEquals("qpczcimpdjn", - response.iterator().next().sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("w", - 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("gjptabdyvjhant", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("zkiowzifhl", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.iterator().next().targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, - response.iterator().next().targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("jctwtgozaivfa", response.iterator().next().policy().mode()); - Assertions.assertEquals(FrequencyType.SECOND, response.iterator().next().policy().recurrence().frequency()); - Assertions.assertEquals(1938405349, response.iterator().next().policy().recurrence().interval()); - Assertions.assertEquals(true, response.iterator().next().allowVNetOverride()); - Assertions.assertEquals("pyllswjzhsfuvo", 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 30eef459c740..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.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 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("yucdmakwbybgvbfd", "ssylzsuxvwbkahd", "mpisqjwidkhud", - 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 30d124aee920..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 = "\"ej\""; - - 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("izhqabtbvjgwrbk", "kjhxiwcksinmhz", "r", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ej", 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 bd4052dd167f..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("ffdtzhldswt", "mlptiflyoqgymvft", "zfdzj", 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 ade33497f0c6..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\":\"ied\"}").toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("ied", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CmkIdentityDefinition model = new CmkIdentityDefinition().withUserAssignedIdentity("ied"); - model = BinaryData.fromObject(model).toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("ied", 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 82a97008e25b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.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.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\":\"duvtvod\",\"typeProperties\":{\"entityName\":\"dataizme\"},\"description\":\"xpqhmlq\",\"structure\":\"datatbl\",\"schema\":\"datavrj\",\"linkedServiceName\":{\"referenceName\":\"znotd\",\"parameters\":{\"bmitaftazgcxsvq\":\"datavpbqsdqkpsbqs\",\"ow\":\"datacqufylam\"}},\"parameters\":{\"xiknsgofuns\":{\"type\":\"Object\",\"defaultValue\":\"datayutehlkarvtipquk\"},\"xn\":{\"type\":\"Object\",\"defaultValue\":\"datacekggvmfnnb\"},\"cvgifwsunj\":{\"type\":\"SecureString\",\"defaultValue\":\"datakkedeetxtp\"},\"zsnfzyviiwsuanzh\":{\"type\":\"Bool\",\"defaultValue\":\"dataaciwmmpdtqdonb\"}},\"annotations\":[\"datauifkzqqhb\"],\"folder\":{\"name\":\"oilmkfbeoiipjpng\"},\"\":{\"dlpsx\":\"datauoi\",\"wimqnryclocfm\":\"datatug\"}}") - .toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("xpqhmlq", model.description()); - Assertions.assertEquals("znotd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xiknsgofuns").type()); - Assertions.assertEquals("oilmkfbeoiipjpng", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDataset model - = new CommonDataServiceForAppsEntityDataset().withDescription("xpqhmlq") - .withStructure("datatbl") - .withSchema("datavrj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("znotd") - .withParameters(mapOf("bmitaftazgcxsvq", "datavpbqsdqkpsbqs", "ow", "datacqufylam"))) - .withParameters(mapOf("xiknsgofuns", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datayutehlkarvtipquk"), - "xn", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacekggvmfnnb"), - "cvgifwsunj", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datakkedeetxtp"), - "zsnfzyviiwsuanzh", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataaciwmmpdtqdonb"))) - .withAnnotations(Arrays.asList("datauifkzqqhb")) - .withFolder(new DatasetFolder().withName("oilmkfbeoiipjpng")) - .withEntityName("dataizme"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("xpqhmlq", model.description()); - Assertions.assertEquals("znotd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xiknsgofuns").type()); - Assertions.assertEquals("oilmkfbeoiipjpng", 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 708d15efb89b..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\":\"datawxvjele\"}") - .toObject(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDatasetTypeProperties model - = new CommonDataServiceForAppsEntityDatasetTypeProperties().withEntityName("datawxvjele"); - 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 05c3f6128c07..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\":\"bvieqon\",\"query\":\"dataerdqrfassiiilc\",\"additionalColumns\":\"datagahscayyxg\",\"sourceRetryCount\":\"dataukznxdivqopxuno\",\"sourceRetryWait\":\"datatkmknacnfzcytbhd\",\"maxConcurrentConnections\":\"dataagw\",\"disableMetricsCollection\":\"datamwggzf\",\"\":{\"gdfyos\":\"datax\",\"acqjgedxpb\":\"datawigvqgc\"}}") - .toObject(CommonDataServiceForAppsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsSource model - = new CommonDataServiceForAppsSource().withSourceRetryCount("dataukznxdivqopxuno") - .withSourceRetryWait("datatkmknacnfzcytbhd") - .withMaxConcurrentConnections("dataagw") - .withDisableMetricsCollection("datamwggzf") - .withQuery("dataerdqrfassiiilc") - .withAdditionalColumns("datagahscayyxg"); - 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 d2f096076a09..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.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.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\":\"pndou\",\"\":{\"xouknzhmzassrsqz\":\"datacfgqinao\",\"jhklttliuwd\":\"dataknbtxtdmutdrrqq\",\"aqdswfnomciwhu\":\"datatwqjft\"}}") - .toObject(CompressionReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CompressionReadSettings model = new CompressionReadSettings().withAdditionalProperties(mapOf("type", "pndou")); - 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 f996099fbf25..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\":\"xotudamkiyao\",\"typeProperties\":{\"tableName\":\"datayvsbfsinvabdjul\"},\"description\":\"hulzugifgsp\",\"structure\":\"datadlnoc\",\"schema\":\"dataygimiz\",\"linkedServiceName\":{\"referenceName\":\"ukjbwmgk\",\"parameters\":{\"yjskdiylg\":\"datamspppoeszthjt\",\"sybqowgvmxwbo\":\"datazuqix\"}},\"parameters\":{\"h\":{\"type\":\"String\",\"defaultValue\":\"dataoexb\"},\"umzyyh\":{\"type\":\"Float\",\"defaultValue\":\"datakajwscmneevlumq\"},\"ivjqu\":{\"type\":\"Array\",\"defaultValue\":\"dataa\"}},\"annotations\":[\"databgbzgfhzdzahk\",\"dataxvcbicfecthotbk\"],\"folder\":{\"name\":\"ztpxj\"},\"\":{\"jdpayx\":\"datak\"}}") - .toObject(ConcurObjectDataset.class); - Assertions.assertEquals("hulzugifgsp", model.description()); - Assertions.assertEquals("ukjbwmgk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("h").type()); - Assertions.assertEquals("ztpxj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurObjectDataset model = new ConcurObjectDataset().withDescription("hulzugifgsp") - .withStructure("datadlnoc") - .withSchema("dataygimiz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ukjbwmgk") - .withParameters(mapOf("yjskdiylg", "datamspppoeszthjt", "sybqowgvmxwbo", "datazuqix"))) - .withParameters(mapOf("h", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataoexb"), "umzyyh", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakajwscmneevlumq"), - "ivjqu", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataa"))) - .withAnnotations(Arrays.asList("databgbzgfhzdzahk", "dataxvcbicfecthotbk")) - .withFolder(new DatasetFolder().withName("ztpxj")) - .withTableName("datayvsbfsinvabdjul"); - model = BinaryData.fromObject(model).toObject(ConcurObjectDataset.class); - Assertions.assertEquals("hulzugifgsp", model.description()); - Assertions.assertEquals("ukjbwmgk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("h").type()); - Assertions.assertEquals("ztpxj", 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 e299d6ae6e8e..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\":\"hdcilinbu\",\"query\":\"datajzknkffzdyozn\",\"queryTimeout\":\"datawe\",\"additionalColumns\":\"datawxmcsxidazslwhuy\",\"sourceRetryCount\":\"datapfperheipl\",\"sourceRetryWait\":\"dataswhqrdvqva\",\"maxConcurrentConnections\":\"dataauuw\",\"disableMetricsCollection\":\"datagofumbp\",\"\":{\"omavbotaoaixi\":\"datadmfjgklm\",\"mqwut\":\"datacwyinfywtqvjno\",\"xugd\":\"datayaeyyiwraowpdm\"}}") - .toObject(ConcurSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurSource model = new ConcurSource().withSourceRetryCount("datapfperheipl") - .withSourceRetryWait("dataswhqrdvqva") - .withMaxConcurrentConnections("dataauuw") - .withDisableMetricsCollection("datagofumbp") - .withQueryTimeout("datawe") - .withAdditionalColumns("datawxmcsxidazslwhuy") - .withQuery("datajzknkffzdyozn"); - 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 449b2460ffb6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.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.ConnectionStateProperties; - -public final class ConnectionStatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConnectionStateProperties model = BinaryData - .fromString("{\"actionsRequired\":\"klelssxb\",\"description\":\"c\",\"status\":\"zujksrlsmdes\"}") - .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 f186cbf108f5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"jxdrgxpuxpzslmf\",\"name\":\"ypzrycchqzkfges\",\"description\":\"gszjhekbmdh\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hg\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"mebfgbznlihbk\":\"datauvwys\",\"ftvyzuyqzjfvb\":\"datapaeyw\",\"vsxmyzss\":\"datayyjvzlscyz\"}},{\"activity\":\"bs\",\"dependencyConditions\":[\"Completed\"],\"\":{\"wqiparctshe\":\"dataxazebmmjaiga\",\"fawhoosrsol\":\"datagtdvhokx\",\"nudifierxx\":\"datahvmfoejbgiqhjpe\",\"jllfgmdoaihl\":\"datarsdvuirqfk\"}},{\"activity\":\"rsqcivmirybwga\",\"dependencyConditions\":[\"Completed\"],\"\":{\"emazgtbynxshc\":\"datay\",\"geqojzv\":\"datawe\",\"vsvwnpcxdkmtvpa\":\"datazxxkojjphbobu\"}}],\"userProperties\":[{\"name\":\"bnyhmlpzd\",\"value\":\"datavotuc\"},{\"name\":\"zbpocu\",\"value\":\"dataqzf\"}],\"\":{\"qsgert\":\"dataemzdnvnooklgren\",\"bd\":\"dataicemgsnc\",\"slbnunpxswmcc\":\"datakphaed\"}}") - .toObject(ControlActivity.class); - Assertions.assertEquals("ypzrycchqzkfges", model.name()); - Assertions.assertEquals("gszjhekbmdh", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bnyhmlpzd", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlActivity model = new ControlActivity().withName("ypzrycchqzkfges") - .withDescription("gszjhekbmdh") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hg") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bs") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rsqcivmirybwga") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("bnyhmlpzd").withValue("datavotuc"), - new UserProperty().withName("zbpocu").withValue("dataqzf"))); - model = BinaryData.fromObject(model).toObject(ControlActivity.class); - Assertions.assertEquals("ypzrycchqzkfges", model.name()); - Assertions.assertEquals("gszjhekbmdh", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bnyhmlpzd", 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 517ae2004822..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\":\"datamflwfxdkpwdpmy\",\"enableReliableLogging\":\"datacugchtwxifudlrxb\"}") - .toObject(CopyActivityLogSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityLogSettings model = new CopyActivityLogSettings().withLogLevel("datamflwfxdkpwdpmy") - .withEnableReliableLogging("datacugchtwxifudlrxb"); - 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 59ee10d63146..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"zfwdmae\",\"typeProperties\":{\"source\":{\"type\":\"fzgpvdlx\",\"sourceRetryCount\":\"dataotclcuxzllnwmgqc\",\"sourceRetryWait\":\"datagjequox\",\"maxConcurrentConnections\":\"datagfspwhfhdguuvg\",\"disableMetricsCollection\":\"datavz\",\"\":{\"m\":\"dataytqzx\",\"rmeufhkoe\":\"datanwpwrfetjg\"}},\"sink\":{\"type\":\"rjmicha\",\"writeBatchSize\":\"dataen\",\"writeBatchTimeout\":\"dataqjvdde\",\"sinkRetryCount\":\"datavrjhtpxydiuviup\",\"sinkRetryWait\":\"datatnsyrrybdyqiv\",\"maxConcurrentConnections\":\"datasuhozihd\",\"disableMetricsCollection\":\"datadjwth\",\"\":{\"irnjgsovzbd\":\"dataijgasnafdjinw\",\"bjjl\":\"datarcepanhygcahi\",\"hehzxzaz\":\"datasvjzbggsnanojt\"}},\"translator\":\"dataronsxjdgaim\",\"enableStaging\":\"datansowszbeflhx\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"rgokyngarwzutzjx\",\"parameters\":{\"miixngekcwe\":\"datasmnatnpolueylqys\",\"f\":\"databqtkdginmhlgp\",\"wrwvbqv\":\"dataqccey\"}},\"path\":\"dataqgqrsopqgiqf\",\"enableCompression\":\"datatl\",\"\":{\"hfaabibvslo\":\"datazcgugslpvyktf\",\"jzashhiztfmibwzu\":\"datadkpvvkqlkhdxn\",\"wtbfxxsfjn\":\"dataydajck\"}},\"parallelCopies\":\"datascjig\",\"dataIntegrationUnits\":\"datakdsvayyhtiy\",\"enableSkipIncompatibleRow\":\"datahmniz\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"databtehkytl\",\"path\":\"datamyznwrcfqwkqul\",\"\":{\"jxlssosndn\":\"datavqohwiwhrq\",\"cdd\":\"datapxnsjj\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"g\",\"parameters\":{\"xb\":\"datani\",\"jgczpdio\":\"datasjhpm\",\"cwmabehr\":\"datadtjylimzvjwjhmtc\"}},\"path\":\"dataskzw\",\"logLevel\":\"datah\",\"enableReliableLogging\":\"datahz\",\"\":{\"njwvc\":\"dataaesoxoavlwwpvj\"}},\"logSettings\":{\"enableCopyActivityLog\":\"dataqlceflgsndurhqoz\",\"copyActivityLogSettings\":{\"logLevel\":\"datawkdehjlo\",\"enableReliableLogging\":\"datacwo\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"uxedpqwz\",\"parameters\":{\"j\":\"datamgbxjgxrh\",\"ebdfmdjnfeealp\":\"dataubcvuc\",\"mwdrvkbcsvn\":\"datauclkbw\",\"jrz\":\"datavkhfzldzz\"}},\"path\":\"dataqengopd\"}},\"preserveRules\":[\"datandliodajxvszdyv\",\"datamiufbwreaw\",\"datanzhsmueedbhnkle\",\"datavzd\"],\"preserve\":[\"dataqajia\",\"datatcyrdtrdukdmsktu\"],\"validateDataConsistency\":\"datah\",\"skipErrorFile\":{\"fileMissing\":\"datavy\",\"dataInconsistency\":\"datayfbsgrzwdwdudxq\"}},\"inputs\":[{\"referenceName\":\"rpsplw\",\"parameters\":{\"krnkuuot\":\"datacseybvtgcoznnjqx\",\"ybmgm\":\"datay\"}},{\"referenceName\":\"kxkmtuyn\",\"parameters\":{\"hqtqqshbip\":\"datatfjpisv\"}},{\"referenceName\":\"huhujkzj\",\"parameters\":{\"oqldnhwdfxgec\":\"datagphipt\",\"z\":\"datackkd\",\"xdzmpjfbdm\":\"datahsnimom\",\"xxnmyxzh\":\"dataawhb\"}},{\"referenceName\":\"ocqoydqyzhfnyl\",\"parameters\":{\"wywayjinlsk\":\"datadsa\",\"qltygyeyxm\":\"dataprnkn\",\"moswcxlgzquq\":\"datawgnwxtmhwgen\"}}],\"outputs\":[{\"referenceName\":\"svqpifzavctywa\",\"parameters\":{\"vnpgsqlanuhmsrnp\":\"dataczprzrsqcu\",\"pdlsoajqxy\":\"dataoaghoeqiwpd\"}},{\"referenceName\":\"lh\",\"parameters\":{\"pikgqjdoglecj\":\"datapyybwlys\"}},{\"referenceName\":\"gyivsiirx\",\"parameters\":{\"iniidaxbesbwci\":\"datapqp\",\"uasjrs\":\"datayjch\",\"omihgksqwzuosyyx\":\"dataq\",\"yrowgi\":\"datardxzudfarzayr\"}}],\"linkedServiceName\":{\"referenceName\":\"vxbovpoeuufwsmde\",\"parameters\":{\"mfydphlslnomqbd\":\"databxzjedycjisxsp\"}},\"policy\":{\"timeout\":\"dataqfzlbpe\",\"retry\":\"datajp\",\"retryIntervalInSeconds\":1909933114,\"secureInput\":false,\"secureOutput\":false,\"\":{\"dchdsxvkmgppxz\":\"datatpgzybezmyjq\",\"bwddpjsokosugr\":\"datajysmtsktous\"}},\"name\":\"whqafzgzmon\",\"description\":\"nie\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hfmognnwx\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"jyy\":\"dataam\"}},{\"activity\":\"fpnbyxygubvi\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Succeeded\"],\"\":{\"iuf\":\"datasxhvzg\"}}],\"userProperties\":[{\"name\":\"gsdxjx\",\"value\":\"dataddxoatlprsrkennn\"}],\"\":{\"njtfplgxc\":\"datavlgsadpv\"}}") - .toObject(CopyActivity.class); - Assertions.assertEquals("whqafzgzmon", model.name()); - Assertions.assertEquals("nie", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hfmognnwx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gsdxjx", model.userProperties().get(0).name()); - Assertions.assertEquals("vxbovpoeuufwsmde", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1909933114, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("rpsplw", model.inputs().get(0).referenceName()); - Assertions.assertEquals("svqpifzavctywa", model.outputs().get(0).referenceName()); - Assertions.assertEquals("rgokyngarwzutzjx", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("g", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("uxedpqwz", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivity model - = new CopyActivity().withName("whqafzgzmon") - .withDescription("nie") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hfmognnwx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fpnbyxygubvi") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("gsdxjx").withValue("dataddxoatlprsrkennn"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vxbovpoeuufwsmde") - .withParameters(mapOf("mfydphlslnomqbd", "databxzjedycjisxsp"))) - .withPolicy(new ActivityPolicy() - .withTimeout("dataqfzlbpe") - .withRetry("datajp") - .withRetryIntervalInSeconds(1909933114) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withInputs(Arrays.asList(new DatasetReference() - .withReferenceName("rpsplw") - .withParameters(mapOf("krnkuuot", "datacseybvtgcoznnjqx", "ybmgm", "datay")), - new DatasetReference().withReferenceName("kxkmtuyn") - .withParameters(mapOf("hqtqqshbip", "datatfjpisv")), - new DatasetReference().withReferenceName("huhujkzj") - .withParameters(mapOf("oqldnhwdfxgec", "datagphipt", "z", "datackkd", "xdzmpjfbdm", - "datahsnimom", "xxnmyxzh", "dataawhb")), - new DatasetReference().withReferenceName("ocqoydqyzhfnyl") - .withParameters(mapOf("wywayjinlsk", "datadsa", "qltygyeyxm", "dataprnkn", "moswcxlgzquq", - "datawgnwxtmhwgen")))) - .withOutputs(Arrays.asList(new DatasetReference() - .withReferenceName("svqpifzavctywa") - .withParameters(mapOf("vnpgsqlanuhmsrnp", "dataczprzrsqcu", "pdlsoajqxy", "dataoaghoeqiwpd")), - new DatasetReference().withReferenceName("lh") - .withParameters(mapOf("pikgqjdoglecj", "datapyybwlys")), - new DatasetReference().withReferenceName("gyivsiirx") - .withParameters(mapOf("iniidaxbesbwci", "datapqp", "uasjrs", "datayjch", "omihgksqwzuosyyx", - "dataq", "yrowgi", "datardxzudfarzayr")))) - .withSource(new CopySource().withSourceRetryCount("dataotclcuxzllnwmgqc") - .withSourceRetryWait("datagjequox") - .withMaxConcurrentConnections("datagfspwhfhdguuvg") - .withDisableMetricsCollection("datavz") - .withAdditionalProperties(mapOf("type", "fzgpvdlx"))) - .withSink(new CopySink().withWriteBatchSize("dataen") - .withWriteBatchTimeout("dataqjvdde") - .withSinkRetryCount("datavrjhtpxydiuviup") - .withSinkRetryWait("datatnsyrrybdyqiv") - .withMaxConcurrentConnections("datasuhozihd") - .withDisableMetricsCollection("datadjwth") - .withAdditionalProperties(mapOf("type", "rjmicha"))) - .withTranslator("dataronsxjdgaim") - .withEnableStaging("datansowszbeflhx") - .withStagingSettings(new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rgokyngarwzutzjx") - .withParameters(mapOf("miixngekcwe", "datasmnatnpolueylqys", "f", "databqtkdginmhlgp", - "wrwvbqv", "dataqccey"))) - .withPath("dataqgqrsopqgiqf") - .withEnableCompression("datatl") - .withAdditionalProperties(mapOf())) - .withParallelCopies("datascjig") - .withDataIntegrationUnits("datakdsvayyhtiy") - .withEnableSkipIncompatibleRow("datahmniz") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings().withLinkedServiceName("databtehkytl") - .withPath("datamyznwrcfqwkqul") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("g") - .withParameters( - mapOf("xb", "datani", "jgczpdio", "datasjhpm", "cwmabehr", "datadtjylimzvjwjhmtc"))) - .withPath("dataskzw") - .withLogLevel("datah") - .withEnableReliableLogging("datahz") - .withAdditionalProperties(mapOf())) - .withLogSettings(new LogSettings().withEnableCopyActivityLog("dataqlceflgsndurhqoz") - .withCopyActivityLogSettings( - new CopyActivityLogSettings().withLogLevel("datawkdehjlo").withEnableReliableLogging("datacwo")) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uxedpqwz") - .withParameters(mapOf("j", "datamgbxjgxrh", "ebdfmdjnfeealp", "dataubcvuc", "mwdrvkbcsvn", - "datauclkbw", "jrz", "datavkhfzldzz"))) - .withPath("dataqengopd"))) - .withPreserveRules( - Arrays.asList("datandliodajxvszdyv", "datamiufbwreaw", "datanzhsmueedbhnkle", "datavzd")) - .withPreserve(Arrays.asList("dataqajia", "datatcyrdtrdukdmsktu")) - .withValidateDataConsistency("datah") - .withSkipErrorFile( - new SkipErrorFile().withFileMissing("datavy").withDataInconsistency("datayfbsgrzwdwdudxq")); - model = BinaryData.fromObject(model).toObject(CopyActivity.class); - Assertions.assertEquals("whqafzgzmon", model.name()); - Assertions.assertEquals("nie", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hfmognnwx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gsdxjx", model.userProperties().get(0).name()); - Assertions.assertEquals("vxbovpoeuufwsmde", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1909933114, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("rpsplw", model.inputs().get(0).referenceName()); - Assertions.assertEquals("svqpifzavctywa", model.outputs().get(0).referenceName()); - Assertions.assertEquals("rgokyngarwzutzjx", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("g", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("uxedpqwz", - 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 ac3efc077a50..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"ctbxpuisfjamgn\",\"sourceRetryCount\":\"dataosusiyycoflj\",\"sourceRetryWait\":\"datadmwa\",\"maxConcurrentConnections\":\"datapbuqkdieuopwsa\",\"disableMetricsCollection\":\"datahmizcfk\",\"\":{\"ygzkdbmjzobc\":\"datamoonnriah\",\"kptteojxhwg\":\"datavbbuuipel\",\"vkjdhsl\":\"dataahxgrpwjgk\"}},\"sink\":{\"type\":\"mm\",\"writeBatchSize\":\"datatzxsvwqiwgjwrhu\",\"writeBatchTimeout\":\"dataaaaxigafa\",\"sinkRetryCount\":\"datatoo\",\"sinkRetryWait\":\"datazdoblpdtcyv\",\"maxConcurrentConnections\":\"datahboplavgfbvro\",\"disableMetricsCollection\":\"datauexqweyslwlppoh\",\"\":{\"gb\":\"datagalexyiygkadtwd\",\"vxcjdobsgv\":\"dataxt\"}},\"translator\":\"datajkwltnsnhuvmok\",\"enableStaging\":\"datasclpnbidnlodk\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"qnkptixa\",\"parameters\":{\"mhoplqtzgtpsbym\":\"datazgaevrygggccp\"}},\"path\":\"datactorqzbq\",\"enableCompression\":\"datagfqqrarolc\",\"\":{\"tdif\":\"databynlbwcnnfpfg\",\"ojtzarlii\":\"datayfjslehgeeyg\",\"uqcmunhfarb\":\"datartvqvidsjhxxx\"}},\"parallelCopies\":\"datayvypuio\",\"dataIntegrationUnits\":\"dataowwerwywlxhiuw\",\"enableSkipIncompatibleRow\":\"dataxgejytqnzrcbha\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"datactjvl\",\"path\":\"datanzgzfs\",\"\":{\"baiaqqfu\":\"dataytydrdc\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"muclxgc\",\"parameters\":{\"hzhervvlibro\":\"datasuyqcvykags\",\"loedjzrvfrfs\":\"dataq\"}},\"path\":\"databfgwujwowt\",\"logLevel\":\"datauepszzn\",\"enableReliableLogging\":\"datajnsp\",\"\":{\"nmavf\":\"dataoygutqtjwiv\"}},\"logSettings\":{\"enableCopyActivityLog\":\"datadww\",\"copyActivityLogSettings\":{\"logLevel\":\"datae\",\"enableReliableLogging\":\"datadcpiwcgcwms\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"lpq\",\"parameters\":{\"pu\":\"datahdwjfxopzclka\",\"vcqnjjfm\":\"datamga\",\"joonvtv\":\"datavcfbflyzcqomlybs\",\"dhum\":\"datafpumlob\"}},\"path\":\"dataqwckapoetdfzjwje\"}},\"preserveRules\":[\"dataihan\",\"datawipdqozvv\",\"dataq\",\"dataopvhwmt\"],\"preserve\":[\"datarjvqvuvipsnfeago\",\"datadbsasc\",\"datatdwijxkxlt\"],\"validateDataConsistency\":\"datadwiffagfeq\",\"skipErrorFile\":{\"fileMissing\":\"datapg\",\"dataInconsistency\":\"dataltthsuzxyl\"}}") - .toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("qnkptixa", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("muclxgc", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("lpq", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityTypeProperties model = new CopyActivityTypeProperties() - .withSource(new CopySource().withSourceRetryCount("dataosusiyycoflj") - .withSourceRetryWait("datadmwa") - .withMaxConcurrentConnections("datapbuqkdieuopwsa") - .withDisableMetricsCollection("datahmizcfk") - .withAdditionalProperties(mapOf("type", "ctbxpuisfjamgn"))) - .withSink(new CopySink().withWriteBatchSize("datatzxsvwqiwgjwrhu") - .withWriteBatchTimeout("dataaaaxigafa") - .withSinkRetryCount("datatoo") - .withSinkRetryWait("datazdoblpdtcyv") - .withMaxConcurrentConnections("datahboplavgfbvro") - .withDisableMetricsCollection("datauexqweyslwlppoh") - .withAdditionalProperties(mapOf("type", "mm"))) - .withTranslator("datajkwltnsnhuvmok") - .withEnableStaging("datasclpnbidnlodk") - .withStagingSettings(new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qnkptixa") - .withParameters(mapOf("mhoplqtzgtpsbym", "datazgaevrygggccp"))) - .withPath("datactorqzbq") - .withEnableCompression("datagfqqrarolc") - .withAdditionalProperties(mapOf())) - .withParallelCopies("datayvypuio") - .withDataIntegrationUnits("dataowwerwywlxhiuw") - .withEnableSkipIncompatibleRow("dataxgejytqnzrcbha") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings() - .withLinkedServiceName("datactjvl") - .withPath("datanzgzfs") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("muclxgc") - .withParameters(mapOf("hzhervvlibro", "datasuyqcvykags", "loedjzrvfrfs", "dataq"))) - .withPath("databfgwujwowt") - .withLogLevel("datauepszzn") - .withEnableReliableLogging("datajnsp") - .withAdditionalProperties(mapOf())) - .withLogSettings(new LogSettings().withEnableCopyActivityLog("datadww") - .withCopyActivityLogSettings( - new CopyActivityLogSettings().withLogLevel("datae").withEnableReliableLogging("datadcpiwcgcwms")) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lpq") - .withParameters(mapOf("pu", "datahdwjfxopzclka", "vcqnjjfm", "datamga", "joonvtv", - "datavcfbflyzcqomlybs", "dhum", "datafpumlob"))) - .withPath("dataqwckapoetdfzjwje"))) - .withPreserveRules(Arrays.asList("dataihan", "datawipdqozvv", "dataq", "dataopvhwmt")) - .withPreserve(Arrays.asList("datarjvqvuvipsnfeago", "datadbsasc", "datatdwijxkxlt")) - .withValidateDataConsistency("datadwiffagfeq") - .withSkipErrorFile(new SkipErrorFile().withFileMissing("datapg").withDataInconsistency("dataltthsuzxyl")); - model = BinaryData.fromObject(model).toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("qnkptixa", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("muclxgc", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("lpq", 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 68a530a8d6f1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.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.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\":743562037,\"timeToLive\":277540849,\"\":{\"tfstdwqdvzc\":\"dataaszji\"}}") - .toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(743562037, model.dataIntegrationUnit()); - Assertions.assertEquals(277540849, model.timeToLive()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyComputeScaleProperties model = new CopyComputeScaleProperties().withDataIntegrationUnit(743562037) - .withTimeToLive(277540849) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(743562037, model.dataIntegrationUnit()); - Assertions.assertEquals(277540849, 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 ee324628c5ab..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\":\"ayo\",\"writeBatchSize\":\"dataetzcxlisvqfb\",\"writeBatchTimeout\":\"dataizxp\",\"sinkRetryCount\":\"datapsaploex\",\"sinkRetryWait\":\"datamvlocd\",\"maxConcurrentConnections\":\"datahkob\",\"disableMetricsCollection\":\"datahhipn\",\"\":{\"n\":\"datadyriw\"}}") - .toObject(CopySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySink model = new CopySink().withWriteBatchSize("dataetzcxlisvqfb") - .withWriteBatchTimeout("dataizxp") - .withSinkRetryCount("datapsaploex") - .withSinkRetryWait("datamvlocd") - .withMaxConcurrentConnections("datahkob") - .withDisableMetricsCollection("datahhipn") - .withAdditionalProperties(mapOf("type", "ayo")); - 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 861f03cb5856..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\":\"wjwbht\",\"sourceRetryCount\":\"databch\",\"sourceRetryWait\":\"dataneuzueikadhu\",\"maxConcurrentConnections\":\"datax\",\"disableMetricsCollection\":\"datagljcywyrzx\",\"\":{\"yejyavxgmogcnw\":\"datahlxxkviyjru\",\"nlceggyqlvnhm\":\"datakqqxpnjqtzdahvet\",\"wsyfsgikgcbjclf\":\"datautkwwtymbcc\",\"zebifktnx\":\"datapfdsatrzqmtuxwtd\"}}") - .toObject(CopySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySource model = new CopySource().withSourceRetryCount("databch") - .withSourceRetryWait("dataneuzueikadhu") - .withMaxConcurrentConnections("datax") - .withDisableMetricsCollection("datagljcywyrzx") - .withAdditionalProperties(mapOf("type", "wjwbht")); - 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 305d7fa296e4..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\":\"kwvcogqjimxcth\",\"\":{\"ezufxuugvdbpjo\":\"datarkinutdhbmizbev\"}}") - .toObject(CopyTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyTranslator model = new CopyTranslator().withAdditionalProperties(mapOf("type", "kwvcogqjimxcth")); - 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 c83febdfbffc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.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.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\":\"wfsaa\",\"typeProperties\":{\"collection\":\"dataxcmmhipbvskcitly\"},\"description\":\"fgb\",\"structure\":\"datavm\",\"schema\":\"datad\",\"linkedServiceName\":{\"referenceName\":\"liuajklnacgdnx\",\"parameters\":{\"jaojpzngdrzige\":\"datanmzr\",\"dkhwqdmohhe\":\"datawsadsqyu\",\"yevyigdeipnfizej\":\"datayuunx\",\"acndjzwhaj\":\"datali\"}},\"parameters\":{\"hdyncradxs\":{\"type\":\"String\",\"defaultValue\":\"datao\"},\"pfapmqnmelyk\":{\"type\":\"Object\",\"defaultValue\":\"datae\"},\"n\":{\"type\":\"SecureString\",\"defaultValue\":\"dataihiclmsln\"}},\"annotations\":[\"datazlbbbajdexquaw\"],\"folder\":{\"name\":\"zbf\"},\"\":{\"vvxn\":\"datajizwhpnbmajvvyx\",\"ybfmlngfwhrmvl\":\"datakzixbk\",\"nrzblxna\":\"dataknujmw\",\"kovohwvpr\":\"datahsmfndcbsyhludzj\"}}") - .toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("fgb", model.description()); - Assertions.assertEquals("liuajklnacgdnx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hdyncradxs").type()); - Assertions.assertEquals("zbf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDataset model = new CosmosDbMongoDbApiCollectionDataset().withDescription("fgb") - .withStructure("datavm") - .withSchema("datad") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("liuajklnacgdnx") - .withParameters(mapOf("jaojpzngdrzige", "datanmzr", "dkhwqdmohhe", "datawsadsqyu", "yevyigdeipnfizej", - "datayuunx", "acndjzwhaj", "datali"))) - .withParameters(mapOf("hdyncradxs", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datao"), "pfapmqnmelyk", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datae"), "n", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataihiclmsln"))) - .withAnnotations(Arrays.asList("datazlbbbajdexquaw")) - .withFolder(new DatasetFolder().withName("zbf")) - .withCollection("dataxcmmhipbvskcitly"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("fgb", model.description()); - Assertions.assertEquals("liuajklnacgdnx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hdyncradxs").type()); - Assertions.assertEquals("zbf", 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 78a272e22cf8..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\":\"datafdvtdurmdt\"}") - .toObject(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDatasetTypeProperties model - = new CosmosDbMongoDbApiCollectionDatasetTypeProperties().withCollection("datafdvtdurmdt"); - 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 572a180bb08e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.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.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\":\"ysefilncyqnkpxe\",\"typeProperties\":{\"isServerVersionAbove32\":\"dataktcr\",\"connectionString\":\"datact\",\"database\":\"dataedzyzbvsjut\"},\"connectVia\":{\"referenceName\":\"pzdwerjckzxdlupg\",\"parameters\":{\"pglntnsiuxy\":\"datamndzbfoia\"}},\"description\":\"jwsdxyzgr\",\"parameters\":{\"kobxvexusjfjuphj\":{\"type\":\"String\",\"defaultValue\":\"dataxgomhenqnovt\"},\"atl\":{\"type\":\"Float\",\"defaultValue\":\"dataksvjtgpy\"}},\"annotations\":[\"datasxqmmxjdkvy\",\"datailrlfgowvvxjqru\",\"datak\"],\"\":{\"nsqeewfuw\":\"datayfe\",\"azi\":\"datamkca\",\"wmebmx\":\"datahwy\",\"txkurp\":\"datawcf\"}}") - .toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("pzdwerjckzxdlupg", model.connectVia().referenceName()); - Assertions.assertEquals("jwsdxyzgr", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("kobxvexusjfjuphj").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedService model = new CosmosDbMongoDbApiLinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("pzdwerjckzxdlupg") - .withParameters(mapOf("pglntnsiuxy", "datamndzbfoia"))) - .withDescription("jwsdxyzgr") - .withParameters(mapOf("kobxvexusjfjuphj", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxgomhenqnovt"), "atl", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataksvjtgpy"))) - .withAnnotations(Arrays.asList("datasxqmmxjdkvy", "datailrlfgowvvxjqru", "datak")) - .withIsServerVersionAbove32("dataktcr") - .withConnectionString("datact") - .withDatabase("dataedzyzbvsjut"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("pzdwerjckzxdlupg", model.connectVia().referenceName()); - Assertions.assertEquals("jwsdxyzgr", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("kobxvexusjfjuphj").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 37839b707ac2..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\":\"dataksixhornvydx\",\"connectionString\":\"datakdsqeayjdqtti\",\"database\":\"datawixsdxxflwfvah\"}") - .toObject(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedServiceTypeProperties model - = new CosmosDbMongoDbApiLinkedServiceTypeProperties().withIsServerVersionAbove32("dataksixhornvydx") - .withConnectionString("datakdsqeayjdqtti") - .withDatabase("datawixsdxxflwfvah"); - 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 0fb3b894bb14..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\":\"tdmrqravpx\",\"writeBehavior\":\"dataavoqcyl\",\"writeBatchSize\":\"dataewpngcocbo\",\"writeBatchTimeout\":\"datasjobzvsugentr\",\"sinkRetryCount\":\"databwtivgdcrrbsw\",\"sinkRetryWait\":\"dataizmxvdtkmwyiko\",\"maxConcurrentConnections\":\"dataepkknyvn\",\"disableMetricsCollection\":\"dataglia\",\"\":{\"sg\":\"datajdhbqwcu\",\"kzwijqxwmjl\":\"dataefna\",\"fsqruyqaqemozj\":\"dataosqhnwbqc\",\"pclmkeswtkhfcnce\":\"datahixcivjokauj\"}}") - .toObject(CosmosDbMongoDbApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSink model = new CosmosDbMongoDbApiSink().withWriteBatchSize("dataewpngcocbo") - .withWriteBatchTimeout("datasjobzvsugentr") - .withSinkRetryCount("databwtivgdcrrbsw") - .withSinkRetryWait("dataizmxvdtkmwyiko") - .withMaxConcurrentConnections("dataepkknyvn") - .withDisableMetricsCollection("dataglia") - .withWriteBehavior("dataavoqcyl"); - 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 19dd8073d4c6..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\":\"afks\",\"filter\":\"datappsnljduwkb\",\"cursorMethods\":{\"project\":\"datamrhnghvlv\",\"sort\":\"dataxbjqiabitevv\",\"skip\":\"dataiyp\",\"limit\":\"datajz\",\"\":{\"lhmneykxewemtaz\":\"datadfyvgcftaqydcr\",\"jzpxo\":\"datar\",\"erxmlfnugl\":\"datae\",\"snitlmcaehjhwk\":\"datayrkrtdkpoxzwg\"}},\"batchSize\":\"datajzq\",\"queryTimeout\":\"dataypanwejbngojna\",\"additionalColumns\":\"datawytkwtf\",\"sourceRetryCount\":\"datamfhruhw\",\"sourceRetryWait\":\"datanrdf\",\"maxConcurrentConnections\":\"databhrvonea\",\"disableMetricsCollection\":\"datajmjig\",\"\":{\"rxtoxlx\":\"datadfrtasa\",\"ycissh\":\"datajijttsyrxynnfsk\"}}") - .toObject(CosmosDbMongoDbApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSource model = new CosmosDbMongoDbApiSource().withSourceRetryCount("datamfhruhw") - .withSourceRetryWait("datanrdf") - .withMaxConcurrentConnections("databhrvonea") - .withDisableMetricsCollection("datajmjig") - .withFilter("datappsnljduwkb") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("datamrhnghvlv") - .withSort("dataxbjqiabitevv") - .withSkip("dataiyp") - .withLimit("datajz") - .withAdditionalProperties(mapOf())) - .withBatchSize("datajzq") - .withQueryTimeout("dataypanwejbngojna") - .withAdditionalColumns("datawytkwtf"); - 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 c1b57236f554..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.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.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\":\"grcavqc\",\"typeProperties\":{\"collectionName\":\"datargdqyxaj\"},\"description\":\"zoq\",\"structure\":\"datamqcwwsjnkiixepbn\",\"schema\":\"dataqww\",\"linkedServiceName\":{\"referenceName\":\"fgsqxile\",\"parameters\":{\"uqynttwk\":\"datasewrzne\",\"yd\":\"datahajksbsyogjmqjhg\"}},\"parameters\":{\"xtdlxwmvcdkucp\":{\"type\":\"Array\",\"defaultValue\":\"datavjbssfcriqxz\"}},\"annotations\":[\"dataafr\",\"datargorogeuvmkrspn\"],\"folder\":{\"name\":\"semlzofrsnq\"},\"\":{\"rpub\":\"datapetexutikelpmw\"}}") - .toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("zoq", model.description()); - Assertions.assertEquals("fgsqxile", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("xtdlxwmvcdkucp").type()); - Assertions.assertEquals("semlzofrsnq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDataset model = new CosmosDbSqlApiCollectionDataset().withDescription("zoq") - .withStructure("datamqcwwsjnkiixepbn") - .withSchema("dataqww") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("fgsqxile") - .withParameters(mapOf("uqynttwk", "datasewrzne", "yd", "datahajksbsyogjmqjhg"))) - .withParameters(mapOf("xtdlxwmvcdkucp", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datavjbssfcriqxz"))) - .withAnnotations(Arrays.asList("dataafr", "datargorogeuvmkrspn")) - .withFolder(new DatasetFolder().withName("semlzofrsnq")) - .withCollectionName("datargdqyxaj"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("zoq", model.description()); - Assertions.assertEquals("fgsqxile", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("xtdlxwmvcdkucp").type()); - Assertions.assertEquals("semlzofrsnq", 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 29972998f7ea..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\":\"dataudhvos\"}") - .toObject(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDatasetTypeProperties model - = new CosmosDbSqlApiCollectionDatasetTypeProperties().withCollectionName("dataudhvos"); - 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 c9be48d462cb..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\":\"wqtbztogihpylf\",\"writeBehavior\":\"dataprnqjxsexzxbiwn\",\"writeBatchSize\":\"datayes\",\"writeBatchTimeout\":\"datalsparbjsvqy\",\"sinkRetryCount\":\"datagemkz\",\"sinkRetryWait\":\"datalvnosblc\",\"maxConcurrentConnections\":\"datatwac\",\"disableMetricsCollection\":\"datahkpdcv\",\"\":{\"tcijuntm\":\"datak\"}}") - .toObject(CosmosDbSqlApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSink model = new CosmosDbSqlApiSink().withWriteBatchSize("datayes") - .withWriteBatchTimeout("datalsparbjsvqy") - .withSinkRetryCount("datagemkz") - .withSinkRetryWait("datalvnosblc") - .withMaxConcurrentConnections("datatwac") - .withDisableMetricsCollection("datahkpdcv") - .withWriteBehavior("dataprnqjxsexzxbiwn"); - 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 1b9a5b2b13d4..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\":\"mekmsn\",\"query\":\"datayrmwshrzm\",\"pageSize\":\"datacnn\",\"preferredRegions\":\"datajxvotidlwmewrgul\",\"detectDatetime\":\"datagpkunvygu\",\"additionalColumns\":\"datannvmguzqmx\",\"sourceRetryCount\":\"datajbefszfrxfywjy\",\"sourceRetryWait\":\"datacqmdeecdh\",\"maxConcurrentConnections\":\"datasiz\",\"disableMetricsCollection\":\"datappmykgr\",\"\":{\"qtfyuyg\":\"datamadhismwj\"}}") - .toObject(CosmosDbSqlApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSource model = new CosmosDbSqlApiSource().withSourceRetryCount("datajbefszfrxfywjy") - .withSourceRetryWait("datacqmdeecdh") - .withMaxConcurrentConnections("datasiz") - .withDisableMetricsCollection("datappmykgr") - .withQuery("datayrmwshrzm") - .withPageSize("datacnn") - .withPreferredRegions("datajxvotidlwmewrgul") - .withDetectDatetime("datagpkunvygu") - .withAdditionalColumns("datannvmguzqmx"); - 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 12b5841831e2..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\":\"h\",\"query\":\"dataoyznjddshazlom\",\"queryTimeout\":\"datajwwbrhjhcwcfftsz\",\"additionalColumns\":\"datavy\",\"sourceRetryCount\":\"datavh\",\"sourceRetryWait\":\"dataeoikxjpuwg\",\"maxConcurrentConnections\":\"datasaqfnbxuw\",\"disableMetricsCollection\":\"datambuslegtsqz\",\"\":{\"hvde\":\"dataoru\",\"ylgpznb\":\"datadcdjhfxbkgpnxu\"}}") - .toObject(CouchbaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseSource model = new CouchbaseSource().withSourceRetryCount("datavh") - .withSourceRetryWait("dataeoikxjpuwg") - .withMaxConcurrentConnections("datasaqfnbxuw") - .withDisableMetricsCollection("datambuslegtsqz") - .withQueryTimeout("datajwwbrhjhcwcfftsz") - .withAdditionalColumns("datavy") - .withQuery("dataoyznjddshazlom"); - 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 545be3ed85fd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.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.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\":\"qjobsynnen\",\"typeProperties\":{\"tableName\":\"dataqztjfkgb\"},\"description\":\"njqhdheosx\",\"structure\":\"datafudmpfhwyp\",\"schema\":\"datatjtntc\",\"linkedServiceName\":{\"referenceName\":\"gpdbbglaecc\",\"parameters\":{\"kvrmp\":\"datafspvjrds\",\"gmc\":\"dataftyptwjwiyyeo\"}},\"parameters\":{\"fzzi\":{\"type\":\"Int\",\"defaultValue\":\"dataphwfnugsl\"},\"mvueprpmofxnwcg\":{\"type\":\"Bool\",\"defaultValue\":\"datag\"}},\"annotations\":[\"dataxixtxxxajsehbknn\"],\"folder\":{\"name\":\"yjfawpcb\"},\"\":{\"nivco\":\"datazehcz\",\"who\":\"datasxvppkjealkdb\",\"o\":\"datavbmyzuqfdqdktrj\"}}") - .toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("njqhdheosx", model.description()); - Assertions.assertEquals("gpdbbglaecc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("fzzi").type()); - Assertions.assertEquals("yjfawpcb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseTableDataset model = new CouchbaseTableDataset().withDescription("njqhdheosx") - .withStructure("datafudmpfhwyp") - .withSchema("datatjtntc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("gpdbbglaecc") - .withParameters(mapOf("kvrmp", "datafspvjrds", "gmc", "dataftyptwjwiyyeo"))) - .withParameters(mapOf("fzzi", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataphwfnugsl"), - "mvueprpmofxnwcg", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datag"))) - .withAnnotations(Arrays.asList("dataxixtxxxajsehbknn")) - .withFolder(new DatasetFolder().withName("yjfawpcb")) - .withTableName("dataqztjfkgb"); - model = BinaryData.fromObject(model).toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("njqhdheosx", model.description()); - Assertions.assertEquals("gpdbbglaecc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("fzzi").type()); - Assertions.assertEquals("yjfawpcb", 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 7bbe6ae7dd5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.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.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; -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\":\"iwbuqny\",\"coreCount\":1310458507,\"timeToLive\":416565759,\"integrationRuntime\":{\"properties\":{\"type\":\"SelfHosted\",\"description\":\"crpfbcunez\",\"\":{\"xjwet\":\"datazelfwyfwl\"}},\"name\":\"sihclafzvaylp\"}}") - .toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("iwbuqny", model.computeType()); - Assertions.assertEquals(1310458507, model.coreCount()); - Assertions.assertEquals(416565759, model.timeToLive()); - Assertions.assertEquals("sihclafzvaylp", model.integrationRuntime().name()); - Assertions.assertEquals("crpfbcunez", model.integrationRuntime().properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionRequest model = new CreateDataFlowDebugSessionRequest().withComputeType("iwbuqny") - .withCoreCount(1310458507) - .withTimeToLive(416565759) - .withIntegrationRuntime(new IntegrationRuntimeDebugResource().withName("sihclafzvaylp") - .withProperties(new SelfHostedIntegrationRuntime().withDescription("crpfbcunez"))); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("iwbuqny", model.computeType()); - Assertions.assertEquals(1310458507, model.coreCount()); - Assertions.assertEquals(416565759, model.timeToLive()); - Assertions.assertEquals("sihclafzvaylp", model.integrationRuntime().name()); - Assertions.assertEquals("crpfbcunez", model.integrationRuntime().properties().description()); - } -} 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 7a484fdfaa5d..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\":\"ruunzzjgehkf\",\"sessionId\":\"m\"}") - .toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("ruunzzjgehkf", model.status()); - Assertions.assertEquals("m", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionResponseInner model - = new CreateDataFlowDebugSessionResponseInner().withStatus("ruunzzjgehkf").withSessionId("m"); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("ruunzzjgehkf", model.status()); - Assertions.assertEquals("m", 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 e67bf49849d9..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\":\"ashsfwxos\",\"subscriptionId\":\"z\",\"dataFactoryName\":\"ugicjooxdjebw\",\"dataFactoryLocation\":\"cwwfvovbvme\"}") - .toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ashsfwxos", model.name()); - Assertions.assertEquals("z", model.subscriptionId()); - Assertions.assertEquals("ugicjooxdjebw", model.dataFactoryName()); - Assertions.assertEquals("cwwfvovbvme", model.dataFactoryLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateLinkedIntegrationRuntimeRequest model = new CreateLinkedIntegrationRuntimeRequest().withName("ashsfwxos") - .withSubscriptionId("z") - .withDataFactoryName("ugicjooxdjebw") - .withDataFactoryLocation("cwwfvovbvme"); - model = BinaryData.fromObject(model).toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ashsfwxos", model.name()); - Assertions.assertEquals("z", model.subscriptionId()); - Assertions.assertEquals("ugicjooxdjebw", model.dataFactoryName()); - Assertions.assertEquals("cwwfvovbvme", 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 f3cbda6b41c4..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\":\"smiccwrwfscj\"}").toObject(CreateRunResponseInner.class); - Assertions.assertEquals("smiccwrwfscj", model.runId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateRunResponseInner model = new CreateRunResponseInner().withRunId("smiccwrwfscj"); - model = BinaryData.fromObject(model).toObject(CreateRunResponseInner.class); - Assertions.assertEquals("smiccwrwfscj", 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 8e51f19a303f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.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.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\":\"pvmjcdoewbid\",\"description\":\"t\",\"annotations\":[\"dataxvgpiude\",\"datagfsxzec\",\"dataaxwk\",\"datafykhvuhxepmru\"],\"\":{\"mvguihywart\":\"dataabaobnslujdjltym\",\"j\":\"datapphkixkykxds\",\"kkflrmymyincqlhr\":\"dataemmucfxh\"}},\"name\":\"wslmiiiovgqcg\",\"type\":\"ugqkctotiowlxteq\",\"etag\":\"tjgwdtguk\",\"id\":\"nblwphqlkcc\"},{\"properties\":{\"type\":\"gygqwah\",\"description\":\"ulwgniiprglvawuw\",\"annotations\":[\"datafypiv\",\"datasbbjpmcu\"],\"\":{\"mhbrbqgvg\":\"dataifoxxkubvphav\",\"efjokn\":\"datavpbbt\",\"biqmrjgei\":\"datasqyzqedikdfr\"}},\"name\":\"qlggwfi\",\"type\":\"cxmjpbyephmg\",\"etag\":\"ljvrcmyfqipgxhnp\",\"id\":\"yqwcabvnuil\"}],\"nextLink\":\"yaswlpaugmr\"}") - .toObject(CredentialListResponse.class); - Assertions.assertEquals("nblwphqlkcc", model.value().get(0).id()); - Assertions.assertEquals("t", model.value().get(0).properties().description()); - Assertions.assertEquals("yaswlpaugmr", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialListResponse model - = new CredentialListResponse() - .withValue(Arrays.asList( - new CredentialResourceInner().withId("nblwphqlkcc") - .withProperties(new Credential().withDescription("t") - .withAnnotations( - Arrays.asList("dataxvgpiude", "datagfsxzec", "dataaxwk", "datafykhvuhxepmru")) - .withAdditionalProperties(mapOf("type", "pvmjcdoewbid"))), - new CredentialResourceInner().withId("yqwcabvnuil") - .withProperties(new Credential().withDescription("ulwgniiprglvawuw") - .withAnnotations(Arrays.asList("datafypiv", "datasbbjpmcu")) - .withAdditionalProperties(mapOf("type", "gygqwah"))))) - .withNextLink("yaswlpaugmr"); - model = BinaryData.fromObject(model).toObject(CredentialListResponse.class); - Assertions.assertEquals("nblwphqlkcc", model.value().get(0).id()); - Assertions.assertEquals("t", model.value().get(0).properties().description()); - Assertions.assertEquals("yaswlpaugmr", 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 27a047fbe5f0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.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.fluent.models.CredentialResourceInner; -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\":\"burzofigi\",\"description\":\"dywekoxylwysj\",\"annotations\":[\"dataapgqghkr\",\"datacvcxyumtoeuna\"],\"\":{\"xrzzilzedqwd\":\"datatleyztnelvced\",\"dvtittybi\":\"dataylofedxj\"}},\"name\":\"hjerwq\",\"type\":\"dntxxpcxneeyn\",\"etag\":\"rrqsqzkrxcj\",\"id\":\"gwhkqimqw\"}"; - - 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() - .createOrUpdateWithResponse("hpreattpcm", "ssl", "lctluczrs", - new CredentialResourceInner().withId("ppau") - .withProperties(new Credential().withDescription("qlskya") - .withAnnotations(Arrays.asList("dataz", "datar", "datanqrvwznhnpznoehn", "dataoeccjzyk")) - .withAdditionalProperties(mapOf("type", "mnjplazrsmwybo"))), - "wjochxon", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gwhkqimqw", response.id()); - Assertions.assertEquals("dywekoxylwysj", 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 907627f59291..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.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 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("srcwpgqmzkel", "t", "ec", 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 af2c90685b33..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\":\"jxtxaapsicoext\",\"description\":\"kbgzaxqpnnuwocib\",\"annotations\":[\"datanbwguhpvnzltpdhf\",\"datankeeyxkw\",\"datayhsuiwuoctof\",\"datarubtixrqzsfyxia\"],\"\":{\"qbnjrjrrosns\":\"datagcrpuagxkjx\",\"ml\":\"databdc\",\"ugyqgbqfa\":\"datauu\"}},\"name\":\"tn\",\"type\":\"dl\",\"etag\":\"ipgvdqtvnwkx\",\"id\":\"gxmmlmqrtg\"}"; - - 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("uwlxgtosifwi", "zwdozhuczsc", "ucdzcnwouopb", "riyyqxj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gxmmlmqrtg", response.id()); - Assertions.assertEquals("kbgzaxqpnnuwocib", 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 6723305d518d..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\":\"nniyg\",\"description\":\"u\",\"annotations\":[\"datafpbgcvnqrstgp\",\"datas\"],\"\":{\"ttamfrnumwos\":\"datagxak\",\"uxmrsogmscfno\":\"datatibcd\",\"iiif\":\"datajqvqcboky\"}},\"name\":\"tbwzc\",\"type\":\"auctltbtmqjkz\",\"etag\":\"sblismnwywod\",\"id\":\"r\"}]}"; - - 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("aiecqmt", "tvlarmfhaind", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("r", response.iterator().next().id()); - Assertions.assertEquals("u", 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 53fddc04754b..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\":\"wwwmhkruwaedrym\",\"\":{\"in\":\"dataq\",\"njdiqfliejhpcl\":\"datazduewihapfjii\"}}") - .toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("wwwmhkruwaedrym", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialReference model = new CredentialReference().withType(CredentialReferenceType.CREDENTIAL_REFERENCE) - .withReferenceName("wwwmhkruwaedrym") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("wwwmhkruwaedrym", 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 5b6a0dba714a..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\":\"jlrxwtoaukhfk\",\"description\":\"isizm\",\"annotations\":[\"datadsxjwuivedw\"],\"\":{\"mguaml\":\"dataeewxeiqbpsmg\"}},\"name\":\"l\",\"type\":\"msplzgaufcshhvn\",\"etag\":\"gnxkympqan\",\"id\":\"jk\"}") - .toObject(CredentialResourceInner.class); - Assertions.assertEquals("jk", model.id()); - Assertions.assertEquals("isizm", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialResourceInner model = new CredentialResourceInner().withId("jk") - .withProperties(new Credential().withDescription("isizm") - .withAnnotations(Arrays.asList("datadsxjwuivedw")) - .withAdditionalProperties(mapOf("type", "jlrxwtoaukhfk"))); - model = BinaryData.fromObject(model).toObject(CredentialResourceInner.class); - Assertions.assertEquals("jk", model.id()); - Assertions.assertEquals("isizm", 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 3d8ba92b5a0f..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\":\"tw\",\"description\":\"aoypny\",\"annotations\":[\"datahxcylhkgm\",\"datasghpx\",\"datacphdrwjjkhvyo\"],\"\":{\"hrpq\":\"dataluzvxnq\"}}") - .toObject(Credential.class); - Assertions.assertEquals("aoypny", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Credential model = new Credential().withDescription("aoypny") - .withAnnotations(Arrays.asList("datahxcylhkgm", "datasghpx", "datacphdrwjjkhvyo")) - .withAdditionalProperties(mapOf("type", "tw")); - model = BinaryData.fromObject(model).toObject(Credential.class); - Assertions.assertEquals("aoypny", 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 e78a6e51091d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.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.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\":\"c\",\"parameters\":{\"p\":\"datatumttmixe\",\"hvqnkwjhjut\":\"datarbazgou\",\"dflgqso\":\"dataxggn\",\"petsxetneher\":\"datauncmuvfukl\"}},{\"referenceName\":\"belms\",\"parameters\":{\"pjtduvsvgydtdt\":\"datahkzcdn\",\"izkwpo\":\"datamknzotm\"}},{\"referenceName\":\"askflrqw\",\"parameters\":{\"brzvnouth\":\"datakks\",\"fix\":\"datavvcbwudi\",\"rqivqzqcmrxh\":\"dataw\"}},{\"referenceName\":\"lozg\",\"parameters\":{\"yttxspaafs\":\"dataijcetcystrs\",\"u\":\"dataqoyoerlrqtqnx\"}}],\"datasets\":[{\"referenceName\":\"q\",\"parameters\":{\"kjzbxmgsxbk\":\"datamwbmqpbfjbsoljqk\",\"eobkmx\":\"datakambdoq\"}},{\"referenceName\":\"hmrbjh\",\"parameters\":{\"f\":\"dataxnwcejczi\",\"nkjyfy\":\"datadaq\"}},{\"referenceName\":\"mbtiugc\",\"parameters\":{\"uvu\":\"datahgryof\",\"uocmxtyjaxk\":\"datakrkibno\"}},{\"referenceName\":\"yovwtpm\",\"parameters\":{\"mzsvdrryzxhtvyth\":\"datas\"}}]}") - .toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("c", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("q", 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("c") - .withParameters(mapOf("p", "datatumttmixe", "hvqnkwjhjut", "datarbazgou", "dflgqso", "dataxggn", - "petsxetneher", "datauncmuvfukl")), - new LinkedServiceReference().withReferenceName("belms") - .withParameters(mapOf("pjtduvsvgydtdt", "datahkzcdn", "izkwpo", "datamknzotm")), - new LinkedServiceReference().withReferenceName("askflrqw") - .withParameters(mapOf("brzvnouth", "datakks", "fix", "datavvcbwudi", "rqivqzqcmrxh", "dataw")), - new LinkedServiceReference().withReferenceName("lozg") - .withParameters(mapOf("yttxspaafs", "dataijcetcystrs", "u", "dataqoyoerlrqtqnx")))) - .withDatasets(Arrays.asList( - new DatasetReference().withReferenceName("q") - .withParameters(mapOf("kjzbxmgsxbk", "datamwbmqpbfjbsoljqk", "eobkmx", "datakambdoq")), - new DatasetReference().withReferenceName("hmrbjh") - .withParameters(mapOf("f", "dataxnwcejczi", "nkjyfy", "datadaq")), - new DatasetReference().withReferenceName("mbtiugc") - .withParameters(mapOf("uvu", "datahgryof", "uocmxtyjaxk", "datakrkibno")), - new DatasetReference().withReferenceName("yovwtpm") - .withParameters(mapOf("mzsvdrryzxhtvyth", "datas")))); - model = BinaryData.fromObject(model).toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("c", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("q", 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 117cb0aacb85..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.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.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\":\"jg\",\"typeProperties\":{\"command\":\"datapvealwdltstxro\",\"resourceLinkedService\":{\"referenceName\":\"znkeeeakzysakr\",\"parameters\":{\"kdwpcmy\":\"datatajdfqchj\",\"eedoruiycvourqd\":\"datadrrkfhlaygwxo\"}},\"folderPath\":\"datasitrsppucxi\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"vtbl\",\"parameters\":{\"ld\":\"datalaldggw\"}},{\"referenceName\":\"elnvcfume\",\"parameters\":{\"apxnoogmfujeci\":\"datahiradklzgiqm\",\"nljy\":\"dataicmezexwzpgy\",\"bcufhkrvxxzhqouo\":\"dataumpydk\"}},{\"referenceName\":\"sczcksjwdwzfdfkg\",\"parameters\":{\"qdotbnfbn\":\"datawvmbsmxh\",\"sgw\":\"dataybotuqzjfkuqvter\",\"q\":\"dataykcvwqyfixw\",\"z\":\"dataxmiw\"}},{\"referenceName\":\"hilypuxbnvquxut\",\"parameters\":{\"nzqnqwk\":\"datasttmvai\",\"tid\":\"dataevbgjhmyzsqov\"}}],\"datasets\":[{\"referenceName\":\"yyajlnotmirg\",\"parameters\":{\"fxmefymdmfrf\":\"datacln\",\"aqzdzkyqqbqbw\":\"dataghn\"}}]},\"extendedProperties\":{\"tdeyoxtlq\":\"datatwmmvbahftkcey\",\"tepzrcqnsjqrgtap\":\"datatx\"},\"retentionTimeInDays\":\"datapzphkmwbtr\",\"autoUserSpecification\":\"datalondbvlq\"},\"linkedServiceName\":{\"referenceName\":\"wzyvxdgten\",\"parameters\":{\"kyctunfukehx\":\"datal\",\"rqfizqamxxp\":\"dataktlrcauadhprjsuw\",\"ftwtepuo\":\"dataylm\",\"hpvohvcaq\":\"datatgwwtaolfdgjrg\"}},\"policy\":{\"timeout\":\"datapkzznarnjueqo\",\"retry\":\"datajgvqzoihtncadrmt\",\"retryIntervalInSeconds\":853348175,\"secureInput\":false,\"secureOutput\":false,\"\":{\"igxndfrxnvwqy\":\"dataazbfrqo\",\"osscpjtiungjbfm\":\"datakl\"}},\"name\":\"esamhxkjjhflrgx\",\"description\":\"ghd\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"zyafa\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"nrsrrijcwnt\":\"datazxjjdboxu\",\"u\":\"datatqtbcwtcqjsvlz\",\"lkocjuajclrtssbk\":\"datatzbvdz\",\"iprjahgqzb\":\"datadgwpyljn\"}},{\"activity\":\"icyufnum\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"qhmuryajp\":\"datar\",\"ihbvfallpobzv\":\"datauflvazpizossqm\",\"h\":\"datantsfyntkfziitbw\",\"s\":\"datawwhml\"}},{\"activity\":\"bfg\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"pdwknxephw\":\"dataenzuu\",\"ymeqiqnjcajmxu\":\"datadwlo\"}},{\"activity\":\"xkvpleooom\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Failed\"],\"\":{\"uc\":\"datazvgog\"}}],\"userProperties\":[{\"name\":\"fobjlqnaxfvs\",\"value\":\"dataustr\"}],\"\":{\"bhgw\":\"dataxbjbknpzhfh\",\"qb\":\"datasl\",\"nepru\":\"datatcjbxochijwps\"}}") - .toObject(CustomActivity.class); - Assertions.assertEquals("esamhxkjjhflrgx", model.name()); - Assertions.assertEquals("ghd", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("zyafa", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fobjlqnaxfvs", model.userProperties().get(0).name()); - Assertions.assertEquals("wzyvxdgten", model.linkedServiceName().referenceName()); - Assertions.assertEquals(853348175, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("znkeeeakzysakr", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("vtbl", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("yyajlnotmirg", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivity model - = new CustomActivity().withName("esamhxkjjhflrgx") - .withDescription("ghd") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("zyafa") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("icyufnum") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bfg") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xkvpleooom") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("fobjlqnaxfvs").withValue("dataustr"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wzyvxdgten") - .withParameters(mapOf("kyctunfukehx", "datal", "rqfizqamxxp", "dataktlrcauadhprjsuw", "ftwtepuo", - "dataylm", "hpvohvcaq", "datatgwwtaolfdgjrg"))) - .withPolicy(new ActivityPolicy().withTimeout("datapkzznarnjueqo") - .withRetry("datajgvqzoihtncadrmt") - .withRetryIntervalInSeconds(853348175) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withCommand("datapvealwdltstxro") - .withResourceLinkedService(new LinkedServiceReference() - .withReferenceName("znkeeeakzysakr") - .withParameters(mapOf("kdwpcmy", "datatajdfqchj", "eedoruiycvourqd", "datadrrkfhlaygwxo"))) - .withFolderPath("datasitrsppucxi") - .withReferenceObjects(new CustomActivityReferenceObject() - .withLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("vtbl") - .withParameters(mapOf("ld", "datalaldggw")), - new LinkedServiceReference().withReferenceName("elnvcfume") - .withParameters(mapOf("apxnoogmfujeci", "datahiradklzgiqm", "nljy", "dataicmezexwzpgy", - "bcufhkrvxxzhqouo", "dataumpydk")), - new LinkedServiceReference().withReferenceName("sczcksjwdwzfdfkg") - .withParameters(mapOf("qdotbnfbn", "datawvmbsmxh", "sgw", "dataybotuqzjfkuqvter", "q", - "dataykcvwqyfixw", "z", "dataxmiw")), - new LinkedServiceReference().withReferenceName("hilypuxbnvquxut") - .withParameters(mapOf("nzqnqwk", "datasttmvai", "tid", "dataevbgjhmyzsqov")))) - .withDatasets(Arrays.asList(new DatasetReference().withReferenceName("yyajlnotmirg") - .withParameters(mapOf("fxmefymdmfrf", "datacln", "aqzdzkyqqbqbw", "dataghn"))))) - .withExtendedProperties(mapOf("tdeyoxtlq", "datatwmmvbahftkcey", "tepzrcqnsjqrgtap", "datatx")) - .withRetentionTimeInDays("datapzphkmwbtr") - .withAutoUserSpecification("datalondbvlq"); - model = BinaryData.fromObject(model).toObject(CustomActivity.class); - Assertions.assertEquals("esamhxkjjhflrgx", model.name()); - Assertions.assertEquals("ghd", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("zyafa", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fobjlqnaxfvs", model.userProperties().get(0).name()); - Assertions.assertEquals("wzyvxdgten", model.linkedServiceName().referenceName()); - Assertions.assertEquals(853348175, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("znkeeeakzysakr", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("vtbl", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("yyajlnotmirg", 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 1a9f5f01898a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.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.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\":\"datahikwahbzdgwkim\",\"resourceLinkedService\":{\"referenceName\":\"atrvjkxcrx\",\"parameters\":{\"erjerh\":\"datankujxdniape\",\"wx\":\"datagiud\"}},\"folderPath\":\"datatppjdyikdykxhx\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"uc\",\"parameters\":{\"kmmcvftijl\":\"datarpdgm\",\"aednczvnwyfzavsa\":\"datahlcrjynef\"}}],\"datasets\":[{\"referenceName\":\"hshyxhfejtywl\",\"parameters\":{\"qeeodfplwfsmpbw\":\"datas\",\"qmcaofxg\":\"dataphj\",\"xkxjrttzhnam\":\"datayvjefnlxqmtedzxu\"}},{\"referenceName\":\"jqynwqcov\",\"parameters\":{\"hb\":\"datarsurq\",\"yqasdvepld\":\"datadxkojorcm\",\"ubqcqnch\":\"datafxmpyvlfujsbcfog\"}},{\"referenceName\":\"zyjug\",\"parameters\":{\"vcpisvprumttr\":\"datablbri\"}}]},\"extendedProperties\":{\"anlm\":\"dataugxtxxwbj\",\"xplrtueg\":\"datamvegxgy\",\"vjuowkt\":\"datahqulnjeybgpjy\",\"dkydqcgedip\":\"databpv\"},\"retentionTimeInDays\":\"datazmvttttjmdtf\",\"autoUserSpecification\":\"dataxaeekomiesg\"}") - .toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("atrvjkxcrx", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("uc", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("hshyxhfejtywl", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivityTypeProperties model = new CustomActivityTypeProperties().withCommand("datahikwahbzdgwkim") - .withResourceLinkedService(new LinkedServiceReference().withReferenceName("atrvjkxcrx") - .withParameters(mapOf("erjerh", "datankujxdniape", "wx", "datagiud"))) - .withFolderPath("datatppjdyikdykxhx") - .withReferenceObjects(new CustomActivityReferenceObject() - .withLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("uc") - .withParameters(mapOf("kmmcvftijl", "datarpdgm", "aednczvnwyfzavsa", "datahlcrjynef")))) - .withDatasets(Arrays.asList( - new DatasetReference().withReferenceName("hshyxhfejtywl") - .withParameters(mapOf("qeeodfplwfsmpbw", "datas", "qmcaofxg", "dataphj", "xkxjrttzhnam", - "datayvjefnlxqmtedzxu")), - new DatasetReference().withReferenceName("jqynwqcov") - .withParameters(mapOf("hb", "datarsurq", "yqasdvepld", "datadxkojorcm", "ubqcqnch", - "datafxmpyvlfujsbcfog")), - new DatasetReference().withReferenceName("zyjug") - .withParameters(mapOf("vcpisvprumttr", "datablbri"))))) - .withExtendedProperties(mapOf("anlm", "dataugxtxxwbj", "xplrtueg", "datamvegxgy", "vjuowkt", - "datahqulnjeybgpjy", "dkydqcgedip", "databpv")) - .withRetentionTimeInDays("datazmvttttjmdtf") - .withAutoUserSpecification("dataxaeekomiesg"); - model = BinaryData.fromObject(model).toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("atrvjkxcrx", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("uc", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("hshyxhfejtywl", 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 b3143a57fbb3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.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.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\":\"drgtuaoou\",\"typeProperties\":\"datatjpsjwlpcxljz\",\"connectVia\":{\"referenceName\":\"afaxv\",\"parameters\":{\"tx\":\"datapbnrolgelsgnen\",\"rqahlbyjahbzbtlm\":\"datauwd\",\"mjyzice\":\"datacbwmvp\",\"bnduqgjibrxxiao\":\"datarlazcgwn\"}},\"description\":\"wu\",\"parameters\":{\"tgwadudok\":{\"type\":\"String\",\"defaultValue\":\"dataspugnv\"}},\"annotations\":[\"databozezxz\"],\"\":{\"qllt\":\"datargukqobo\",\"zqlyputawdmdikuf\":\"datalqufkrnrbnjkcol\",\"ujzofyldxk\":\"dataqvv\"}}") - .toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("afaxv", model.connectVia().referenceName()); - Assertions.assertEquals("wu", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tgwadudok").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataSourceLinkedService model = new CustomDataSourceLinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("afaxv") - .withParameters(mapOf("tx", "datapbnrolgelsgnen", "rqahlbyjahbzbtlm", "datauwd", "mjyzice", - "datacbwmvp", "bnduqgjibrxxiao", "datarlazcgwn"))) - .withDescription("wu") - .withParameters(mapOf("tgwadudok", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataspugnv"))) - .withAnnotations(Arrays.asList("databozezxz")) - .withTypeProperties("datatjpsjwlpcxljz"); - model = BinaryData.fromObject(model).toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("afaxv", model.connectVia().referenceName()); - Assertions.assertEquals("wu", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tgwadudok").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 2f5836a21f08..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.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.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\":\"owrer\",\"typeProperties\":\"datapulnrfcqufmcihp\",\"description\":\"xptch\",\"structure\":\"datayqqidqimlgbbfjm\",\"schema\":\"datajvxlhmpmh\",\"linkedServiceName\":{\"referenceName\":\"ftyaphq\",\"parameters\":{\"lsn\":\"datay\",\"mcqixuanccqvjf\":\"dataowm\"}},\"parameters\":{\"vmufzgug\":{\"type\":\"Bool\",\"defaultValue\":\"datamquxpjhcfaaradci\"},\"ssnqe\":{\"type\":\"Object\",\"defaultValue\":\"datawala\"},\"xxrwqfmdqecvtamq\":{\"type\":\"String\",\"defaultValue\":\"datatbptgcsma\"}},\"annotations\":[\"datanobfewwpsibx\",\"datavuqoqjrkblndyc\"],\"folder\":{\"name\":\"ycvtqnzjcy\"},\"\":{\"jdleajvmvvlooubs\":\"datahembtbwnalbadpi\",\"upfazusj\":\"dataxipjeopskgocjom\"}}") - .toObject(CustomDataset.class); - Assertions.assertEquals("xptch", model.description()); - Assertions.assertEquals("ftyaphq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("vmufzgug").type()); - Assertions.assertEquals("ycvtqnzjcy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataset model = new CustomDataset().withDescription("xptch") - .withStructure("datayqqidqimlgbbfjm") - .withSchema("datajvxlhmpmh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ftyaphq") - .withParameters(mapOf("lsn", "datay", "mcqixuanccqvjf", "dataowm"))) - .withParameters(mapOf("vmufzgug", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datamquxpjhcfaaradci"), - "ssnqe", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datawala"), - "xxrwqfmdqecvtamq", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatbptgcsma"))) - .withAnnotations(Arrays.asList("datanobfewwpsibx", "datavuqoqjrkblndyc")) - .withFolder(new DatasetFolder().withName("ycvtqnzjcy")) - .withTypeProperties("datapulnrfcqufmcihp"); - model = BinaryData.fromObject(model).toObject(CustomDataset.class); - Assertions.assertEquals("xptch", model.description()); - Assertions.assertEquals("ftyaphq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("vmufzgug").type()); - Assertions.assertEquals("ycvtqnzjcy", 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 18b9a08f80fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.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.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\":\"nyegh\",\"typeProperties\":{\"subjectBeginsWith\":\"rtlhpfuc\",\"subjectEndsWith\":\"waklflwqdj\",\"events\":[\"dataog\",\"databyks\",\"dataqxxy\"],\"scope\":\"rrixkobmrrnkdmn\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"lxnbbkbjnnzq\",\"name\":\"a\"},\"parameters\":{\"cllteuk\":\"dataxvl\",\"otgqgevielyho\":\"dataguc\"}},{\"pipelineReference\":{\"referenceName\":\"nzwhypjpypalptjp\",\"name\":\"dchey\"},\"parameters\":{\"bzmcprtanageh\":\"datasqxwqsszdwwk\",\"sjlilpicc\":\"datarhwkaatjssebyd\",\"afxoyddushvyj\":\"dataegtwstqgcjvklnrz\",\"lmxzdwpdwbnouk\":\"datahy\"}}],\"description\":\"m\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datak\",\"datadcs\"],\"\":{\"ldeq\":\"dataedfdzleaz\",\"q\":\"datafzyhikhnwseftlj\",\"ybe\":\"datapfk\"}}") - .toObject(CustomEventsTrigger.class); - Assertions.assertEquals("m", model.description()); - Assertions.assertEquals("lxnbbkbjnnzq", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("a", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("rtlhpfuc", model.subjectBeginsWith()); - Assertions.assertEquals("waklflwqdj", model.subjectEndsWith()); - Assertions.assertEquals("rrixkobmrrnkdmn", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTrigger model = new CustomEventsTrigger().withDescription("m") - .withAnnotations(Arrays.asList("datak", "datadcs")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("lxnbbkbjnnzq").withName("a")) - .withParameters(mapOf("cllteuk", "dataxvl", "otgqgevielyho", "dataguc")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("nzwhypjpypalptjp").withName("dchey")) - .withParameters(mapOf("bzmcprtanageh", "datasqxwqsszdwwk", "sjlilpicc", "datarhwkaatjssebyd", - "afxoyddushvyj", "dataegtwstqgcjvklnrz", "lmxzdwpdwbnouk", "datahy")))) - .withSubjectBeginsWith("rtlhpfuc") - .withSubjectEndsWith("waklflwqdj") - .withEvents(Arrays.asList("dataog", "databyks", "dataqxxy")) - .withScope("rrixkobmrrnkdmn"); - model = BinaryData.fromObject(model).toObject(CustomEventsTrigger.class); - Assertions.assertEquals("m", model.description()); - Assertions.assertEquals("lxnbbkbjnnzq", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("a", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("rtlhpfuc", model.subjectBeginsWith()); - Assertions.assertEquals("waklflwqdj", model.subjectEndsWith()); - Assertions.assertEquals("rrixkobmrrnkdmn", 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 9d4df476b837..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.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.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\":\"xith\",\"subjectEndsWith\":\"jxtobeqgzcadoq\",\"events\":[\"datafllqmu\",\"dataeolcgqjtv\",\"dataalkmwvgdfutds\",\"datajtuq\"],\"scope\":\"ojpauiccja\"}") - .toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("xith", model.subjectBeginsWith()); - Assertions.assertEquals("jxtobeqgzcadoq", model.subjectEndsWith()); - Assertions.assertEquals("ojpauiccja", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTriggerTypeProperties model = new CustomEventsTriggerTypeProperties().withSubjectBeginsWith("xith") - .withSubjectEndsWith("jxtobeqgzcadoq") - .withEvents(Arrays.asList("datafllqmu", "dataeolcgqjtv", "dataalkmwvgdfutds", "datajtuq")) - .withScope("ojpauiccja"); - model = BinaryData.fromObject(model).toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("xith", model.subjectBeginsWith()); - Assertions.assertEquals("jxtobeqgzcadoq", model.subjectEndsWith()); - Assertions.assertEquals("ojpauiccja", 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 76ccd0d3fa70..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\":\"zplhaljom\"}").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 3e60e5c4d355..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\":\"datalbungrkjbdaxttoe\",\"defaultValue\":\"dataohipijfywmmqz\"}") - .toObject(DWCopyCommandDefaultValue.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandDefaultValue model = new DWCopyCommandDefaultValue().withColumnName("datalbungrkjbdaxttoe") - .withDefaultValue("dataohipijfywmmqz"); - 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 cd57956bdb8b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.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.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\":\"datahozkmi\",\"defaultValue\":\"dataxdnugbisfnbtqd\"},{\"columnName\":\"dataw\",\"defaultValue\":\"datadroi\"},{\"columnName\":\"databulvk\",\"defaultValue\":\"datayhnfqnekpxd\"},{\"columnName\":\"datae\",\"defaultValue\":\"dataf\"}],\"additionalOptions\":{\"xjdolobtzr\":\"ahnsmktkhlq\",\"lpbzo\":\"xnlaurviyntc\",\"fkte\":\"tfbjk\"}}") - .toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("ahnsmktkhlq", model.additionalOptions().get("xjdolobtzr")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandSettings model = new DWCopyCommandSettings() - .withDefaultValues(Arrays.asList( - new DWCopyCommandDefaultValue().withColumnName("datahozkmi").withDefaultValue("dataxdnugbisfnbtqd"), - new DWCopyCommandDefaultValue().withColumnName("dataw").withDefaultValue("datadroi"), - new DWCopyCommandDefaultValue().withColumnName("databulvk").withDefaultValue("datayhnfqnekpxd"), - new DWCopyCommandDefaultValue().withColumnName("datae").withDefaultValue("dataf"))) - .withAdditionalOptions(mapOf("xjdolobtzr", "ahnsmktkhlq", "lpbzo", "xnlaurviyntc", "fkte", "tfbjk")); - model = BinaryData.fromObject(model).toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("ahnsmktkhlq", model.additionalOptions().get("xjdolobtzr")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[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 5df6675d638e..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\":\"pvwgfstmhqykizmd\",\"rowLimits\":930902009,\"columns\":[\"fcluqvo\",\"mycjimryvwgcwwp\"],\"expression\":\"zgwe\"}") - .toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("pvwgfstmhqykizmd", model.streamName()); - Assertions.assertEquals(930902009, model.rowLimits()); - Assertions.assertEquals("fcluqvo", model.columns().get(0)); - Assertions.assertEquals("zgwe", model.expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandPayload model = new DataFlowDebugCommandPayload().withStreamName("pvwgfstmhqykizmd") - .withRowLimits(930902009) - .withColumns(Arrays.asList("fcluqvo", "mycjimryvwgcwwp")) - .withExpression("zgwe"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("pvwgfstmhqykizmd", model.streamName()); - Assertions.assertEquals(930902009, model.rowLimits()); - Assertions.assertEquals("fcluqvo", model.columns().get(0)); - Assertions.assertEquals("zgwe", 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 e5c653728e27..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\":\"ldpuviy\",\"command\":\"executeExpressionQuery\",\"commandPayload\":{\"streamName\":\"beolh\",\"rowLimits\":1768939163,\"columns\":[\"mxuq\",\"bsxtkcudfbsfarfs\"],\"expression\":\"wlkjxn\"}}") - .toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("ldpuviy", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("beolh", model.commandPayload().streamName()); - Assertions.assertEquals(1768939163, model.commandPayload().rowLimits()); - Assertions.assertEquals("mxuq", model.commandPayload().columns().get(0)); - Assertions.assertEquals("wlkjxn", model.commandPayload().expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandRequest model = new DataFlowDebugCommandRequest().withSessionId("ldpuviy") - .withCommand(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("beolh") - .withRowLimits(1768939163) - .withColumns(Arrays.asList("mxuq", "bsxtkcudfbsfarfs")) - .withExpression("wlkjxn")); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("ldpuviy", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("beolh", model.commandPayload().streamName()); - Assertions.assertEquals(1768939163, model.commandPayload().rowLimits()); - Assertions.assertEquals("mxuq", model.commandPayload().columns().get(0)); - Assertions.assertEquals("wlkjxn", 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 23e9dbe7755c..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\":\"dsxwefoh\",\"data\":\"bvopwndyqle\"}") - .toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("dsxwefoh", model.status()); - Assertions.assertEquals("bvopwndyqle", model.data()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandResponseInner model - = new DataFlowDebugCommandResponseInner().withStatus("dsxwefoh").withData("bvopwndyqle"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("dsxwefoh", model.status()); - Assertions.assertEquals("bvopwndyqle", 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 0792ac9c0e96..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.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.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\":\"zrxklobd\",\"rowLimit\":61809023,\"\":{\"op\":\"datamkmlmvevfx\",\"hrdd\":\"datahbzxli\",\"nzqcy\":\"datatfgxqbawpcb\"}}],\"parameters\":{\"ofyuicd\":\"datap\",\"ybww\":\"datazb\",\"muvapc\":\"databdvibidmhmwffpl\"},\"datasetParameters\":\"datacrrvweyo\"}") - .toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("zrxklobd", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(61809023, 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("zrxklobd") - .withRowLimit(61809023) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("ofyuicd", "datap", "ybww", "datazb", "muvapc", "databdvibidmhmwffpl")) - .withDatasetParameters("datacrrvweyo"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("zrxklobd", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(61809023, 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 38eacf1534ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"kdk\",\"dataFlow\":{\"properties\":{\"type\":\"jnnawtqa\",\"description\":\"xuckpggqoweyir\",\"annotations\":[\"dataisngwflqqmpizru\"],\"folder\":{\"name\":\"qxpxiwfcngjsaa\"}},\"name\":\"ixtmkzjvkviirhgf\"},\"dataFlows\":[{\"properties\":{\"type\":\"dpgra\",\"description\":\"vzbglbyvi\",\"annotations\":[\"datatbrxkjz\",\"datargxffmshkw\",\"databkgozxwopdbydpi\",\"dataqaclnapxbiy\"],\"folder\":{\"name\":\"gjkn\"}},\"name\":\"mfcttux\"},{\"properties\":{\"type\":\"yilflqoiquvrehmr\",\"description\":\"hvsujztc\",\"annotations\":[\"dataqjtwhauu\",\"datafprnjl\",\"datatlxs\"],\"folder\":{\"name\":\"ddoui\"}},\"name\":\"mowaziynknlqwzdv\"},{\"properties\":{\"type\":\"w\",\"description\":\"qszdtmaajquhuxyl\",\"annotations\":[\"datam\",\"dataygjbmzyospspsh\"],\"folder\":{\"name\":\"kyjpmspbps\"}},\"name\":\"fppyogtieyujtvcz\"}],\"datasets\":[{\"properties\":{\"type\":\"xrx\",\"description\":\"njdxvglnkvxl\",\"structure\":\"dataaglqivbgkcvkh\",\"schema\":\"datavuqd\",\"linkedServiceName\":{\"referenceName\":\"lvoniy\",\"parameters\":{\"hjknidibg\":\"dataubcpzgpxti\",\"ik\":\"datajxgpnrhgovfg\",\"wjrmzvuporqzd\":\"datamhha\",\"vxcnqmxqps\":\"datauydzvk\"}},\"parameters\":{\"dhbemzqkzszu\":{\"type\":\"Int\",\"defaultValue\":\"datakhlg\"},\"ljfp\":{\"type\":\"Int\",\"defaultValue\":\"datatglxx\"}},\"annotations\":[\"datacrmnzhrgmqgjs\",\"datavpqcb\"],\"folder\":{\"name\":\"bodthsqqgvri\"},\"\":{\"ousxauzlwvsgmw\":\"datakclacjfrn\"}},\"name\":\"qf\"}],\"linkedServices\":[{\"properties\":{\"type\":\"uxmmkjsvthnwp\",\"connectVia\":{\"referenceName\":\"ekov\",\"parameters\":{\"c\":\"databiattgplucfotan\",\"ugswvx\":\"datahnykz\"}},\"description\":\"mzqwmvtxnjmxmcu\",\"parameters\":{\"npdkv\":{\"type\":\"SecureString\",\"defaultValue\":\"datavclx\"},\"uzphdugnei\":{\"type\":\"Array\",\"defaultValue\":\"databuiyji\"}},\"annotations\":[\"datagox\",\"datajiuqhibtozi\"],\"\":{\"tvqylkmqpzoyhlfb\":\"datajedmurrxxgewp\",\"xoe\":\"datagwgcl\",\"jqlafcbahhpzp\":\"dataqinjipnwjf\",\"kkholvdndvia\":\"datafoiyjwpfilk\"}},\"name\":\"gphuartvtiu\"},{\"properties\":{\"type\":\"efchn\",\"connectVia\":{\"referenceName\":\"ahmnxhkxjqirw\",\"parameters\":{\"i\":\"dataooxf\",\"rsnewmozqvbubqma\":\"datahx\",\"taboidvmf\":\"datahsycxhxzgaz\"}},\"description\":\"ppu\",\"parameters\":{\"juahokqto\":{\"type\":\"Int\",\"defaultValue\":\"datapdfgkmtdherngbt\"}},\"annotations\":[\"datauxofshfphwpnulai\",\"datawzejywhslw\",\"dataojpllndnpdwrpqaf\"],\"\":{\"yetefyp\":\"datagsnnf\"}},\"name\":\"octfjgtixrjvzuyt\"}],\"staging\":{\"linkedService\":{\"referenceName\":\"lmuowo\",\"parameters\":{\"p\":\"datauir\"}},\"folderPath\":\"datanszonwpngaj\"},\"debugSettings\":{\"sourceSettings\":[{\"sourceName\":\"jawrtmjfjmyc\",\"rowLimit\":837645611,\"\":{\"khenlus\":\"datacoxovn\",\"jxtxrdc\":\"datanrd\"}},{\"sourceName\":\"jvidttge\",\"rowLimit\":1531674368,\"\":{\"s\":\"datayjtcvuwk\",\"uughtuqfecjxeyg\":\"datazies\"}}],\"parameters\":{\"cbuewmrswnjlxuz\":\"dataxu\",\"aqehg\":\"datahwpusxj\",\"tu\":\"datadohzjq\"},\"datasetParameters\":\"dataigebxncnwfepb\"},\"\":{\"g\":\"datafmxjg\"}}") - .toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("kdk", model.sessionId()); - Assertions.assertEquals("ixtmkzjvkviirhgf", model.dataFlow().name()); - Assertions.assertEquals("xuckpggqoweyir", model.dataFlow().properties().description()); - Assertions.assertEquals("qxpxiwfcngjsaa", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("mfcttux", model.dataFlows().get(0).name()); - Assertions.assertEquals("vzbglbyvi", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("gjkn", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("qf", model.datasets().get(0).name()); - Assertions.assertEquals("njdxvglnkvxl", model.datasets().get(0).properties().description()); - Assertions.assertEquals("lvoniy", model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, - model.datasets().get(0).properties().parameters().get("dhbemzqkzszu").type()); - Assertions.assertEquals("bodthsqqgvri", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("gphuartvtiu", model.linkedServices().get(0).name()); - Assertions.assertEquals("ekov", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("mzqwmvtxnjmxmcu", model.linkedServices().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.linkedServices().get(0).properties().parameters().get("npdkv").type()); - Assertions.assertEquals("lmuowo", model.staging().linkedService().referenceName()); - Assertions.assertEquals("jawrtmjfjmyc", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(837645611, model.debugSettings().sourceSettings().get(0).rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugPackage model - = new DataFlowDebugPackage().withSessionId("kdk") - .withDataFlow(new DataFlowDebugResource().withName("ixtmkzjvkviirhgf") - .withProperties(new DataFlow().withDescription("xuckpggqoweyir") - .withAnnotations(Arrays.asList("dataisngwflqqmpizru")) - .withFolder(new DataFlowFolder().withName("qxpxiwfcngjsaa")))) - .withDataFlows(Arrays.asList( - new DataFlowDebugResource().withName("mfcttux") - .withProperties(new DataFlow().withDescription("vzbglbyvi") - .withAnnotations(Arrays.asList("datatbrxkjz", "datargxffmshkw", "databkgozxwopdbydpi", - "dataqaclnapxbiy")) - .withFolder(new DataFlowFolder().withName("gjkn"))), - new DataFlowDebugResource().withName("mowaziynknlqwzdv") - .withProperties(new DataFlow().withDescription("hvsujztc") - .withAnnotations(Arrays.asList("dataqjtwhauu", "datafprnjl", "datatlxs")) - .withFolder(new DataFlowFolder().withName("ddoui"))), - new DataFlowDebugResource() - .withName("fppyogtieyujtvcz") - .withProperties(new DataFlow() - .withDescription("qszdtmaajquhuxyl") - .withAnnotations(Arrays.asList("datam", "dataygjbmzyospspsh")) - .withFolder(new DataFlowFolder().withName("kyjpmspbps"))))) - .withDatasets(Arrays.asList(new DatasetDebugResource().withName("qf") - .withProperties(new Dataset().withDescription("njdxvglnkvxl") - .withStructure("dataaglqivbgkcvkh") - .withSchema("datavuqd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lvoniy") - .withParameters(mapOf("hjknidibg", "dataubcpzgpxti", "ik", "datajxgpnrhgovfg", - "wjrmzvuporqzd", "datamhha", "vxcnqmxqps", "datauydzvk"))) - .withParameters(mapOf("dhbemzqkzszu", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datakhlg"), - "ljfp", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datatglxx"))) - .withAnnotations(Arrays.asList("datacrmnzhrgmqgjs", "datavpqcb")) - .withFolder(new DatasetFolder().withName("bodthsqqgvri")) - .withAdditionalProperties(mapOf("type", "xrx"))))) - .withLinkedServices( - Arrays.asList( - new LinkedServiceDebugResource().withName("gphuartvtiu") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("ekov") - .withParameters(mapOf("c", "databiattgplucfotan", "ugswvx", "datahnykz"))) - .withDescription("mzqwmvtxnjmxmcu") - .withParameters(mapOf("npdkv", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datavclx"), - "uzphdugnei", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("databuiyji"))) - .withAnnotations(Arrays.asList("datagox", "datajiuqhibtozi")) - .withAdditionalProperties(mapOf("type", "uxmmkjsvthnwp"))), - new LinkedServiceDebugResource().withName("octfjgtixrjvzuyt") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("ahmnxhkxjqirw") - .withParameters(mapOf("i", "dataooxf", "rsnewmozqvbubqma", "datahx", "taboidvmf", - "datahsycxhxzgaz"))) - .withDescription("ppu") - .withParameters(mapOf("juahokqto", - new ParameterSpecification().withType(ParameterType.INT) - .withDefaultValue("datapdfgkmtdherngbt"))) - .withAnnotations( - Arrays.asList("datauxofshfphwpnulai", "datawzejywhslw", "dataojpllndnpdwrpqaf")) - .withAdditionalProperties(mapOf("type", "efchn"))))) - .withStaging(new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference().withReferenceName("lmuowo").withParameters(mapOf("p", "datauir"))) - .withFolderPath("datanszonwpngaj")) - .withDebugSettings(new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("jawrtmjfjmyc") - .withRowLimit(837645611) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("jvidttge") - .withRowLimit(1531674368) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("cbuewmrswnjlxuz", "dataxu", "aqehg", "datahwpusxj", "tu", "datadohzjq")) - .withDatasetParameters("dataigebxncnwfepb")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("kdk", model.sessionId()); - Assertions.assertEquals("ixtmkzjvkviirhgf", model.dataFlow().name()); - Assertions.assertEquals("xuckpggqoweyir", model.dataFlow().properties().description()); - Assertions.assertEquals("qxpxiwfcngjsaa", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("mfcttux", model.dataFlows().get(0).name()); - Assertions.assertEquals("vzbglbyvi", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("gjkn", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("qf", model.datasets().get(0).name()); - Assertions.assertEquals("njdxvglnkvxl", model.datasets().get(0).properties().description()); - Assertions.assertEquals("lvoniy", model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, - model.datasets().get(0).properties().parameters().get("dhbemzqkzszu").type()); - Assertions.assertEquals("bodthsqqgvri", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("gphuartvtiu", model.linkedServices().get(0).name()); - Assertions.assertEquals("ekov", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("mzqwmvtxnjmxmcu", model.linkedServices().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.linkedServices().get(0).properties().parameters().get("npdkv").type()); - Assertions.assertEquals("lmuowo", model.staging().linkedService().referenceName()); - Assertions.assertEquals("jawrtmjfjmyc", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(837645611, 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 e6383fbf92bf..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\":\"bgdlfgtdysna\",\"description\":\"flq\",\"annotations\":[\"dataq\",\"dataamz\",\"datarwd\"],\"folder\":{\"name\":\"eqyj\"}},\"name\":\"zi\"}") - .toObject(DataFlowDebugResource.class); - Assertions.assertEquals("zi", model.name()); - Assertions.assertEquals("flq", model.properties().description()); - Assertions.assertEquals("eqyj", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugResource model = new DataFlowDebugResource().withName("zi") - .withProperties(new DataFlow().withDescription("flq") - .withAnnotations(Arrays.asList("dataq", "dataamz", "datarwd")) - .withFolder(new DataFlowFolder().withName("eqyj"))); - model = BinaryData.fromObject(model).toObject(DataFlowDebugResource.class); - Assertions.assertEquals("zi", model.name()); - Assertions.assertEquals("flq", model.properties().description()); - Assertions.assertEquals("eqyj", 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 a1bf606aad79..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\":\"lyrtltlaprlt\",\"computeType\":\"atbhjmznn\",\"coreCount\":998957841,\"nodeCount\":421693668,\"integrationRuntimeName\":\"ala\",\"sessionId\":\"lagun\",\"startTime\":\"gfebwlnb\",\"timeToLiveInMinutes\":1797453594,\"lastActivityTime\":\"e\",\"\":{\"yyzglgouwtlmjjy\":\"datazqavbpdqmjx\",\"eytu\":\"dataojqtobaxk\",\"snkq\":\"datalbfjkwr\",\"hdenxaulk\":\"datahsyrqunj\"}}") - .toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("lyrtltlaprlt", model.dataFlowName()); - Assertions.assertEquals("atbhjmznn", model.computeType()); - Assertions.assertEquals(998957841, model.coreCount()); - Assertions.assertEquals(421693668, model.nodeCount()); - Assertions.assertEquals("ala", model.integrationRuntimeName()); - Assertions.assertEquals("lagun", model.sessionId()); - Assertions.assertEquals("gfebwlnb", model.startTime()); - Assertions.assertEquals(1797453594, model.timeToLiveInMinutes()); - Assertions.assertEquals("e", model.lastActivityTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugSessionInfoInner model = new DataFlowDebugSessionInfoInner().withDataFlowName("lyrtltlaprlt") - .withComputeType("atbhjmznn") - .withCoreCount(998957841) - .withNodeCount(421693668) - .withIntegrationRuntimeName("ala") - .withSessionId("lagun") - .withStartTime("gfebwlnb") - .withTimeToLiveInMinutes(1797453594) - .withLastActivityTime("e") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("lyrtltlaprlt", model.dataFlowName()); - Assertions.assertEquals("atbhjmznn", model.computeType()); - Assertions.assertEquals(998957841, model.coreCount()); - Assertions.assertEquals(421693668, model.nodeCount()); - Assertions.assertEquals("ala", model.integrationRuntimeName()); - Assertions.assertEquals("lagun", model.sessionId()); - Assertions.assertEquals("gfebwlnb", model.startTime()); - Assertions.assertEquals(1797453594, model.timeToLiveInMinutes()); - Assertions.assertEquals("e", 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 2d8fc4db2f8d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights 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\":\"cs\"}"; - - 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("jqzoabmuymaf", "ytbmfnkmcq", - new DataFlowDebugPackage().withSessionId("f") - .withDataFlow(new DataFlowDebugResource().withName("giwzzgaxi") - .withProperties(new DataFlow().withDescription("ktnadjz") - .withAnnotations( - Arrays.asList("datajlfyum", "datalntyilsiqdunkzad", "datadiqbtfam", "databkhqdf")) - .withFolder(new DataFlowFolder().withName("hcpijri")))) - .withDataFlows( - Arrays.asList(new DataFlowDebugResource().withName("ov") - .withProperties(new DataFlow().withDescription("il") - .withAnnotations(Arrays.asList("datacptthwmuyqgbma")) - .withFolder(new DataFlowFolder().withName("trvcbwt"))))) - .withDatasets(Arrays.asList(new DatasetDebugResource() - .withName("mcuuztrrmsjr") - .withProperties(new Dataset() - .withDescription("pnbfvplztovpikik") - .withStructure("datavuk") - .withSchema("dataeejxqoiozap") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xuytalrzrpkmv") - .withParameters(mapOf("kfvmmszwqwthuviq", "datawhw", "czn", "datagbsdvbrz", - "yvllkskvnr", "datasrttfral"))) - .withParameters(mapOf("rxrkpy", new ParameterSpecification().withType(ParameterType.BOOL), - "kvwtphdkdzjdrijo", new ParameterSpecification().withType(ParameterType.INT), "nwnx", - new ParameterSpecification().withType(ParameterType.FLOAT))) - .withAnnotations(Arrays.asList("datacoemx", "datalhqgqjrs", "datanfyzl")) - .withFolder(new DatasetFolder().withName("kvpvdwylg")) - .withAdditionalProperties(mapOf("type", "fbq"))))) - .withLinkedServices(Arrays.asList( - new LinkedServiceDebugResource().withName("vbxxtgyadifves") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("xnzerrfaumpgjuls") - .withParameters(mapOf("lpisfkd", "datajmgfmurrg", "pxlskjtdcgwuyx", "datakgrj", - "ysqwoi", "datacihtonesnurshfzk"))) - .withDescription("bqxbu") - .withParameters( - mapOf("ebhfhvpopctw", new ParameterSpecification().withType(ParameterType.FLOAT), - "jl", new ParameterSpecification().withType(ParameterType.SECURE_STRING), - "yaxnsfwsfdeqp", new ParameterSpecification().withType(ParameterType.STRING), - "hymyim", new ParameterSpecification().withType(ParameterType.FLOAT))) - .withAnnotations( - Arrays.asList("dataolerxdeuckwnwbh", "datatevnpqtjejqkz", "datawwyrrttsp")) - .withAdditionalProperties(mapOf("type", "oosq"))), - new LinkedServiceDebugResource().withName("pthnkjades") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("c") - .withParameters(mapOf("jxthsqlxsx", "datakareusxbcxhytkiq", "xegexrzzpcuas", - "datagzcjie", "uxtkiqcrhgtir", "dataaobapfxjedpvw"))) - .withDescription("bpdsxgxnnj") - .withParameters(mapOf("t", new ParameterSpecification().withType(ParameterType.BOOL))) - .withAnnotations(Arrays.asList("datalykelxpyzpqh", "datacwdiiecptcd")) - .withAdditionalProperties(mapOf("type", "jwdfowjva"))), - new LinkedServiceDebugResource().withName("fsmkfxahfvfpmztb") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference().withReferenceName("pbdmqhg") - .withParameters(mapOf("tjqbhenpfqhupbty", "dataxexvdlivlgu", "lmfrvgckjou", - "datawobydi"))) - .withDescription("hrefopdc") - .withParameters(mapOf("ilfgdngczk", - new ParameterSpecification().withType(ParameterType.ARRAY), "gearrrbll", - new ParameterSpecification().withType(ParameterType.SECURE_STRING), "okkgutpqn", - new ParameterSpecification().withType(ParameterType.FLOAT))) - .withAnnotations(Arrays.asList("datajdofyhookx")) - .withAdditionalProperties(mapOf("type", "xs"))))) - .withStaging(new DataFlowStagingInfo() - .withLinkedService(new LinkedServiceReference().withReferenceName("scwiwzowshqrjjpx") - .withParameters(mapOf("dniwtvoolonlc", "datadlxzx", "fuvtum", "datacmrybwuexszpgk", - "lqklcfvvsebfjoyb", "dataghliny", "xlwhiqfjptytpchd", "dataowttraol"))) - .withFolderPath("datakrk")) - .withDebugSettings(new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList(new DataFlowSourceSetting().withSourceName("ienothtinqshd") - .withRowLimit(1482317078) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("ozcmffygaxbsh", "dataqhkgfxzwjoz")) - .withDatasetParameters("datamhs")) - .withAdditionalProperties(mapOf()), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("cs", 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 44539418f03d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.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.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.IntegrationRuntimeDebugResource; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; -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 DataFlowDebugSessionsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr = "{\"status\":\"yputnywwtfnx\",\"sessionId\":\"punowvavd\"}"; - - 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("prwgbvdtgaha", "szynsxxnljfsfxtt", - new CreateDataFlowDebugSessionRequest().withComputeType("edgsceme") - .withCoreCount(2066654081) - .withTimeToLive(948042645) - .withIntegrationRuntime(new IntegrationRuntimeDebugResource().withName("dmtylq") - .withProperties(new SelfHostedIntegrationRuntime().withDescription("eh"))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yputnywwtfnx", response.status()); - Assertions.assertEquals("punowvavd", response.sessionId()); - } -} 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 efa28c5ac03a..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("nobfcz", "qglzhsfkimzr", - new DeleteDataFlowDebugSessionRequest().withSessionId("okaoqeayokz"), 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 d7999640dc26..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\":\"fvx\",\"data\":\"cribmslcgntxdkq\"}"; - - 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("rzqkwmmci", "qejbuhspqysdi", - new DataFlowDebugCommandRequest().withSessionId("cbuvhdpi") - .withCommand(DataFlowDebugCommandType.EXECUTE_PREVIEW_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("vcrrenrbums") - .withRowLimits(1574150737) - .withColumns(Arrays.asList("kyaldb", "skfstdt", "hhrvsgutugjsjmv", "asisnfwpnikr")) - .withExpression("lykmgjf")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("fvx", response.status()); - Assertions.assertEquals("cribmslcgntxdkq", 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 e65f801de48b..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\":\"nub\",\"computeType\":\"ofihcgyrngbrfyt\",\"coreCount\":1863481234,\"nodeCount\":1781382045,\"integrationRuntimeName\":\"bsr\",\"sessionId\":\"woeuqqgxzhdl\",\"startTime\":\"amearg\",\"timeToLiveInMinutes\":1203253385,\"lastActivityTime\":\"n\",\"\":{\"ht\":\"datacvvyfrf\"}}]}"; - - 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("xv", "ybidesrzp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nub", response.iterator().next().dataFlowName()); - Assertions.assertEquals("ofihcgyrngbrfyt", response.iterator().next().computeType()); - Assertions.assertEquals(1863481234, response.iterator().next().coreCount()); - Assertions.assertEquals(1781382045, response.iterator().next().nodeCount()); - Assertions.assertEquals("bsr", response.iterator().next().integrationRuntimeName()); - Assertions.assertEquals("woeuqqgxzhdl", response.iterator().next().sessionId()); - Assertions.assertEquals("amearg", response.iterator().next().startTime()); - Assertions.assertEquals(1203253385, response.iterator().next().timeToLiveInMinutes()); - Assertions.assertEquals("n", 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 f9f7e04c6432..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\":\"lhslnelxieixyn\"}").toObject(DataFlowFolder.class); - Assertions.assertEquals("lhslnelxieixyn", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowFolder model = new DataFlowFolder().withName("lhslnelxieixyn"); - model = BinaryData.fromObject(model).toObject(DataFlowFolder.class); - Assertions.assertEquals("lhslnelxieixyn", 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 45d2ee007aec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.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.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\":\"ecwcrojphslhcawj\",\"description\":\"i\",\"annotations\":[\"datafmvigorqjbttzh\",\"dataaglkafhon\",\"datajuj\"],\"folder\":{\"name\":\"kpzvcpopmxelnwc\"}},\"name\":\"yjede\",\"type\":\"mlfmkqs\",\"etag\":\"zuawxtzxpuamwa\",\"id\":\"xrvxcushsphai\"},{\"properties\":{\"type\":\"xyasflvgsgzw\",\"description\":\"akoi\",\"annotations\":[\"datasmjblmljhlnym\",\"dataotqyry\"],\"folder\":{\"name\":\"bmqqvxmvw\"}},\"name\":\"tayx\",\"type\":\"supe\",\"etag\":\"lzqnhcvs\",\"id\":\"tnzoibgsxgnxfy\"},{\"properties\":{\"type\":\"nmpqoxwdofdb\",\"description\":\"qxeiiqbimhtmwwi\",\"annotations\":[\"datahfqpofv\",\"databcblemb\",\"datakbwvqvxkdiv\"],\"folder\":{\"name\":\"ebwtswb\"}},\"name\":\"wfmdurage\",\"type\":\"zvcjfelisdjubggb\",\"etag\":\"gkxkbsazgakg\",\"id\":\"yrcmjdmspofap\"},{\"properties\":{\"type\":\"hryl\",\"description\":\"ofrzgb\",\"annotations\":[\"datadmstk\"],\"folder\":{\"name\":\"v\"}},\"name\":\"c\",\"type\":\"iznk\",\"etag\":\"f\",\"id\":\"snvpdibmi\"}],\"nextLink\":\"stbz\"}") - .toObject(DataFlowListResponse.class); - Assertions.assertEquals("xrvxcushsphai", model.value().get(0).id()); - Assertions.assertEquals("i", model.value().get(0).properties().description()); - Assertions.assertEquals("kpzvcpopmxelnwc", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("stbz", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowListResponse model = new DataFlowListResponse().withValue(Arrays.asList( - new DataFlowResourceInner().withId("xrvxcushsphai") - .withProperties(new DataFlow().withDescription("i") - .withAnnotations(Arrays.asList("datafmvigorqjbttzh", "dataaglkafhon", "datajuj")) - .withFolder(new DataFlowFolder().withName("kpzvcpopmxelnwc"))), - new DataFlowResourceInner().withId("tnzoibgsxgnxfy") - .withProperties(new DataFlow().withDescription("akoi") - .withAnnotations(Arrays.asList("datasmjblmljhlnym", "dataotqyry")) - .withFolder(new DataFlowFolder().withName("bmqqvxmvw"))), - new DataFlowResourceInner().withId("yrcmjdmspofap") - .withProperties(new DataFlow().withDescription("qxeiiqbimhtmwwi") - .withAnnotations(Arrays.asList("datahfqpofv", "databcblemb", "datakbwvqvxkdiv")) - .withFolder(new DataFlowFolder().withName("ebwtswb"))), - new DataFlowResourceInner().withId("snvpdibmi") - .withProperties(new DataFlow().withDescription("ofrzgb") - .withAnnotations(Arrays.asList("datadmstk")) - .withFolder(new DataFlowFolder().withName("v"))))) - .withNextLink("stbz"); - model = BinaryData.fromObject(model).toObject(DataFlowListResponse.class); - Assertions.assertEquals("xrvxcushsphai", model.value().get(0).id()); - Assertions.assertEquals("i", model.value().get(0).properties().description()); - Assertions.assertEquals("kpzvcpopmxelnwc", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("stbz", 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 319e919221e0..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\":\"dqaolfylnkk\",\"datasetParameters\":\"datapjvlywltmfwo\",\"parameters\":{\"fnqzocr\":\"datawhlwy\"},\"\":{\"ncaqttiekoifu\":\"dataczeuntgx\",\"yri\":\"datanyttzgix\",\"lqtxnrflkndrn\":\"datalgmgbe\"}}") - .toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("dqaolfylnkk", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowReference model = new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dqaolfylnkk") - .withDatasetParameters("datapjvlywltmfwo") - .withParameters(mapOf("fnqzocr", "datawhlwy")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("dqaolfylnkk", 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 404320eb2247..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\":\"dsdaultxijjumf\",\"description\":\"azlnqnmcjngzqdqx\",\"annotations\":[\"datawgnyfusfzsvtui\"],\"folder\":{\"name\":\"ajqglcf\"}},\"name\":\"l\",\"type\":\"ryxynqnzrd\",\"etag\":\"ovw\",\"id\":\"nptgoeiybba\"}") - .toObject(DataFlowResourceInner.class); - Assertions.assertEquals("nptgoeiybba", model.id()); - Assertions.assertEquals("azlnqnmcjngzqdqx", model.properties().description()); - Assertions.assertEquals("ajqglcf", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowResourceInner model = new DataFlowResourceInner().withId("nptgoeiybba") - .withProperties(new DataFlow().withDescription("azlnqnmcjngzqdqx") - .withAnnotations(Arrays.asList("datawgnyfusfzsvtui")) - .withFolder(new DataFlowFolder().withName("ajqglcf"))); - model = BinaryData.fromObject(model).toObject(DataFlowResourceInner.class); - Assertions.assertEquals("nptgoeiybba", model.id()); - Assertions.assertEquals("azlnqnmcjngzqdqx", model.properties().description()); - Assertions.assertEquals("ajqglcf", 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 158f2f6ab318..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.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.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\":\"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\"}}}") - .toObject(DataFlowSink.class); - Assertions.assertEquals("tjouwhldxwhi", model.name()); - Assertions.assertEquals("roqksmfxm", model.description()); - Assertions.assertEquals("prstvkitbfj", model.dataset().referenceName()); - Assertions.assertEquals("dkmdzgsszx", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tujmoil", model.flowlet().referenceName()); - Assertions.assertEquals("wimaaneakhtmh", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("mvgxsmpknpwir", model.rejectedDataLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSink model = 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"))); - model = BinaryData.fromObject(model).toObject(DataFlowSink.class); - Assertions.assertEquals("tjouwhldxwhi", model.name()); - Assertions.assertEquals("roqksmfxm", model.description()); - Assertions.assertEquals("prstvkitbfj", model.dataset().referenceName()); - Assertions.assertEquals("dkmdzgsszx", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tujmoil", model.flowlet().referenceName()); - Assertions.assertEquals("wimaaneakhtmh", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("mvgxsmpknpwir", 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 3fc92aa6e7bf..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\":\"yyukphaimmo\",\"rowLimit\":1751961807,\"\":{\"mfsvbpav\":\"dataoshbragapyy\",\"kuma\":\"dataopfppdbwnupgah\",\"hqepvufhbzehewh\":\"datajcaacfdmmcpugm\",\"eaclgschorimk\":\"dataqhnlbqnbld\"}}") - .toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("yyukphaimmo", model.sourceName()); - Assertions.assertEquals(1751961807, model.rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSourceSetting model = new DataFlowSourceSetting().withSourceName("yyukphaimmo") - .withRowLimit(1751961807) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("yyukphaimmo", model.sourceName()); - Assertions.assertEquals(1751961807, 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 d1120b41947e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.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.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\":\"jxildfkcef\",\"parameters\":{\"oisfmnaybdjn\":\"datazqp\",\"lwivqt\":\"dataumentqontwhymxym\"}},\"name\":\"wlhlsycoybajasq\",\"description\":\"fajcywhjqwm\",\"dataset\":{\"referenceName\":\"qo\",\"parameters\":{\"kiymjzpwd\":\"dataxcpup\",\"nhqnampp\":\"datavwtiwsmosa\",\"eajbkajlcyizyddc\":\"dataltassaekewna\"}},\"linkedService\":{\"referenceName\":\"od\",\"parameters\":{\"e\":\"datafsxxby\",\"pwgoljt\":\"dataqlvge\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"mxsdobygoog\",\"datasetParameters\":\"dataapjxvazyjfucsao\",\"parameters\":{\"kvibfa\":\"dataos\",\"nzpducdaaktu\":\"datagmat\"},\"\":{\"kpp\":\"datazboimyfpqdo\",\"ikff\":\"datawyytfvpctf\"}}}") - .toObject(DataFlowSource.class); - Assertions.assertEquals("wlhlsycoybajasq", model.name()); - Assertions.assertEquals("fajcywhjqwm", model.description()); - Assertions.assertEquals("qo", model.dataset().referenceName()); - Assertions.assertEquals("od", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("mxsdobygoog", model.flowlet().referenceName()); - Assertions.assertEquals("jxildfkcef", model.schemaLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSource model = new DataFlowSource().withName("wlhlsycoybajasq") - .withDescription("fajcywhjqwm") - .withDataset(new DatasetReference().withReferenceName("qo") - .withParameters(mapOf("kiymjzpwd", "dataxcpup", "nhqnampp", "datavwtiwsmosa", "eajbkajlcyizyddc", - "dataltassaekewna"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("od") - .withParameters(mapOf("e", "datafsxxby", "pwgoljt", "dataqlvge"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("mxsdobygoog") - .withDatasetParameters("dataapjxvazyjfucsao") - .withParameters(mapOf("kvibfa", "dataos", "nzpducdaaktu", "datagmat")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("jxildfkcef") - .withParameters(mapOf("oisfmnaybdjn", "datazqp", "lwivqt", "dataumentqontwhymxym"))); - model = BinaryData.fromObject(model).toObject(DataFlowSource.class); - Assertions.assertEquals("wlhlsycoybajasq", model.name()); - Assertions.assertEquals("fajcywhjqwm", model.description()); - Assertions.assertEquals("qo", model.dataset().referenceName()); - Assertions.assertEquals("od", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("mxsdobygoog", model.flowlet().referenceName()); - Assertions.assertEquals("jxildfkcef", 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 270ea0b0f2df..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\":\"bchaqd\",\"parameters\":{\"qct\":\"dataec\",\"ytxzvtznapxbanno\":\"dataxxdtddmflh\",\"nwvroevytlyokrr\":\"datavoxczytpr\"}},\"folderPath\":\"datauuxvnsasbcry\"}") - .toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("bchaqd", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowStagingInfo model = new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("bchaqd") - .withParameters(mapOf("qct", "dataec", "ytxzvtznapxbanno", "dataxxdtddmflh", "nwvroevytlyokrr", - "datavoxczytpr"))) - .withFolderPath("datauuxvnsasbcry"); - model = BinaryData.fromObject(model).toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("bchaqd", 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 31c3c6a2b79e..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\":\"fhvfsl\",\"description\":\"ntjlr\",\"annotations\":[\"datakskyrioovzid\",\"dataxwaabzmifrygznmm\"],\"folder\":{\"name\":\"izkzobgo\"}}") - .toObject(DataFlow.class); - Assertions.assertEquals("ntjlr", model.description()); - Assertions.assertEquals("izkzobgo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlow model = new DataFlow().withDescription("ntjlr") - .withAnnotations(Arrays.asList("datakskyrioovzid", "dataxwaabzmifrygznmm")) - .withFolder(new DataFlowFolder().withName("izkzobgo")); - model = BinaryData.fromObject(model).toObject(DataFlow.class); - Assertions.assertEquals("ntjlr", model.description()); - Assertions.assertEquals("izkzobgo", 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 5665ed4db803..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\":\"arhk\",\"description\":\"bdxoqqvy\",\"annotations\":[\"dataojmcnyjvmy\",\"dataqaiadspfesujp\"],\"folder\":{\"name\":\"wandrdfe\"}},\"name\":\"ryidxmnqefy\",\"type\":\"ucmpxn\",\"etag\":\"pgbokainm\",\"id\":\"eecmvpwauhlkf\"}"; - - 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("kxwnjsbegqhfgt") - .withExistingFactory("xzpvibwvamjqxzj", "ljv") - .withProperties(new DataFlow().withDescription("nkrdqzfkzdrco") - .withAnnotations(Arrays.asList("datazxpapbatok", "datajzrwcmqkkeihlo", "databnytwczqpsvin")) - .withFolder(new DataFlowFolder().withName("dcy"))) - .withIfMatch("gdrzmupusqsxuf") - .create(); - - Assertions.assertEquals("eecmvpwauhlkf", response.id()); - Assertions.assertEquals("bdxoqqvy", response.properties().description()); - Assertions.assertEquals("wandrdfe", 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 97666a5bcba4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.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 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("geu", "pbbydkzqbefd", "wmsrdqzrrl", 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 43887e7e768e..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\":\"twuw\",\"description\":\"zjbjzxrr\",\"annotations\":[\"datadtphdu\"],\"folder\":{\"name\":\"x\"}},\"name\":\"agovb\",\"type\":\"uchvq\",\"etag\":\"npxdsdevhzktjmi\",\"id\":\"evthdtqthvthi\"}"; - - 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("drunykntstoen", "ixypyitfcjfgpu", "xvffbzeqsmaqd", "nb", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("evthdtqthvthi", response.id()); - Assertions.assertEquals("zjbjzxrr", response.properties().description()); - Assertions.assertEquals("x", 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 7f34e07980eb..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\":\"zydak\",\"description\":\"fayhzfspnq\",\"annotations\":[\"datac\",\"datawzecmldjhydk\",\"dataywr\",\"datargjmcsbeozb\"],\"folder\":{\"name\":\"dqbuh\"}},\"name\":\"ghignjlfnpyxo\",\"type\":\"xmk\",\"etag\":\"fpj\",\"id\":\"lwmq\"}]}"; - - 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("lcfzrmdfehieblpc", "o", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lwmq", response.iterator().next().id()); - Assertions.assertEquals("fayhzfspnq", response.iterator().next().properties().description()); - Assertions.assertEquals("dqbuh", 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 fa77e72eb69a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.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.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\":\"pyfhez\",\"typeProperties\":{\"scriptPath\":\"dataqmqqrzeo\",\"scriptLinkedService\":{\"referenceName\":\"o\",\"parameters\":{\"xiwmwrbruuw\":\"dataptmpcpiros\",\"kynfxxldmxms\":\"datah\"}},\"degreeOfParallelism\":\"datadvqgaamcm\",\"priority\":\"dataesyhpzrosuawdlsm\",\"parameters\":{\"pzfjbzosyttur\":\"datanksovvbt\",\"l\":\"datahkpdkwvwxrxmu\",\"ygwwxentudpvsnll\":\"datasagp\",\"pmmtlwrwsgyqwfp\":\"datajbb\"},\"runtimeVersion\":\"datafkyttxgtcov\",\"compilationMode\":\"datacp\"},\"linkedServiceName\":{\"referenceName\":\"ascxmnbenanhzx\",\"parameters\":{\"kfwokzizlaha\":\"datafwcqcxyju\",\"ezmp\":\"datadngh\",\"hnwcq\":\"dataiuzxphhwnvt\"}},\"policy\":{\"timeout\":\"datababmddgqbkngtdaw\",\"retry\":\"dataytengfkr\",\"retryIntervalInSeconds\":21067628,\"secureInput\":true,\"secureOutput\":true,\"\":{\"ggxesxxpnckbhw\":\"datavbwe\",\"exgykriwpxc\":\"datarivjso\"}},\"name\":\"uhqctecmu\",\"description\":\"gcoygznmrscn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"gobaqnhlktdzf\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\",\"Completed\"],\"\":{\"rirxlvus\":\"datadvcoghptjvsk\",\"zgrbub\":\"datahd\",\"dxxzoywk\":\"dataorkcplpuddn\",\"s\":\"datalzobhhqefzamgic\"}},{\"activity\":\"xunzqpfgrqmq\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"xggspydmuldlz\":\"datanthceoujfazt\",\"eggtyifmfi\":\"datahcuvxygloxfnzjpg\",\"dbayxdr\":\"datax\",\"nvrbhqxewdcdnqh\":\"dataunooouq\"}},{\"activity\":\"nehpuhlj\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Skipped\",\"Completed\"],\"\":{\"qczigdwgqko\":\"datapjabs\",\"scrpabaw\":\"databghp\",\"x\":\"datavawmrmwrzmfnjs\",\"vragr\":\"datanst\"}},{\"activity\":\"imunmgtkyzupjn\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\",\"Failed\"],\"\":{\"ydaxgwgbpblsasyl\":\"datayxiezm\",\"tkmuttaeobrx\":\"dataxfuzfybpwzgwh\"}}],\"userProperties\":[{\"name\":\"ft\",\"value\":\"datascbgarfbx\"},{\"name\":\"alpig\",\"value\":\"datanshlu\"}],\"\":{\"ncats\":\"datamp\"}}") - .toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("uhqctecmu", model.name()); - Assertions.assertEquals("gcoygznmrscn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gobaqnhlktdzf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ft", model.userProperties().get(0).name()); - Assertions.assertEquals("ascxmnbenanhzx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(21067628, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("o", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivity model = new DataLakeAnalyticsUsqlActivity().withName("uhqctecmu") - .withDescription("gcoygznmrscn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gobaqnhlktdzf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xunzqpfgrqmq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nehpuhlj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("imunmgtkyzupjn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ft").withValue("datascbgarfbx"), - new UserProperty().withName("alpig").withValue("datanshlu"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ascxmnbenanhzx") - .withParameters(mapOf("kfwokzizlaha", "datafwcqcxyju", "ezmp", "datadngh", "hnwcq", "dataiuzxphhwnvt"))) - .withPolicy(new ActivityPolicy().withTimeout("datababmddgqbkngtdaw") - .withRetry("dataytengfkr") - .withRetryIntervalInSeconds(21067628) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withScriptPath("dataqmqqrzeo") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("o") - .withParameters(mapOf("xiwmwrbruuw", "dataptmpcpiros", "kynfxxldmxms", "datah"))) - .withDegreeOfParallelism("datadvqgaamcm") - .withPriority("dataesyhpzrosuawdlsm") - .withParameters(mapOf("pzfjbzosyttur", "datanksovvbt", "l", "datahkpdkwvwxrxmu", "ygwwxentudpvsnll", - "datasagp", "pmmtlwrwsgyqwfp", "datajbb")) - .withRuntimeVersion("datafkyttxgtcov") - .withCompilationMode("datacp"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("uhqctecmu", model.name()); - Assertions.assertEquals("gcoygznmrscn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gobaqnhlktdzf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ft", model.userProperties().get(0).name()); - Assertions.assertEquals("ascxmnbenanhzx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(21067628, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("o", 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 334a63b2bf88..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\":\"dataib\",\"scriptLinkedService\":{\"referenceName\":\"xg\",\"parameters\":{\"gtxpbvmc\":\"datamxhudpjn\"}},\"degreeOfParallelism\":\"datasahpswspyifg\",\"priority\":\"datakaihwdybjgyxbwhu\",\"parameters\":{\"hvcyyvpobcxnrwaz\":\"datahmckzbuadoxlle\"},\"runtimeVersion\":\"datayhaajhllnk\",\"compilationMode\":\"datauwoxnbkcweea\"}") - .toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("xg", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivityTypeProperties model = new DataLakeAnalyticsUsqlActivityTypeProperties() - .withScriptPath("dataib") - .withScriptLinkedService( - new LinkedServiceReference().withReferenceName("xg").withParameters(mapOf("gtxpbvmc", "datamxhudpjn"))) - .withDegreeOfParallelism("datasahpswspyifg") - .withPriority("datakaihwdybjgyxbwhu") - .withParameters(mapOf("hvcyyvpobcxnrwaz", "datahmckzbuadoxlle")) - .withRuntimeVersion("datayhaajhllnk") - .withCompilationMode("datauwoxnbkcweea"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("xg", 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 dc1aae6fedc9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"tkbtnqlrngl\",\"sourceEntityName\":\"biipsnawwlqkznx\",\"sourceConnectionReference\":{\"connectionName\":\"lxri\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"qqoajxeiyglesrw\",\"type\":\"Aggregate\",\"functionName\":\"hdctrceqn\",\"expression\":\"rupobehd\",\"attributeReference\":{\"name\":\"zacvu\",\"entity\":\"pjpbibnzpp\",\"entityConnectionReference\":{\"connectionName\":\"ifexleqirccjcly\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"pjlvczuoda\",\"entity\":\"u\",\"entityConnectionReference\":{}},{\"name\":\"tepdjxqes\",\"entity\":\"ynu\",\"entityConnectionReference\":{}},{\"name\":\"pckaewse\",\"entity\":\"eskwxeg\",\"entityConnectionReference\":{}},{\"name\":\"rgfnz\",\"entity\":\"tmjtsghp\",\"entityConnectionReference\":{}}]},{\"name\":\"cp\",\"type\":\"Aggregate\",\"functionName\":\"zeq\",\"expression\":\"dldtzmpyp\",\"attributeReference\":{\"name\":\"pc\",\"entity\":\"hnuqndaizu\",\"entityConnectionReference\":{\"connectionName\":\"huytuszx\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"egw\",\"entity\":\"ukvzwydwttha\",\"entityConnectionReference\":{}},{\"name\":\"ksk\",\"entity\":\"vb\",\"entityConnectionReference\":{}},{\"name\":\"ajq\",\"entity\":\"kpeexpgeumilh\",\"entityConnectionReference\":{}},{\"name\":\"trdexyionofnin\",\"entity\":\"bzsx\",\"entityConnectionReference\":{}}]},{\"name\":\"qrs\",\"type\":\"Aggregate\",\"functionName\":\"bprt\",\"expression\":\"av\",\"attributeReference\":{\"name\":\"cyksivmfo\",\"entity\":\"rt\",\"entityConnectionReference\":{\"connectionName\":\"mkrftsjcwjjxsgm\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"dxkecifh\",\"entity\":\"jxwkloozrvtx\",\"entityConnectionReference\":{}},{\"name\":\"uf\",\"entity\":\"lcpx\",\"entityConnectionReference\":{}},{\"name\":\"ryeyngjgv\",\"entity\":\"uvp\",\"entityConnectionReference\":{}},{\"name\":\"lpmcrdc\",\"entity\":\"ljtiahxmfqryarv\",\"entityConnectionReference\":{}}]}]},\"sourceDenormalizeInfo\":\"dataqbglcjkaysp\"}") - .toObject(DataMapperMapping.class); - Assertions.assertEquals("tkbtnqlrngl", model.targetEntityName()); - Assertions.assertEquals("biipsnawwlqkznx", model.sourceEntityName()); - Assertions.assertEquals("lxri", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("qqoajxeiyglesrw", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("hdctrceqn", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("rupobehd", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions.assertEquals("zacvu", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("pjpbibnzpp", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("ifexleqirccjcly", - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions.assertEquals("pjlvczuoda", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("u", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).entity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMapperMapping model = new DataMapperMapping().withTargetEntityName("tkbtnqlrngl") - .withSourceEntityName("biipsnawwlqkznx") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("lxri").withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings(Arrays.asList( - new MapperAttributeMapping().withName("qqoajxeiyglesrw") - .withType(MappingType.AGGREGATE) - .withFunctionName("hdctrceqn") - .withExpression("rupobehd") - .withAttributeReference(new MapperAttributeReference().withName("zacvu") - .withEntity("pjpbibnzpp") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("ifexleqirccjcly") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("pjlvczuoda") - .withEntity("u") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("tepdjxqes") - .withEntity("ynu") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("pckaewse") - .withEntity("eskwxeg") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("rgfnz") - .withEntity("tmjtsghp") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("cp") - .withType(MappingType.AGGREGATE) - .withFunctionName("zeq") - .withExpression("dldtzmpyp") - .withAttributeReference(new MapperAttributeReference().withName("pc") - .withEntity("hnuqndaizu") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("huytuszx") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("egw") - .withEntity("ukvzwydwttha") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("ksk") - .withEntity("vb") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("ajq") - .withEntity("kpeexpgeumilh") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("trdexyionofnin") - .withEntity("bzsx") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("qrs") - .withType(MappingType.AGGREGATE) - .withFunctionName("bprt") - .withExpression("av") - .withAttributeReference(new MapperAttributeReference().withName("cyksivmfo") - .withEntity("rt") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("mkrftsjcwjjxsgm") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("dxkecifh") - .withEntity("jxwkloozrvtx") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("uf") - .withEntity("lcpx") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("ryeyngjgv") - .withEntity("uvp") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("lpmcrdc") - .withEntity("ljtiahxmfqryarv") - .withEntityConnectionReference(new MapperConnectionReference())))))) - .withSourceDenormalizeInfo("dataqbglcjkaysp"); - model = BinaryData.fromObject(model).toObject(DataMapperMapping.class); - Assertions.assertEquals("tkbtnqlrngl", model.targetEntityName()); - Assertions.assertEquals("biipsnawwlqkznx", model.sourceEntityName()); - Assertions.assertEquals("lxri", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("qqoajxeiyglesrw", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("hdctrceqn", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("rupobehd", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions.assertEquals("zacvu", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("pjpbibnzpp", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("ifexleqirccjcly", - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions.assertEquals("pjlvczuoda", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("u", - 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 c08bceb019d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.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.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\":\"tdek\",\"typeProperties\":{\"notebookPath\":\"datankgm\",\"baseParameters\":{\"gwsrr\":\"datayfyvodctpczzqusf\",\"lyspk\":\"datagij\",\"khgqsjecccfyc\":\"dataswyaejffvf\",\"r\":\"datawcuhqfxferfza\"},\"libraries\":[{\"obstiob\":\"datayphc\",\"vubszjyttgkps\":\"datar\"}]},\"linkedServiceName\":{\"referenceName\":\"irftlomec\",\"parameters\":{\"efn\":\"datagbgpx\",\"iaqafalbk\":\"dataefavbsbhd\",\"vdhvdv\":\"datamod\"}},\"policy\":{\"timeout\":\"datarkvxmeihrziwn\",\"retry\":\"datapojmgkeoqrxhdsu\",\"retryIntervalInSeconds\":2125623505,\"secureInput\":false,\"secureOutput\":false,\"\":{\"hiegkpukv\":\"dataeikbvax\",\"io\":\"datalcvlbqhtiijli\"}},\"name\":\"wzsmya\",\"description\":\"hjsmkhk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"siizadmbn\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"vgzjfptprfq\":\"datahkhzwfnsduwtt\",\"gyo\":\"datat\"}}],\"userProperties\":[{\"name\":\"vtfkdz\",\"value\":\"datatkxiyjqbe\"},{\"name\":\"vxebdhpizk\",\"value\":\"dataqkylmfy\"},{\"name\":\"iodcgwbkfcajtxzd\",\"value\":\"dataqthqgngrfzaex\"},{\"name\":\"wftqoifvjfaqa\",\"value\":\"datameskd\"}],\"\":{\"uco\":\"databbdajcbrlnx\"}}") - .toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("wzsmya", model.name()); - Assertions.assertEquals("hjsmkhk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("siizadmbn", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vtfkdz", model.userProperties().get(0).name()); - Assertions.assertEquals("irftlomec", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2125623505, 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 { - DatabricksNotebookActivity model = new DatabricksNotebookActivity().withName("wzsmya") - .withDescription("hjsmkhk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("siizadmbn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("vtfkdz").withValue("datatkxiyjqbe"), - new UserProperty().withName("vxebdhpizk").withValue("dataqkylmfy"), - new UserProperty().withName("iodcgwbkfcajtxzd").withValue("dataqthqgngrfzaex"), - new UserProperty().withName("wftqoifvjfaqa").withValue("datameskd"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("irftlomec") - .withParameters(mapOf("efn", "datagbgpx", "iaqafalbk", "dataefavbsbhd", "vdhvdv", "datamod"))) - .withPolicy(new ActivityPolicy().withTimeout("datarkvxmeihrziwn") - .withRetry("datapojmgkeoqrxhdsu") - .withRetryIntervalInSeconds(2125623505) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withNotebookPath("datankgm") - .withBaseParameters(mapOf("gwsrr", "datayfyvodctpczzqusf", "lyspk", "datagij", "khgqsjecccfyc", - "dataswyaejffvf", "r", "datawcuhqfxferfza")) - .withLibraries(Arrays.asList(mapOf("obstiob", "datayphc", "vubszjyttgkps", "datar"))); - model = BinaryData.fromObject(model).toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("wzsmya", model.name()); - Assertions.assertEquals("hjsmkhk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("siizadmbn", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vtfkdz", model.userProperties().get(0).name()); - Assertions.assertEquals("irftlomec", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2125623505, 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/DatabricksNotebookActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java deleted file mode 100644 index 01b413657d9a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.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.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\":\"datazjryppv\",\"baseParameters\":{\"bftafrbuvw\":\"datalcczgflogzstcf\",\"dxmmtyumejp\":\"datagwwrclxhveso\",\"b\":\"dataxuiod\",\"dvceuyw\":\"dataaujhox\"},\"libraries\":[{\"jbjdyoccnlvyhiet\":\"datazlcvokvo\"},{\"ihhgpek\":\"datannlsqym\",\"sani\":\"dataulkkhyfiuxdadcdr\",\"ewepoantsr\":\"datacfrtijzsumgzebqb\",\"unedsozjfigi\":\"datapdeewjgjdqla\"},{\"tjjqz\":\"dataswxcvwh\",\"srisfccf\":\"dataixsvoob\",\"mihifrkyvut\":\"datau\"}]}") - .toObject(DatabricksNotebookActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksNotebookActivityTypeProperties model - = new DatabricksNotebookActivityTypeProperties().withNotebookPath("datazjryppv") - .withBaseParameters(mapOf("bftafrbuvw", "datalcczgflogzstcf", "dxmmtyumejp", "datagwwrclxhveso", "b", - "dataxuiod", "dvceuyw", "dataaujhox")) - .withLibraries(Arrays.asList(mapOf("jbjdyoccnlvyhiet", "datazlcvokvo"), - mapOf("ihhgpek", "datannlsqym", "sani", "dataulkkhyfiuxdadcdr", "ewepoantsr", - "datacfrtijzsumgzebqb", "unedsozjfigi", "datapdeewjgjdqla"), - mapOf("tjjqz", "dataswxcvwh", "srisfccf", "dataixsvoob", "mihifrkyvut", "datau"))); - 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 7cbe8bc2a893..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"caxkivry\",\"typeProperties\":{\"mainClassName\":\"datac\",\"parameters\":[\"dataspyd\",\"dataladfcqkzcizu\",\"datagyljwmefpijwrvbu\",\"datahbwaiswbacgrysjg\"],\"libraries\":[{\"eduxyd\":\"datajupdcmpfwfdc\"},{\"nkhgg\":\"datapfdhfp\"}]},\"linkedServiceName\":{\"referenceName\":\"eqmtetnywgmeiiha\",\"parameters\":{\"jkcqednaeefzlwoh\":\"dataargetncfljwjrp\",\"eiqhbrdcgmyjmc\":\"databaaccglvixflcn\",\"rrvb\":\"datankp\",\"rsandmusud\":\"datavinkkteblrn\"}},\"policy\":{\"timeout\":\"datas\",\"retry\":\"datamzotcpffmik\",\"retryIntervalInSeconds\":1324064750,\"secureInput\":true,\"secureOutput\":false,\"\":{\"onejpjzqb\":\"datavi\",\"nlow\":\"dataut\",\"dqobngjbe\":\"dataatfalhnixo\"}},\"name\":\"bcxnnirnfuv\",\"description\":\"mep\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"svnotbe\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"dtjcyvmsduodpm\":\"datawbtexigm\",\"ocqaejlebcy\":\"dataisggn\",\"g\":\"datapqwucprpw\",\"w\":\"datazdkcike\"}},{\"activity\":\"qial\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"sfhxhulrekr\":\"dataraocep\",\"dnzrcjokgthy\":\"datay\",\"wlguesoivaory\":\"datayzr\"}},{\"activity\":\"fgwo\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Failed\",\"Skipped\"],\"\":{\"tgmfjzqvi\":\"datat\",\"cocsmcqskrjnqaa\":\"datadhixd\",\"eox\":\"datayzjdrkcs\",\"wcqp\":\"datasfztlxqhyyxhzgx\"}},{\"activity\":\"rrmlkrroqsdvxdd\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Succeeded\"],\"\":{\"vswnnsbz\":\"databriykrxaevbur\"}}],\"userProperties\":[{\"name\":\"xbc\",\"value\":\"datakojynkhbtycfjwf\"},{\"name\":\"ia\",\"value\":\"datatsukdoy\"}],\"\":{\"vipxzzcxqdrqsu\":\"datazniekedxvw\",\"ptzqazwybbewjvyr\":\"dataekzqybpoxqwcusl\",\"osmp\":\"dataownbwrnbmcblmzar\",\"abhpdkrjlwrqheh\":\"dataajx\"}}") - .toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("bcxnnirnfuv", model.name()); - Assertions.assertEquals("mep", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("svnotbe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xbc", model.userProperties().get(0).name()); - Assertions.assertEquals("eqmtetnywgmeiiha", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1324064750, 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 { - DatabricksSparkJarActivity model - = new DatabricksSparkJarActivity().withName("bcxnnirnfuv") - .withDescription("mep") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("svnotbe") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qial") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fgwo") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rrmlkrroqsdvxdd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("xbc").withValue("datakojynkhbtycfjwf"), - new UserProperty().withName("ia").withValue("datatsukdoy"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("eqmtetnywgmeiiha") - .withParameters(mapOf("jkcqednaeefzlwoh", "dataargetncfljwjrp", "eiqhbrdcgmyjmc", - "databaaccglvixflcn", "rrvb", "datankp", "rsandmusud", "datavinkkteblrn"))) - .withPolicy(new ActivityPolicy().withTimeout("datas") - .withRetry("datamzotcpffmik") - .withRetryIntervalInSeconds(1324064750) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withMainClassName("datac") - .withParameters( - Arrays.asList("dataspyd", "dataladfcqkzcizu", "datagyljwmefpijwrvbu", "datahbwaiswbacgrysjg")) - .withLibraries(Arrays.asList(mapOf("eduxyd", "datajupdcmpfwfdc"), mapOf("nkhgg", "datapfdhfp"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("bcxnnirnfuv", model.name()); - Assertions.assertEquals("mep", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("svnotbe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xbc", model.userProperties().get(0).name()); - Assertions.assertEquals("eqmtetnywgmeiiha", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1324064750, 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/DatabricksSparkJarActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java deleted file mode 100644 index 2017d5f18446..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.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.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\":\"dataaz\",\"parameters\":[\"databpysgzgi\",\"dataoahektwgiumcco\",\"datajxxjaafr\",\"datadhrkhfyaxi\"],\"libraries\":[{\"ogzwwyubkppo\":\"datasimbgvrksjjqqpar\",\"byjfeanbnw\":\"datajyjqemgbkjxuxmkk\",\"fkzlv\":\"dataekpgllezvrvjws\",\"jynvguhqugnqs\":\"datajbsvk\"},{\"wcfinsoi\":\"datarvquwhmnc\",\"gcl\":\"dataxxsybtpqgxz\"},{\"i\":\"dataicnckdxflg\",\"l\":\"datatcer\",\"mrsbgjjuhzf\":\"dataerrpal\"},{\"kwlmittpbivhkdxh\":\"datanabyvmch\",\"jbgvdzzukhlwvvh\":\"datavybxplbdaz\"}]}") - .toObject(DatabricksSparkJarActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkJarActivityTypeProperties model - = new DatabricksSparkJarActivityTypeProperties().withMainClassName("dataaz") - .withParameters(Arrays.asList("databpysgzgi", "dataoahektwgiumcco", "datajxxjaafr", "datadhrkhfyaxi")) - .withLibraries(Arrays.asList( - mapOf("ogzwwyubkppo", "datasimbgvrksjjqqpar", "byjfeanbnw", "datajyjqemgbkjxuxmkk", "fkzlv", - "dataekpgllezvrvjws", "jynvguhqugnqs", "datajbsvk"), - mapOf("wcfinsoi", "datarvquwhmnc", "gcl", "dataxxsybtpqgxz"), - mapOf("i", "dataicnckdxflg", "l", "datatcer", "mrsbgjjuhzf", "dataerrpal"), - mapOf("kwlmittpbivhkdxh", "datanabyvmch", "jbgvdzzukhlwvvh", "datavybxplbdaz"))); - 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 4179d9206498..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"hymd\",\"typeProperties\":{\"pythonFile\":\"datackijv\",\"parameters\":[\"datagzkfjq\",\"databbpjlrvxryjxjd\"],\"libraries\":[{\"twzgbuh\":\"datanjalccix\",\"mfufs\":\"datarwqrfejznz\"},{\"tlcqaafuwxehoza\":\"datasjiojv\",\"y\":\"databgcbdkq\",\"vgowkak\":\"datavtimyccdognhw\",\"jiykwbytuzhcpx\":\"datajns\"}]},\"linkedServiceName\":{\"referenceName\":\"zlyoiyovc\",\"parameters\":{\"edowmhgzrrikvyu\":\"dataalveavuzjezraj\"}},\"policy\":{\"timeout\":\"dataopdeqqfyc\",\"retry\":\"dataupxf\",\"retryIntervalInSeconds\":1522713628,\"secureInput\":false,\"secureOutput\":true,\"\":{\"ilgamxnj\":\"dataptqbwn\",\"pnsbbhdjeegllcy\":\"dataw\"}},\"name\":\"ukfmkq\",\"description\":\"zvxknyg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"xjyxhwvnyup\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"lcr\":\"datanuddlazvsmnx\",\"oxehynur\":\"databymgfwdxukm\"}},{\"activity\":\"w\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"o\":\"datamda\",\"ym\":\"datajnvmfm\",\"pjxdi\":\"datalztorvw\",\"kbcouavo\":\"dataiutdz\"}},{\"activity\":\"fmgtxzvy\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"znxd\":\"datarxjqpbbj\",\"kjirti\":\"dataiwaaumy\",\"gonrrarznlrr\":\"databvyud\"}},{\"activity\":\"sexaejbmtoun\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"upishcvsjaaedsqf\":\"datasedxiigwxzwqjpu\",\"romhsias\":\"dataulndywghnptfvolj\"}}],\"userProperties\":[{\"name\":\"pelq\",\"value\":\"datakwc\"},{\"name\":\"pmsyhrvifurg\",\"value\":\"dataxhoqfvuqimdgk\"},{\"name\":\"fghc\",\"value\":\"dataiipnszrrmq\"}],\"\":{\"yoffglwmk\":\"datayawtdsnvxhxkmdec\",\"lqnzxsdbfbkqi\":\"databxusn\",\"ngrdu\":\"dataehxmztf\"}}") - .toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("ukfmkq", model.name()); - Assertions.assertEquals("zvxknyg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xjyxhwvnyup", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pelq", model.userProperties().get(0).name()); - Assertions.assertEquals("zlyoiyovc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1522713628, 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("ukfmkq") - .withDescription("zvxknyg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("xjyxhwvnyup") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("w") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fmgtxzvy") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("sexaejbmtoun") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("pelq").withValue("datakwc"), - new UserProperty().withName("pmsyhrvifurg").withValue("dataxhoqfvuqimdgk"), - new UserProperty().withName("fghc").withValue("dataiipnszrrmq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zlyoiyovc") - .withParameters(mapOf("edowmhgzrrikvyu", "dataalveavuzjezraj"))) - .withPolicy(new ActivityPolicy().withTimeout("dataopdeqqfyc") - .withRetry("dataupxf") - .withRetryIntervalInSeconds(1522713628) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withPythonFile("datackijv") - .withParameters(Arrays.asList("datagzkfjq", "databbpjlrvxryjxjd")) - .withLibraries(Arrays.asList(mapOf("twzgbuh", "datanjalccix", "mfufs", "datarwqrfejznz"), - mapOf("tlcqaafuwxehoza", "datasjiojv", "y", "databgcbdkq", "vgowkak", "datavtimyccdognhw", - "jiykwbytuzhcpx", "datajns"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("ukfmkq", model.name()); - Assertions.assertEquals("zvxknyg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xjyxhwvnyup", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pelq", model.userProperties().get(0).name()); - Assertions.assertEquals("zlyoiyovc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1522713628, 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 35349677a4b9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.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.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\":\"dataozdzbhtfmgpio\",\"parameters\":[\"datapbjhhuimgdfoh\",\"dataeeu\",\"datatfavmdp\"],\"libraries\":[{\"paqj\":\"datacvwewognpu\",\"fb\":\"datarqvjwlritsxuxre\"}]}") - .toObject(DatabricksSparkPythonActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkPythonActivityTypeProperties model - = new DatabricksSparkPythonActivityTypeProperties().withPythonFile("dataozdzbhtfmgpio") - .withParameters(Arrays.asList("datapbjhhuimgdfoh", "dataeeu", "datatfavmdp")) - .withLibraries(Arrays.asList(mapOf("paqj", "datacvwewognpu", "fb", "datarqvjwlritsxuxre"))); - 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 9862da367b76..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.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.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\":\"datavrqoemwsi\",\"level\":\"dataailwdqmqfyd\",\"\":{\"i\":\"datamfxlkdlgwgnamkuu\"}}") - .toObject(DatasetCompression.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetCompression model = new DatasetCompression().withType("datavrqoemwsi") - .withLevel("dataailwdqmqfyd") - .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 388d4328b14b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.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.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\":\"jxdfzantkwcegya\",\"description\":\"bnseqacjjvpilg\",\"structure\":\"dataoq\",\"schema\":\"datagmditgueiookjbs\",\"linkedServiceName\":{\"referenceName\":\"hrtdtpdelq\",\"parameters\":{\"gdirazf\":\"datalmotoebnfxofvcj\",\"bmdujtmvcopexc\":\"dataxejw\"}},\"parameters\":{\"hlkyqltqsrog\":{\"type\":\"Float\",\"defaultValue\":\"datau\"},\"dfvclglxnfu\":{\"type\":\"Float\",\"defaultValue\":\"datakffdjktsys\"},\"sfikayiansharuj\":{\"type\":\"Object\",\"defaultValue\":\"datakbusqo\"},\"qhjpenuygbqe\":{\"type\":\"Float\",\"defaultValue\":\"dataqxfzyjqttvwk\"}},\"annotations\":[\"datakewvnqv\",\"datadlguaucmfdjwn\",\"dataaxpunjqikczvv\",\"datatacgxmfc\"],\"folder\":{\"name\":\"rxhtvso\"},\"\":{\"ruuuybnch\":\"datawntsjgqrsxy\",\"qyggagfl\":\"dataszizoyuelyetndnb\",\"byrplrohkpig\":\"datalgmtrwahzjmucf\"}},\"name\":\"usuckzmkwklsno\"}") - .toObject(DatasetDebugResource.class); - Assertions.assertEquals("usuckzmkwklsno", model.name()); - Assertions.assertEquals("bnseqacjjvpilg", model.properties().description()); - Assertions.assertEquals("hrtdtpdelq", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("hlkyqltqsrog").type()); - Assertions.assertEquals("rxhtvso", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetDebugResource model = new DatasetDebugResource().withName("usuckzmkwklsno") - .withProperties(new Dataset().withDescription("bnseqacjjvpilg") - .withStructure("dataoq") - .withSchema("datagmditgueiookjbs") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hrtdtpdelq") - .withParameters(mapOf("gdirazf", "datalmotoebnfxofvcj", "bmdujtmvcopexc", "dataxejw"))) - .withParameters(mapOf("hlkyqltqsrog", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datau"), "dfvclglxnfu", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakffdjktsys"), - "sfikayiansharuj", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datakbusqo"), - "qhjpenuygbqe", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqxfzyjqttvwk"))) - .withAnnotations(Arrays.asList("datakewvnqv", "datadlguaucmfdjwn", "dataaxpunjqikczvv", "datatacgxmfc")) - .withFolder(new DatasetFolder().withName("rxhtvso")) - .withAdditionalProperties(mapOf("type", "jxdfzantkwcegya"))); - model = BinaryData.fromObject(model).toObject(DatasetDebugResource.class); - Assertions.assertEquals("usuckzmkwklsno", model.name()); - Assertions.assertEquals("bnseqacjjvpilg", model.properties().description()); - Assertions.assertEquals("hrtdtpdelq", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("hlkyqltqsrog").type()); - Assertions.assertEquals("rxhtvso", 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 525859ef1a26..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\":\"tpp\"}").toObject(DatasetFolder.class); - Assertions.assertEquals("tpp", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetFolder model = new DatasetFolder().withName("tpp"); - model = BinaryData.fromObject(model).toObject(DatasetFolder.class); - Assertions.assertEquals("tpp", 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 5216f257466f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.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.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\":\"auwzizxbmpgc\",\"description\":\"fuzmuvpbtt\",\"structure\":\"datamorppxebmnzbtbh\",\"schema\":\"dataglkfg\",\"linkedServiceName\":{\"referenceName\":\"hdneuelfph\",\"parameters\":{\"quuvxzxcl\":\"datahtozfikdow\",\"sg\":\"dataithhqzon\",\"c\":\"datab\",\"acffgdkzzewkfvhq\":\"datahfwdsjnkaljutiis\"}},\"parameters\":{\"uflrwd\":{\"type\":\"Object\",\"defaultValue\":\"datavpnpp\"}},\"annotations\":[\"datalxyjr\",\"datasag\"],\"folder\":{\"name\":\"nihgwqapnedg\"},\"\":{\"vdrhvoo\":\"datavkcvqvpkeqd\",\"dopcjwvnh\":\"datasotbob\",\"mgxcxrslpm\":\"datald\",\"qsluicp\":\"datatwuoegrpkhjwni\"}},\"name\":\"gk\",\"type\":\"lvmbmpaxmodfvuef\",\"etag\":\"sbpfvmwyhr\",\"id\":\"uyfta\"},{\"properties\":{\"type\":\"cpwi\",\"description\":\"vqtmnub\",\"structure\":\"datakpzksmondjmq\",\"schema\":\"datavypomgkopkwho\",\"linkedServiceName\":{\"referenceName\":\"v\",\"parameters\":{\"mocmbqfqvmk\":\"dataqgxy\"}},\"parameters\":{\"yat\":{\"type\":\"SecureString\",\"defaultValue\":\"datapvhelxprg\"}},\"annotations\":[\"datakcbcue\"],\"folder\":{\"name\":\"xgc\"},\"\":{\"sxsdqrhzoymibm\":\"databrh\",\"hwflu\":\"dataqyib\",\"voqacpiexpbt\":\"datazdtmhrkwofy\"}},\"name\":\"wbwo\",\"type\":\"washr\",\"etag\":\"tkcnqxwb\",\"id\":\"kulpiujwaasi\"},{\"properties\":{\"type\":\"i\",\"description\":\"byuqerpqlp\",\"structure\":\"datacciuqgbdbutau\",\"schema\":\"databtkuwhh\",\"linkedServiceName\":{\"referenceName\":\"hykojoxafnndlpic\",\"parameters\":{\"kkpwdreqnovvq\":\"dataymkcdyhb\"}},\"parameters\":{\"rsndsytgadgvra\":{\"type\":\"Array\",\"defaultValue\":\"dataxywsuws\"},\"arrwlquu\":{\"type\":\"SecureString\",\"defaultValue\":\"dataneqn\"}},\"annotations\":[\"dataqkacewii\"],\"folder\":{\"name\":\"ubjibww\"},\"\":{\"kn\":\"dataohqkvpuvksgpls\",\"synljphuopxodl\":\"datan\",\"sjswsrms\":\"dataiyntorzihle\",\"ox\":\"datayzrpzbchckqqzq\"}},\"name\":\"suiizynkedyat\",\"type\":\"yhqmibzyhwi\",\"etag\":\"mypyynpcdpu\",\"id\":\"zgmwznmabikns\"},{\"properties\":{\"type\":\"gj\",\"description\":\"bldtlww\",\"structure\":\"datakdmtncvokotll\",\"schema\":\"datayhgsy\",\"linkedServiceName\":{\"referenceName\":\"cogjltdtbn\",\"parameters\":{\"ocrkvcikh\":\"datad\",\"qgxqquezikyw\":\"datavpa\",\"lla\":\"datagxk\"}},\"parameters\":{\"ivgvvcna\":{\"type\":\"String\",\"defaultValue\":\"datauipiccjzk\"},\"rdvstkwqqtch\":{\"type\":\"Bool\",\"defaultValue\":\"datayrnxxmueedn\"}},\"annotations\":[\"datamfmtdaaygdvw\",\"datagpiohgwxrtfudxe\",\"dataxg\"],\"folder\":{\"name\":\"gvr\"},\"\":{\"dblx\":\"datapkukghi\",\"fnjhfjxwmszkkfo\":\"datawi\",\"kzikfjawneaivxwc\":\"datarey\",\"fatkld\":\"dataelpcirelsfeaenwa\"}},\"name\":\"bjhwuaan\",\"type\":\"jos\",\"etag\":\"youlp\",\"id\":\"v\"}],\"nextLink\":\"glrvimjwosytxi\"}") - .toObject(DatasetListResponse.class); - Assertions.assertEquals("uyfta", model.value().get(0).id()); - Assertions.assertEquals("fuzmuvpbtt", model.value().get(0).properties().description()); - Assertions.assertEquals("hdneuelfph", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, - model.value().get(0).properties().parameters().get("uflrwd").type()); - Assertions.assertEquals("nihgwqapnedg", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("glrvimjwosytxi", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetListResponse model = new DatasetListResponse().withValue(Arrays.asList( - new DatasetResourceInner().withId("uyfta") - .withProperties(new Dataset().withDescription("fuzmuvpbtt") - .withStructure("datamorppxebmnzbtbh") - .withSchema("dataglkfg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hdneuelfph") - .withParameters(mapOf("quuvxzxcl", "datahtozfikdow", "sg", "dataithhqzon", "c", "datab", - "acffgdkzzewkfvhq", "datahfwdsjnkaljutiis"))) - .withParameters(mapOf("uflrwd", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datavpnpp"))) - .withAnnotations(Arrays.asList("datalxyjr", "datasag")) - .withFolder(new DatasetFolder().withName("nihgwqapnedg")) - .withAdditionalProperties(mapOf("type", "auwzizxbmpgc"))), - new DatasetResourceInner().withId("kulpiujwaasi") - .withProperties(new Dataset().withDescription("vqtmnub") - .withStructure("datakpzksmondjmq") - .withSchema("datavypomgkopkwho") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("v") - .withParameters(mapOf("mocmbqfqvmk", "dataqgxy"))) - .withParameters(mapOf("yat", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datapvhelxprg"))) - .withAnnotations(Arrays.asList("datakcbcue")) - .withFolder(new DatasetFolder().withName("xgc")) - .withAdditionalProperties(mapOf("type", "cpwi"))), - new DatasetResourceInner().withId("zgmwznmabikns") - .withProperties(new Dataset().withDescription("byuqerpqlp") - .withStructure("datacciuqgbdbutau") - .withSchema("databtkuwhh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hykojoxafnndlpic") - .withParameters(mapOf("kkpwdreqnovvq", "dataymkcdyhb"))) - .withParameters(mapOf("rsndsytgadgvra", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataxywsuws"), - "arrwlquu", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataneqn"))) - .withAnnotations(Arrays.asList("dataqkacewii")) - .withFolder(new DatasetFolder().withName("ubjibww")) - .withAdditionalProperties(mapOf("type", "i"))), - new DatasetResourceInner().withId("v") - .withProperties(new Dataset().withDescription("bldtlww") - .withStructure("datakdmtncvokotll") - .withSchema("datayhgsy") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("cogjltdtbn") - .withParameters(mapOf("ocrkvcikh", "datad", "qgxqquezikyw", "datavpa", "lla", "datagxk"))) - .withParameters(mapOf("ivgvvcna", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datauipiccjzk"), - "rdvstkwqqtch", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datayrnxxmueedn"))) - .withAnnotations(Arrays.asList("datamfmtdaaygdvw", "datagpiohgwxrtfudxe", "dataxg")) - .withFolder(new DatasetFolder().withName("gvr")) - .withAdditionalProperties(mapOf("type", "gj"))))) - .withNextLink("glrvimjwosytxi"); - model = BinaryData.fromObject(model).toObject(DatasetListResponse.class); - Assertions.assertEquals("uyfta", model.value().get(0).id()); - Assertions.assertEquals("fuzmuvpbtt", model.value().get(0).properties().description()); - Assertions.assertEquals("hdneuelfph", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, - model.value().get(0).properties().parameters().get("uflrwd").type()); - Assertions.assertEquals("nihgwqapnedg", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("glrvimjwosytxi", 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 f34d94833338..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\":\"ee\",\"folderPath\":\"datamjenvjeatea\",\"fileName\":\"datacrxoxdj\",\"\":{\"ryyinz\":\"datan\",\"bvxvza\":\"datadolrndw\",\"mcxqqxmyzklao\":\"dataedoyqxlunkft\"}}") - .toObject(DatasetLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetLocation model = new DatasetLocation().withFolderPath("datamjenvjeatea") - .withFileName("datacrxoxdj") - .withAdditionalProperties(mapOf("type", "ee")); - 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 18592c6c9c09..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\":\"mnitmujd\",\"parameters\":{\"xfzuvrzmzqmzj\":\"dataclyymffhmjpddn\"}}") - .toObject(DatasetReference.class); - Assertions.assertEquals("mnitmujd", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetReference model = new DatasetReference().withReferenceName("mnitmujd") - .withParameters(mapOf("xfzuvrzmzqmzj", "dataclyymffhmjpddn")); - model = BinaryData.fromObject(model).toObject(DatasetReference.class); - Assertions.assertEquals("mnitmujd", 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 5a4480aad3c3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.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.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\":\"skfc\",\"description\":\"qumiek\",\"structure\":\"datazzikhlyfjhdg\",\"schema\":\"datagebdunygaeq\",\"linkedServiceName\":{\"referenceName\":\"db\",\"parameters\":{\"xllrxcyjm\":\"datat\",\"su\":\"dataa\"}},\"parameters\":{\"rw\":{\"type\":\"String\",\"defaultValue\":\"datawdmjsjqbjhhyx\"}},\"annotations\":[\"dataoduhp\"],\"folder\":{\"name\":\"gymare\"},\"\":{\"ubeddg\":\"datajxqugjhky\"}},\"name\":\"ofwq\",\"type\":\"qal\",\"etag\":\"mnjijpxacqqudf\",\"id\":\"yxbaaabjyvayf\"}") - .toObject(DatasetResourceInner.class); - Assertions.assertEquals("yxbaaabjyvayf", model.id()); - Assertions.assertEquals("qumiek", model.properties().description()); - Assertions.assertEquals("db", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.properties().parameters().get("rw").type()); - Assertions.assertEquals("gymare", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetResourceInner model = new DatasetResourceInner().withId("yxbaaabjyvayf") - .withProperties(new Dataset().withDescription("qumiek") - .withStructure("datazzikhlyfjhdg") - .withSchema("datagebdunygaeq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("db") - .withParameters(mapOf("xllrxcyjm", "datat", "su", "dataa"))) - .withParameters(mapOf("rw", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datawdmjsjqbjhhyx"))) - .withAnnotations(Arrays.asList("dataoduhp")) - .withFolder(new DatasetFolder().withName("gymare")) - .withAdditionalProperties(mapOf("type", "skfc"))); - model = BinaryData.fromObject(model).toObject(DatasetResourceInner.class); - Assertions.assertEquals("yxbaaabjyvayf", model.id()); - Assertions.assertEquals("qumiek", model.properties().description()); - Assertions.assertEquals("db", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.properties().parameters().get("rw").type()); - Assertions.assertEquals("gymare", 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 2d228314fac2..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\":\"datavbennmfkbpjnrt\",\"type\":\"dataw\",\"\":{\"syiurzt\":\"datahropmdu\"}}") - .toObject(DatasetSchemaDataElement.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetSchemaDataElement model = new DatasetSchemaDataElement().withName("datavbennmfkbpjnrt") - .withType("dataw") - .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 d306fc166d7a..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\":\"tjhffecqkoqy\",\"serializer\":\"dataergaghpuzx\",\"deserializer\":\"datayehhfdyldhg\",\"\":{\"iyuq\":\"datazfz\"}}") - .toObject(DatasetStorageFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetStorageFormat model = new DatasetStorageFormat().withSerializer("dataergaghpuzx") - .withDeserializer("datayehhfdyldhg") - .withAdditionalProperties(mapOf("type", "tjhffecqkoqy")); - 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 8cf77cfa93bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.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.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\":\"m\",\"description\":\"rtuzqogs\",\"structure\":\"datanevfdnw\",\"schema\":\"datamewzsyyc\",\"linkedServiceName\":{\"referenceName\":\"uzsoi\",\"parameters\":{\"qbrqubpaxhexiili\":\"datadpfrxtrthzvaytdw\"}},\"parameters\":{\"oruzfgsquyfxrxx\":{\"type\":\"String\",\"defaultValue\":\"datairqtdqoa\"},\"lwnwxuqlcvydyp\":{\"type\":\"SecureString\",\"defaultValue\":\"datatramxjez\"}},\"annotations\":[\"dataooaojkniodkooebw\",\"dataujhemmsbvdkcrodt\",\"datainfwjlfltkacjve\",\"datakdlfoa\"],\"folder\":{\"name\":\"kfpagao\"},\"\":{\"jnsjervtiagxsd\":\"datalpqblylsyxk\",\"beyvpnqicvinvkjj\":\"datazuempsbzkf\",\"yhmlwpaztzp\":\"datadxrbuukzcle\",\"ckw\":\"datafn\"}}") - .toObject(Dataset.class); - Assertions.assertEquals("rtuzqogs", model.description()); - Assertions.assertEquals("uzsoi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("oruzfgsquyfxrxx").type()); - Assertions.assertEquals("kfpagao", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dataset model = new Dataset().withDescription("rtuzqogs") - .withStructure("datanevfdnw") - .withSchema("datamewzsyyc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uzsoi") - .withParameters(mapOf("qbrqubpaxhexiili", "datadpfrxtrthzvaytdw"))) - .withParameters(mapOf("oruzfgsquyfxrxx", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datairqtdqoa"), - "lwnwxuqlcvydyp", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatramxjez"))) - .withAnnotations( - Arrays.asList("dataooaojkniodkooebw", "dataujhemmsbvdkcrodt", "datainfwjlfltkacjve", "datakdlfoa")) - .withFolder(new DatasetFolder().withName("kfpagao")) - .withAdditionalProperties(mapOf("type", "m")); - model = BinaryData.fromObject(model).toObject(Dataset.class); - Assertions.assertEquals("rtuzqogs", model.description()); - Assertions.assertEquals("uzsoi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("oruzfgsquyfxrxx").type()); - Assertions.assertEquals("kfpagao", 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 bf4fe4b897a2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.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.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\":\"gfcbatflrpbg\",\"description\":\"dhnmyyagoebytkg\",\"structure\":\"datavbydmeraegfyr\",\"schema\":\"datalnbdtkojmmcnlsfo\",\"linkedServiceName\":{\"referenceName\":\"rywsavdijbi\",\"parameters\":{\"umz\":\"dataw\",\"nfjdgfmes\":\"datanjxnoqxgfvgpimtn\"}},\"parameters\":{\"d\":{\"type\":\"Object\",\"defaultValue\":\"dataofqbaeoozjncurn\"},\"dw\":{\"type\":\"Float\",\"defaultValue\":\"datalxktseaaha\"}},\"annotations\":[\"dataqwopjn\",\"dataa\"],\"folder\":{\"name\":\"xqpmdojbmxjohu\"},\"\":{\"jtre\":\"datanbi\",\"wiautvehpvlm\":\"datablw\",\"f\":\"databnlmzeqhqfr\"}},\"name\":\"ubtrtaipjifedowc\",\"type\":\"csg\",\"etag\":\"qyx\",\"id\":\"utqnvnet\"}"; - - 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("btnuqdde") - .withExistingFactory("utixykjlypmvo", "hfnsfbntdnoth") - .withProperties(new Dataset().withDescription("mnsunxfdpulpn") - .withStructure("datayxbbdxnnaeyczbky") - .withSchema("datapnbdzjuq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nqyusvgrba") - .withParameters(mapOf("dzhafpbce", "dataxtkuchbn"))) - .withParameters(mapOf("ixsalgzz", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("dataountffqaehbumoqi"))) - .withAnnotations(Arrays.asList("datakdcagmmegukef")) - .withFolder(new DatasetFolder().withName("g")) - .withAdditionalProperties(mapOf("type", "khq"))) - .withIfMatch("vpvzfvegumsqd") - .create(); - - Assertions.assertEquals("utqnvnet", response.id()); - Assertions.assertEquals("dhnmyyagoebytkg", response.properties().description()); - Assertions.assertEquals("rywsavdijbi", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, response.properties().parameters().get("d").type()); - Assertions.assertEquals("xqpmdojbmxjohu", 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 1c897f9e76f7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.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 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("pkkifjtxfdy", "ymijadh", "kapfqj", 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 86a9d923545d..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\":\"h\",\"description\":\"vgow\",\"structure\":\"datapqfsshjlpznxjym\",\"schema\":\"datalj\",\"linkedServiceName\":{\"referenceName\":\"groawlta\",\"parameters\":{\"eltrnogfyaimpk\":\"datamrreajp\",\"lwubkmdusnwok\":\"databgrug\",\"inrgqzlw\":\"datauxcmaukirzlfp\"}},\"parameters\":{\"kr\":{\"type\":\"String\",\"defaultValue\":\"datatxcjnwzvlzwy\"}},\"annotations\":[\"dataqgknpgqzmgivkf\"],\"folder\":{\"name\":\"aklxpwhvuihjl\"},\"\":{\"bq\":\"dataqinrfu\",\"jtrxqd\":\"datatyoaccrlydml\",\"ufe\":\"datapmhgqihuqajh\"}},\"name\":\"vy\",\"type\":\"ont\",\"etag\":\"vquwxxouflncah\",\"id\":\"lgnmyioalnkr\"}"; - - 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("ewyvwwvkicuvphkh", "zes", "sy", "vjkwpkn", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lgnmyioalnkr", response.id()); - Assertions.assertEquals("vgow", response.properties().description()); - Assertions.assertEquals("groawlta", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, response.properties().parameters().get("kr").type()); - Assertions.assertEquals("aklxpwhvuihjl", 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 394fcd4ff1df..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\":\"fvevsqvk\",\"description\":\"ytkluewthydgz\",\"structure\":\"databbfun\",\"schema\":\"dataywlvkpxz\",\"linkedServiceName\":{\"referenceName\":\"ioxarwxhpufvuc\",\"parameters\":{\"wyiyqmrcsekhuzi\":\"datamjbzekrw\",\"udmpsuqpraqjscni\":\"datae\",\"kpewtbyciedxs\":\"datapvx\",\"qoaxieu\":\"datayjjhrvembi\"}},\"parameters\":{\"pwbfb\":{\"type\":\"Float\",\"defaultValue\":\"datakhjxgukzz\"},\"sxuzda\":{\"type\":\"SecureString\",\"defaultValue\":\"datarqsipqbyv\"}},\"annotations\":[\"datamilpztwzjkbaudtp\"],\"folder\":{\"name\":\"qkntnvgwgtgxggm\"},\"\":{\"bkazv\":\"dataulqpzqxcygevgjzr\",\"pcleniozqruq\":\"databsbkyfbmwzb\",\"pyymlwallde\":\"datarpwz\"}},\"name\":\"rhgohdv\",\"type\":\"svrpnoxbokmqviv\",\"etag\":\"fbzrfmfadvfkjdwu\",\"id\":\"o\"}]}"; - - 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("aqjpsjrpkgvs", "wdcz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("o", response.iterator().next().id()); - Assertions.assertEquals("ytkluewthydgz", response.iterator().next().properties().description()); - Assertions.assertEquals("ioxarwxhpufvuc", - response.iterator().next().properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, - response.iterator().next().properties().parameters().get("pwbfb").type()); - Assertions.assertEquals("qkntnvgwgtgxggm", 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 bffa5d319cf0..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\":\"ehdydyybz\",\"query\":\"datawjmohqzzkplqmca\",\"queryTimeout\":\"datagfpqwwugfw\",\"additionalColumns\":\"datajcewbqaibkyeys\",\"sourceRetryCount\":\"dataylhdxcjqdvci\",\"sourceRetryWait\":\"datazkui\",\"maxConcurrentConnections\":\"datavghvecjhbttmhne\",\"disableMetricsCollection\":\"datarzieyxxidab\",\"\":{\"sfcryqrr\":\"datakknaacseqonl\"}}") - .toObject(Db2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2Source model = new Db2Source().withSourceRetryCount("dataylhdxcjqdvci") - .withSourceRetryWait("datazkui") - .withMaxConcurrentConnections("datavghvecjhbttmhne") - .withDisableMetricsCollection("datarzieyxxidab") - .withQueryTimeout("datagfpqwwugfw") - .withAdditionalColumns("datajcewbqaibkyeys") - .withQuery("datawjmohqzzkplqmca"); - 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 04a24afd5823..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\":\"alknuyapvibzic\",\"typeProperties\":{\"tableName\":\"datarlcck\",\"schema\":\"datafpjmspau\",\"table\":\"dataqom\"},\"description\":\"ichca\",\"structure\":\"datakhjxnrkbn\",\"schema\":\"dataccklzhzn\",\"linkedServiceName\":{\"referenceName\":\"gvlxyx\",\"parameters\":{\"dprtqjytdcfe\":\"datatigpksywicklktg\",\"gmlamoaxc\":\"datauhbdwbvjs\"}},\"parameters\":{\"cw\":{\"type\":\"Int\",\"defaultValue\":\"datakvbpbl\"},\"vlryszfh\":{\"type\":\"Array\",\"defaultValue\":\"dataheeocnqoubve\"},\"zhh\":{\"type\":\"Float\",\"defaultValue\":\"datafhxohz\"}},\"annotations\":[\"datafuxnvkdslcofuvtf\"],\"folder\":{\"name\":\"ouisakl\"},\"\":{\"ub\":\"dataddxqfus\",\"p\":\"datasspmjvailfauyv\",\"wvoglff\":\"datawlkqdgwbztrthl\"}}") - .toObject(Db2TableDataset.class); - Assertions.assertEquals("ichca", model.description()); - Assertions.assertEquals("gvlxyx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("cw").type()); - Assertions.assertEquals("ouisakl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDataset model = new Db2TableDataset().withDescription("ichca") - .withStructure("datakhjxnrkbn") - .withSchema("dataccklzhzn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("gvlxyx") - .withParameters(mapOf("dprtqjytdcfe", "datatigpksywicklktg", "gmlamoaxc", "datauhbdwbvjs"))) - .withParameters(mapOf("cw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datakvbpbl"), "vlryszfh", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataheeocnqoubve"), "zhh", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafhxohz"))) - .withAnnotations(Arrays.asList("datafuxnvkdslcofuvtf")) - .withFolder(new DatasetFolder().withName("ouisakl")) - .withTableName("datarlcck") - .withSchemaTypePropertiesSchema("datafpjmspau") - .withTable("dataqom"); - model = BinaryData.fromObject(model).toObject(Db2TableDataset.class); - Assertions.assertEquals("ichca", model.description()); - Assertions.assertEquals("gvlxyx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("cw").type()); - Assertions.assertEquals("ouisakl", 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 a5550284607c..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\":\"datahgslormhbtofcvx\",\"schema\":\"datalhcnsdylmnqunk\",\"table\":\"databptmsgkwedwlxtzh\"}") - .toObject(Db2TableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDatasetTypeProperties model = new Db2TableDatasetTypeProperties().withTableName("datahgslormhbtofcvx") - .withSchema("datalhcnsdylmnqunk") - .withTable("databptmsgkwedwlxtzh"); - 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 11cc1a61e5ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.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.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\":\"forujfluomaltvv\",\"typeProperties\":{\"recursive\":\"datavsz\",\"maxConcurrentConnections\":1886602185,\"enableLogging\":\"datazbxqfmhypwg\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"vspbdju\",\"parameters\":{\"pswewgdawhzdhszk\":\"datafnlqnrdsmr\",\"zmyvdabgctm\":\"datadlilkw\",\"kgrubs\":\"datantlrfxnok\"}},\"path\":\"dataznhdkxh\",\"logLevel\":\"datainjer\",\"enableReliableLogging\":\"dataurchn\",\"\":{\"rqhqqkhzpwsa\":\"dataelsvosvqjthluo\",\"vxwnmiumduwpq\":\"datawsentrcdz\",\"fbgkyonadtywzrnx\":\"datadduvxmrbbgli\",\"ygjbcfprioab\":\"dataktokiptxmdad\"}},\"dataset\":{\"referenceName\":\"xwid\",\"parameters\":{\"xtsywrmmhaxmo\":\"dataonnolrs\",\"armnseigoalxwuqu\":\"datauotexlpqydgfzet\",\"ghs\":\"datazrskdovgkpqzzrx\"}},\"storeSettings\":{\"type\":\"ogimihxyxe\",\"maxConcurrentConnections\":\"dataawixdcytdqami\",\"disableMetricsCollection\":\"datab\",\"\":{\"dzoauvwjkgpzco\":\"databca\",\"aqxztywzaq\":\"datawcnnzacqludq\",\"zlzpowsefpg\":\"datafqtstmyfebb\",\"pzbsytwt\":\"dataw\"}}},\"linkedServiceName\":{\"referenceName\":\"mafqsnwupuuby\",\"parameters\":{\"fnvxcomp\":\"datajyyngwzqyhrxoek\",\"pzbyudkoa\":\"datagnsmh\"}},\"policy\":{\"timeout\":\"dataaaocjlw\",\"retry\":\"datauwcrextdy\",\"retryIntervalInSeconds\":1718647080,\"secureInput\":false,\"secureOutput\":false,\"\":{\"xrhveyngzjxjbk\":\"datam\",\"fqimjldeluq\":\"datatahguvqghuehgcqh\"}},\"name\":\"udhtdapkdahy\",\"description\":\"tixrkjogyqrmt\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ibyfy\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Skipped\"],\"\":{\"al\":\"datauqylmlunquvl\",\"ztlxfgynq\":\"dataw\",\"fq\":\"datadnaidacsku\",\"rcrknnruceuwfmrc\":\"dataxzdlfswubjvs\"}}],\"userProperties\":[{\"name\":\"nj\",\"value\":\"datak\"},{\"name\":\"zhtovs\",\"value\":\"dataieoth\"}],\"\":{\"kdkd\":\"datakprv\",\"pcghcf\":\"datadsmavtndgfmtxim\",\"erybdiajeeahweru\":\"dataduqefdtpur\"}}") - .toObject(DeleteActivity.class); - Assertions.assertEquals("udhtdapkdahy", model.name()); - Assertions.assertEquals("tixrkjogyqrmt", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ibyfy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nj", model.userProperties().get(0).name()); - Assertions.assertEquals("mafqsnwupuuby", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1718647080, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(1886602185, model.maxConcurrentConnections()); - Assertions.assertEquals("vspbdju", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("xwid", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivity model = new DeleteActivity().withName("udhtdapkdahy") - .withDescription("tixrkjogyqrmt") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("ibyfy") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("nj").withValue("datak"), - new UserProperty().withName("zhtovs").withValue("dataieoth"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mafqsnwupuuby") - .withParameters(mapOf("fnvxcomp", "datajyyngwzqyhrxoek", "pzbyudkoa", "datagnsmh"))) - .withPolicy(new ActivityPolicy().withTimeout("dataaaocjlw") - .withRetry("datauwcrextdy") - .withRetryIntervalInSeconds(1718647080) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withRecursive("datavsz") - .withMaxConcurrentConnections(1886602185) - .withEnableLogging("datazbxqfmhypwg") - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vspbdju") - .withParameters(mapOf("pswewgdawhzdhszk", "datafnlqnrdsmr", "zmyvdabgctm", "datadlilkw", "kgrubs", - "datantlrfxnok"))) - .withPath("dataznhdkxh") - .withLogLevel("datainjer") - .withEnableReliableLogging("dataurchn") - .withAdditionalProperties(mapOf())) - .withDataset(new DatasetReference().withReferenceName("xwid") - .withParameters(mapOf("xtsywrmmhaxmo", "dataonnolrs", "armnseigoalxwuqu", "datauotexlpqydgfzet", "ghs", - "datazrskdovgkpqzzrx"))) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataawixdcytdqami") - .withDisableMetricsCollection("datab") - .withAdditionalProperties(mapOf("type", "ogimihxyxe"))); - model = BinaryData.fromObject(model).toObject(DeleteActivity.class); - Assertions.assertEquals("udhtdapkdahy", model.name()); - Assertions.assertEquals("tixrkjogyqrmt", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ibyfy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nj", model.userProperties().get(0).name()); - Assertions.assertEquals("mafqsnwupuuby", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1718647080, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(1886602185, model.maxConcurrentConnections()); - Assertions.assertEquals("vspbdju", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("xwid", 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 545f979342ed..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\":\"dataoeyyx\",\"maxConcurrentConnections\":2063070863,\"enableLogging\":\"datakkglahdwxyit\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"foek\",\"parameters\":{\"gfy\":\"datajvtfzaqno\",\"s\":\"datafohuxpfxkjrhgw\"}},\"path\":\"dataewkkqvkuzifsg\",\"logLevel\":\"datalfk\",\"enableReliableLogging\":\"datamwezsirhpigq\",\"\":{\"ywbssli\":\"datadrcj\",\"qqeslnaoxke\":\"datahcpuddbzxi\",\"fzyxamyjhp\":\"datautrlzzztg\",\"ily\":\"datazuvsjblqmddtp\"}},\"dataset\":{\"referenceName\":\"joboqts\",\"parameters\":{\"uvcfmtmmpvoa\":\"datauywg\"}},\"storeSettings\":{\"type\":\"lxgtu\",\"maxConcurrentConnections\":\"datajgtsk\",\"disableMetricsCollection\":\"databjylo\",\"\":{\"qsubzi\":\"datacbqocerbwa\",\"nhesw\":\"dataelphauldalspe\",\"vgviycjulun\":\"datallqyvblfprskxhg\",\"bnjpivoizxkh\":\"datatuficip\"}}}") - .toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(2063070863, model.maxConcurrentConnections()); - Assertions.assertEquals("foek", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("joboqts", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivityTypeProperties model = new DeleteActivityTypeProperties().withRecursive("dataoeyyx") - .withMaxConcurrentConnections(2063070863) - .withEnableLogging("datakkglahdwxyit") - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("foek") - .withParameters(mapOf("gfy", "datajvtfzaqno", "s", "datafohuxpfxkjrhgw"))) - .withPath("dataewkkqvkuzifsg") - .withLogLevel("datalfk") - .withEnableReliableLogging("datamwezsirhpigq") - .withAdditionalProperties(mapOf())) - .withDataset( - new DatasetReference().withReferenceName("joboqts").withParameters(mapOf("uvcfmtmmpvoa", "datauywg"))) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datajgtsk") - .withDisableMetricsCollection("databjylo") - .withAdditionalProperties(mapOf("type", "lxgtu"))); - model = BinaryData.fromObject(model).toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(2063070863, model.maxConcurrentConnections()); - Assertions.assertEquals("foek", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("joboqts", 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 3068221d0b18..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\":\"oucs\"}").toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("oucs", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteDataFlowDebugSessionRequest model = new DeleteDataFlowDebugSessionRequest().withSessionId("oucs"); - model = BinaryData.fromObject(model).toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("oucs", 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 ae87972d06bf..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\":\"nxhq\",\"skipLineCount\":\"datamnswxq\",\"compressionProperties\":{\"type\":\"ffcanvr\",\"\":{\"hsz\":\"datalgxmgghut\",\"gpbi\":\"dataljyogcpwn\"}},\"\":{\"qdikuvjclspdh\":\"datamfo\",\"awtpwnk\":\"datahkflwnlp\",\"ozfygvsfafcar\":\"datawxlplqni\"}}") - .toObject(DelimitedTextReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextReadSettings model = new DelimitedTextReadSettings().withSkipLineCount("datamnswxq") - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "ffcanvr"))); - 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 68d3cc623da2..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\":\"qaq\",\"storeSettings\":{\"type\":\"johwwtlerhpf\",\"maxConcurrentConnections\":\"datarqnjush\",\"disableMetricsCollection\":\"datahtvnqcmrrgmlwgo\",\"copyBehavior\":\"datascsddlcnwbi\",\"metadata\":[{\"name\":\"datangeffrghwd\",\"value\":\"dataowhrrguvdrggucw\"},{\"name\":\"datalmsikl\",\"value\":\"datam\"},{\"name\":\"datacphgimi\",\"value\":\"datahrbs\"}],\"\":{\"qfbgeblp\":\"dataublouelf\",\"swgfjrg\":\"datawckmnpzubzq\"}},\"formatSettings\":{\"type\":\"uop\",\"quoteAllText\":\"dataklfswzsyigxsyxhy\",\"fileExtension\":\"dataczab\",\"maxRowsPerFile\":\"dataeu\",\"fileNamePrefix\":\"datazf\",\"\":{\"sspcutgkm\":\"dataa\"}},\"writeBatchSize\":\"datalnhgisiwzzk\",\"writeBatchTimeout\":\"dataqrngl\",\"sinkRetryCount\":\"datatu\",\"sinkRetryWait\":\"datafwdkpadktsyy\",\"maxConcurrentConnections\":\"dataojrfqtfk\",\"disableMetricsCollection\":\"dataupmdajqpdvvzb\",\"\":{\"mvtqhn\":\"dataxokiffqpwdyzset\",\"cprkqywyb\":\"dataoij\"}}") - .toObject(DelimitedTextSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSink model = new DelimitedTextSink().withWriteBatchSize("datalnhgisiwzzk") - .withWriteBatchTimeout("dataqrngl") - .withSinkRetryCount("datatu") - .withSinkRetryWait("datafwdkpadktsyy") - .withMaxConcurrentConnections("dataojrfqtfk") - .withDisableMetricsCollection("dataupmdajqpdvvzb") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datarqnjush") - .withDisableMetricsCollection("datahtvnqcmrrgmlwgo") - .withCopyBehavior("datascsddlcnwbi") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datangeffrghwd").withValue("dataowhrrguvdrggucw"), - new MetadataItem().withName("datalmsikl").withValue("datam"), - new MetadataItem().withName("datacphgimi").withValue("datahrbs"))) - .withAdditionalProperties(mapOf("type", "johwwtlerhpf"))) - .withFormatSettings(new DelimitedTextWriteSettings().withQuoteAllText("dataklfswzsyigxsyxhy") - .withFileExtension("dataczab") - .withMaxRowsPerFile("dataeu") - .withFileNamePrefix("datazf")); - 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 8e563d3f1295..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.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.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\":\"hoikemhohxab\",\"storeSettings\":{\"type\":\"ubhmiuxypvua\",\"maxConcurrentConnections\":\"datajtbnek\",\"disableMetricsCollection\":\"datazbfbuqeq\",\"\":{\"pp\":\"datazarr\"}},\"formatSettings\":{\"type\":\"ycxpzattaloo\",\"skipLineCount\":\"datayqnrjd\",\"compressionProperties\":{\"type\":\"arvzewo\",\"\":{\"romeawthycbigpi\":\"datapzxkjqecjf\",\"sulmuwlawa\":\"datatpxhzjnpa\",\"a\":\"dataheoxxqg\"}},\"\":{\"zslrprft\":\"datamxwt\"}},\"additionalColumns\":\"datafvouy\",\"sourceRetryCount\":\"dataoowpoogoz\",\"sourceRetryWait\":\"datacc\",\"maxConcurrentConnections\":\"datap\",\"disableMetricsCollection\":\"datakg\",\"\":{\"jkajlogvfnwq\":\"datajeqqjqa\"}}") - .toObject(DelimitedTextSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSource model = new DelimitedTextSource().withSourceRetryCount("dataoowpoogoz") - .withSourceRetryWait("datacc") - .withMaxConcurrentConnections("datap") - .withDisableMetricsCollection("datakg") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datajtbnek") - .withDisableMetricsCollection("datazbfbuqeq") - .withAdditionalProperties(mapOf("type", "ubhmiuxypvua"))) - .withFormatSettings(new DelimitedTextReadSettings().withSkipLineCount("datayqnrjd") - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "arvzewo")))) - .withAdditionalColumns("datafvouy"); - 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 6aff7e7a919d..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\":\"wuzanpoyrqjoniln\",\"quoteAllText\":\"dataduxbungmpn\",\"fileExtension\":\"dataytgu\",\"maxRowsPerFile\":\"datafxgl\",\"fileNamePrefix\":\"datajugoazzyz\",\"\":{\"dcloqpgzdbo\":\"dataest\"}}") - .toObject(DelimitedTextWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextWriteSettings model = new DelimitedTextWriteSettings().withQuoteAllText("dataduxbungmpn") - .withFileExtension("dataytgu") - .withMaxRowsPerFile("datafxgl") - .withFileNamePrefix("datajugoazzyz"); - 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 cc68d6ef1359..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.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.DependencyReference; - -public final class DependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DependencyReference model = BinaryData.fromString("{\"type\":\"rttshr\"}").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 382593a756ec..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\":\"dataapbdbicjzntiblx\",\"tempScriptPath\":\"dataygosuhroicjt\",\"distcpOptions\":\"datadymoanpkcmdixiux\"}") - .toObject(DistcpSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DistcpSettings model = new DistcpSettings().withResourceManagerEndpoint("dataapbdbicjzntiblx") - .withTempScriptPath("dataygosuhroicjt") - .withDistcpOptions("datadymoanpkcmdixiux"); - 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 a1c452c1dd8d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.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.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\":\"cffrx\",\"typeProperties\":{\"collectionName\":\"dataivdfwgqjh\"},\"description\":\"ezkhzp\",\"structure\":\"dataqissen\",\"schema\":\"datarusyzai\",\"linkedServiceName\":{\"referenceName\":\"npsjnpc\",\"parameters\":{\"lvvmnbkxja\":\"dataujyduonbdawsao\",\"xqkdyqjvzvcgrds\":\"datasbbdddwokqxai\",\"hvzf\":\"datazesfkqqx\",\"wukokgoojj\":\"databrouszxac\"}},\"parameters\":{\"unhgbtzvxxvsbcuu\":{\"type\":\"String\",\"defaultValue\":\"databc\"},\"urqmw\":{\"type\":\"Array\",\"defaultValue\":\"datafnkcnihkswxm\"},\"svnkxmyt\":{\"type\":\"Object\",\"defaultValue\":\"datapntumotahb\"}},\"annotations\":[\"dataedr\"],\"folder\":{\"name\":\"gc\"},\"\":{\"zzmiemqyft\":\"datarhkv\",\"mghpakbqyh\":\"datapqoswgfqv\",\"jm\":\"datasornfbmeqagkn\"}}") - .toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("ezkhzp", model.description()); - Assertions.assertEquals("npsjnpc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("unhgbtzvxxvsbcuu").type()); - Assertions.assertEquals("gc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDataset model = new DocumentDbCollectionDataset().withDescription("ezkhzp") - .withStructure("dataqissen") - .withSchema("datarusyzai") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("npsjnpc") - .withParameters(mapOf("lvvmnbkxja", "dataujyduonbdawsao", "xqkdyqjvzvcgrds", "datasbbdddwokqxai", - "hvzf", "datazesfkqqx", "wukokgoojj", "databrouszxac"))) - .withParameters(mapOf("unhgbtzvxxvsbcuu", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databc"), "urqmw", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datafnkcnihkswxm"), - "svnkxmyt", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datapntumotahb"))) - .withAnnotations(Arrays.asList("dataedr")) - .withFolder(new DatasetFolder().withName("gc")) - .withCollectionName("dataivdfwgqjh"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("ezkhzp", model.description()); - Assertions.assertEquals("npsjnpc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("unhgbtzvxxvsbcuu").type()); - Assertions.assertEquals("gc", 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 ffd5992dcc91..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\":\"databnyevztnjawrhule\"}") - .toObject(DocumentDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDatasetTypeProperties model - = new DocumentDbCollectionDatasetTypeProperties().withCollectionName("databnyevztnjawrhule"); - 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 36a5cead66f7..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\":\"snzxipgfkcodoune\",\"nestingSeparator\":\"dataetqcxoamxum\",\"writeBehavior\":\"dataduhixomxvbru\",\"writeBatchSize\":\"datagnwmcizclnqexln\",\"writeBatchTimeout\":\"datapwdfjsj\",\"sinkRetryCount\":\"datandrkncfoqds\",\"sinkRetryWait\":\"datalcvpq\",\"maxConcurrentConnections\":\"datasfdpik\",\"disableMetricsCollection\":\"datag\",\"\":{\"ophcwzdwvy\":\"datagrppwoligflj\",\"vy\":\"datazo\"}}") - .toObject(DocumentDbCollectionSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSink model = new DocumentDbCollectionSink().withWriteBatchSize("datagnwmcizclnqexln") - .withWriteBatchTimeout("datapwdfjsj") - .withSinkRetryCount("datandrkncfoqds") - .withSinkRetryWait("datalcvpq") - .withMaxConcurrentConnections("datasfdpik") - .withDisableMetricsCollection("datag") - .withNestingSeparator("dataetqcxoamxum") - .withWriteBehavior("dataduhixomxvbru"); - 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 0b53d7f769e6..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\":\"yiheheimuqqmd\",\"query\":\"datawfrmhookef\",\"nestingSeparator\":\"datafexakctlcps\",\"queryTimeout\":\"datancco\",\"additionalColumns\":\"dataqxmdievkmrso\",\"sourceRetryCount\":\"datawxfmrm\",\"sourceRetryWait\":\"dataf\",\"maxConcurrentConnections\":\"datasypmt\",\"disableMetricsCollection\":\"datavszlaf\",\"\":{\"lcnurh\":\"dataldhhkdeviwpzhfx\"}}") - .toObject(DocumentDbCollectionSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSource model = new DocumentDbCollectionSource().withSourceRetryCount("datawxfmrm") - .withSourceRetryWait("dataf") - .withMaxConcurrentConnections("datasypmt") - .withDisableMetricsCollection("datavszlaf") - .withQuery("datawfrmhookef") - .withNestingSeparator("datafexakctlcps") - .withQueryTimeout("datancco") - .withAdditionalColumns("dataqxmdievkmrso"); - 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 5906bde99d9e..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\":\"datauklx\",\"table\":\"datalmzpyq\",\"schema\":\"datahuecxhgs\"}") - .toObject(DrillDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillDatasetTypeProperties model = new DrillDatasetTypeProperties().withTableName("datauklx") - .withTable("datalmzpyq") - .withSchema("datahuecxhgs"); - 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 df431a23337e..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\":\"wgzhbwhjv\",\"query\":\"datauz\",\"queryTimeout\":\"datal\",\"additionalColumns\":\"datak\",\"sourceRetryCount\":\"datauhvygxckit\",\"sourceRetryWait\":\"dataxoco\",\"maxConcurrentConnections\":\"datasgx\",\"disableMetricsCollection\":\"datajvdajxebmliyrc\",\"\":{\"kukra\":\"dataa\",\"hwdicntqsrhacjsb\":\"datand\"}}") - .toObject(DrillSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillSource model = new DrillSource().withSourceRetryCount("datauhvygxckit") - .withSourceRetryWait("dataxoco") - .withMaxConcurrentConnections("datasgx") - .withDisableMetricsCollection("datajvdajxebmliyrc") - .withQueryTimeout("datal") - .withAdditionalColumns("datak") - .withQuery("datauz"); - 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 d1a5f2a04352..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.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.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\":\"dz\",\"typeProperties\":{\"tableName\":\"datav\",\"table\":\"dataxlffqgdodnkqyip\",\"schema\":\"datamjtda\"},\"description\":\"imeftgdrf\",\"structure\":\"datalflz\",\"schema\":\"datavdava\",\"linkedServiceName\":{\"referenceName\":\"xiefcorzbidaeb\",\"parameters\":{\"fajw\":\"dataicew\",\"wwsr\":\"dataylciobb\"}},\"parameters\":{\"mnteevfg\":{\"type\":\"Object\",\"defaultValue\":\"dataecuuuex\"}},\"annotations\":[\"dataezraqsddkod\",\"datagxqfkyr\"],\"folder\":{\"name\":\"zzeglwdzfss\"},\"\":{\"ddkkraj\":\"datagaok\"}}") - .toObject(DrillTableDataset.class); - Assertions.assertEquals("imeftgdrf", model.description()); - Assertions.assertEquals("xiefcorzbidaeb", 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 { - DrillTableDataset model = new DrillTableDataset().withDescription("imeftgdrf") - .withStructure("datalflz") - .withSchema("datavdava") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xiefcorzbidaeb") - .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("datav") - .withTable("dataxlffqgdodnkqyip") - .withSchemaTypePropertiesSchema("datamjtda"); - model = BinaryData.fromObject(model).toObject(DrillTableDataset.class); - Assertions.assertEquals("imeftgdrf", model.description()); - Assertions.assertEquals("xiefcorzbidaeb", 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/DynamicsAXResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java deleted file mode 100644 index 06c228214bb8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.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.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\":\"xchquo\",\"typeProperties\":{\"path\":\"datatjuzvyj\"},\"description\":\"qrcsksxq\",\"structure\":\"datalrvuvdagv\",\"schema\":\"datacdp\",\"linkedServiceName\":{\"referenceName\":\"cvfyeqyodi\",\"parameters\":{\"mevljbcuwrfgpjfv\":\"datasapqhipajsniv\",\"gvcykzzu\":\"datawkseodvlmd\"}},\"parameters\":{\"vvcrsm\":{\"type\":\"Array\",\"defaultValue\":\"databbmuml\"},\"mnrut\":{\"type\":\"Int\",\"defaultValue\":\"datamxwcv\"},\"f\":{\"type\":\"Array\",\"defaultValue\":\"dataeq\"},\"opecvpkb\":{\"type\":\"Object\",\"defaultValue\":\"datat\"}},\"annotations\":[\"datanowpajfhxsmu\",\"databzadzglmuuzpsu\",\"datasypxmul\",\"datahfrerkqpyfjxkb\"],\"folder\":{\"name\":\"buq\"},\"\":{\"hyvdbrdvsv\":\"databdjkmnxsggnow\"}}") - .toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("qrcsksxq", model.description()); - Assertions.assertEquals("cvfyeqyodi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vvcrsm").type()); - Assertions.assertEquals("buq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDataset model = new DynamicsAXResourceDataset().withDescription("qrcsksxq") - .withStructure("datalrvuvdagv") - .withSchema("datacdp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("cvfyeqyodi") - .withParameters(mapOf("mevljbcuwrfgpjfv", "datasapqhipajsniv", "gvcykzzu", "datawkseodvlmd"))) - .withParameters(mapOf("vvcrsm", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("databbmuml"), "mnrut", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datamxwcv"), "f", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataeq"), "opecvpkb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datat"))) - .withAnnotations( - Arrays.asList("datanowpajfhxsmu", "databzadzglmuuzpsu", "datasypxmul", "datahfrerkqpyfjxkb")) - .withFolder(new DatasetFolder().withName("buq")) - .withPath("datatjuzvyj"); - model = BinaryData.fromObject(model).toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("qrcsksxq", model.description()); - Assertions.assertEquals("cvfyeqyodi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vvcrsm").type()); - Assertions.assertEquals("buq", 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 59c3ea36ed21..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\":\"datahbtyc\"}").toObject(DynamicsAXResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDatasetTypeProperties model - = new DynamicsAXResourceDatasetTypeProperties().withPath("datahbtyc"); - 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 a9db7654a7a7..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\":\"j\",\"query\":\"datatsgvvizayg\",\"httpRequestTimeout\":\"dataml\",\"queryTimeout\":\"dataijpayvlnzwicqopw\",\"additionalColumns\":\"datadleegwlhanyueizh\",\"sourceRetryCount\":\"datax\",\"sourceRetryWait\":\"datahxiotlfzbj\",\"maxConcurrentConnections\":\"datauqkb\",\"disableMetricsCollection\":\"dataicoaysargqkgaus\",\"\":{\"mlkxvfejdgojavqe\":\"datadyfyjee\",\"smnxcc\":\"dataekkvayyyowj\",\"hlokhmkqy\":\"datas\",\"ddwfhfjfato\":\"dataa\"}}") - .toObject(DynamicsAXSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXSource model = new DynamicsAXSource().withSourceRetryCount("datax") - .withSourceRetryWait("datahxiotlfzbj") - .withMaxConcurrentConnections("datauqkb") - .withDisableMetricsCollection("dataicoaysargqkgaus") - .withQueryTimeout("dataijpayvlnzwicqopw") - .withAdditionalColumns("datadleegwlhanyueizh") - .withQuery("datatsgvvizayg") - .withHttpRequestTimeout("dataml"); - 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 89e1661abfc6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.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.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\":\"uvqhxtozfgdkw\",\"typeProperties\":{\"entityName\":\"datazbvb\"},\"description\":\"urklp\",\"structure\":\"datagfuzkeutuipj\",\"schema\":\"datazjwaqdzqydewu\",\"linkedServiceName\":{\"referenceName\":\"xyll\",\"parameters\":{\"qwcz\":\"dataevt\",\"iysdhorkslhraqki\":\"datachwbekmuynfpkyvn\",\"qwmwqoguflteat\":\"datalwkffl\"}},\"parameters\":{\"nvxwtdqtcbjdbtqy\":{\"type\":\"Float\",\"defaultValue\":\"datazjxnjtqbgysibt\"},\"oawh\":{\"type\":\"Object\",\"defaultValue\":\"dataunsaujqgbbjvo\"}},\"annotations\":[\"datambcsloygsabdgd\",\"datae\",\"dataonsdunr\"],\"folder\":{\"name\":\"zuatqhgzuyxt\"},\"\":{\"sffavdhpiwrmuwk\":\"datadbqskgqjbvitptp\",\"yldqtmggcpd\":\"datajwbyfdwfbw\",\"zctwymzsk\":\"datamegaj\",\"eiphgliupqs\":\"dataqkkge\"}}") - .toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("urklp", model.description()); - Assertions.assertEquals("xyll", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("nvxwtdqtcbjdbtqy").type()); - Assertions.assertEquals("zuatqhgzuyxt", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDataset model = new DynamicsCrmEntityDataset().withDescription("urklp") - .withStructure("datagfuzkeutuipj") - .withSchema("datazjwaqdzqydewu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xyll") - .withParameters(mapOf("qwcz", "dataevt", "iysdhorkslhraqki", "datachwbekmuynfpkyvn", "qwmwqoguflteat", - "datalwkffl"))) - .withParameters(mapOf("nvxwtdqtcbjdbtqy", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datazjxnjtqbgysibt"), - "oawh", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataunsaujqgbbjvo"))) - .withAnnotations(Arrays.asList("datambcsloygsabdgd", "datae", "dataonsdunr")) - .withFolder(new DatasetFolder().withName("zuatqhgzuyxt")) - .withEntityName("datazbvb"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("urklp", model.description()); - Assertions.assertEquals("xyll", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("nvxwtdqtcbjdbtqy").type()); - Assertions.assertEquals("zuatqhgzuyxt", 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 10204077956a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.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.DynamicsCrmEntityDatasetTypeProperties; - -public final class DynamicsCrmEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model - = BinaryData.fromString("{\"entityName\":\"dataobkjlcaxsqcomjiq\"}") - .toObject(DynamicsCrmEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model - = new DynamicsCrmEntityDatasetTypeProperties().withEntityName("dataobkjlcaxsqcomjiq"); - 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 728b8b6fbeb4..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\":\"ipuyefhhdrmg\",\"query\":\"dataqlafi\",\"additionalColumns\":\"dataw\",\"sourceRetryCount\":\"datafgyxkgqwmpghxpcx\",\"sourceRetryWait\":\"databnk\",\"maxConcurrentConnections\":\"datacodhxsbx\",\"disableMetricsCollection\":\"datafwxdouuyzpaq\",\"\":{\"fhk\":\"datajxgedtmzh\"}}") - .toObject(DynamicsCrmSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmSource model = new DynamicsCrmSource().withSourceRetryCount("datafgyxkgqwmpghxpcx") - .withSourceRetryWait("databnk") - .withMaxConcurrentConnections("datacodhxsbx") - .withDisableMetricsCollection("datafwxdouuyzpaq") - .withQuery("dataqlafi") - .withAdditionalColumns("dataw"); - 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 aecd37c60d44..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.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.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\":\"itaxju\",\"typeProperties\":{\"entityName\":\"datakitzm\"},\"description\":\"tjlxsgcemegdzdvy\",\"structure\":\"datau\",\"schema\":\"dataf\",\"linkedServiceName\":{\"referenceName\":\"yzufldifnivlutgg\",\"parameters\":{\"oiyygkts\":\"datacxauhvcgzxhklsqx\",\"xxoxwfzbkv\":\"dataj\"}},\"parameters\":{\"snbwutlvuwm\":{\"type\":\"Bool\",\"defaultValue\":\"dataxphsowbe\"}},\"annotations\":[\"dataustihtgrafjajvky\",\"datammjczvog\"],\"folder\":{\"name\":\"rjenn\"},\"\":{\"xnrp\":\"dataaeuwqdwxhhlbmyph\",\"ywbihqbtodjfyx\":\"datahewokyqsfkxf\",\"rugyozzzawnjdv\":\"datavkvwzdmvddqw\"}}") - .toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("tjlxsgcemegdzdvy", model.description()); - Assertions.assertEquals("yzufldifnivlutgg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("snbwutlvuwm").type()); - Assertions.assertEquals("rjenn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDataset model = new DynamicsEntityDataset().withDescription("tjlxsgcemegdzdvy") - .withStructure("datau") - .withSchema("dataf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("yzufldifnivlutgg") - .withParameters(mapOf("oiyygkts", "datacxauhvcgzxhklsqx", "xxoxwfzbkv", "dataj"))) - .withParameters(mapOf("snbwutlvuwm", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataxphsowbe"))) - .withAnnotations(Arrays.asList("dataustihtgrafjajvky", "datammjczvog")) - .withFolder(new DatasetFolder().withName("rjenn")) - .withEntityName("datakitzm"); - model = BinaryData.fromObject(model).toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("tjlxsgcemegdzdvy", model.description()); - Assertions.assertEquals("yzufldifnivlutgg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("snbwutlvuwm").type()); - Assertions.assertEquals("rjenn", 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 a3b42c7fcc27..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\":\"datarho\"}").toObject(DynamicsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDatasetTypeProperties model = new DynamicsEntityDatasetTypeProperties().withEntityName("datarho"); - 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 5927dab89acf..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\":\"pmwo\",\"query\":\"datawibtkr\",\"additionalColumns\":\"datagbzrlfsewusqupkr\",\"sourceRetryCount\":\"datajin\",\"sourceRetryWait\":\"datartecfvzslttkp\",\"maxConcurrentConnections\":\"datakujceeczhsdpfoa\",\"disableMetricsCollection\":\"dataahuwxodddqz\",\"\":{\"qnao\":\"datarytgsocqkdclb\",\"mp\":\"datas\",\"uaysxh\":\"datacbhezau\"}}") - .toObject(DynamicsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsSource model = new DynamicsSource().withSourceRetryCount("datajin") - .withSourceRetryWait("datartecfvzslttkp") - .withMaxConcurrentConnections("datakujceeczhsdpfoa") - .withDisableMetricsCollection("dataahuwxodddqz") - .withQuery("datawibtkr") - .withAdditionalColumns("datagbzrlfsewusqupkr"); - 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 b66715ced25b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.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.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\":\"ljnzpqhqqsarkyul\",\"typeProperties\":{\"tableName\":\"dataqrwwbdrwro\"},\"description\":\"mea\",\"structure\":\"datajqenhekzazvgeytl\",\"schema\":\"datas\",\"linkedServiceName\":{\"referenceName\":\"fcvedks\",\"parameters\":{\"crhnx\":\"datatolkyqfnj\",\"wunrtcsra\":\"datamfv\",\"nbunsodtevzshqy\":\"datawhyxfshmbydmv\",\"pshaezc\":\"dataeb\"}},\"parameters\":{\"ejst\":{\"type\":\"Array\",\"defaultValue\":\"datarnovqdmh\"},\"jakgk\":{\"type\":\"SecureString\",\"defaultValue\":\"dataa\"},\"hsobvcnsbioez\":{\"type\":\"String\",\"defaultValue\":\"dataqdsoqzhxwdjoxwkb\"}},\"annotations\":[\"datahn\",\"dataz\"],\"folder\":{\"name\":\"z\"},\"\":{\"cmwbejywwwvn\":\"datagtkxncwdytnlr\",\"fyziruqvgnjxiak\":\"datawwkrmqevrhhafqfu\",\"yugmb\":\"datayjmzbmxgikyl\",\"loxtvq\":\"datadcv\"}}") - .toObject(EloquaObjectDataset.class); - Assertions.assertEquals("mea", model.description()); - Assertions.assertEquals("fcvedks", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ejst").type()); - Assertions.assertEquals("z", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaObjectDataset model = new EloquaObjectDataset().withDescription("mea") - .withStructure("datajqenhekzazvgeytl") - .withSchema("datas") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("fcvedks") - .withParameters(mapOf("crhnx", "datatolkyqfnj", "wunrtcsra", "datamfv", "nbunsodtevzshqy", - "datawhyxfshmbydmv", "pshaezc", "dataeb"))) - .withParameters(mapOf("ejst", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datarnovqdmh"), "jakgk", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataa"), - "hsobvcnsbioez", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataqdsoqzhxwdjoxwkb"))) - .withAnnotations(Arrays.asList("datahn", "dataz")) - .withFolder(new DatasetFolder().withName("z")) - .withTableName("dataqrwwbdrwro"); - model = BinaryData.fromObject(model).toObject(EloquaObjectDataset.class); - Assertions.assertEquals("mea", model.description()); - Assertions.assertEquals("fcvedks", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ejst").type()); - Assertions.assertEquals("z", 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 44ed2dce9956..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\":\"kjithx\",\"query\":\"dataqrc\",\"queryTimeout\":\"dataovljtrmlxrqllug\",\"additionalColumns\":\"datambwdkziwwb\",\"sourceRetryCount\":\"datavpkvc\",\"sourceRetryWait\":\"datawcfshhck\",\"maxConcurrentConnections\":\"datafm\",\"disableMetricsCollection\":\"dataprtk\",\"\":{\"cugwkuhqbwgmznv\":\"datawuep\",\"qkieyqpubw\":\"datawcnj\",\"cjrbsq\":\"datazxetx\"}}") - .toObject(EloquaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaSource model = new EloquaSource().withSourceRetryCount("datavpkvc") - .withSourceRetryWait("datawcfshhck") - .withMaxConcurrentConnections("datafm") - .withDisableMetricsCollection("dataprtk") - .withQueryTimeout("dataovljtrmlxrqllug") - .withAdditionalColumns("datambwdkziwwb") - .withQuery("dataqrc"); - 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 42ea4b8fe7e9..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\":\"agugwxdwtfmfj\"}") - .toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("agugwxdwtfmfj", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EntityReference model - = new EntityReference().withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("agugwxdwtfmfj"); - model = BinaryData.fromObject(model).toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("agugwxdwtfmfj", 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 8169c1d9b797..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\":\"zcufysalbjfkj\",\"typeProperties\":{\"variableName\":\"jguzsyfwamhmeo\",\"variableValue\":\"xbzagwnompvyis\"}}") - .toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("jguzsyfwamhmeo", model.variableName()); - Assertions.assertEquals("xbzagwnompvyis", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetup model - = new EnvironmentVariableSetup().withVariableName("jguzsyfwamhmeo").withVariableValue("xbzagwnompvyis"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("jguzsyfwamhmeo", model.variableName()); - Assertions.assertEquals("xbzagwnompvyis", 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 7301ae02e537..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\":\"xqfzmhkridipwczj\",\"variableValue\":\"nmpifj\"}") - .toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("xqfzmhkridipwczj", model.variableName()); - Assertions.assertEquals("nmpifj", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetupTypeProperties model - = new EnvironmentVariableSetupTypeProperties().withVariableName("xqfzmhkridipwczj") - .withVariableValue("nmpifj"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("xqfzmhkridipwczj", model.variableName()); - Assertions.assertEquals("nmpifj", 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 9eb6df015718..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"dscnns\",\"typeProperties\":{\"location\":{\"type\":\"rfihscj\",\"folderPath\":\"datakmhzbh\",\"fileName\":\"datahf\",\"\":{\"nuqqkotauratnicp\":\"datahbnnxemv\"}},\"sheetName\":\"datazsclefyrletn\",\"sheetIndex\":\"datalmfdg\",\"range\":\"databbuypwovvvsflee\",\"firstRowAsHeader\":\"dataoqayrehjuqwv\",\"compression\":{\"type\":\"dataxrlzhpziha\",\"level\":\"datanqqz\",\"\":{\"gmkfw\":\"dataqzubfonfd\",\"ewfhxwyrkbre\":\"datajcw\",\"ynjpchamkaepl\":\"datazl\",\"uywevtjrieikmwl\":\"dataajubo\"}},\"nullValue\":\"dataklfnisyxgucbmt\"},\"description\":\"cyyuvtzrxzhclec\",\"structure\":\"datatzqzcloy\",\"schema\":\"datau\",\"linkedServiceName\":{\"referenceName\":\"gi\",\"parameters\":{\"mwb\":\"datagyresgzsd\",\"lb\":\"dataorj\",\"xqjsiuepm\":\"datahychakvyrfbqvum\"}},\"parameters\":{\"t\":{\"type\":\"Object\",\"defaultValue\":\"datalpqmp\"},\"mrtuxyp\":{\"type\":\"String\",\"defaultValue\":\"datavulb\"}},\"annotations\":[\"datacaeo\",\"dataifq\",\"dataywjflobh\"],\"folder\":{\"name\":\"momfecorkfroc\"},\"\":{\"sylslurbqfygpnyh\":\"dataxldjmzezbj\"}}") - .toObject(ExcelDataset.class); - Assertions.assertEquals("cyyuvtzrxzhclec", model.description()); - Assertions.assertEquals("gi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("t").type()); - Assertions.assertEquals("momfecorkfroc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDataset model = new ExcelDataset().withDescription("cyyuvtzrxzhclec") - .withStructure("datatzqzcloy") - .withSchema("datau") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("gi") - .withParameters(mapOf("mwb", "datagyresgzsd", "lb", "dataorj", "xqjsiuepm", "datahychakvyrfbqvum"))) - .withParameters(mapOf("t", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datalpqmp"), "mrtuxyp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datavulb"))) - .withAnnotations(Arrays.asList("datacaeo", "dataifq", "dataywjflobh")) - .withFolder(new DatasetFolder().withName("momfecorkfroc")) - .withLocation(new DatasetLocation().withFolderPath("datakmhzbh") - .withFileName("datahf") - .withAdditionalProperties(mapOf("type", "rfihscj"))) - .withSheetName("datazsclefyrletn") - .withSheetIndex("datalmfdg") - .withRange("databbuypwovvvsflee") - .withFirstRowAsHeader("dataoqayrehjuqwv") - .withCompression(new DatasetCompression().withType("dataxrlzhpziha") - .withLevel("datanqqz") - .withAdditionalProperties(mapOf())) - .withNullValue("dataklfnisyxgucbmt"); - model = BinaryData.fromObject(model).toObject(ExcelDataset.class); - Assertions.assertEquals("cyyuvtzrxzhclec", model.description()); - Assertions.assertEquals("gi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("t").type()); - Assertions.assertEquals("momfecorkfroc", 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 977d4e169baf..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\":\"zu\",\"folderPath\":\"datacagqyvouprsyt\",\"fileName\":\"datass\",\"\":{\"hgyqvpbfj\":\"datagwfnivrxpfduio\"}},\"sheetName\":\"dataqzucfzluczdquur\",\"sheetIndex\":\"datarmvhvzi\",\"range\":\"databprnqujywzcqygg\",\"firstRowAsHeader\":\"datawsvh\",\"compression\":{\"type\":\"datagqiwy\",\"level\":\"datatobdrrpnre\",\"\":{\"tt\":\"datansbfjhhlwtpkvege\",\"qsttewuvcysjeuf\":\"datazkgtzqn\",\"lpditfnonpi\":\"datax\"}},\"nullValue\":\"dataxlvrhprrvbwonleq\"}") - .toObject(ExcelDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDatasetTypeProperties model = new ExcelDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datacagqyvouprsyt") - .withFileName("datass") - .withAdditionalProperties(mapOf("type", "zu"))) - .withSheetName("dataqzucfzluczdquur") - .withSheetIndex("datarmvhvzi") - .withRange("databprnqujywzcqygg") - .withFirstRowAsHeader("datawsvh") - .withCompression(new DatasetCompression().withType("datagqiwy") - .withLevel("datatobdrrpnre") - .withAdditionalProperties(mapOf())) - .withNullValue("dataxlvrhprrvbwonleq"); - 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 0c8454fa73fa..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\":\"rw\",\"storeSettings\":{\"type\":\"bubyabtowbuuhlw\",\"maxConcurrentConnections\":\"datavzuxfsmfpd\",\"disableMetricsCollection\":\"dataoqpzwfvnoy\",\"\":{\"ljzrqw\":\"datajylhv\",\"kejyavk\":\"datatswemot\"}},\"additionalColumns\":\"datavctqaq\",\"sourceRetryCount\":\"dataeyklxs\",\"sourceRetryWait\":\"databrszltvmmdsngoa\",\"maxConcurrentConnections\":\"datam\",\"disableMetricsCollection\":\"datahhnsf\",\"\":{\"jooep\":\"datakcgdnhacexibomr\"}}") - .toObject(ExcelSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelSource model = new ExcelSource().withSourceRetryCount("dataeyklxs") - .withSourceRetryWait("databrszltvmmdsngoa") - .withMaxConcurrentConnections("datam") - .withDisableMetricsCollection("datahhnsf") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datavzuxfsmfpd") - .withDisableMetricsCollection("dataoqpzwfvnoy") - .withAdditionalProperties(mapOf("type", "bubyabtowbuuhlw"))) - .withAdditionalColumns("datavctqaq"); - 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/ExecuteDataFlowActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTests.java deleted file mode 100644 index 140fb7dd6508..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTests.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivity; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -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 ExecuteDataFlowActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteDataFlowActivity model = BinaryData.fromString( - "{\"type\":\"svdbdllmutwmarfb\",\"typeProperties\":{\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ezee\",\"datasetParameters\":\"dataligunw\",\"parameters\":{\"wxzxroht\":\"dataucvwz\",\"idspe\":\"datac\",\"cmcqslngmsip\":\"dataxdeaisk\"},\"\":{\"eiyfpfaa\":\"datanmdcotjdcxac\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"phuplfopqgcadnt\",\"parameters\":{\"vfpmezdo\":\"datald\",\"xmvxbaaznuwuwbn\":\"datagcofhinehhirbg\"}},\"folderPath\":\"datacdtxxyzgy\"},\"integrationRuntime\":{\"referenceName\":\"diqpadhrijxu\",\"parameters\":{\"sxlqsfp\":\"datacyllp\"}},\"compute\":{\"computeType\":\"datag\",\"coreCount\":\"databjjde\"},\"traceLevel\":\"dataqunernb\",\"continueOnError\":\"datavcabchdzx\",\"runConcurrently\":\"dataslshwaadc\",\"sourceStagingConcurrency\":\"datamnfavllbskl\"},\"linkedServiceName\":{\"referenceName\":\"ceaxorppzbdva\",\"parameters\":{\"scdoqocdrjguhsjl\":\"datagvqtegknaeclr\"}},\"policy\":{\"timeout\":\"dataedswhb\",\"retry\":\"datajuuboyrf\",\"retryIntervalInSeconds\":2024683073,\"secureInput\":true,\"secureOutput\":false,\"\":{\"kasbda\":\"datazsvzi\"}},\"name\":\"zlpgxsczrdmbebx\",\"description\":\"woklrhcen\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"wvvvapdshkbfwe\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Failed\"],\"\":{\"lwyzdphidhkigslc\":\"datatqnnbxgofip\"}},{\"activity\":\"kzl\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"axcbfrnttlrumv\":\"datalu\",\"vjpjnnha\":\"dataxbyedca\"}},{\"activity\":\"ednmqxba\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\"],\"\":{\"g\":\"datacp\"}}],\"userProperties\":[{\"name\":\"muqxsocnkjrt\",\"value\":\"dataifxledjpuga\"},{\"name\":\"scvsj\",\"value\":\"datadmnvtpbohzcaaq\"}],\"\":{\"cbnmzshmqnnbbv\":\"dataaqfvplfy\",\"uwx\":\"datasq\",\"fyddrsairxnw\":\"dataqdtvejilqscjxpro\"}}") - .toObject(ExecuteDataFlowActivity.class); - Assertions.assertEquals("zlpgxsczrdmbebx", model.name()); - Assertions.assertEquals("woklrhcen", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("wvvvapdshkbfwe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("muqxsocnkjrt", model.userProperties().get(0).name()); - Assertions.assertEquals("ceaxorppzbdva", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2024683073, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("ezee", model.dataFlow().referenceName()); - Assertions.assertEquals("phuplfopqgcadnt", model.staging().linkedService().referenceName()); - Assertions.assertEquals("diqpadhrijxu", model.integrationRuntime().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivity model = new ExecuteDataFlowActivity().withName("zlpgxsczrdmbebx") - .withDescription("woklrhcen") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("wvvvapdshkbfwe") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kzl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ednmqxba") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("muqxsocnkjrt").withValue("dataifxledjpuga"), - new UserProperty().withName("scvsj").withValue("datadmnvtpbohzcaaq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ceaxorppzbdva") - .withParameters(mapOf("scdoqocdrjguhsjl", "datagvqtegknaeclr"))) - .withPolicy(new ActivityPolicy().withTimeout("dataedswhb") - .withRetry("datajuuboyrf") - .withRetryIntervalInSeconds(2024683073) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withDataFlow(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ezee") - .withDatasetParameters("dataligunw") - .withParameters(mapOf("wxzxroht", "dataucvwz", "idspe", "datac", "cmcqslngmsip", "dataxdeaisk")) - .withAdditionalProperties(mapOf())) - .withStaging(new DataFlowStagingInfo() - .withLinkedService(new LinkedServiceReference().withReferenceName("phuplfopqgcadnt") - .withParameters(mapOf("vfpmezdo", "datald", "xmvxbaaznuwuwbn", "datagcofhinehhirbg"))) - .withFolderPath("datacdtxxyzgy")) - .withIntegrationRuntime(new IntegrationRuntimeReference().withReferenceName("diqpadhrijxu") - .withParameters(mapOf("sxlqsfp", "datacyllp"))) - .withCompute( - new ExecuteDataFlowActivityTypePropertiesCompute().withComputeType("datag").withCoreCount("databjjde")) - .withTraceLevel("dataqunernb") - .withContinueOnError("datavcabchdzx") - .withRunConcurrently("dataslshwaadc") - .withSourceStagingConcurrency("datamnfavllbskl"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivity.class); - Assertions.assertEquals("zlpgxsczrdmbebx", model.name()); - Assertions.assertEquals("woklrhcen", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("wvvvapdshkbfwe", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("muqxsocnkjrt", model.userProperties().get(0).name()); - Assertions.assertEquals("ceaxorppzbdva", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2024683073, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("ezee", model.dataFlow().referenceName()); - Assertions.assertEquals("phuplfopqgcadnt", model.staging().linkedService().referenceName()); - Assertions.assertEquals("diqpadhrijxu", model.integrationRuntime().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/ExecuteDataFlowActivityTypePropertiesComputeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java deleted file mode 100644 index fda735a276ca..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\":\"datantnjnkvsnsiphl\",\"coreCount\":\"datacedz\"}") - .toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivityTypePropertiesCompute model - = new ExecuteDataFlowActivityTypePropertiesCompute().withComputeType("datantnjnkvsnsiphl") - .withCoreCount("datacedz"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesTests.java deleted file mode 100644 index d5d3eea6c05d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesTests.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.ExecuteDataFlowActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecuteDataFlowActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteDataFlowActivityTypeProperties model = BinaryData.fromString( - "{\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ytkeqjviawspvbcm\",\"datasetParameters\":\"dataeelmiuprfq\",\"parameters\":{\"gkfojnqmdtuyi\":\"datatdnrxrmhewdfua\"},\"\":{\"pdghqsa\":\"datapr\",\"b\":\"datab\",\"xbpqzqaavxxv\":\"datajedyyengnh\",\"ptxdrajihqwfrt\":\"datass\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"to\",\"parameters\":{\"brent\":\"datadevkntyguqsq\"}},\"folderPath\":\"dataamijgq\"},\"integrationRuntime\":{\"referenceName\":\"zvvwyhszewh\",\"parameters\":{\"vwwbxnxlhdindc\":\"datauoibwkiwytskpbre\",\"lie\":\"datatiqacnyc\"}},\"compute\":{\"computeType\":\"datarevw\",\"coreCount\":\"datawtfohcylvj\"},\"traceLevel\":\"datafznae\",\"continueOnError\":\"datayuxrufwdbimj\",\"runConcurrently\":\"dataphyxlxvo\",\"sourceStagingConcurrency\":\"datauwdesyttkaufabtp\"}") - .toObject(ExecuteDataFlowActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("ytkeqjviawspvbcm", model.dataFlow().referenceName()); - Assertions.assertEquals("to", model.staging().linkedService().referenceName()); - Assertions.assertEquals("zvvwyhszewh", model.integrationRuntime().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivityTypeProperties model = new ExecuteDataFlowActivityTypeProperties() - .withDataFlow(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ytkeqjviawspvbcm") - .withDatasetParameters("dataeelmiuprfq") - .withParameters(mapOf("gkfojnqmdtuyi", "datatdnrxrmhewdfua")) - .withAdditionalProperties(mapOf())) - .withStaging(new DataFlowStagingInfo().withLinkedService( - new LinkedServiceReference().withReferenceName("to").withParameters(mapOf("brent", "datadevkntyguqsq"))) - .withFolderPath("dataamijgq")) - .withIntegrationRuntime(new IntegrationRuntimeReference().withReferenceName("zvvwyhszewh") - .withParameters(mapOf("vwwbxnxlhdindc", "datauoibwkiwytskpbre", "lie", "datatiqacnyc"))) - .withCompute(new ExecuteDataFlowActivityTypePropertiesCompute().withComputeType("datarevw") - .withCoreCount("datawtfohcylvj")) - .withTraceLevel("datafznae") - .withContinueOnError("datayuxrufwdbimj") - .withRunConcurrently("dataphyxlxvo") - .withSourceStagingConcurrency("datauwdesyttkaufabtp"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("ytkeqjviawspvbcm", model.dataFlow().referenceName()); - Assertions.assertEquals("to", model.staging().linkedService().referenceName()); - Assertions.assertEquals("zvvwyhszewh", model.integrationRuntime().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/ExecutePipelineActivityPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java deleted file mode 100644 index 75bfa19b5280..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,\"\":{\"krnow\":\"datakuxajlyiffz\",\"rcwbnmaiq\":\"dataxfykd\"}}") - .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 c47109cfc2f0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.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.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\":\"yeckb\",\"policy\":{\"secureInput\":true,\"\":{\"jurjc\":\"datafqwqmlisjqon\",\"kbhwwpaeceuvqa\":\"datadelqazbzixgq\",\"m\":\"dataaedvnloq\",\"qxldkhgngy\":\"datajgdbobr\"}},\"typeProperties\":{\"pipeline\":{\"referenceName\":\"fesjksmyeegbe\",\"name\":\"fwnc\"},\"parameters\":{\"v\":\"datazmyds\",\"gcmmvvbwrilc\":\"datakfzorddc\"},\"waitOnCompletion\":false},\"name\":\"depulbxgdf\",\"description\":\"ywmezoi\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"cfkkcpkvujwfyv\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"adfjxfi\":\"dataeysefsi\"}},{\"activity\":\"euqgpt\",\"dependencyConditions\":[\"Failed\",\"Skipped\"],\"\":{\"zl\":\"datavfbrgtoqk\",\"wiitxye\":\"datakjhu\",\"ehhkcutxmqvbh\":\"dataidk\",\"vkrskqgokhpzvph\":\"databwdu\"}},{\"activity\":\"k\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Succeeded\",\"Skipped\"],\"\":{\"geovjiezkwde\":\"datakdhopzymhrfwchi\",\"okiexmfeechltx\":\"dataldocqhlbsv\",\"ua\":\"datayqw\"}},{\"activity\":\"of\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\"],\"\":{\"ogbmeksegd\":\"datai\"}}],\"userProperties\":[{\"name\":\"oc\",\"value\":\"datanmxbhgsimenjh\"},{\"name\":\"wknazcwja\",\"value\":\"datayvno\"}],\"\":{\"bss\":\"datazlm\"}}") - .toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("depulbxgdf", model.name()); - Assertions.assertEquals("ywmezoi", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("cfkkcpkvujwfyv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("oc", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals("fesjksmyeegbe", model.pipeline().referenceName()); - Assertions.assertEquals("fwnc", model.pipeline().name()); - Assertions.assertEquals(false, model.waitOnCompletion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivity model - = new ExecutePipelineActivity().withName("depulbxgdf") - .withDescription("ywmezoi") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cfkkcpkvujwfyv") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("euqgpt") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("k") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("of") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("oc").withValue("datanmxbhgsimenjh"), - new UserProperty().withName("wknazcwja").withValue("datayvno"))) - .withPolicy(new ExecutePipelineActivityPolicy().withSecureInput(true).withAdditionalProperties(mapOf())) - .withPipeline(new PipelineReference().withReferenceName("fesjksmyeegbe").withName("fwnc")) - .withParameters(mapOf("v", "datazmyds", "gcmmvvbwrilc", "datakfzorddc")) - .withWaitOnCompletion(false); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("depulbxgdf", model.name()); - Assertions.assertEquals("ywmezoi", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("cfkkcpkvujwfyv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("oc", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals("fesjksmyeegbe", model.pipeline().referenceName()); - Assertions.assertEquals("fwnc", 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 2ac464422700..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.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.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\":\"joirxngmm\",\"name\":\"rxoidmnsmd\"},\"parameters\":{\"yfiochfx\":\"datakjlhkcogxrs\"},\"waitOnCompletion\":true}") - .toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("joirxngmm", model.pipeline().referenceName()); - Assertions.assertEquals("rxoidmnsmd", 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("joirxngmm").withName("rxoidmnsmd")) - .withParameters(mapOf("yfiochfx", "datakjlhkcogxrs")) - .withWaitOnCompletion(true); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("joirxngmm", model.pipeline().referenceName()); - Assertions.assertEquals("rxoidmnsmd", 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/ExecutePowerQueryActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePowerQueryActivityTypePropertiesTests.java deleted file mode 100644 index 42c41c4c2e01..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePowerQueryActivityTypePropertiesTests.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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.ExecutePowerQueryActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -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 ExecutePowerQueryActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePowerQueryActivityTypeProperties model = BinaryData.fromString( - "{\"sinks\":{\"aynofwyzpntapg\":{\"script\":\"po\",\"schemaLinkedService\":{\"referenceName\":\"n\",\"parameters\":{\"jhaquxquypcnn\":\"dataxikvjevjapso\",\"ilqtqrtkdeyuo\":\"datacusyq\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"pnaohherlyr\",\"parameters\":{\"ureuhssrdugaxk\":\"datarpruoyjbzylsu\",\"biupjzkyghsjcqq\":\"datagel\"}},\"name\":\"l\",\"description\":\"yaec\",\"dataset\":{\"referenceName\":\"cb\",\"parameters\":{\"eeqywngcvqhvb\":\"dataqodesddj\",\"mvzfp\":\"datazcsspnfxwkjhz\",\"diqsuokyvrzlupy\":\"dataieofvzeihlubd\"}},\"linkedService\":{\"referenceName\":\"lfyddy\",\"parameters\":{\"gjzrd\":\"datadlhytckp\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"snmzlsgalavx\",\"datasetParameters\":\"datavwuhvpipaafvtk\",\"parameters\":{\"hox\":\"datardplhwip\",\"wcdczml\":\"dataeyixbrsjgrjt\"},\"\":{\"tcgybuuubtfxjpg\":\"dataikhcpdohvwy\"}}},\"wdaocwqkxwoq\":{\"script\":\"iyxyelzmu\",\"schemaLinkedService\":{\"referenceName\":\"arucpk\",\"parameters\":{\"tohkrqbgxh\":\"datajnnwobkf\",\"luy\":\"databapf\",\"ipobtbtlmp\":\"dataivls\",\"ogtwxgswu\":\"datarkgtlrmmmsaujx\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"xmwfaehryordin\",\"parameters\":{\"bzekfbuftyxm\":\"datalifstxjufuddt\",\"beibgyquzofy\":\"datalzlsskphwwnnj\"}},\"name\":\"qruoanhjslkoawo\",\"description\":\"etkrtexj\",\"dataset\":{\"referenceName\":\"qsxecejlyhuyhqqq\",\"parameters\":{\"em\":\"datazmhydm\"}},\"linkedService\":{\"referenceName\":\"ijvvbenchtklz\",\"parameters\":{\"nbvpados\":\"datattvykzdlkt\",\"znzrsbs\":\"dataqcvikhbkcvpubvm\",\"fqibwesrgqctrv\":\"datancy\",\"klcgwba\":\"datapg\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ovgthppoddnwhao\",\"datasetParameters\":\"datawphvimst\",\"parameters\":{\"imnfvbfj\":\"dataklfvcirqcgapkyof\"},\"\":{\"iryj\":\"datapxxbfqlfkwji\"}}},\"l\":{\"script\":\"fnojiqtpbfc\",\"schemaLinkedService\":{\"referenceName\":\"hrencxo\",\"parameters\":{\"lpqcctuxxyt\":\"datadgn\",\"afgbfkmqh\":\"dataxjpkuz\",\"nksleurj\":\"datajshvyjnrjr\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"ezpewjxcdvwnptmr\",\"parameters\":{\"zgst\":\"dataaugid\",\"whjfuoips\":\"datasrtzg\"}},\"name\":\"vcqhzejbro\",\"description\":\"lopygrsvyjrqhp\",\"dataset\":{\"referenceName\":\"vmxibpcnmps\",\"parameters\":{\"ri\":\"dataaentip\",\"grcjoycqndgbxtz\":\"datawftrjdyi\",\"gubsidwgyaz\":\"datateszohntch\"}},\"linkedService\":{\"referenceName\":\"efsdoodcmj\",\"parameters\":{\"ckecumevgoaxt\":\"dataydtnpqtwohfh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"kmuirskoaxstqq\",\"datasetParameters\":\"dataliyxzenii\",\"parameters\":{\"iaot\":\"datamojjmimym\",\"wltblmumbafcmso\":\"dataaxluovzmijir\"},\"\":{\"feelymavin\":\"datankrwwchyqeiguxi\",\"qyvzzrnikan\":\"datamdn\",\"zq\":\"databobagaigtpjj\"}}},\"vxucqxj\":{\"script\":\"ifxlibwd\",\"schemaLinkedService\":{\"referenceName\":\"qxqjvjubjqjxobm\",\"parameters\":{\"trtarneug\":\"datatz\",\"dkkf\":\"dataupkjyosqwcxedk\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"srehgyfif\",\"parameters\":{\"boghj\":\"dataqeis\",\"ae\":\"dataihtcaddfvdkt\",\"dad\":\"databvyuarbycuux\",\"ugmfersbktrei\":\"datalilkmptvmtn\"}},\"name\":\"lszpusb\",\"description\":\"jrkueprpnzbfoldb\",\"dataset\":{\"referenceName\":\"iljgyrpvmaywpr\",\"parameters\":{\"kmanrowdqoj\":\"dataqbnzr\",\"ahskesea\":\"datayabvvbsi\",\"dyessiielbtg\":\"datag\"}},\"linkedService\":{\"referenceName\":\"iwcqeihuyrz\",\"parameters\":{\"ftotpvoehsfwra\":\"datayvquufplmpbvzbt\",\"yuillrrqw\":\"datalqrxewdgzfqsr\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"iqjegeafg\",\"datasetParameters\":\"dataglljcblppnqosnv\",\"parameters\":{\"zmwbxautspnyutf\":\"dataiwgakghvaqbk\"},\"\":{\"nptjmzbirjnddao\":\"dataghn\",\"wmz\":\"datagi\",\"nncvj\":\"datar\"}}}},\"queries\":[{\"queryName\":\"ibliegzjk\",\"dataflowSinks\":[{\"script\":\"i\",\"schemaLinkedService\":{\"referenceName\":\"clvaivsagrfjhcrq\",\"parameters\":{\"aqlcqjnw\":\"dataah\",\"fptvfsvrjd\":\"dataq\",\"vuyxsnm\":\"datazvhxssnqqivv\",\"xmvkcu\":\"datainnisuuakaadbwhs\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"seoqkalekneah\",\"parameters\":{\"njzbv\":\"datajupxibupgt\",\"faxepuvwahfnlk\":\"datawabilyb\"}},\"name\":\"yqpkskbid\",\"description\":\"zjpbhcge\",\"dataset\":{\"referenceName\":\"teqfenhlitcydge\",\"parameters\":{\"ibguwrd\":\"datan\",\"irjkinofw\":\"dataxamjhpqfjpe\"}},\"linkedService\":{\"referenceName\":\"il\",\"parameters\":{\"sbjsekqqtsrupog\":\"dataesyifdrbkprbl\",\"nabfjeoq\":\"datarwku\",\"i\":\"datang\",\"govnrkyb\":\"datazzifuovgipqgt\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rxcnuyfvr\",\"datasetParameters\":\"datazqoi\",\"parameters\":{\"gzlvqmy\":\"datanvayboub\",\"dqop\":\"datapojbifixdgkvlze\",\"bolczhyqdvxqo\":\"dataabrzrhdezlhsdcp\"},\"\":{\"demfatftzxtrjru\":\"dataos\",\"qpqqzf\":\"dataljfdc\",\"a\":\"dataydywbnerygsif\"}}}]}],\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ccsvajn\",\"datasetParameters\":\"datauxbyrvgu\",\"parameters\":{\"nk\":\"dataysolmzrfhl\",\"ysbjtsqfhnqxqte\":\"datausb\"},\"\":{\"tuiqcjylkdb\":\"dataxxuws\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"xjk\",\"parameters\":{\"bjzhhjgvuvjsnb\":\"datapposgimtoucls\",\"g\":\"datanuujkjkqyewtlom\",\"izzhln\":\"dataaqvrazthduac\",\"e\":\"datagngqciiopoamg\"}},\"folderPath\":\"dataxidjdptr\"},\"integrationRuntime\":{\"referenceName\":\"egrauyphu\",\"parameters\":{\"mcjrfjxisypkifp\":\"datauipatodfyrfs\",\"lefltubwpeb\":\"dataynh\",\"rdxytkehfoeph\":\"datalndla\",\"mcuqjoukimvhqi\":\"dataphoy\"}},\"compute\":{\"computeType\":\"dataologfxbvllc\",\"coreCount\":\"datanajnc\"},\"traceLevel\":\"dataqnh\",\"continueOnError\":\"databmuimde\",\"runConcurrently\":\"datauohtnjtahdtdc\",\"sourceStagingConcurrency\":\"datahjxv\"}") - .toObject(ExecutePowerQueryActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("ccsvajn", model.dataFlow().referenceName()); - Assertions.assertEquals("xjk", model.staging().linkedService().referenceName()); - Assertions.assertEquals("egrauyphu", model.integrationRuntime().referenceName()); - Assertions.assertEquals("l", model.sinks().get("aynofwyzpntapg").name()); - Assertions.assertEquals("yaec", model.sinks().get("aynofwyzpntapg").description()); - Assertions.assertEquals("cb", model.sinks().get("aynofwyzpntapg").dataset().referenceName()); - Assertions.assertEquals("lfyddy", model.sinks().get("aynofwyzpntapg").linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.sinks().get("aynofwyzpntapg").flowlet().type()); - Assertions.assertEquals("snmzlsgalavx", model.sinks().get("aynofwyzpntapg").flowlet().referenceName()); - Assertions.assertEquals("n", model.sinks().get("aynofwyzpntapg").schemaLinkedService().referenceName()); - Assertions.assertEquals("pnaohherlyr", - model.sinks().get("aynofwyzpntapg").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("po", model.sinks().get("aynofwyzpntapg").script()); - Assertions.assertEquals("ibliegzjk", model.queries().get(0).queryName()); - Assertions.assertEquals("yqpkskbid", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("zjpbhcge", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions.assertEquals("teqfenhlitcydge", - model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("il", model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("rxcnuyfvr", model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("clvaivsagrfjhcrq", - model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("seoqkalekneah", - model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("i", model.queries().get(0).dataflowSinks().get(0).script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePowerQueryActivityTypeProperties model - = new ExecutePowerQueryActivityTypeProperties() - .withDataFlow(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ccsvajn") - .withDatasetParameters("datauxbyrvgu") - .withParameters(mapOf("nk", "dataysolmzrfhl", "ysbjtsqfhnqxqte", "datausb")) - .withAdditionalProperties(mapOf())) - .withStaging( - new DataFlowStagingInfo() - .withLinkedService(new LinkedServiceReference().withReferenceName("xjk") - .withParameters(mapOf("bjzhhjgvuvjsnb", "datapposgimtoucls", "g", "datanuujkjkqyewtlom", - "izzhln", "dataaqvrazthduac", "e", "datagngqciiopoamg"))) - .withFolderPath("dataxidjdptr")) - .withIntegrationRuntime(new IntegrationRuntimeReference().withReferenceName("egrauyphu") - .withParameters(mapOf("mcjrfjxisypkifp", "datauipatodfyrfs", "lefltubwpeb", "dataynh", - "rdxytkehfoeph", "datalndla", "mcuqjoukimvhqi", "dataphoy"))) - .withCompute(new ExecuteDataFlowActivityTypePropertiesCompute().withComputeType("dataologfxbvllc") - .withCoreCount("datanajnc")) - .withTraceLevel("dataqnh") - .withContinueOnError("databmuimde") - .withRunConcurrently("datauohtnjtahdtdc") - .withSourceStagingConcurrency("datahjxv") - .withSinks( - mapOf("aynofwyzpntapg", new PowerQuerySink().withName("l") - .withDescription("yaec") - .withDataset(new DatasetReference().withReferenceName("cb") - .withParameters(mapOf("eeqywngcvqhvb", "dataqodesddj", "mvzfp", "datazcsspnfxwkjhz", - "diqsuokyvrzlupy", "dataieofvzeihlubd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("lfyddy") - .withParameters(mapOf("gjzrd", "datadlhytckp"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("snmzlsgalavx") - .withDatasetParameters("datavwuhvpipaafvtk") - .withParameters(mapOf("hox", "datardplhwip", "wcdczml", "dataeyixbrsjgrjt")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("n") - .withParameters(mapOf("jhaquxquypcnn", "dataxikvjevjapso", "ilqtqrtkdeyuo", "datacusyq"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("pnaohherlyr") - .withParameters(mapOf("ureuhssrdugaxk", "datarpruoyjbzylsu", "biupjzkyghsjcqq", "datagel"))) - .withScript("po"), "wdaocwqkxwoq", - new PowerQuerySink().withName("qruoanhjslkoawo") - .withDescription("etkrtexj") - .withDataset(new DatasetReference().withReferenceName("qsxecejlyhuyhqqq") - .withParameters(mapOf("em", "datazmhydm"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ijvvbenchtklz") - .withParameters(mapOf("nbvpados", "datattvykzdlkt", "znzrsbs", "dataqcvikhbkcvpubvm", - "fqibwesrgqctrv", "datancy", "klcgwba", "datapg"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ovgthppoddnwhao") - .withDatasetParameters("datawphvimst") - .withParameters(mapOf("imnfvbfj", "dataklfvcirqcgapkyof")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("arucpk") - .withParameters(mapOf("tohkrqbgxh", "datajnnwobkf", "luy", "databapf", "ipobtbtlmp", - "dataivls", "ogtwxgswu", "datarkgtlrmmmsaujx"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("xmwfaehryordin") - .withParameters(mapOf("bzekfbuftyxm", "datalifstxjufuddt", "beibgyquzofy", - "datalzlsskphwwnnj"))) - .withScript("iyxyelzmu"), - "l", - new PowerQuerySink().withName("vcqhzejbro") - .withDescription("lopygrsvyjrqhp") - .withDataset(new DatasetReference().withReferenceName("vmxibpcnmps") - .withParameters(mapOf("ri", "dataaentip", "grcjoycqndgbxtz", "datawftrjdyi", - "gubsidwgyaz", "datateszohntch"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("efsdoodcmj") - .withParameters(mapOf("ckecumevgoaxt", "dataydtnpqtwohfh"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("kmuirskoaxstqq") - .withDatasetParameters("dataliyxzenii") - .withParameters(mapOf("iaot", "datamojjmimym", "wltblmumbafcmso", "dataaxluovzmijir")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("hrencxo") - .withParameters(mapOf("lpqcctuxxyt", "datadgn", "afgbfkmqh", "dataxjpkuz", "nksleurj", - "datajshvyjnrjr"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("ezpewjxcdvwnptmr") - .withParameters(mapOf("zgst", "dataaugid", "whjfuoips", "datasrtzg"))) - .withScript("fnojiqtpbfc"), - "vxucqxj", - new PowerQuerySink().withName("lszpusb") - .withDescription("jrkueprpnzbfoldb") - .withDataset(new DatasetReference().withReferenceName("iljgyrpvmaywpr") - .withParameters(mapOf("kmanrowdqoj", "dataqbnzr", "ahskesea", "datayabvvbsi", - "dyessiielbtg", "datag"))) - .withLinkedService( - new LinkedServiceReference().withReferenceName("iwcqeihuyrz") - .withParameters(mapOf("ftotpvoehsfwra", "datayvquufplmpbvzbt", "yuillrrqw", - "datalqrxewdgzfqsr"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("iqjegeafg") - .withDatasetParameters("dataglljcblppnqosnv") - .withParameters(mapOf("zmwbxautspnyutf", "dataiwgakghvaqbk")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("qxqjvjubjqjxobm") - .withParameters(mapOf("trtarneug", "datatz", "dkkf", "dataupkjyosqwcxedk"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("srehgyfif") - .withParameters(mapOf("boghj", "dataqeis", "ae", "dataihtcaddfvdkt", "dad", - "databvyuarbycuux", "ugmfersbktrei", "datalilkmptvmtn"))) - .withScript("ifxlibwd"))) - .withQueries(Arrays.asList(new PowerQuerySinkMapping().withQueryName("ibliegzjk") - .withDataflowSinks(Arrays.asList(new PowerQuerySink().withName("yqpkskbid") - .withDescription("zjpbhcge") - .withDataset(new DatasetReference().withReferenceName("teqfenhlitcydge") - .withParameters(mapOf("ibguwrd", "datan", "irjkinofw", "dataxamjhpqfjpe"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("il") - .withParameters(mapOf("sbjsekqqtsrupog", "dataesyifdrbkprbl", "nabfjeoq", "datarwku", "i", - "datang", "govnrkyb", "datazzifuovgipqgt"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rxcnuyfvr") - .withDatasetParameters("datazqoi") - .withParameters(mapOf("gzlvqmy", "datanvayboub", "dqop", "datapojbifixdgkvlze", - "bolczhyqdvxqo", "dataabrzrhdezlhsdcp")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("clvaivsagrfjhcrq") - .withParameters(mapOf("aqlcqjnw", "dataah", "fptvfsvrjd", "dataq", "vuyxsnm", - "datazvhxssnqqivv", "xmvkcu", "datainnisuuakaadbwhs"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("seoqkalekneah") - .withParameters(mapOf("njzbv", "datajupxibupgt", "faxepuvwahfnlk", "datawabilyb"))) - .withScript("i"))))); - model = BinaryData.fromObject(model).toObject(ExecutePowerQueryActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("ccsvajn", model.dataFlow().referenceName()); - Assertions.assertEquals("xjk", model.staging().linkedService().referenceName()); - Assertions.assertEquals("egrauyphu", model.integrationRuntime().referenceName()); - Assertions.assertEquals("l", model.sinks().get("aynofwyzpntapg").name()); - Assertions.assertEquals("yaec", model.sinks().get("aynofwyzpntapg").description()); - Assertions.assertEquals("cb", model.sinks().get("aynofwyzpntapg").dataset().referenceName()); - Assertions.assertEquals("lfyddy", model.sinks().get("aynofwyzpntapg").linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.sinks().get("aynofwyzpntapg").flowlet().type()); - Assertions.assertEquals("snmzlsgalavx", model.sinks().get("aynofwyzpntapg").flowlet().referenceName()); - Assertions.assertEquals("n", model.sinks().get("aynofwyzpntapg").schemaLinkedService().referenceName()); - Assertions.assertEquals("pnaohherlyr", - model.sinks().get("aynofwyzpntapg").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("po", model.sinks().get("aynofwyzpntapg").script()); - Assertions.assertEquals("ibliegzjk", model.queries().get(0).queryName()); - Assertions.assertEquals("yqpkskbid", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("zjpbhcge", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions.assertEquals("teqfenhlitcydge", - model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("il", model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("rxcnuyfvr", model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("clvaivsagrfjhcrq", - model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("seoqkalekneah", - model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("i", model.queries().get(0).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/ExecuteWranglingDataflowActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteWranglingDataflowActivityTests.java deleted file mode 100644 index e25a4239632c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteWranglingDataflowActivityTests.java +++ /dev/null @@ -1,290 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.ExecuteWranglingDataflowActivity; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping; -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 ExecuteWranglingDataflowActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteWranglingDataflowActivity model = BinaryData.fromString( - "{\"type\":\"gtqqrmibmnmxspzt\",\"typeProperties\":{\"sinks\":{\"uqi\":{\"script\":\"gxdxqefuzubn\",\"schemaLinkedService\":{\"referenceName\":\"iminccnubynrh\",\"parameters\":{\"hxtbcqjvyzotxkhy\":\"datagfzhbtzuddqt\",\"mqrioa\":\"dataj\",\"rglmjrufwqpnmcw\":\"datazmrwlsrjjaj\",\"dzkbky\":\"datasfpyt\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"ztwwkvwpbdo\",\"parameters\":{\"jzrzv\":\"datarmp\",\"igzwhfeq\":\"dataupnfrlygyjrlu\"}},\"name\":\"l\",\"description\":\"l\",\"dataset\":{\"referenceName\":\"zzkgebey\",\"parameters\":{\"azfjbxhnahgbloea\":\"datagyksgntgiw\",\"gbyxpma\":\"datawidumilxi\"}},\"linkedService\":{\"referenceName\":\"rn\",\"parameters\":{\"faf\":\"datahviqwfctiy\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nsktdgbombnc\",\"datasetParameters\":\"dataxkcpqw\",\"parameters\":{\"ijobcpruommtuca\":\"dataqvlcunnb\",\"a\":\"datagrlvkdaphzemn\",\"qbwim\":\"datatkbzz\"},\"\":{\"oukfimonreu\":\"datamgocalgrakmw\",\"hpov\":\"datacrcsdaip\",\"cxtqqpfgjny\":\"datatvotbybcxgrrlzdn\"}}},\"nhlsf\":{\"script\":\"iujsjngs\",\"schemaLinkedService\":{\"referenceName\":\"yvnpuclqtdca\",\"parameters\":{\"cl\":\"datazeckpgpjkczkcdlz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"anabzycxvifkzs\",\"parameters\":{\"inlqkzee\":\"datal\",\"kwxb\":\"datazelmmwmdhmd\"}},\"name\":\"vmc\",\"description\":\"nmnojfmztpwu\",\"dataset\":{\"referenceName\":\"untvyeyebw\",\"parameters\":{\"eyuirrrxrftfamo\":\"dataonqjnpkofjfus\"}},\"linkedService\":{\"referenceName\":\"vjm\",\"parameters\":{\"cowmukzcrp\":\"datalphqtq\",\"zbeutqfx\":\"datalgzctfnlakl\",\"wticu\":\"dataxzwiehqvvbgwxp\",\"lzhujcx\":\"datakmzubdmcdfvw\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"aqolnfeywbpenq\",\"datasetParameters\":\"datapzwwsfrpbwvfjdg\",\"parameters\":{\"jyulo\":\"dataycxmct\",\"lkmjeekbmwizis\":\"datapulwcxmxf\",\"leaotaakcy\":\"datatmxyrsnmwiy\"},\"\":{\"jnd\":\"dataosnbwbcnfo\",\"oubtehdccghdzq\":\"datawwnlg\",\"otqsp\":\"datawlixh\"}}},\"xlkloqpwsaqcr\":{\"script\":\"jwajsbqyt\",\"schemaLinkedService\":{\"referenceName\":\"jvmjhuvuadpd\",\"parameters\":{\"uwaqiomdlp\":\"datawbheijmwaj\",\"wowmwrn\":\"datakfslm\",\"obg\":\"datauwgrtvyw\",\"evyyppaycasch\":\"datavhdb\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"midkd\",\"parameters\":{\"xxcvugarykbyuuk\":\"dataptessvmd\",\"csevqtd\":\"datassretugorcz\"}},\"name\":\"ktogmcblw\",\"description\":\"vnisin\",\"dataset\":{\"referenceName\":\"cwwpuka\",\"parameters\":{\"hngaczgg\":\"dataj\",\"tok\":\"dataiaqmuptnhuybt\",\"ljzlnre\":\"datahyozxotwral\",\"mjschcxud\":\"datalwfgyabglsar\"}},\"linkedService\":{\"referenceName\":\"mhhsumzfvrakpql\",\"parameters\":{\"holjjxilbsbh\":\"dataiudveoibeh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ucwdc\",\"datasetParameters\":\"datakwwuljveu\",\"parameters\":{\"fmvauhnh\":\"dataxrsxb\",\"iwvejwtzkiid\":\"datanswlfuukildlayt\",\"ytaeallsxfza\":\"datasskl\"},\"\":{\"gxrfrmdpwpzuxoy\":\"datasbzmoqxjynhmx\"}}},\"vfrtmwyezr\":{\"script\":\"kgjdn\",\"schemaLinkedService\":{\"referenceName\":\"wpvrwec\",\"parameters\":{\"jwpejtszj\":\"dataiaognmanrzjprlq\",\"vwvycvnow\":\"datavj\",\"xwwhusrodrom\":\"dataclijmdl\",\"fw\":\"dataz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"ocwkwmqroqldacx\",\"parameters\":{\"ssukvsgkzxznctx\":\"dataq\",\"jfcaqpkpvdiir\":\"datacznszmjz\"}},\"name\":\"xahxysl\",\"description\":\"okfomakmi\",\"dataset\":{\"referenceName\":\"hduflajsgut\",\"parameters\":{\"firaoytkkq\":\"databvxyqprchk\",\"dzfypdsrfpihvij\":\"dataaazvmnv\"}},\"linkedService\":{\"referenceName\":\"tkpo\",\"parameters\":{\"njduyotqb\":\"dataoyjjfx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xbtuxm\",\"datasetParameters\":\"datarixolbzjlqrps\",\"parameters\":{\"d\":\"datastcoibi\"},\"\":{\"oemcajjazo\":\"dataafenwvvxcah\",\"couilgtbslagtmki\":\"datakwhgnjhxydx\",\"zlmztkzgr\":\"datalcgejmjpvgv\",\"zdptoytcnxgq\":\"dataaqytqmc\"}}}},\"queries\":[{\"queryName\":\"awpbif\",\"dataflowSinks\":[{\"script\":\"iocvjmyinpl\",\"schemaLinkedService\":{\"referenceName\":\"ejhxfjlecbbabi\"},\"rejectedDataLinkedService\":{\"referenceName\":\"alsrxzatlzwr\"},\"name\":\"joqcyowzwshsgrea\",\"description\":\"wsdirxpr\",\"dataset\":{\"referenceName\":\"gzpnrmmjyv\"},\"linkedService\":{\"referenceName\":\"tjuwobwskyjlte\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vrpvhivvlmzcvpo\"}},{\"script\":\"vfcwedyz\",\"schemaLinkedService\":{\"referenceName\":\"oezgibfisfmc\"},\"rejectedDataLinkedService\":{\"referenceName\":\"rhgcuejtxxlkokt\"},\"name\":\"clpvwtwboxgrv\",\"description\":\"voq\",\"dataset\":{\"referenceName\":\"quwkuszllognl\"},\"linkedService\":{\"referenceName\":\"hvllenygimnfvq\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"zo\"}},{\"script\":\"lwdh\",\"schemaLinkedService\":{\"referenceName\":\"vhflbchzoboee\"},\"rejectedDataLinkedService\":{\"referenceName\":\"kwdtuwbrw\"},\"name\":\"yqtyuywzccumk\",\"description\":\"ygrkcolvitb\",\"dataset\":{\"referenceName\":\"oxrbotzvrgo\"},\"linkedService\":{\"referenceName\":\"ayjselrfqstbfuqm\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"fvbeyugggfshn\"}}]},{\"queryName\":\"ken\",\"dataflowSinks\":[{\"script\":\"jqrxyaa\",\"schemaLinkedService\":{\"referenceName\":\"rkxyjsuappd\"},\"rejectedDataLinkedService\":{\"referenceName\":\"jiguusbw\"},\"name\":\"syoybjtzdgzt\",\"description\":\"qiilfovmcjchbof\",\"dataset\":{\"referenceName\":\"vqvjfszvece\"},\"linkedService\":{\"referenceName\":\"ptez\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"erurcjgkauyzbrdi\"}}]}],\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"bkgxqsbwepduyqx\",\"datasetParameters\":\"dataxarddbnqyayl\",\"parameters\":{\"rtpxwgt\":\"datatwd\"},\"\":{\"xndnbzhs\":\"databjihz\",\"stytexu\":\"datadnljpouz\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"qllqn\",\"parameters\":{\"bytshsathk\":\"datafufleioywlcl\"}},\"folderPath\":\"datawqljnuayp\"},\"integrationRuntime\":{\"referenceName\":\"z\",\"parameters\":{\"gytquktcqggxdnpp\":\"dataeqajipnpwomjlps\"}},\"compute\":{\"computeType\":\"dataqag\",\"coreCount\":\"datawoozlfliir\"},\"traceLevel\":\"datanglfcrtkpfsjwtq\",\"continueOnError\":\"dataqeofjoqjmlz\",\"runConcurrently\":\"dataizjssfwoj\",\"sourceStagingConcurrency\":\"datagmhzrjsb\"},\"policy\":{\"timeout\":\"dataitypashvjriniz\",\"retry\":\"dataadus\",\"retryIntervalInSeconds\":818396335,\"secureInput\":true,\"secureOutput\":false,\"\":{\"vgqtvg\":\"datawcxyagidyansnu\",\"vrdsv\":\"dataperbnbsd\"}},\"name\":\"rvzbmhmkoxsavzng\",\"description\":\"wymeb\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"qtpwhicnnanqzrml\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\"],\"\":{\"nwjuqzj\":\"datadwxlstpuzx\",\"peauhldqbwkxe\":\"datahzd\",\"ygoijhciynp\":\"datanroewwrhvdwrowe\"}},{\"activity\":\"viivczupcl\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"tsnnsxouz\":\"datafh\"}},{\"activity\":\"mudyuoholy\",\"dependencyConditions\":[\"Failed\"],\"\":{\"ttclnhoituk\":\"dataxlyfrrczhnvtih\"}}],\"userProperties\":[{\"name\":\"orepbqkmylj\",\"value\":\"dataicjlrl\"},{\"name\":\"qbavplqkcsr\",\"value\":\"datavvniwqpc\"},{\"name\":\"yo\",\"value\":\"datajikv\"},{\"name\":\"kpu\",\"value\":\"datatjcfyxyrkpclvp\"}],\"\":{\"gkgnuh\":\"datayckzshvcalzlk\"}}") - .toObject(ExecuteWranglingDataflowActivity.class); - Assertions.assertEquals("rvzbmhmkoxsavzng", model.name()); - Assertions.assertEquals("wymeb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("qtpwhicnnanqzrml", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("orepbqkmylj", model.userProperties().get(0).name()); - Assertions.assertEquals(818396335, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("l", model.sinks().get("uqi").name()); - Assertions.assertEquals("l", model.sinks().get("uqi").description()); - Assertions.assertEquals("zzkgebey", model.sinks().get("uqi").dataset().referenceName()); - Assertions.assertEquals("rn", model.sinks().get("uqi").linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get("uqi").flowlet().type()); - Assertions.assertEquals("nsktdgbombnc", model.sinks().get("uqi").flowlet().referenceName()); - Assertions.assertEquals("iminccnubynrh", model.sinks().get("uqi").schemaLinkedService().referenceName()); - Assertions.assertEquals("ztwwkvwpbdo", model.sinks().get("uqi").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("gxdxqefuzubn", model.sinks().get("uqi").script()); - Assertions.assertEquals("awpbif", model.queries().get(0).queryName()); - Assertions.assertEquals("joqcyowzwshsgrea", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("wsdirxpr", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions.assertEquals("gzpnrmmjyv", model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("tjuwobwskyjlte", - model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("vrpvhivvlmzcvpo", - model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ejhxfjlecbbabi", - model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("alsrxzatlzwr", - model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("iocvjmyinpl", model.queries().get(0).dataflowSinks().get(0).script()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("bkgxqsbwepduyqx", model.dataFlow().referenceName()); - Assertions.assertEquals("qllqn", model.staging().linkedService().referenceName()); - Assertions.assertEquals("z", model.integrationRuntime().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteWranglingDataflowActivity model = new ExecuteWranglingDataflowActivity().withName("rvzbmhmkoxsavzng") - .withDescription("wymeb") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("qtpwhicnnanqzrml") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("viivczupcl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mudyuoholy") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("orepbqkmylj").withValue("dataicjlrl"), - new UserProperty().withName("qbavplqkcsr").withValue("datavvniwqpc"), - new UserProperty().withName("yo").withValue("datajikv"), - new UserProperty().withName("kpu").withValue("datatjcfyxyrkpclvp"))) - .withPolicy(new ActivityPolicy().withTimeout("dataitypashvjriniz") - .withRetry("dataadus") - .withRetryIntervalInSeconds(818396335) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withSinks(mapOf("uqi", new PowerQuerySink().withName("l") - .withDescription("l") - .withDataset(new DatasetReference().withReferenceName("zzkgebey") - .withParameters(mapOf("azfjbxhnahgbloea", "datagyksgntgiw", "gbyxpma", "datawidumilxi"))) - .withLinkedService( - new LinkedServiceReference().withReferenceName("rn").withParameters(mapOf("faf", "datahviqwfctiy"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nsktdgbombnc") - .withDatasetParameters("dataxkcpqw") - .withParameters( - mapOf("ijobcpruommtuca", "dataqvlcunnb", "a", "datagrlvkdaphzemn", "qbwim", "datatkbzz")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("iminccnubynrh") - .withParameters(mapOf("hxtbcqjvyzotxkhy", "datagfzhbtzuddqt", "mqrioa", "dataj", "rglmjrufwqpnmcw", - "datazmrwlsrjjaj", "dzkbky", "datasfpyt"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("ztwwkvwpbdo") - .withParameters(mapOf("jzrzv", "datarmp", "igzwhfeq", "dataupnfrlygyjrlu"))) - .withScript("gxdxqefuzubn"), "nhlsf", - new PowerQuerySink().withName("vmc") - .withDescription("nmnojfmztpwu") - .withDataset(new DatasetReference().withReferenceName("untvyeyebw") - .withParameters(mapOf("eyuirrrxrftfamo", "dataonqjnpkofjfus"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("vjm") - .withParameters(mapOf("cowmukzcrp", "datalphqtq", "zbeutqfx", "datalgzctfnlakl", "wticu", - "dataxzwiehqvvbgwxp", "lzhujcx", "datakmzubdmcdfvw"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("aqolnfeywbpenq") - .withDatasetParameters("datapzwwsfrpbwvfjdg") - .withParameters(mapOf("jyulo", "dataycxmct", "lkmjeekbmwizis", "datapulwcxmxf", "leaotaakcy", - "datatmxyrsnmwiy")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("yvnpuclqtdca") - .withParameters(mapOf("cl", "datazeckpgpjkczkcdlz"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("anabzycxvifkzs") - .withParameters(mapOf("inlqkzee", "datal", "kwxb", "datazelmmwmdhmd"))) - .withScript("iujsjngs"), - "xlkloqpwsaqcr", - new PowerQuerySink().withName("ktogmcblw") - .withDescription("vnisin") - .withDataset(new DatasetReference().withReferenceName("cwwpuka") - .withParameters(mapOf("hngaczgg", "dataj", "tok", "dataiaqmuptnhuybt", "ljzlnre", - "datahyozxotwral", "mjschcxud", "datalwfgyabglsar"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("mhhsumzfvrakpql") - .withParameters(mapOf("holjjxilbsbh", "dataiudveoibeh"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ucwdc") - .withDatasetParameters("datakwwuljveu") - .withParameters(mapOf("fmvauhnh", "dataxrsxb", "iwvejwtzkiid", "datanswlfuukildlayt", - "ytaeallsxfza", "datasskl")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("jvmjhuvuadpd") - .withParameters(mapOf("uwaqiomdlp", "datawbheijmwaj", "wowmwrn", "datakfslm", "obg", - "datauwgrtvyw", "evyyppaycasch", "datavhdb"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("midkd") - .withParameters(mapOf("xxcvugarykbyuuk", "dataptessvmd", "csevqtd", "datassretugorcz"))) - .withScript("jwajsbqyt"), - "vfrtmwyezr", - new PowerQuerySink().withName("xahxysl") - .withDescription("okfomakmi") - .withDataset(new DatasetReference().withReferenceName("hduflajsgut") - .withParameters(mapOf("firaoytkkq", "databvxyqprchk", "dzfypdsrfpihvij", "dataaazvmnv"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("tkpo") - .withParameters(mapOf("njduyotqb", "dataoyjjfx"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xbtuxm") - .withDatasetParameters("datarixolbzjlqrps") - .withParameters(mapOf("d", "datastcoibi")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("wpvrwec") - .withParameters(mapOf("jwpejtszj", "dataiaognmanrzjprlq", "vwvycvnow", "datavj", "xwwhusrodrom", - "dataclijmdl", "fw", "dataz"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("ocwkwmqroqldacx") - .withParameters(mapOf("ssukvsgkzxznctx", "dataq", "jfcaqpkpvdiir", "datacznszmjz"))) - .withScript("kgjdn"))) - .withQueries(Arrays.asList( - new PowerQuerySinkMapping().withQueryName("awpbif") - .withDataflowSinks(Arrays.asList( - new PowerQuerySink().withName("joqcyowzwshsgrea") - .withDescription("wsdirxpr") - .withDataset(new DatasetReference().withReferenceName("gzpnrmmjyv")) - .withLinkedService(new LinkedServiceReference().withReferenceName("tjuwobwskyjlte")) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vrpvhivvlmzcvpo") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ejhxfjlecbbabi")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("alsrxzatlzwr")) - .withScript("iocvjmyinpl"), - new PowerQuerySink().withName("clpvwtwboxgrv") - .withDescription("voq") - .withDataset(new DatasetReference().withReferenceName("quwkuszllognl")) - .withLinkedService(new LinkedServiceReference().withReferenceName("hvllenygimnfvq")) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("zo") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("oezgibfisfmc")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("rhgcuejtxxlkokt")) - .withScript("vfcwedyz"), - new PowerQuerySink().withName("yqtyuywzccumk") - .withDescription("ygrkcolvitb") - .withDataset(new DatasetReference().withReferenceName("oxrbotzvrgo")) - .withLinkedService(new LinkedServiceReference().withReferenceName("ayjselrfqstbfuqm")) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("fvbeyugggfshn") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("vhflbchzoboee")) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("kwdtuwbrw")) - .withScript("lwdh"))), - new PowerQuerySinkMapping().withQueryName("ken") - .withDataflowSinks(Arrays.asList(new PowerQuerySink().withName("syoybjtzdgzt") - .withDescription("qiilfovmcjchbof") - .withDataset(new DatasetReference().withReferenceName("vqvjfszvece")) - .withLinkedService(new LinkedServiceReference().withReferenceName("ptez")) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("erurcjgkauyzbrdi") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("rkxyjsuappd")) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("jiguusbw")) - .withScript("jqrxyaa"))))) - .withDataFlow(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("bkgxqsbwepduyqx") - .withDatasetParameters("dataxarddbnqyayl") - .withParameters(mapOf("rtpxwgt", "datatwd")) - .withAdditionalProperties(mapOf())) - .withStaging( - new DataFlowStagingInfo().withLinkedService(new LinkedServiceReference().withReferenceName("qllqn") - .withParameters(mapOf("bytshsathk", "datafufleioywlcl"))).withFolderPath("datawqljnuayp")) - .withIntegrationRuntime(new IntegrationRuntimeReference().withReferenceName("z") - .withParameters(mapOf("gytquktcqggxdnpp", "dataeqajipnpwomjlps"))) - .withCompute(new ExecuteDataFlowActivityTypePropertiesCompute().withComputeType("dataqag") - .withCoreCount("datawoozlfliir")) - .withTraceLevel("datanglfcrtkpfsjwtq") - .withContinueOnError("dataqeofjoqjmlz") - .withRunConcurrently("dataizjssfwoj") - .withSourceStagingConcurrency("datagmhzrjsb"); - model = BinaryData.fromObject(model).toObject(ExecuteWranglingDataflowActivity.class); - Assertions.assertEquals("rvzbmhmkoxsavzng", model.name()); - Assertions.assertEquals("wymeb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("qtpwhicnnanqzrml", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("orepbqkmylj", model.userProperties().get(0).name()); - Assertions.assertEquals(818396335, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("l", model.sinks().get("uqi").name()); - Assertions.assertEquals("l", model.sinks().get("uqi").description()); - Assertions.assertEquals("zzkgebey", model.sinks().get("uqi").dataset().referenceName()); - Assertions.assertEquals("rn", model.sinks().get("uqi").linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get("uqi").flowlet().type()); - Assertions.assertEquals("nsktdgbombnc", model.sinks().get("uqi").flowlet().referenceName()); - Assertions.assertEquals("iminccnubynrh", model.sinks().get("uqi").schemaLinkedService().referenceName()); - Assertions.assertEquals("ztwwkvwpbdo", model.sinks().get("uqi").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("gxdxqefuzubn", model.sinks().get("uqi").script()); - Assertions.assertEquals("awpbif", model.queries().get(0).queryName()); - Assertions.assertEquals("joqcyowzwshsgrea", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("wsdirxpr", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions.assertEquals("gzpnrmmjyv", model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("tjuwobwskyjlte", - model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("vrpvhivvlmzcvpo", - model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ejhxfjlecbbabi", - model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("alsrxzatlzwr", - model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("iocvjmyinpl", model.queries().get(0).dataflowSinks().get(0).script()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("bkgxqsbwepduyqx", model.dataFlow().referenceName()); - Assertions.assertEquals("qllqn", model.staging().linkedService().referenceName()); - Assertions.assertEquals("z", model.integrationRuntime().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/ExecutionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java deleted file mode 100644 index 155427f3a7db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.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.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\":\"sxyk\",\"linkedServiceName\":{\"referenceName\":\"aaepxlxbofdchbo\",\"parameters\":{\"esetutqjsojw\":\"dataskz\"}},\"policy\":{\"timeout\":\"datatrnakytzcma\",\"retry\":\"datasljkaarqhpxwq\",\"retryIntervalInSeconds\":1027912523,\"secureInput\":false,\"secureOutput\":true,\"\":{\"teedjnklv\":\"datagmtywivbu\"}},\"name\":\"bh\",\"description\":\"dudj\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"nnnxhgd\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\"],\"\":{\"icjkq\":\"datadbg\"}}],\"userProperties\":[{\"name\":\"zkhdn\",\"value\":\"datanmrx\"},{\"name\":\"dfkqlkaipfyvquas\",\"value\":\"dataywkbiek\"}],\"\":{\"pgnapkpaie\":\"datakqah\",\"zmlrvlghlrcdiq\":\"dataoxvoaoavezwcl\",\"awifz\":\"datavhcbu\",\"qljl\":\"datajtockgqaawyyszwo\"}}") - .toObject(ExecutionActivity.class); - Assertions.assertEquals("bh", model.name()); - Assertions.assertEquals("dudj", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("nnnxhgd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zkhdn", model.userProperties().get(0).name()); - Assertions.assertEquals("aaepxlxbofdchbo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1027912523, 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 { - ExecutionActivity model = new ExecutionActivity().withName("bh") - .withDescription("dudj") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("nnnxhgd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("zkhdn").withValue("datanmrx"), - new UserProperty().withName("dfkqlkaipfyvquas").withValue("dataywkbiek"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("aaepxlxbofdchbo") - .withParameters(mapOf("esetutqjsojw", "dataskz"))) - .withPolicy(new ActivityPolicy().withTimeout("datatrnakytzcma") - .withRetry("datasljkaarqhpxwq") - .withRetryIntervalInSeconds(1027912523) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ExecutionActivity.class); - Assertions.assertEquals("bh", model.name()); - Assertions.assertEquals("dudj", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("nnnxhgd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zkhdn", model.userProperties().get(0).name()); - Assertions.assertEquals("aaepxlxbofdchbo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1027912523, 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/ExportSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java deleted file mode 100644 index c8c31f43fa32..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\":\"o\",\"\":{\"dqv\":\"databs\",\"wajjzxcqnl\":\"dataqcme\"}}") - .toObject(ExportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportSettings model = new ExportSettings().withAdditionalProperties(mapOf("type", "o")); - 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 0d8cd1c3f87c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.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.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\":\"ygevqzntypmrbpiz\",\"featureType\":\"r\"},{\"featureName\":\"sdpydnfyhxdeoejz\",\"featureType\":\"w\"}]}") - .toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("ygevqzntypmrbpiz", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("r", 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("ygevqzntypmrbpiz").withFeatureType("r"), - new ExposureControlRequest().withFeatureName("sdpydnfyhxdeoejz").withFeatureType("w"))); - model = BinaryData.fromObject(model).toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("ygevqzntypmrbpiz", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("r", 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 ef58cf054025..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\":\"jttgzf\",\"value\":\"shcbkhajdeyeamdp\"}]}") - .toObject(ExposureControlBatchResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlBatchResponseInner model = new ExposureControlBatchResponseInner() - .withExposureControlResponses(Arrays.asList(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 41dc1301ef97..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\":\"rvjx\",\"featureType\":\"nspydptkoenkoukn\"}") - .toObject(ExposureControlRequest.class); - Assertions.assertEquals("rvjx", model.featureName()); - Assertions.assertEquals("nspydptkoenkoukn", model.featureType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlRequest model - = new ExposureControlRequest().withFeatureName("rvjx").withFeatureType("nspydptkoenkoukn"); - model = BinaryData.fromObject(model).toObject(ExposureControlRequest.class); - Assertions.assertEquals("rvjx", model.featureName()); - Assertions.assertEquals("nspydptkoenkoukn", 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 4e8b8845e7ba..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\":\"dwtiukbldngkp\",\"value\":\"ipazyxoegukgjnpi\"}") - .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 38ccf3e348f9..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\":\"yxsaxwugpn\",\"value\":\"sxwk\"}"; - - 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("ignbisszobpxf", "padzdzswvfw", - new ExposureControlRequest().withFeatureName("njwqxgzt").withFeatureType("gdqnwvb"), - 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 d4e5ca752399..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\":\"pdtso\",\"value\":\"nhlrp\"}"; - - 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("pwvieymkguvrd", - new ExposureControlRequest().withFeatureName("proytd").withFeatureType("elqcvm"), - 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 7f00632d3684..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\":\"zcnpsdpfw\",\"value\":\"wwbunfymbwi\"},{\"featureName\":\"rajtbmjok\",\"value\":\"qgokha\"},{\"featureName\":\"ylkflf\",\"value\":\"fjskndwywbptvym\"},{\"featureName\":\"pdcddbeozhprlxxb\",\"value\":\"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)); - - ExposureControlBatchResponse response = manager.exposureControls() - .queryFeatureValuesByFactoryWithResponse("k", "dtofakmopqfzvvti", - new ExposureControlBatchRequest().withExposureControlRequests(Arrays - .asList(new ExposureControlRequest().withFeatureName("suemewfut").withFeatureType("bpnrfucxt"))), - 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 7b25d3065686..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\":\"cciklhs\"}").toObject(Expression.class); - Assertions.assertEquals("cciklhs", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Expression model = new Expression().withValue("cciklhs"); - model = BinaryData.fromObject(model).toObject(Expression.class); - Assertions.assertEquals("cciklhs", 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 85a4533ff330..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.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.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\":\"Field\",\"value\":\"el\",\"operator\":\"ikigzbrkwgsqos\",\"operands\":[{\"type\":\"Constant\",\"value\":\"hkljktujf\",\"operator\":\"eqfryketwrzxb\",\"operands\":[{\"type\":\"Field\",\"value\":\"g\",\"operator\":\"qnjfjyppixfub\",\"operands\":[{},{},{}]},{\"type\":\"Constant\",\"value\":\"wyetyrnhisp\",\"operator\":\"ivanlypspnjlo\",\"operands\":[{},{}]}]},{\"type\":\"Unary\",\"value\":\"lma\",\"operator\":\"rbwbkrsmkeiunxtb\",\"operands\":[{\"type\":\"Unary\",\"value\":\"xdtzzmcrmhhfcaiz\",\"operator\":\"iyuzufd\",\"operands\":[{}]},{\"type\":\"Unary\",\"value\":\"nfljv\",\"operator\":\"qkoecozfauhn\",\"operands\":[{},{},{},{}]},{\"type\":\"Unary\",\"value\":\"lgrzcjpkzmhax\",\"operator\":\"jimlfrkmynmmm\",\"operands\":[{}]},{\"type\":\"Binary\",\"value\":\"ghordcc\",\"operator\":\"rwzczlvqlcca\",\"operands\":[{},{}]}]},{\"type\":\"Binary\",\"value\":\"tyiqqwdgys\",\"operator\":\"vvagvqrwrchwd\",\"operands\":[{\"type\":\"Constant\",\"value\":\"tfjj\",\"operator\":\"xweuoklwtoecxndh\",\"operands\":[{},{},{}]},{\"type\":\"Field\",\"value\":\"ocunan\",\"operator\":\"tverplhfwq\",\"operands\":[{},{},{}]}]}]}") - .toObject(ExpressionV2.class); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.type()); - Assertions.assertEquals("el", model.value()); - Assertions.assertEquals("ikigzbrkwgsqos", model.operator()); - Assertions.assertEquals(ExpressionV2Type.CONSTANT, model.operands().get(0).type()); - Assertions.assertEquals("hkljktujf", model.operands().get(0).value()); - Assertions.assertEquals("eqfryketwrzxb", model.operands().get(0).operator()); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.operands().get(0).operands().get(0).type()); - Assertions.assertEquals("g", model.operands().get(0).operands().get(0).value()); - Assertions.assertEquals("qnjfjyppixfub", model.operands().get(0).operands().get(0).operator()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExpressionV2 model - = new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("el") - .withOperator("ikigzbrkwgsqos") - .withOperands( - Arrays - .asList( - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("hkljktujf") - .withOperator("eqfryketwrzxb") - .withOperands( - Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("g") - .withOperator("qnjfjyppixfub") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("wyetyrnhisp") - .withOperator("ivanlypspnjlo") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2())))), - new ExpressionV2().withType(ExpressionV2Type.UNARY) - .withValue("lma") - .withOperator("rbwbkrsmkeiunxtb") - .withOperands(Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.UNARY) - .withValue("xdtzzmcrmhhfcaiz") - .withOperator("iyuzufd") - .withOperands(Arrays.asList(new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.UNARY) - .withValue("nfljv") - .withOperator("qkoecozfauhn") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2(), new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.UNARY) - .withValue("lgrzcjpkzmhax") - .withOperator("jimlfrkmynmmm") - .withOperands(Arrays.asList(new ExpressionV2())), - new ExpressionV2() - .withType(ExpressionV2Type.BINARY) - .withValue("ghordcc") - .withOperator("rwzczlvqlcca") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2())))), - new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("tyiqqwdgys") - .withOperator("vvagvqrwrchwd") - .withOperands( - Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("tfjj") - .withOperator("xweuoklwtoecxndh") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("ocunan") - .withOperator("tverplhfwq") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())))))); - model = BinaryData.fromObject(model).toObject(ExpressionV2.class); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.type()); - Assertions.assertEquals("el", model.value()); - Assertions.assertEquals("ikigzbrkwgsqos", model.operator()); - Assertions.assertEquals(ExpressionV2Type.CONSTANT, model.operands().get(0).type()); - Assertions.assertEquals("hkljktujf", model.operands().get(0).value()); - Assertions.assertEquals("eqfryketwrzxb", model.operands().get(0).operator()); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.operands().get(0).operands().get(0).type()); - Assertions.assertEquals("g", model.operands().get(0).operands().get(0).value()); - Assertions.assertEquals("qnjfjyppixfub", model.operands().get(0).operands().get(0).operator()); - } -} 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 7f90bd642531..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("zhobt", "ubebbery", 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 789ea890c6c7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.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.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,UserAssigned\",\"principalId\":\"8795ef66-8e5f-4f7e-b025-f68d2c204177\",\"tenantId\":\"0b14d1cf-00e0-40ff-88dd-bcb987ea8319\",\"userAssignedIdentities\":{\"jh\":\"dataattpngjcrcczsq\",\"ysou\":\"datamdajv\",\"canoaeupf\":\"dataq\",\"tuo\":\"datayhltrpmopjmcm\"}}") - .toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryIdentity model = new FactoryIdentity().withType(FactoryIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("jh", "dataattpngjcrcczsq", "ysou", "datamdajv", "canoaeupf", "dataq", - "tuo", "datayhltrpmopjmcm")); - model = BinaryData.fromObject(model).toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED_USER_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 03c38214130a..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\":\"iqzbq\",\"accountName\":\"vsovmyokac\",\"repositoryName\":\"pkwlhz\",\"collaborationBranch\":\"obpxjmflbvvn\",\"rootFolder\":\"hrk\",\"lastCommitId\":\"iwwzjuqk\",\"disablePublish\":false}") - .toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("vsovmyokac", model.accountName()); - Assertions.assertEquals("pkwlhz", model.repositoryName()); - Assertions.assertEquals("obpxjmflbvvn", model.collaborationBranch()); - Assertions.assertEquals("hrk", model.rootFolder()); - Assertions.assertEquals("iwwzjuqk", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoConfiguration model = new FactoryRepoConfiguration().withAccountName("vsovmyokac") - .withRepositoryName("pkwlhz") - .withCollaborationBranch("obpxjmflbvvn") - .withRootFolder("hrk") - .withLastCommitId("iwwzjuqk") - .withDisablePublish(false); - model = BinaryData.fromObject(model).toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("vsovmyokac", model.accountName()); - Assertions.assertEquals("pkwlhz", model.repositoryName()); - Assertions.assertEquals("obpxjmflbvvn", model.collaborationBranch()); - Assertions.assertEquals("hrk", model.rootFolder()); - Assertions.assertEquals("iwwzjuqk", 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 4d04889f5131..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\":\"gidyjrrf\",\"repoConfiguration\":{\"type\":\"osvexcsonpclhoc\",\"accountName\":\"hslkevleggzf\",\"repositoryName\":\"u\",\"collaborationBranch\":\"fmvfaxkffeiit\",\"rootFolder\":\"lvmezyvshxmzsbbz\",\"lastCommitId\":\"gigr\",\"disablePublish\":true}}") - .toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("gidyjrrf", model.factoryResourceId()); - Assertions.assertEquals("hslkevleggzf", model.repoConfiguration().accountName()); - Assertions.assertEquals("u", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("fmvfaxkffeiit", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("lvmezyvshxmzsbbz", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("gigr", model.repoConfiguration().lastCommitId()); - Assertions.assertEquals(true, model.repoConfiguration().disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoUpdate model = new FactoryRepoUpdate().withFactoryResourceId("gidyjrrf") - .withRepoConfiguration(new FactoryRepoConfiguration().withAccountName("hslkevleggzf") - .withRepositoryName("u") - .withCollaborationBranch("fmvfaxkffeiit") - .withRootFolder("lvmezyvshxmzsbbz") - .withLastCommitId("gigr") - .withDisablePublish(true)); - model = BinaryData.fromObject(model).toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("gidyjrrf", model.factoryResourceId()); - Assertions.assertEquals("hslkevleggzf", model.repoConfiguration().accountName()); - Assertions.assertEquals("u", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("fmvfaxkffeiit", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("lvmezyvshxmzsbbz", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("gigr", 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 581c51303e6d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.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.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\":{\"wkgshwa\":\"alpbuxwgipwhon\"},\"identity\":{\"type\":\"SystemAssigned,UserAssigned\",\"principalId\":\"1db887d3-ab26-4f99-bea3-54de739a81f2\",\"tenantId\":\"5a181021-8f94-4be1-a00d-28fd085bc8d8\",\"userAssignedIdentities\":{\"zoqftiyqzrnkcqvy\":\"datanjeputtmrywn\",\"lsicohoqqnwv\":\"datalwh\"}},\"properties\":{\"publicNetworkAccess\":\"Disabled\"}}") - .toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("alpbuxwgipwhon", model.tags().get("wkgshwa")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED_USER_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("wkgshwa", "alpbuxwgipwhon")) - .withIdentity(new FactoryIdentity().withType(FactoryIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("zoqftiyqzrnkcqvy", "datanjeputtmrywn", "lsicohoqqnwv", "datalwh"))) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("alpbuxwgipwhon", model.tags().get("wkgshwa")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED_USER_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 8fb25b40bae0..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\":\"Enabled\"}").toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryUpdateProperties model - = new FactoryUpdateProperties().withPublicNetworkAccess(PublicNetworkAccess.ENABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, 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 5946e971c51e..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\":\"qbedygisrzwn\",\"projectName\":\"jzudrtpzk\",\"tenantId\":\"eboywhczzqrhm\",\"accountName\":\"kdidjc\",\"repositoryName\":\"lrmpwctofldse\",\"collaborationBranch\":\"cdhz\",\"rootFolder\":\"xkbrfg\",\"lastCommitId\":\"wjiyewhfjsrwq\",\"disablePublish\":true}") - .toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("kdidjc", model.accountName()); - Assertions.assertEquals("lrmpwctofldse", model.repositoryName()); - Assertions.assertEquals("cdhz", model.collaborationBranch()); - Assertions.assertEquals("xkbrfg", model.rootFolder()); - Assertions.assertEquals("wjiyewhfjsrwq", model.lastCommitId()); - Assertions.assertEquals(true, model.disablePublish()); - Assertions.assertEquals("jzudrtpzk", model.projectName()); - Assertions.assertEquals("eboywhczzqrhm", model.tenantId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryVstsConfiguration model = new FactoryVstsConfiguration().withAccountName("kdidjc") - .withRepositoryName("lrmpwctofldse") - .withCollaborationBranch("cdhz") - .withRootFolder("xkbrfg") - .withLastCommitId("wjiyewhfjsrwq") - .withDisablePublish(true) - .withProjectName("jzudrtpzk") - .withTenantId("eboywhczzqrhm"); - model = BinaryData.fromObject(model).toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("kdidjc", model.accountName()); - Assertions.assertEquals("lrmpwctofldse", model.repositoryName()); - Assertions.assertEquals("cdhz", model.collaborationBranch()); - Assertions.assertEquals("xkbrfg", model.rootFolder()); - Assertions.assertEquals("wjiyewhfjsrwq", model.lastCommitId()); - Assertions.assertEquals(true, model.disablePublish()); - Assertions.assertEquals("jzudrtpzk", model.projectName()); - Assertions.assertEquals("eboywhczzqrhm", 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 bb6b1e3b1cd6..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\":\"nx\",\"folderPath\":\"datafffhtjnwos\",\"fileName\":\"datafjxtvlxxzqfc\",\"\":{\"hjmbji\":\"dataiomxeezw\",\"hpyvdkgdet\":\"dataegmxdbsohc\",\"canzb\":\"dataz\"}}") - .toObject(FileServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerLocation model - = new FileServerLocation().withFolderPath("datafffhtjnwos").withFileName("datafjxtvlxxzqfc"); - 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 e10122c45158..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\":\"jkmpa\",\"recursive\":\"datawsynt\",\"wildcardFolderPath\":\"datarluqaqn\",\"wildcardFileName\":\"datag\",\"fileListPath\":\"datab\",\"enablePartitionDiscovery\":\"datajbozkl\",\"partitionRootPath\":\"dataifvpsmvk\",\"deleteFilesAfterCompletion\":\"datauw\",\"modifiedDatetimeStart\":\"datanplqf\",\"modifiedDatetimeEnd\":\"dataxfqmdjzgo\",\"fileFilter\":\"datakp\",\"maxConcurrentConnections\":\"dataeylpofaogvmqzagr\",\"disableMetricsCollection\":\"dataqhwfskmkdr\",\"\":{\"ldwcxjvexlutxcmc\":\"datapn\",\"yypvhdulds\":\"datacotqocn\"}}") - .toObject(FileServerReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerReadSettings model = new FileServerReadSettings().withMaxConcurrentConnections("dataeylpofaogvmqzagr") - .withDisableMetricsCollection("dataqhwfskmkdr") - .withRecursive("datawsynt") - .withWildcardFolderPath("datarluqaqn") - .withWildcardFileName("datag") - .withFileListPath("datab") - .withEnablePartitionDiscovery("datajbozkl") - .withPartitionRootPath("dataifvpsmvk") - .withDeleteFilesAfterCompletion("datauw") - .withModifiedDatetimeStart("datanplqf") - .withModifiedDatetimeEnd("dataxfqmdjzgo") - .withFileFilter("datakp"); - 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 64a5f1be4fde..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.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.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\":\"vfiskkqspzwsxn\",\"maxConcurrentConnections\":\"datackpcssusdr\",\"disableMetricsCollection\":\"datammrzwm\",\"copyBehavior\":\"datatkcvolaxnuk\",\"metadata\":[{\"name\":\"datau\",\"value\":\"datadcqoxyxiyhmj\"}],\"\":{\"qiygbouv\":\"datawkezgva\"}}") - .toObject(FileServerWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerWriteSettings model = new FileServerWriteSettings().withMaxConcurrentConnections("datackpcssusdr") - .withDisableMetricsCollection("datammrzwm") - .withCopyBehavior("datatkcvolaxnuk") - .withMetadata(Arrays.asList(new MetadataItem().withName("datau").withValue("datadcqoxyxiyhmj"))); - 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 4b25a70252af..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.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.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\":\"gsulwvgseufigvfj\",\"typeProperties\":{\"folderPath\":\"datancpr\",\"fileName\":\"datasjvjnkoiznz\",\"modifiedDatetimeStart\":\"databiba\",\"modifiedDatetimeEnd\":\"datagicovjt\",\"format\":{\"type\":\"rmjxyvuodnxc\",\"serializer\":\"dataassqfy\",\"deserializer\":\"datawppeygk\",\"\":{\"ttuvsq\":\"dataloasybxhqvovdpm\",\"qgxqbfkc\":\"datasrvjnqt\"}},\"fileFilter\":\"datancnr\",\"compression\":{\"type\":\"dataj\",\"level\":\"dataywevsfgdrmnszdo\",\"\":{\"ghndae\":\"datasqsvzvmxtc\"}}},\"description\":\"zkilmciwuh\",\"structure\":\"dataekypyovljl\",\"schema\":\"datadlbybpa\",\"linkedServiceName\":{\"referenceName\":\"hpzysovsnw\",\"parameters\":{\"ag\":\"datanzgesfhs\",\"zpbyfyvynpmggq\":\"dataahn\"}},\"parameters\":{\"bloejzsaxzgkq\":{\"type\":\"Float\",\"defaultValue\":\"datavqbugihcdvfoizo\"}},\"annotations\":[\"dataeppjnaphifkfrp\",\"datap\",\"dataubpebrm\"],\"folder\":{\"name\":\"fpghtbttpkim\"},\"\":{\"mhrcmelycpgoku\":\"datankkhbykr\",\"bnvmshfuzzlapy\":\"datahrvybn\",\"uptessjlwjta\":\"dataxlvzcgulaebxiauq\"}}") - .toObject(FileShareDataset.class); - Assertions.assertEquals("zkilmciwuh", model.description()); - Assertions.assertEquals("hpzysovsnw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("bloejzsaxzgkq").type()); - Assertions.assertEquals("fpghtbttpkim", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDataset model = new FileShareDataset().withDescription("zkilmciwuh") - .withStructure("dataekypyovljl") - .withSchema("datadlbybpa") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hpzysovsnw") - .withParameters(mapOf("ag", "datanzgesfhs", "zpbyfyvynpmggq", "dataahn"))) - .withParameters(mapOf("bloejzsaxzgkq", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datavqbugihcdvfoizo"))) - .withAnnotations(Arrays.asList("dataeppjnaphifkfrp", "datap", "dataubpebrm")) - .withFolder(new DatasetFolder().withName("fpghtbttpkim")) - .withFolderPath("datancpr") - .withFileName("datasjvjnkoiznz") - .withModifiedDatetimeStart("databiba") - .withModifiedDatetimeEnd("datagicovjt") - .withFormat(new DatasetStorageFormat().withSerializer("dataassqfy") - .withDeserializer("datawppeygk") - .withAdditionalProperties(mapOf("type", "rmjxyvuodnxc"))) - .withFileFilter("datancnr") - .withCompression(new DatasetCompression().withType("dataj") - .withLevel("dataywevsfgdrmnszdo") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(FileShareDataset.class); - Assertions.assertEquals("zkilmciwuh", model.description()); - Assertions.assertEquals("hpzysovsnw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("bloejzsaxzgkq").type()); - Assertions.assertEquals("fpghtbttpkim", 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 7adc4e843e7b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.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.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\":\"datavblskxg\",\"fileName\":\"dataa\",\"modifiedDatetimeStart\":\"dataaslkvcvwpvl\",\"modifiedDatetimeEnd\":\"databvyezj\",\"format\":{\"type\":\"qonbwhiieyoz\",\"serializer\":\"datacwf\",\"deserializer\":\"datacwnbcgqefgzjvbx\",\"\":{\"xtuuci\":\"datagoa\"}},\"fileFilter\":\"datavkdlhuduklbjoafm\",\"compression\":{\"type\":\"dataexulvoepknarseia\",\"level\":\"datasqoacb\",\"\":{\"szglvyakesz\":\"datagsapleqfgkxen\",\"aqcwggchxvlqgf\":\"datauuvu\",\"vphirlzbip\":\"datarvecica\"}}}") - .toObject(FileShareDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDatasetTypeProperties model = new FileShareDatasetTypeProperties().withFolderPath("datavblskxg") - .withFileName("dataa") - .withModifiedDatetimeStart("dataaslkvcvwpvl") - .withModifiedDatetimeEnd("databvyezj") - .withFormat(new DatasetStorageFormat().withSerializer("datacwf") - .withDeserializer("datacwnbcgqefgzjvbx") - .withAdditionalProperties(mapOf("type", "qonbwhiieyoz"))) - .withFileFilter("datavkdlhuduklbjoafm") - .withCompression(new DatasetCompression().withType("dataexulvoepknarseia") - .withLevel("datasqoacb") - .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 122f7d836684..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\":\"bgohxb\",\"copyBehavior\":\"datacf\",\"writeBatchSize\":\"datazfpfxbqdrjunigxn\",\"writeBatchTimeout\":\"datanghgazdbvenv\",\"sinkRetryCount\":\"datati\",\"sinkRetryWait\":\"dataswrncwhlxvng\",\"maxConcurrentConnections\":\"datapydjdpapndmv\",\"disableMetricsCollection\":\"datadtvvta\",\"\":{\"kmfiudnpj\":\"datawkthmexidecdeh\",\"guv\":\"dataxfhtsgyyrg\",\"ytihhq\":\"datagqllgokznffqvtx\",\"rsnbdfamyolvgk\":\"datancwgrwgdpfzdygt\"}}") - .toObject(FileSystemSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSink model = new FileSystemSink().withWriteBatchSize("datazfpfxbqdrjunigxn") - .withWriteBatchTimeout("datanghgazdbvenv") - .withSinkRetryCount("datati") - .withSinkRetryWait("dataswrncwhlxvng") - .withMaxConcurrentConnections("datapydjdpapndmv") - .withDisableMetricsCollection("datadtvvta") - .withCopyBehavior("datacf"); - 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 5516f38181f5..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\":\"ssmaaxz\",\"recursive\":\"datafekstrmsbmdg\",\"additionalColumns\":\"datakeuplorn\",\"sourceRetryCount\":\"datalnvupi\",\"sourceRetryWait\":\"databzyhtbjyycaco\",\"maxConcurrentConnections\":\"datavoyltmxqalq\",\"disableMetricsCollection\":\"dataymjww\",\"\":{\"w\":\"datanefellhdsgogdu\",\"cbvuvwdp\":\"dataalt\"}}") - .toObject(FileSystemSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSource model = new FileSystemSource().withSourceRetryCount("datalnvupi") - .withSourceRetryWait("databzyhtbjyycaco") - .withMaxConcurrentConnections("datavoyltmxqalq") - .withDisableMetricsCollection("dataymjww") - .withRecursive("datafekstrmsbmdg") - .withAdditionalColumns("datakeuplorn"); - 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 51a63961c5a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.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.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\":\"epnlwuhtfaba\",\"typeProperties\":{\"items\":{\"value\":\"kdjm\"},\"condition\":{\"value\":\"l\"}},\"name\":\"klbkig\",\"description\":\"ugwb\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ttulhanj\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"kaqbjncnbnlppuzb\":\"dataztfdujuoiienzsk\",\"azsayrkddpnob\":\"datap\",\"rtifx\":\"dataqnymds\",\"vkx\":\"datahu\"}},{\"activity\":\"novk\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"gesbei\":\"dataixx\",\"hpjakt\":\"datapuuvzyfjmor\",\"jljfmhgdn\":\"datazrcirrph\",\"flswqeh\":\"datarwgddgpq\"}},{\"activity\":\"fr\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"evtykfxos\":\"datanbu\",\"uhfwklsthjvyk\":\"dataz\",\"rnkxswohshnc\":\"datawpgwpulrtjweuoro\",\"wdl\":\"datadzvlitntdidhhac\"}},{\"activity\":\"tgiontv\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"bgoe\":\"datahkqthuijvivtwswp\",\"fsfuzqpigirnmd\":\"datauxo\"}}],\"userProperties\":[{\"name\":\"agmw\",\"value\":\"datafxeuiuvtkll\"},{\"name\":\"fnnhertgqqjcyhvy\",\"value\":\"datahgeuvujywld\"},{\"name\":\"jayiexpcxy\",\"value\":\"dataquowunwactjpgwse\"}],\"\":{\"lrvpaumkz\":\"datazxgha\",\"jlmbpjna\":\"datatjngkfipxolp\",\"enth\":\"datasbxvouxc\",\"oc\":\"datapwrmevkc\"}}") - .toObject(FilterActivity.class); - Assertions.assertEquals("klbkig", model.name()); - Assertions.assertEquals("ugwb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ttulhanj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("agmw", model.userProperties().get(0).name()); - Assertions.assertEquals("kdjm", model.items().value()); - Assertions.assertEquals("l", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivity model - = new FilterActivity().withName("klbkig") - .withDescription("ugwb") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ttulhanj") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("novk") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fr") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tgiontv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("agmw").withValue("datafxeuiuvtkll"), - new UserProperty().withName("fnnhertgqqjcyhvy").withValue("datahgeuvujywld"), - new UserProperty().withName("jayiexpcxy").withValue("dataquowunwactjpgwse"))) - .withItems(new Expression().withValue("kdjm")) - .withCondition(new Expression().withValue("l")); - model = BinaryData.fromObject(model).toObject(FilterActivity.class); - Assertions.assertEquals("klbkig", model.name()); - Assertions.assertEquals("ugwb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ttulhanj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("agmw", model.userProperties().get(0).name()); - Assertions.assertEquals("kdjm", model.items().value()); - Assertions.assertEquals("l", 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 812bc93bc877..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\":\"xhlvfniry\"},\"condition\":{\"value\":\"larohwqxjhzw\"}}") - .toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("xhlvfniry", model.items().value()); - Assertions.assertEquals("larohwqxjhzw", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivityTypeProperties model - = new FilterActivityTypeProperties().withItems(new Expression().withValue("xhlvfniry")) - .withCondition(new Expression().withValue("larohwqxjhzw")); - model = BinaryData.fromObject(model).toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("xhlvfniry", model.items().value()); - Assertions.assertEquals("larohwqxjhzw", 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 d27ae41a9eaa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"bmptrwtxzu\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"wnf\",\"parameters\":{\"zsinqbdnddb\":\"dataza\",\"jmyitrchwudl\":\"dataozsyvrm\",\"pmnoejhqlf\":\"dataeeih\"}},\"name\":\"sibz\",\"description\":\"rfgxkyd\",\"dataset\":{\"referenceName\":\"yp\",\"parameters\":{\"jpewpyjlfx\":\"datavmtywhlakxp\",\"qcrzgeuqxbpia\":\"datam\",\"aujegqdtadra\":\"dataw\"}},\"linkedService\":{\"referenceName\":\"ddhjkr\",\"parameters\":{\"fpjbqggwe\":\"datazyhgsqtnqsktx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"dhd\",\"datasetParameters\":\"datacgbfzuscstun\",\"parameters\":{\"ysmvxodgwxf\":\"dataxdfbklciichgj\",\"ec\":\"datazsifcuvbdujgcwx\"},\"\":{\"zagbbgiarksykp\":\"datajtrdxr\",\"cdosqkptj\":\"datadqxwabzrwiqrxhac\",\"d\":\"datagkifmmainwh\"}}},{\"schemaLinkedService\":{\"referenceName\":\"pbqwuntobu\",\"parameters\":{\"lw\":\"datazz\"}},\"name\":\"vydjufbnk\",\"description\":\"laxp\",\"dataset\":{\"referenceName\":\"jwdabalfd\",\"parameters\":{\"ytlbtlqhopxouvm\":\"datalz\",\"fmy\":\"datasiflikyypzkgxf\"}},\"linkedService\":{\"referenceName\":\"sdbpokszanmh\",\"parameters\":{\"detjygowi\":\"dataterdiuwkirkskwzt\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"polzkgysdgzyy\",\"datasetParameters\":\"dataoxlvocptvdxxheig\",\"parameters\":{\"hjvmabzzbwaybfm\":\"datalwzgh\",\"preojxrjnbsconxa\":\"dataafbgymqtn\"},\"\":{\"sgnwdxzedpq\":\"dataneychbjizq\"}}},{\"schemaLinkedService\":{\"referenceName\":\"fb\",\"parameters\":{\"bypicdbkpdj\":\"dataipmlnfyzavf\"}},\"name\":\"aq\",\"description\":\"mqazpdgonjh\",\"dataset\":{\"referenceName\":\"h\",\"parameters\":{\"vcpxtzhigqqbtimp\":\"datagpczqulptk\",\"rnsihqhudsmus\":\"datajbl\",\"xwjnfcz\":\"dataaawja\",\"os\":\"datanniixyxvqba\"}},\"linkedService\":{\"referenceName\":\"gir\",\"parameters\":{\"dorgmynltw\":\"datamgm\",\"tmfoeajogsyxwet\":\"datap\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ddrvlkpzwbhnrecc\",\"datasetParameters\":\"dataid\",\"parameters\":{\"wmjpjbweunxcqrr\":\"datahkahmjedbiucvkh\",\"oihppi\":\"datahu\"},\"\":{\"iuzvkunhdimju\":\"datavgnzuzpbgkzcsc\",\"zkaugpucdocfqpl\":\"datati\",\"klkvb\":\"datagofmhxwrjlv\",\"shjvpzaptuoskaoi\":\"dataikyjtkakvlb\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"wfgcdiykkcxwn\",\"parameters\":{\"qohhihra\":\"dataqynvavitmdm\",\"rhlhpvzadbwenni\":\"dataquddrwjclj\",\"viqlluk\":\"dataafhxrzfrmvztiuc\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"rcqxgcbvzarmqc\",\"parameters\":{\"invagovjyhd\":\"datakst\",\"txnmxgnmguz\":\"dataxbrdvcehqwh\",\"kbd\":\"datauwvorbalkjn\",\"gxiynecovagzk\":\"datalltqstqkqs\"}},\"name\":\"eubanlxunpqcc\",\"description\":\"iawzlzklaslgac\",\"dataset\":{\"referenceName\":\"uxlrarwpe\",\"parameters\":{\"tnkqbala\":\"dataudoejtighsxjp\",\"wxhmehjnhjiot\":\"dataovu\"}},\"linkedService\":{\"referenceName\":\"fbbcngkegxcypxbb\",\"parameters\":{\"lyr\":\"dataw\",\"frolq\":\"dataoxpdxq\",\"u\":\"datawnk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"wnah\",\"datasetParameters\":\"dataxjjmztnlmsoodtm\",\"parameters\":{\"zxvlgsrgkrfizrp\":\"datadhdyswcrptveaj\",\"yuqh\":\"datawlp\",\"fuofixcnpcfykkp\":\"datalmcskyk\"},\"\":{\"rpcfpcfjfwzl\":\"datapawmpjprdp\",\"wk\":\"dataz\"}}},{\"schemaLinkedService\":{\"referenceName\":\"e\",\"parameters\":{\"mdiawpzx\":\"dataamnni\",\"ntmkctdhuosgwqps\":\"dataz\",\"dvqgcnbhcbmjkz\":\"dataazihq\",\"jmfmeftvhkm\":\"dataibniynts\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"gjrhs\",\"parameters\":{\"fogxhcxnw\":\"datagmjgrul\"}},\"name\":\"tpfdzxcouzfwofwa\",\"description\":\"kzkdtzxsoednlwg\",\"dataset\":{\"referenceName\":\"hezomucmqgisnion\",\"parameters\":{\"uenxkgtlzlmt\":\"datazdrd\",\"zkbnbmxl\":\"datalxcznn\",\"g\":\"datamwt\",\"ahfsgb\":\"dataqzusitoq\"}},\"linkedService\":{\"referenceName\":\"lreesrfwsszvlcwl\",\"parameters\":{\"ipfjwfoygizmshx\":\"datalntfxxcrq\",\"jdzjsjzn\":\"databaizabulnvgskjto\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qqmqipaydhfn\",\"datasetParameters\":\"datac\",\"parameters\":{\"m\":\"datafshksnyzmspamwb\",\"qdktwtkvihlp\":\"datanlslcef\",\"zhwv\":\"dataliwoyngu\"},\"\":{\"mhjhaus\":\"datap\",\"ekymffztsilscvqs\":\"datab\"}}}],\"transformations\":[{\"name\":\"i\",\"description\":\"ymkouih\",\"dataset\":{\"referenceName\":\"seuugcig\",\"parameters\":{\"mt\":\"datagsmgb\",\"glab\":\"datawrqbebjnfv\",\"nhtfgfi\":\"datavkbiw\"}},\"linkedService\":{\"referenceName\":\"dyhi\",\"parameters\":{\"znhokhoitwhrjsd\":\"dataczmuhbca\",\"zqpxzbawkikcd\":\"datamazdnckidbjpgl\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"bssdpjeyoqxd\",\"datasetParameters\":\"dataecf\",\"parameters\":{\"rshzzbgullcxiqqz\":\"dataagxsurej\",\"ouigdmfivjqte\":\"datakoxdupnamgl\"},\"\":{\"qirvtk\":\"dataqigdydkghpcvr\"}}},{\"name\":\"yhhmvfxl\",\"description\":\"jajodmkrr\",\"dataset\":{\"referenceName\":\"pgqvqo\",\"parameters\":{\"abwlyvx\":\"dataujqgi\",\"aeuhwwsknstvz\":\"datahpqvcts\"}},\"linkedService\":{\"referenceName\":\"hasupmlppdpgzvz\",\"parameters\":{\"ruatsyiysjqhen\":\"datavbkarkptgon\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"eq\",\"datasetParameters\":\"datauba\",\"parameters\":{\"exmnv\":\"datadeayscseydzje\",\"xlniwmcpm\":\"datavmuw\",\"eqjzm\":\"datardlhvdvmiphbe\"},\"\":{\"czfmunerkelux\":\"dataclacr\",\"uzudlevzskejcg\":\"datashxzezb\",\"ard\":\"datafsgqkstyecupyuij\",\"c\":\"datavs\"}}},{\"name\":\"mazpzdqwuzvcmc\",\"description\":\"xizekuvfrjwucao\",\"dataset\":{\"referenceName\":\"vajbvbnkrdemdid\",\"parameters\":{\"damisvpztdi\":\"datazidgzwd\",\"j\":\"dataykpxkqejt\",\"toiboancdr\":\"dataojiunrlshxuknsyk\"}},\"linkedService\":{\"referenceName\":\"anvxuldxonckb\",\"parameters\":{\"weghlwwbogvgfk\":\"datalfxlupibaqzizxzp\",\"fvdstrkzxsgt\":\"dataqiyndveqels\",\"lr\":\"datans\",\"y\":\"datasmovpi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"oxaxnrqaqotn\",\"datasetParameters\":\"dataxolousdv\",\"parameters\":{\"wz\":\"datatqm\",\"qgkujds\":\"datadrpizfulgyctsdb\",\"eurbtigapdyarik\":\"dataoxrqw\",\"kfqbriqulwwt\":\"dataejdpdfhtwm\"},\"\":{\"h\":\"dataeqkvyhzokpoyu\",\"phmpoejnglpwsada\":\"dataensnaa\"}}}],\"script\":\"sumxpezcoioyj\",\"scriptLines\":[\"qzwqdnxke\",\"dcnwmywxfq\",\"kvemyzdpczaqpqi\"]},\"description\":\"amonatnizex\",\"annotations\":[\"datasqjghrmth\",\"dataplwsttxsrgxfqp\",\"dataniceovxgzwh\",\"dataxyrujmt\"],\"folder\":{\"name\":\"s\"}}") - .toObject(Flowlet.class); - Assertions.assertEquals("amonatnizex", model.description()); - Assertions.assertEquals("s", model.folder().name()); - Assertions.assertEquals("sibz", model.sources().get(0).name()); - Assertions.assertEquals("rfgxkyd", model.sources().get(0).description()); - Assertions.assertEquals("yp", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ddhjkr", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("dhd", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("wnf", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("eubanlxunpqcc", model.sinks().get(0).name()); - Assertions.assertEquals("iawzlzklaslgac", model.sinks().get(0).description()); - Assertions.assertEquals("uxlrarwpe", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("fbbcngkegxcypxbb", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("wnah", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("wfgcdiykkcxwn", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("rcqxgcbvzarmqc", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("i", model.transformations().get(0).name()); - Assertions.assertEquals("ymkouih", model.transformations().get(0).description()); - Assertions.assertEquals("seuugcig", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("dyhi", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("bssdpjeyoqxd", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("sumxpezcoioyj", model.script()); - Assertions.assertEquals("qzwqdnxke", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Flowlet model - = new Flowlet().withDescription("amonatnizex") - .withAnnotations(Arrays.asList("datasqjghrmth", "dataplwsttxsrgxfqp", "dataniceovxgzwh", "dataxyrujmt")) - .withFolder(new DataFlowFolder().withName("s")) - .withSources( - Arrays - .asList( - new DataFlowSource().withName("sibz") - .withDescription("rfgxkyd") - .withDataset(new DatasetReference().withReferenceName("yp") - .withParameters(mapOf("jpewpyjlfx", "datavmtywhlakxp", "qcrzgeuqxbpia", "datam", - "aujegqdtadra", "dataw"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ddhjkr") - .withParameters(mapOf("fpjbqggwe", "datazyhgsqtnqsktx"))) - .withFlowlet( - new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dhd") - .withDatasetParameters("datacgbfzuscstun") - .withParameters( - mapOf("ysmvxodgwxf", "dataxdfbklciichgj", "ec", "datazsifcuvbdujgcwx")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("wnf") - .withParameters(mapOf("zsinqbdnddb", "dataza", "jmyitrchwudl", "dataozsyvrm", - "pmnoejhqlf", "dataeeih"))), - new DataFlowSource().withName("vydjufbnk") - .withDescription("laxp") - .withDataset(new DatasetReference().withReferenceName("jwdabalfd") - .withParameters(mapOf("ytlbtlqhopxouvm", "datalz", "fmy", "datasiflikyypzkgxf"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("sdbpokszanmh") - .withParameters(mapOf("detjygowi", "dataterdiuwkirkskwzt"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("polzkgysdgzyy") - .withDatasetParameters("dataoxlvocptvdxxheig") - .withParameters(mapOf("hjvmabzzbwaybfm", "datalwzgh", "preojxrjnbsconxa", - "dataafbgymqtn")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("pbqwuntobu") - .withParameters(mapOf("lw", "datazz"))), - new DataFlowSource().withName("aq") - .withDescription("mqazpdgonjh") - .withDataset(new DatasetReference().withReferenceName("h") - .withParameters(mapOf("vcpxtzhigqqbtimp", "datagpczqulptk", "rnsihqhudsmus", - "datajbl", "xwjnfcz", "dataaawja", "os", "datanniixyxvqba"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("gir") - .withParameters(mapOf("dorgmynltw", "datamgm", "tmfoeajogsyxwet", "datap"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ddrvlkpzwbhnrecc") - .withDatasetParameters("dataid") - .withParameters(mapOf("wmjpjbweunxcqrr", "datahkahmjedbiucvkh", "oihppi", "datahu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("fb") - .withParameters(mapOf("bypicdbkpdj", "dataipmlnfyzavf"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink().withName("eubanlxunpqcc") - .withDescription("iawzlzklaslgac") - .withDataset(new DatasetReference().withReferenceName("uxlrarwpe") - .withParameters(mapOf("tnkqbala", "dataudoejtighsxjp", "wxhmehjnhjiot", "dataovu"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("fbbcngkegxcypxbb") - .withParameters(mapOf("lyr", "dataw", "frolq", "dataoxpdxq", "u", "datawnk"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("wnah") - .withDatasetParameters("dataxjjmztnlmsoodtm") - .withParameters(mapOf("zxvlgsrgkrfizrp", "datadhdyswcrptveaj", "yuqh", "datawlp", - "fuofixcnpcfykkp", "datalmcskyk")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference() - .withReferenceName("wfgcdiykkcxwn") - .withParameters( - mapOf( - "qohhihra", "dataqynvavitmdm", "rhlhpvzadbwenni", "dataquddrwjclj", - "viqlluk", "dataafhxrzfrmvztiuc"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("rcqxgcbvzarmqc") - .withParameters( - mapOf("invagovjyhd", "datakst", "txnmxgnmguz", "dataxbrdvcehqwh", "kbd", - "datauwvorbalkjn", "gxiynecovagzk", "datalltqstqkqs"))), - new DataFlowSink().withName("tpfdzxcouzfwofwa") - .withDescription("kzkdtzxsoednlwg") - .withDataset(new DatasetReference().withReferenceName("hezomucmqgisnion") - .withParameters(mapOf("uenxkgtlzlmt", "datazdrd", "zkbnbmxl", "datalxcznn", "g", - "datamwt", "ahfsgb", "dataqzusitoq"))) - .withLinkedService( - new LinkedServiceReference().withReferenceName("lreesrfwsszvlcwl") - .withParameters(mapOf("ipfjwfoygizmshx", "datalntfxxcrq", "jdzjsjzn", - "databaizabulnvgskjto"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qqmqipaydhfn") - .withDatasetParameters("datac") - .withParameters(mapOf("m", "datafshksnyzmspamwb", "qdktwtkvihlp", "datanlslcef", - "zhwv", "dataliwoyngu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("e") - .withParameters(mapOf("mdiawpzx", "dataamnni", "ntmkctdhuosgwqps", "dataz", - "dvqgcnbhcbmjkz", "dataazihq", "jmfmeftvhkm", "dataibniynts"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("gjrhs") - .withParameters(mapOf("fogxhcxnw", "datagmjgrul"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("i") - .withDescription("ymkouih") - .withDataset(new DatasetReference().withReferenceName("seuugcig") - .withParameters(mapOf("mt", "datagsmgb", "glab", "datawrqbebjnfv", "nhtfgfi", "datavkbiw"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("dyhi") - .withParameters( - mapOf("znhokhoitwhrjsd", "dataczmuhbca", "zqpxzbawkikcd", "datamazdnckidbjpgl"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("bssdpjeyoqxd") - .withDatasetParameters("dataecf") - .withParameters( - mapOf("rshzzbgullcxiqqz", "dataagxsurej", "ouigdmfivjqte", "datakoxdupnamgl")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("yhhmvfxl") - .withDescription("jajodmkrr") - .withDataset(new DatasetReference().withReferenceName("pgqvqo") - .withParameters(mapOf("abwlyvx", "dataujqgi", "aeuhwwsknstvz", "datahpqvcts"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("hasupmlppdpgzvz") - .withParameters(mapOf("ruatsyiysjqhen", "datavbkarkptgon"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("eq") - .withDatasetParameters("datauba") - .withParameters(mapOf("exmnv", "datadeayscseydzje", "xlniwmcpm", "datavmuw", "eqjzm", - "datardlhvdvmiphbe")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("mazpzdqwuzvcmc") - .withDescription("xizekuvfrjwucao") - .withDataset(new DatasetReference().withReferenceName("vajbvbnkrdemdid") - .withParameters(mapOf("damisvpztdi", "datazidgzwd", "j", "dataykpxkqejt", "toiboancdr", - "dataojiunrlshxuknsyk"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("anvxuldxonckb") - .withParameters(mapOf("weghlwwbogvgfk", "datalfxlupibaqzizxzp", "fvdstrkzxsgt", - "dataqiyndveqels", "lr", "datans", "y", "datasmovpi"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("oxaxnrqaqotn") - .withDatasetParameters("dataxolousdv") - .withParameters(mapOf("wz", "datatqm", "qgkujds", "datadrpizfulgyctsdb", "eurbtigapdyarik", - "dataoxrqw", "kfqbriqulwwt", "dataejdpdfhtwm")) - .withAdditionalProperties(mapOf())))) - .withScript("sumxpezcoioyj") - .withScriptLines(Arrays.asList("qzwqdnxke", "dcnwmywxfq", "kvemyzdpczaqpqi")); - model = BinaryData.fromObject(model).toObject(Flowlet.class); - Assertions.assertEquals("amonatnizex", model.description()); - Assertions.assertEquals("s", model.folder().name()); - Assertions.assertEquals("sibz", model.sources().get(0).name()); - Assertions.assertEquals("rfgxkyd", model.sources().get(0).description()); - Assertions.assertEquals("yp", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ddhjkr", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("dhd", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("wnf", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("eubanlxunpqcc", model.sinks().get(0).name()); - Assertions.assertEquals("iawzlzklaslgac", model.sinks().get(0).description()); - Assertions.assertEquals("uxlrarwpe", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("fbbcngkegxcypxbb", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("wnah", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("wfgcdiykkcxwn", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("rcqxgcbvzarmqc", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("i", model.transformations().get(0).name()); - Assertions.assertEquals("ymkouih", model.transformations().get(0).description()); - Assertions.assertEquals("seuugcig", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("dyhi", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("bssdpjeyoqxd", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("sumxpezcoioyj", model.script()); - Assertions.assertEquals("qzwqdnxke", 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 c1914f228778..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"ohzixyqhfnkvycqq\",\"parameters\":{\"rptyo\":\"dataeipnquwzx\"}},\"name\":\"lh\",\"description\":\"ktltddsobjopnouh\",\"dataset\":{\"referenceName\":\"ezkqxsalu\",\"parameters\":{\"dgsjsat\":\"datagfcvcewbwq\",\"qmr\":\"datarncmazdfsqxh\",\"rcwgzwllxzlhhf\":\"datajparnpvgrszrbwt\",\"ywvyldqpzfzxsox\":\"dataxacfculzjrmhp\"}},\"linkedService\":{\"referenceName\":\"unjlzkdrocq\",\"parameters\":{\"wdwisvn\":\"datatqqtcm\",\"zcrryklleynqa\":\"dataeylajamcajyhft\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"igglclwalhvub\",\"datasetParameters\":\"datazphetxdqcm\",\"parameters\":{\"alec\":\"dataajqzj\",\"egyxsbfpzvoik\":\"databibiwks\"},\"\":{\"blalh\":\"datawczfzwushlcx\",\"said\":\"dataezpfki\"}}},{\"schemaLinkedService\":{\"referenceName\":\"saao\",\"parameters\":{\"xjqfiafcnlrtbfi\":\"datagpto\",\"wieopexelxqdw\":\"datazzcaoijolbuauk\",\"ux\":\"dataswyiljpibkgxyxy\"}},\"name\":\"eddobmcnltm\",\"description\":\"tkujsqycm\",\"dataset\":{\"referenceName\":\"xfabl\",\"parameters\":{\"cgnwplrrbphcts\":\"datawbmwhrialiwr\",\"pbfs\":\"databibticuhqvum\",\"xmzrmtmvwitu\":\"dataeqbbewfcuqfpy\"}},\"linkedService\":{\"referenceName\":\"yyjshcybwfuppo\",\"parameters\":{\"zsvavlr\":\"datacmvouujxdiikmoxr\",\"oywlunpipcwyb\":\"dataikj\",\"npatpftsae\":\"datazfn\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"whxorpwaltz\",\"datasetParameters\":\"datagexojfccylhtrht\",\"parameters\":{\"zxezmnr\":\"datazjpwexcdrzprob\",\"hlokfpmijpdvzv\":\"datajgpjeuxs\",\"rwyambhbafebzxfk\":\"databhwbdqufvcgnrgla\",\"nntrvrkps\":\"dataqutibhl\"},\"\":{\"vzm\":\"datau\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"ysvlpyeuukppd\",\"parameters\":{\"xvhhyqq\":\"databo\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"at\",\"parameters\":{\"nmtsdixc\":\"dataznmg\",\"ibmg\":\"dataw\",\"gair\":\"dataymncjc\",\"fbhtleberp\":\"datacqzoofjnqjsve\"}},\"name\":\"ljekn\",\"description\":\"n\",\"dataset\":{\"referenceName\":\"j\",\"parameters\":{\"pnowawonoehrguql\":\"datawkdnjrxgkrhwiehy\",\"pyrgu\":\"datafwafbjz\"}},\"linkedService\":{\"referenceName\":\"azbkocbygvthrmxk\",\"parameters\":{\"keboo\":\"datawwdxomrawp\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"yacagae\",\"datasetParameters\":\"dataoiqclmgdtwgab\",\"parameters\":{\"wjecooyvhtuqbpe\":\"datakuz\"},\"\":{\"hftzbpyfao\":\"dataibncgagdvcd\",\"htncwmhjobzrfp\":\"datadf\",\"cqhyftcvbz\":\"dataiz\",\"orssatfyb\":\"datagwhgkgsoau\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ufdmxuq\",\"parameters\":{\"tsixhgvbhxmndztg\":\"datanasttuxvzfqayop\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"jay\",\"parameters\":{\"q\":\"datarxneibpgbrhbj\",\"nmotpuwnnoh\":\"datanh\",\"wyiulaynosu\":\"datamzngocfrjuy\"}},\"name\":\"kfhaxttpfsmwgsgh\",\"description\":\"cum\",\"dataset\":{\"referenceName\":\"dau\",\"parameters\":{\"dlj\":\"datalfeothxuarigr\",\"pruulhg\":\"datakqhvkrbzkuastaxk\"}},\"linkedService\":{\"referenceName\":\"oizwxvs\",\"parameters\":{\"yekgafxc\":\"datagfyys\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"cckwrtwle\",\"datasetParameters\":\"dataveszrtlhpdhw\",\"parameters\":{\"njfmbbfnvjxit\":\"datatacz\"},\"\":{\"mn\":\"datankrtikl\"}}},{\"schemaLinkedService\":{\"referenceName\":\"qlcoqksyiibhyx\",\"parameters\":{\"avqdorbccqcd\":\"databu\",\"wrdtnagzlgpy\":\"datathojvlirknucos\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"xihzqjjts\",\"parameters\":{\"acybdueurgmcdcpk\":\"datadqftt\",\"ermhzicsbfdjhyaa\":\"datahlo\",\"glhphzwx\":\"datanyukibx\"}},\"name\":\"tej\",\"description\":\"ilhvtozyagjj\",\"dataset\":{\"referenceName\":\"k\",\"parameters\":{\"dgscnvqeonsgnwx\":\"datahyyxgffklvqzrwt\"}},\"linkedService\":{\"referenceName\":\"mezyo\",\"parameters\":{\"sobpbo\":\"datathceopvkvtwfv\",\"yarnggcjfwblqhxk\":\"datahmmlc\",\"aosd\":\"datasmcolmugpy\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"wzxeygzvtyevjhu\",\"datasetParameters\":\"dataobguqisqsqk\",\"parameters\":{\"nmlvi\":\"dataioyj\",\"yrx\":\"datacpszpmcvqdvrdmv\"},\"\":{\"mbtple\":\"datavqojbxaotcgbz\",\"muuv\":\"dataoioyidoxznvgvd\"}}}],\"transformations\":[{\"name\":\"sxmrszbknimxlp\",\"description\":\"rxrzutylcur\",\"dataset\":{\"referenceName\":\"q\",\"parameters\":{\"jmbnvynf\":\"dataxqaehtd\"}},\"linkedService\":{\"referenceName\":\"oeactedcglskakdd\",\"parameters\":{\"duyqypf\":\"datahzllrqmtlpbyxro\",\"brjjtalxrdsjr\":\"datamnoiicsudy\",\"pjwyblvtbdmvs\":\"dataoluqwgusxxhdo\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"daelqpv\",\"datasetParameters\":\"datamkwjfbotl\",\"parameters\":{\"ivuxcjkcoqwczs\":\"datadusxurs\",\"qtnhjrfd\":\"dataiqrizfwihvaan\"},\"\":{\"fkkauigvmua\":\"datavbbaexxjfwtg\"}}},{\"name\":\"mczfedyuepsvplt\",\"description\":\"ajjvywe\",\"dataset\":{\"referenceName\":\"fkumcfjxoky\",\"parameters\":{\"k\":\"datayasvf\",\"jekrknfd\":\"datamyg\",\"lcr\":\"dataugjqyckgtxkrdt\",\"tcsubmzoo\":\"datajdkl\"}},\"linkedService\":{\"referenceName\":\"vo\",\"parameters\":{\"yslb\":\"datakxfpwh\",\"yqxridttb\":\"datalglmnnkkwayqsh\",\"uylztpziizevjyk\":\"dataaqjmkgxqwque\",\"kqtwqlepjjzkcasf\":\"datafvezefk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ntogffjwajnrt\",\"datasetParameters\":\"datavaqkifmxawost\",\"parameters\":{\"hemvwfnqqwypvnd\":\"datanhrkmjqncfvdsc\",\"jfkainj\":\"datawbgodtggrssg\",\"bgmusaictd\":\"datauymvecvzts\"},\"\":{\"zeqozre\":\"datakzzohnrddc\",\"ixbnj\":\"datalbz\",\"ameudpabcreu\":\"dataqvzyuexozonyn\",\"exzvdube\":\"datazosgyjxvcvasorm\"}}}],\"script\":\"zygba\",\"scriptLines\":[\"ecovs\",\"qhzrtdbak\",\"limzfvppk\"]}") - .toObject(FlowletTypeProperties.class); - Assertions.assertEquals("lh", model.sources().get(0).name()); - Assertions.assertEquals("ktltddsobjopnouh", model.sources().get(0).description()); - Assertions.assertEquals("ezkqxsalu", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("unjlzkdrocq", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("igglclwalhvub", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ohzixyqhfnkvycqq", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ljekn", model.sinks().get(0).name()); - Assertions.assertEquals("n", model.sinks().get(0).description()); - Assertions.assertEquals("j", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("azbkocbygvthrmxk", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("yacagae", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ysvlpyeuukppd", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("at", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("sxmrszbknimxlp", model.transformations().get(0).name()); - Assertions.assertEquals("rxrzutylcur", model.transformations().get(0).description()); - Assertions.assertEquals("q", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("oeactedcglskakdd", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("daelqpv", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("zygba", model.script()); - Assertions.assertEquals("ecovs", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FlowletTypeProperties model - = new FlowletTypeProperties() - .withSources(Arrays.asList( - new DataFlowSource().withName("lh") - .withDescription("ktltddsobjopnouh") - .withDataset(new DatasetReference().withReferenceName("ezkqxsalu") - .withParameters(mapOf("dgsjsat", "datagfcvcewbwq", "qmr", "datarncmazdfsqxh", - "rcwgzwllxzlhhf", "datajparnpvgrszrbwt", "ywvyldqpzfzxsox", "dataxacfculzjrmhp"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("unjlzkdrocq") - .withParameters(mapOf("wdwisvn", "datatqqtcm", "zcrryklleynqa", "dataeylajamcajyhft"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("igglclwalhvub") - .withDatasetParameters("datazphetxdqcm") - .withParameters(mapOf("alec", "dataajqzj", "egyxsbfpzvoik", "databibiwks")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ohzixyqhfnkvycqq") - .withParameters(mapOf("rptyo", "dataeipnquwzx"))), - new DataFlowSource().withName("eddobmcnltm") - .withDescription("tkujsqycm") - .withDataset(new DatasetReference().withReferenceName("xfabl") - .withParameters(mapOf("cgnwplrrbphcts", "datawbmwhrialiwr", "pbfs", "databibticuhqvum", - "xmzrmtmvwitu", "dataeqbbewfcuqfpy"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("yyjshcybwfuppo") - .withParameters(mapOf("zsvavlr", "datacmvouujxdiikmoxr", "oywlunpipcwyb", "dataikj", - "npatpftsae", "datazfn"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("whxorpwaltz") - .withDatasetParameters("datagexojfccylhtrht") - .withParameters(mapOf("zxezmnr", "datazjpwexcdrzprob", "hlokfpmijpdvzv", "datajgpjeuxs", - "rwyambhbafebzxfk", "databhwbdqufvcgnrgla", "nntrvrkps", "dataqutibhl")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("saao") - .withParameters(mapOf("xjqfiafcnlrtbfi", "datagpto", "wieopexelxqdw", "datazzcaoijolbuauk", - "ux", "dataswyiljpibkgxyxy"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink().withName("ljekn") - .withDescription("n") - .withDataset(new DatasetReference().withReferenceName("j") - .withParameters( - mapOf("pnowawonoehrguql", "datawkdnjrxgkrhwiehy", "pyrgu", "datafwafbjz"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("azbkocbygvthrmxk") - .withParameters(mapOf("keboo", "datawwdxomrawp"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("yacagae") - .withDatasetParameters("dataoiqclmgdtwgab") - .withParameters(mapOf("wjecooyvhtuqbpe", "datakuz")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ysvlpyeuukppd") - .withParameters(mapOf("xvhhyqq", "databo"))) - .withRejectedDataLinkedService(new LinkedServiceReference() - .withReferenceName("at") - .withParameters(mapOf( - "nmtsdixc", "dataznmg", "ibmg", "dataw", "gair", "dataymncjc", "fbhtleberp", - "datacqzoofjnqjsve"))), - new DataFlowSink().withName("kfhaxttpfsmwgsgh") - .withDescription("cum") - .withDataset(new DatasetReference().withReferenceName("dau") - .withParameters( - mapOf("dlj", "datalfeothxuarigr", "pruulhg", "datakqhvkrbzkuastaxk"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("oizwxvs") - .withParameters(mapOf("yekgafxc", "datagfyys"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("cckwrtwle") - .withDatasetParameters("dataveszrtlhpdhw") - .withParameters(mapOf("njfmbbfnvjxit", "datatacz")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ufdmxuq") - .withParameters(mapOf("tsixhgvbhxmndztg", "datanasttuxvzfqayop"))) - .withRejectedDataLinkedService(new LinkedServiceReference() - .withReferenceName("jay") - .withParameters( - mapOf( - "q", "datarxneibpgbrhbj", "nmotpuwnnoh", "datanh", "wyiulaynosu", - "datamzngocfrjuy"))), - new DataFlowSink().withName("tej") - .withDescription("ilhvtozyagjj") - .withDataset(new DatasetReference().withReferenceName("k") - .withParameters(mapOf("dgscnvqeonsgnwx", "datahyyxgffklvqzrwt"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("mezyo") - .withParameters(mapOf("sobpbo", "datathceopvkvtwfv", "yarnggcjfwblqhxk", - "datahmmlc", "aosd", "datasmcolmugpy"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("wzxeygzvtyevjhu") - .withDatasetParameters("dataobguqisqsqk") - .withParameters(mapOf("nmlvi", "dataioyj", "yrx", "datacpszpmcvqdvrdmv")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("qlcoqksyiibhyx") - .withParameters( - mapOf("avqdorbccqcd", "databu", "wrdtnagzlgpy", "datathojvlirknucos"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("xihzqjjts") - .withParameters(mapOf("acybdueurgmcdcpk", "datadqftt", "ermhzicsbfdjhyaa", - "datahlo", "glhphzwx", "datanyukibx"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("sxmrszbknimxlp") - .withDescription("rxrzutylcur") - .withDataset(new DatasetReference().withReferenceName("q") - .withParameters(mapOf("jmbnvynf", "dataxqaehtd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("oeactedcglskakdd") - .withParameters(mapOf("duyqypf", "datahzllrqmtlpbyxro", "brjjtalxrdsjr", "datamnoiicsudy", - "pjwyblvtbdmvs", "dataoluqwgusxxhdo"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("daelqpv") - .withDatasetParameters("datamkwjfbotl") - .withParameters(mapOf("ivuxcjkcoqwczs", "datadusxurs", "qtnhjrfd", "dataiqrizfwihvaan")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("mczfedyuepsvplt") - .withDescription("ajjvywe") - .withDataset(new DatasetReference().withReferenceName("fkumcfjxoky") - .withParameters(mapOf("k", "datayasvf", "jekrknfd", "datamyg", "lcr", "dataugjqyckgtxkrdt", - "tcsubmzoo", "datajdkl"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("vo") - .withParameters(mapOf("yslb", "datakxfpwh", "yqxridttb", "datalglmnnkkwayqsh", - "uylztpziizevjyk", "dataaqjmkgxqwque", "kqtwqlepjjzkcasf", "datafvezefk"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ntogffjwajnrt") - .withDatasetParameters("datavaqkifmxawost") - .withParameters(mapOf("hemvwfnqqwypvnd", "datanhrkmjqncfvdsc", "jfkainj", - "datawbgodtggrssg", "bgmusaictd", "datauymvecvzts")) - .withAdditionalProperties(mapOf())))) - .withScript("zygba") - .withScriptLines(Arrays.asList("ecovs", "qhzrtdbak", "limzfvppk")); - model = BinaryData.fromObject(model).toObject(FlowletTypeProperties.class); - Assertions.assertEquals("lh", model.sources().get(0).name()); - Assertions.assertEquals("ktltddsobjopnouh", model.sources().get(0).description()); - Assertions.assertEquals("ezkqxsalu", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("unjlzkdrocq", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("igglclwalhvub", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ohzixyqhfnkvycqq", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ljekn", model.sinks().get(0).name()); - Assertions.assertEquals("n", model.sinks().get(0).description()); - Assertions.assertEquals("j", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("azbkocbygvthrmxk", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("yacagae", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ysvlpyeuukppd", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("at", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("sxmrszbknimxlp", model.transformations().get(0).name()); - Assertions.assertEquals("rxrzutylcur", model.transformations().get(0).description()); - Assertions.assertEquals("q", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("oeactedcglskakdd", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("daelqpv", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("zygba", model.script()); - Assertions.assertEquals("ecovs", 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 3697e6dbf82e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.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.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\":\"o\",\"typeProperties\":{\"isSequential\":false,\"batchCount\":305424192,\"items\":{\"value\":\"fdgnaoirrufdgt\"},\"activities\":[{\"type\":\"esrhvgp\",\"name\":\"fzdgsmeeqelmrpvg\",\"description\":\"rgqskd\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"dxjxkxvgodekfe\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"ooqjraknngad\":\"datarfeqefqd\",\"pvomxtosdbv\":\"datallhzlicvrdwjght\",\"eebzewbifcyptl\":\"datadoieo\"}}],\"userProperties\":[{\"name\":\"hdlrrivvuewrhk\",\"value\":\"datamphfhmuaoouu\"}],\"\":{\"olhhlggobjc\":\"datadggsr\"}}]},\"name\":\"rphzd\",\"description\":\"kjyhaqkglupmyqi\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"vvmmjw\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"catyryykonvenmv\":\"dataglm\",\"zqfzbiyv\":\"databgpgvliinueltcoi\"}},{\"activity\":\"wyyvsbjpyxlzxjir\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\",\"Failed\"],\"\":{\"scitizroru\":\"datadgoqxf\",\"ehagorbspotq\":\"dataduwqovlqfz\"}}],\"userProperties\":[{\"name\":\"vubfugd\",\"value\":\"datapmtzqpivochmexim\"},{\"name\":\"misve\",\"value\":\"datauqibkjam\"},{\"name\":\"h\",\"value\":\"datarulgypnaqwjsdwn\"}],\"\":{\"ygn\":\"dataqntxbeeziiqix\",\"euztpss\":\"datarynfoa\"}}") - .toObject(ForEachActivity.class); - Assertions.assertEquals("rphzd", model.name()); - Assertions.assertEquals("kjyhaqkglupmyqi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("vvmmjw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vubfugd", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.isSequential()); - Assertions.assertEquals(305424192, model.batchCount()); - Assertions.assertEquals("fdgnaoirrufdgt", model.items().value()); - Assertions.assertEquals("fzdgsmeeqelmrpvg", model.activities().get(0).name()); - Assertions.assertEquals("rgqskd", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dxjxkxvgodekfe", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hdlrrivvuewrhk", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivity model - = new ForEachActivity().withName("rphzd") - .withDescription("kjyhaqkglupmyqi") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("vvmmjw") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wyyvsbjpyxlzxjir") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("vubfugd").withValue("datapmtzqpivochmexim"), - new UserProperty().withName("misve").withValue("datauqibkjam"), - new UserProperty().withName("h").withValue("datarulgypnaqwjsdwn"))) - .withIsSequential(false) - .withBatchCount(305424192) - .withItems(new Expression().withValue("fdgnaoirrufdgt")) - .withActivities(Arrays.asList(new Activity().withName("fzdgsmeeqelmrpvg") - .withDescription("rgqskd") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("dxjxkxvgodekfe") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hdlrrivvuewrhk").withValue("datamphfhmuaoouu"))) - .withAdditionalProperties(mapOf("type", "esrhvgp")))); - model = BinaryData.fromObject(model).toObject(ForEachActivity.class); - Assertions.assertEquals("rphzd", model.name()); - Assertions.assertEquals("kjyhaqkglupmyqi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("vvmmjw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vubfugd", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.isSequential()); - Assertions.assertEquals(305424192, model.batchCount()); - Assertions.assertEquals("fdgnaoirrufdgt", model.items().value()); - Assertions.assertEquals("fzdgsmeeqelmrpvg", model.activities().get(0).name()); - Assertions.assertEquals("rgqskd", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dxjxkxvgodekfe", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hdlrrivvuewrhk", 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 bf1a2124f0fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":true,\"batchCount\":1961751824,\"items\":{\"value\":\"rigyg\"},\"activities\":[{\"type\":\"puqilpdzby\",\"name\":\"rvkx\",\"description\":\"fzs\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ucvq\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\"],\"\":{\"ktmsphcrn\":\"datad\",\"spykcreu\":\"datavxtz\",\"crdrdkexcyw\":\"datapigsulejukack\"}},{\"activity\":\"riddcnljllypchqh\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"mmpgczxi\":\"datatdzpeliktk\"}},{\"activity\":\"qyvwzxqmvestnr\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"rxvnjjim\":\"datagyttfzo\",\"huuezxcpxwqg\":\"datacgbdupslw\",\"osipl\":\"datanqueqeabedf\",\"hrgeymspvgatzru\":\"dataygpsahupmmsh\"}}],\"userProperties\":[{\"name\":\"rjswrptxr\",\"value\":\"datacwdleivmuqmzx\"}],\"\":{\"xazkqiqzaead\":\"datahlpnyehhqytjr\"}},{\"type\":\"hpokflxivhozhr\",\"name\":\"bvfljxljgtirn\",\"description\":\"zrbkhyzufkzqtv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"uupeflk\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Skipped\"],\"\":{\"ydntupbrvdgtblx\":\"datahdkeayuowivpne\",\"ztlsnkwullvu\":\"datamdabpifygxuaidr\"}},{\"activity\":\"wymosjzmandjjq\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"udjrotqdiaxf\":\"dataq\",\"vjaw\":\"dataiwrfocbetlljqkgl\",\"jlcj\":\"dataxvl\",\"c\":\"dataseqmejerjyz\"}},{\"activity\":\"zbjieeivdrqtlcx\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"vgroewhsnpcwy\":\"datamfxlturx\"}}],\"userProperties\":[{\"name\":\"berxnljtvu\",\"value\":\"datasnzuebyznkd\"},{\"name\":\"hzc\",\"value\":\"dataamnzt\"}],\"\":{\"rrneorb\":\"datasbgksfjqfeeqhjc\"}}]}") - .toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1961751824, model.batchCount()); - Assertions.assertEquals("rigyg", model.items().value()); - Assertions.assertEquals("rvkx", model.activities().get(0).name()); - Assertions.assertEquals("fzs", 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("ucvq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rjswrptxr", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivityTypeProperties model - = new ForEachActivityTypeProperties().withIsSequential(true) - .withBatchCount(1961751824) - .withItems(new Expression().withValue("rigyg")) - .withActivities( - Arrays - .asList( - new Activity().withName("rvkx") - .withDescription("fzs") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("ucvq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("riddcnljllypchqh") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qyvwzxqmvestnr") - .withDependencyConditions(Arrays - .asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("rjswrptxr").withValue("datacwdleivmuqmzx"))) - .withAdditionalProperties(mapOf("type", "puqilpdzby")), - new Activity().withName("bvfljxljgtirn") - .withDescription("zrbkhyzufkzqtv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("uupeflk") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wymosjzmandjjq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zbjieeivdrqtlcx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("berxnljtvu").withValue("datasnzuebyznkd"), - new UserProperty().withName("hzc").withValue("dataamnzt"))) - .withAdditionalProperties(mapOf("type", "hpokflxivhozhr")))); - model = BinaryData.fromObject(model).toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1961751824, model.batchCount()); - Assertions.assertEquals("rigyg", model.items().value()); - Assertions.assertEquals("rvkx", model.activities().get(0).name()); - Assertions.assertEquals("fzs", 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("ucvq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rjswrptxr", 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 a08f5b9d386c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.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.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\":\"lgkkiuq\",\"\":{\"qaf\":\"dataafobpyeobrtae\",\"kelow\":\"datahpkiiunyrob\",\"upski\":\"datamrvdtqhrtnqssqy\",\"aued\":\"dataokphamefzzgwj\"}}") - .toObject(FormatReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatReadSettings model = new FormatReadSettings().withAdditionalProperties(mapOf("type", "lgkkiuq")); - 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 c8cfa26262be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.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.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\":\"hgnugcbjx\",\"\":{\"wrjuiuzlf\":\"datadg\",\"ujunqwkjfmt\":\"datahzihlzljqcmmgsm\",\"xbckxen\":\"dataybdz\"}}") - .toObject(FormatWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatWriteSettings model = new FormatWriteSettings().withAdditionalProperties(mapOf("type", "hgnugcbjx")); - 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 91da7a9223f7..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\":\"lewlwbxufq\",\"recursive\":\"dataccvxqbxgq\",\"wildcardFolderPath\":\"datawnriwxe\",\"wildcardFileName\":\"databv\",\"enablePartitionDiscovery\":\"dataldi\",\"partitionRootPath\":\"dataxsvzwbktalobxl\",\"deleteFilesAfterCompletion\":\"datajthmibqgld\",\"fileListPath\":\"datatkalp\",\"useBinaryTransfer\":\"datanny\",\"disableChunking\":\"datajea\",\"maxConcurrentConnections\":\"datakkvij\",\"disableMetricsCollection\":\"dataf\",\"\":{\"aqoaopzqpf\":\"datadzowdqvqfl\",\"ee\":\"datanjdyoxform\"}}") - .toObject(FtpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpReadSettings model = new FtpReadSettings().withMaxConcurrentConnections("datakkvij") - .withDisableMetricsCollection("dataf") - .withRecursive("dataccvxqbxgq") - .withWildcardFolderPath("datawnriwxe") - .withWildcardFileName("databv") - .withEnablePartitionDiscovery("dataldi") - .withPartitionRootPath("dataxsvzwbktalobxl") - .withDeleteFilesAfterCompletion("datajthmibqgld") - .withFileListPath("datatkalp") - .withUseBinaryTransfer("datanny") - .withDisableChunking("datajea"); - 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 1a2a2e13de3f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.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.FtpServerLocation; - -public final class FtpServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FtpServerLocation model = BinaryData.fromString( - "{\"type\":\"ymgqbgcx\",\"folderPath\":\"dataqxgzxler\",\"fileName\":\"datamerghski\",\"\":{\"jqnvtsdyd\":\"datapupkcbkfukd\",\"yuf\":\"datahkpafyaloowwzizz\",\"ti\":\"dataqz\"}}") - .toObject(FtpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpServerLocation model = new FtpServerLocation().withFolderPath("dataqxgzxler").withFileName("datamerghski"); - 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 5c024af5871c..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\":\"datalioklsuffp\"}").toObject(GenericDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GenericDatasetTypeProperties model = new GenericDatasetTypeProperties().withTableName("datalioklsuffp"); - 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 26337b58492c..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\":\"br\",\"\":{\"pglaoh\":\"datamdyfoebojtj\",\"jtnqjil\":\"dataqk\",\"ilm\":\"dataywkdcwmqsy\"}}") - .toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("br", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetDataFactoryOperationStatusResponse model - = new GetDataFactoryOperationStatusResponse().withStatus("br").withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("br", 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 cb8d96f8d0d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.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.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\":\"cnsxhp\",\"typeProperties\":{\"dataset\":{\"referenceName\":\"kvo\",\"parameters\":{\"tokwembonureklg\":\"datarphvmezdfad\",\"uwujxx\":\"datanpajwgwxctdp\",\"bzisqpstxulnn\":\"datamookh\",\"vttdyviflt\":\"datajiucnonia\"}},\"fieldList\":[\"databzfyllkunwinqyw\",\"datavx\"],\"storeSettings\":{\"type\":\"tjecerqh\",\"maxConcurrentConnections\":\"dataqkxjlyjlk\",\"disableMetricsCollection\":\"datamugyayhpdstlsd\",\"\":{\"zxgwkkyka\":\"datageeqcgunsoikevrg\",\"aqxnkdqsy\":\"datap\",\"wkwzxjez\":\"datamrktwkfgv\",\"xduhydxahjudaz\":\"datastirrhbkzzqwikq\"}},\"formatSettings\":{\"type\":\"sxolwofof\",\"\":{\"fxwlwh\":\"dataudf\",\"gacc\":\"datapykfcccau\",\"vgemblntdynp\":\"datajqupjxdbgmgx\"}}},\"linkedServiceName\":{\"referenceName\":\"scsrw\",\"parameters\":{\"gawenwtmvzzsb\":\"datateusuxvli\",\"td\":\"datanvwgizv\",\"kz\":\"datajo\"}},\"policy\":{\"timeout\":\"dataphfppjzmpxam\",\"retry\":\"datadostvxtk\",\"retryIntervalInSeconds\":690485643,\"secureInput\":false,\"secureOutput\":true,\"\":{\"dussqfzer\":\"datakkooc\",\"umczlknfwslvsp\":\"datapaivkgdrqkvnp\",\"xmvl\":\"datarvhzfynbxwz\",\"zxnwxsjygigepfok\":\"datauvbesra\"}},\"name\":\"eyzzydpv\",\"description\":\"chdjarfdfnqfvr\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"bvbdqmjcedfpub\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Failed\",\"Skipped\"],\"\":{\"borj\":\"datamlscvhrawy\",\"fqzud\":\"dataxhkdyhdk\",\"g\":\"dataqfde\"}},{\"activity\":\"tplpgf\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\"],\"\":{\"ekkxlibs\":\"datab\",\"ujvv\":\"datacvceglvz\",\"lazaoy\":\"dataeadp\",\"sspw\":\"datakubmvxnumvorosq\"}},{\"activity\":\"tkjrqs\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"lumqmo\":\"datazbyu\",\"vlunyqe\":\"dataovpsflmwduis\"}}],\"userProperties\":[{\"name\":\"erzthcfnrle\",\"value\":\"dataghhcf\"},{\"name\":\"zmjmfl\",\"value\":\"datazz\"},{\"name\":\"kmtrrc\",\"value\":\"dataulvauxkgklqucxew\"},{\"name\":\"dprqjsmh\",\"value\":\"dataqzvarq\"}],\"\":{\"vnvxhxzabxhm\":\"datadllhi\",\"rt\":\"dataorxbuaprksoeqi\"}}") - .toObject(GetMetadataActivity.class); - Assertions.assertEquals("eyzzydpv", model.name()); - Assertions.assertEquals("chdjarfdfnqfvr", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("bvbdqmjcedfpub", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("erzthcfnrle", model.userProperties().get(0).name()); - Assertions.assertEquals("scsrw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(690485643, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("kvo", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivity model = new GetMetadataActivity().withName("eyzzydpv") - .withDescription("chdjarfdfnqfvr") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("bvbdqmjcedfpub") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tplpgf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tkjrqs") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("erzthcfnrle").withValue("dataghhcf"), - new UserProperty().withName("zmjmfl").withValue("datazz"), - new UserProperty().withName("kmtrrc").withValue("dataulvauxkgklqucxew"), - new UserProperty().withName("dprqjsmh").withValue("dataqzvarq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("scsrw") - .withParameters(mapOf("gawenwtmvzzsb", "datateusuxvli", "td", "datanvwgizv", "kz", "datajo"))) - .withPolicy(new ActivityPolicy().withTimeout("dataphfppjzmpxam") - .withRetry("datadostvxtk") - .withRetryIntervalInSeconds(690485643) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withDataset(new DatasetReference().withReferenceName("kvo") - .withParameters(mapOf("tokwembonureklg", "datarphvmezdfad", "uwujxx", "datanpajwgwxctdp", - "bzisqpstxulnn", "datamookh", "vttdyviflt", "datajiucnonia"))) - .withFieldList(Arrays.asList("databzfyllkunwinqyw", "datavx")) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataqkxjlyjlk") - .withDisableMetricsCollection("datamugyayhpdstlsd") - .withAdditionalProperties(mapOf("type", "tjecerqh"))) - .withFormatSettings(new FormatReadSettings().withAdditionalProperties(mapOf("type", "sxolwofof"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivity.class); - Assertions.assertEquals("eyzzydpv", model.name()); - Assertions.assertEquals("chdjarfdfnqfvr", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("bvbdqmjcedfpub", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("erzthcfnrle", model.userProperties().get(0).name()); - Assertions.assertEquals("scsrw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(690485643, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("kvo", 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 5c4d92ee5f87..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\":\"badrcy\",\"parameters\":{\"hghorgji\":\"datajaktgtwvzp\",\"bqdsuaazkouvvgcw\":\"dataragqcwcdbtopuyi\",\"gaofwo\":\"dataimhjbxwr\",\"xp\":\"dataz\"}},\"fieldList\":[\"datax\",\"datam\"],\"storeSettings\":{\"type\":\"fsh\",\"maxConcurrentConnections\":\"dataxjhquzi\",\"disableMetricsCollection\":\"datacgh\",\"\":{\"hryuzteuegrdit\":\"dataf\",\"ajggmmiwoisql\":\"dataptpq\"}},\"formatSettings\":{\"type\":\"fycnpovnjzaaox\",\"\":{\"qpzdxw\":\"datatoihoyvuaxfjuzgs\",\"oggzppufu\":\"dataanlgczvfbzzsce\"}}}") - .toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("badrcy", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivityTypeProperties model = new GetMetadataActivityTypeProperties() - .withDataset(new DatasetReference().withReferenceName("badrcy") - .withParameters(mapOf("hghorgji", "datajaktgtwvzp", "bqdsuaazkouvvgcw", "dataragqcwcdbtopuyi", "gaofwo", - "dataimhjbxwr", "xp", "dataz"))) - .withFieldList(Arrays.asList("datax", "datam")) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataxjhquzi") - .withDisableMetricsCollection("datacgh") - .withAdditionalProperties(mapOf("type", "fsh"))) - .withFormatSettings(new FormatReadSettings().withAdditionalProperties(mapOf("type", "fycnpovnjzaaox"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("badrcy", 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 0da1b89798f4..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\":\"wgxhn\"}").toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("wgxhn", model.metadataPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetSsisObjectMetadataRequest model = new GetSsisObjectMetadataRequest().withMetadataPath("wgxhn"); - model = BinaryData.fromObject(model).toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("wgxhn", 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 ae6f964c310d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.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.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\":{\"urjtumghi\":{\"type\":\"Float\",\"value\":\"dataafbwqroohtuovmao\"},\"mslclblyjxlt\":{\"type\":\"Float\",\"value\":\"datave\"}},\"name\":\"juscvsfx\",\"type\":\"ctmgxuupbezqccy\",\"etag\":\"tce\",\"id\":\"d\"},{\"properties\":{\"zgwldoychillcec\":{\"type\":\"Object\",\"value\":\"datayihztgeqmg\"},\"llizs\":{\"type\":\"Array\",\"value\":\"datahuwaoaguhic\"}},\"name\":\"csjvhrwef\",\"type\":\"wqejpmvsse\",\"etag\":\"epwamcxtcz\",\"id\":\"peuknijd\"},{\"properties\":{\"ydjfb\":{\"type\":\"Object\",\"value\":\"dataes\"}},\"name\":\"yv\",\"type\":\"ulrtywikdmh\",\"etag\":\"kuflgbh\",\"id\":\"uacdixmxuf\"}],\"nextLink\":\"ryjqgdkf\"}") - .toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("d", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, model.value().get(0).properties().get("urjtumghi").type()); - Assertions.assertEquals("ryjqgdkf", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterListResponse model = new GlobalParameterListResponse() - .withValue(Arrays.asList( - new GlobalParameterResourceInner().withId("d") - .withProperties(mapOf( - "urjtumghi", - new GlobalParameterSpecification() - .withType(GlobalParameterType.FLOAT) - .withValue("dataafbwqroohtuovmao"), - "mslclblyjxlt", - new GlobalParameterSpecification().withType(GlobalParameterType.FLOAT).withValue("datave"))), - new GlobalParameterResourceInner().withId("peuknijd") - .withProperties(mapOf("zgwldoychillcec", - new GlobalParameterSpecification().withType(GlobalParameterType.OBJECT) - .withValue("datayihztgeqmg"), - "llizs", - new GlobalParameterSpecification().withType(GlobalParameterType.ARRAY) - .withValue("datahuwaoaguhic"))), - new GlobalParameterResourceInner().withId("uacdixmxuf") - .withProperties(mapOf("ydjfb", - new GlobalParameterSpecification().withType(GlobalParameterType.OBJECT).withValue("dataes"))))) - .withNextLink("ryjqgdkf"); - model = BinaryData.fromObject(model).toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("d", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, model.value().get(0).properties().get("urjtumghi").type()); - Assertions.assertEquals("ryjqgdkf", 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 13d10dcd997d..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\":{\"vjhvefgwbm\":{\"type\":\"Bool\",\"value\":\"dataoeoq\"}},\"name\":\"c\",\"type\":\"tasfaymxbulpzeal\",\"etag\":\"qkyojwyvf\",\"id\":\"btsuahxs\"}") - .toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("btsuahxs", model.id()); - Assertions.assertEquals(GlobalParameterType.BOOL, model.properties().get("vjhvefgwbm").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterResourceInner model = new GlobalParameterResourceInner().withId("btsuahxs") - .withProperties(mapOf("vjhvefgwbm", - new GlobalParameterSpecification().withType(GlobalParameterType.BOOL).withValue("dataoeoq"))); - model = BinaryData.fromObject(model).toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("btsuahxs", model.id()); - Assertions.assertEquals(GlobalParameterType.BOOL, model.properties().get("vjhvefgwbm").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 e45696043656..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.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.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\":\"Object\",\"value\":\"datajiwkuofoskghsau\"}") - .toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.OBJECT, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterSpecification model - = new GlobalParameterSpecification().withType(GlobalParameterType.OBJECT).withValue("datajiwkuofoskghsau"); - model = BinaryData.fromObject(model).toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.OBJECT, 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 ca2e1399081b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.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.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\":{\"cuieuid\":{\"type\":\"String\",\"value\":\"datauhtsnkeelunhjm\"},\"vekcv\":{\"type\":\"Array\",\"value\":\"dataeoh\"},\"ppmejdocwglrknoz\":{\"type\":\"Int\",\"value\":\"dataapwhicuafml\"},\"qcvruafsyjgvty\":{\"type\":\"Array\",\"value\":\"dataiaqtqzimllznw\"}},\"name\":\"pzdwdicauzexzl\",\"type\":\"nfrcjyulmvtej\",\"etag\":\"plavbjujbmw\",\"id\":\"d\"}"; - - 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("ehaky") - .withExistingFactory("xjkkdltfdbe", "bllqi") - .withProperties(mapOf("kz", - new GlobalParameterSpecification().withType(GlobalParameterType.STRING).withValue("dataazjuu"), - "wljjcsuruiwopurh", - new GlobalParameterSpecification().withType(GlobalParameterType.ARRAY).withValue("datalko"), "o", - new GlobalParameterSpecification().withType(GlobalParameterType.STRING).withValue("dataxtnjfmhafqt"))) - .create(); - - Assertions.assertEquals("d", response.id()); - Assertions.assertEquals(GlobalParameterType.STRING, response.properties().get("cuieuid").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 aebd7f54525b..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("vbdpguwzqiy", "jhmau", "fmvy", 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 871b4c3fc1a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.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.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\":{\"bdzmk\":{\"type\":\"String\",\"value\":\"dataggcphcu\"},\"kmtjd\":{\"type\":\"String\",\"value\":\"dataydbgyb\"},\"qqxmmzwdplru\":{\"type\":\"String\",\"value\":\"databbrtkeejju\"}},\"name\":\"xzearscwfocvvdse\",\"type\":\"qllpb\",\"etag\":\"cezbfgokeboaa\",\"id\":\"uoqafhvvbqyk\"}"; - - 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("jbkcyppagvyioixa", "geclaxcgdybi", "mgrbjgmnoczbxekz", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("uoqafhvvbqyk", response.id()); - Assertions.assertEquals(GlobalParameterType.STRING, response.properties().get("bdzmk").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 822f7b5a633c..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\":{\"hhatpnl\":{\"type\":\"Object\",\"value\":\"datafcltojppxiqvsu\"}},\"name\":\"ryhxp\",\"type\":\"rnggqhysia\",\"etag\":\"k\",\"id\":\"x\"}]}"; - - 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("omrmxtuw", "rksyunxk", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("x", response.iterator().next().id()); - Assertions.assertEquals(GlobalParameterType.OBJECT, - response.iterator().next().properties().get("hhatpnl").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 bc3970641147..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\":\"qeetsqaclc\",\"typeProperties\":{\"tableName\":\"dataxoibdctjwfeb\"},\"description\":\"rofyyraiai\",\"structure\":\"datakewqwamptld\",\"schema\":\"dataorzljhnxfkffng\",\"linkedServiceName\":{\"referenceName\":\"pilloirm\",\"parameters\":{\"rqmznwwtkuy\":\"databktuqnbcjk\"}},\"parameters\":{\"moyoioxdwff\":{\"type\":\"SecureString\",\"defaultValue\":\"datainlic\"}},\"annotations\":[\"dataqkebc\",\"datarreuec\"],\"folder\":{\"name\":\"d\"},\"\":{\"vkdvcgowrd\":\"datauscolbqvehtekx\",\"yrkwsthpivocf\":\"dataddddwzdlbbcztam\",\"yroswnfqd\":\"dataxhvnodqqzjb\"}}") - .toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("rofyyraiai", model.description()); - Assertions.assertEquals("pilloirm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("moyoioxdwff").type()); - Assertions.assertEquals("d", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsObjectDataset model = new GoogleAdWordsObjectDataset().withDescription("rofyyraiai") - .withStructure("datakewqwamptld") - .withSchema("dataorzljhnxfkffng") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("pilloirm") - .withParameters(mapOf("rqmznwwtkuy", "databktuqnbcjk"))) - .withParameters(mapOf("moyoioxdwff", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datainlic"))) - .withAnnotations(Arrays.asList("dataqkebc", "datarreuec")) - .withFolder(new DatasetFolder().withName("d")) - .withTableName("dataxoibdctjwfeb"); - model = BinaryData.fromObject(model).toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("rofyyraiai", model.description()); - Assertions.assertEquals("pilloirm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("moyoioxdwff").type()); - Assertions.assertEquals("d", 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 25ba379a43ba..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\":\"ty\",\"query\":\"dataese\",\"queryTimeout\":\"dataetackjuwkkva\",\"additionalColumns\":\"datafjuefjbmowqwodmd\",\"sourceRetryCount\":\"datajqwahciapvcsw\",\"sourceRetryWait\":\"datarpcpg\",\"maxConcurrentConnections\":\"datatftaqmrimletjvz\",\"disableMetricsCollection\":\"datafgabiblhzfgl\",\"\":{\"pwri\":\"datagszx\",\"haskuiosl\":\"datakqnbiiandhsjp\",\"rcx\":\"datachcuhvdrfh\"}}") - .toObject(GoogleAdWordsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsSource model = new GoogleAdWordsSource().withSourceRetryCount("datajqwahciapvcsw") - .withSourceRetryWait("datarpcpg") - .withMaxConcurrentConnections("datatftaqmrimletjvz") - .withDisableMetricsCollection("datafgabiblhzfgl") - .withQueryTimeout("dataetackjuwkkva") - .withAdditionalColumns("datafjuefjbmowqwodmd") - .withQuery("dataese"); - 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 6912ba46325a..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\":\"dataurmrfyyqj\",\"table\":\"dataibzqrsddcuqddld\",\"dataset\":\"datayvfzt\"}") - .toObject(GoogleBigQueryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryDatasetTypeProperties model - = new GoogleBigQueryDatasetTypeProperties().withTableName("dataurmrfyyqj") - .withTable("dataibzqrsddcuqddld") - .withDataset("datayvfzt"); - 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 5b879f7939e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.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.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\":\"asomafe\",\"typeProperties\":{\"tableName\":\"datab\",\"table\":\"datakpsvok\",\"dataset\":\"dataankxvcptfgfbhn\"},\"description\":\"z\",\"structure\":\"datardxpcpautfzptr\",\"schema\":\"datazytrt\",\"linkedServiceName\":{\"referenceName\":\"f\",\"parameters\":{\"qvp\":\"datadxcyuwen\",\"pmecsmxfzynf\":\"dataawvoqatdjkal\",\"yqkkpgwgss\":\"datam\"}},\"parameters\":{\"vdsqxkjwd\":{\"type\":\"String\",\"defaultValue\":\"datairnbnlq\"}},\"annotations\":[\"datairzyudrq\",\"dataxrxhxmlfouqp\"],\"folder\":{\"name\":\"andbp\"},\"\":{\"jxcqcaczzvwaeztt\":\"datah\",\"qlyyslg\":\"datajqyfy\",\"bdsvkllrzhshhkb\":\"dataf\",\"rgfwhfzh\":\"datahcazkgdjth\"}}") - .toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("z", model.description()); - Assertions.assertEquals("f", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vdsqxkjwd").type()); - Assertions.assertEquals("andbp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryObjectDataset model = new GoogleBigQueryObjectDataset().withDescription("z") - .withStructure("datardxpcpautfzptr") - .withSchema("datazytrt") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("f") - .withParameters( - mapOf("qvp", "datadxcyuwen", "pmecsmxfzynf", "dataawvoqatdjkal", "yqkkpgwgss", "datam"))) - .withParameters(mapOf("vdsqxkjwd", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datairnbnlq"))) - .withAnnotations(Arrays.asList("datairzyudrq", "dataxrxhxmlfouqp")) - .withFolder(new DatasetFolder().withName("andbp")) - .withTableName("datab") - .withTable("datakpsvok") - .withDataset("dataankxvcptfgfbhn"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("z", model.description()); - Assertions.assertEquals("f", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vdsqxkjwd").type()); - Assertions.assertEquals("andbp", 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 46f9de08c881..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\":\"xlonz\",\"query\":\"datafo\",\"queryTimeout\":\"datassx\",\"additionalColumns\":\"datahhlhprjcfyvkkgx\",\"sourceRetryCount\":\"datadfs\",\"sourceRetryWait\":\"datagw\",\"maxConcurrentConnections\":\"dataghdn\",\"disableMetricsCollection\":\"dataydhqkariatxhpx\",\"\":{\"oghg\":\"dataa\",\"mcwetx\":\"datagzbzsasg\",\"qbageltffqalmcq\":\"datasgcwadv\",\"slctyvmiz\":\"datampzwwtcwbgmxwpy\"}}") - .toObject(GoogleBigQuerySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQuerySource model = new GoogleBigQuerySource().withSourceRetryCount("datadfs") - .withSourceRetryWait("datagw") - .withMaxConcurrentConnections("dataghdn") - .withDisableMetricsCollection("dataydhqkariatxhpx") - .withQueryTimeout("datassx") - .withAdditionalColumns("datahhlhprjcfyvkkgx") - .withQuery("datafo"); - 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 a03ffd8f63e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.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.GoogleBigQueryV2DatasetTypeProperties; - -public final class GoogleBigQueryV2DatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryV2DatasetTypeProperties model - = BinaryData.fromString("{\"table\":\"datarvpvdrohul\",\"dataset\":\"datakabhvxjuaivxzni\"}") - .toObject(GoogleBigQueryV2DatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2DatasetTypeProperties model - = new GoogleBigQueryV2DatasetTypeProperties().withTable("datarvpvdrohul") - .withDataset("datakabhvxjuaivxzni"); - 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 f201d7618345..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.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.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\":\"uzlweo\",\"typeProperties\":{\"table\":\"dataqocy\",\"dataset\":\"datayineuaxpmezit\"},\"description\":\"foafzdypz\",\"structure\":\"datalmndhgwhlbpjuaj\",\"schema\":\"dataxav\",\"linkedServiceName\":{\"referenceName\":\"itnwlyhbujysv\",\"parameters\":{\"btpgnq\":\"datayddbhatm\"}},\"parameters\":{\"pkdn\":{\"type\":\"Array\",\"defaultValue\":\"datarjewihcigaahmdf\"}},\"annotations\":[\"dataz\",\"datatertnzrrwsc\"],\"folder\":{\"name\":\"hdwi\"},\"\":{\"jy\":\"datatol\",\"xsg\":\"datakr\",\"thqwppvihb\":\"dataaknk\"}}") - .toObject(GoogleBigQueryV2ObjectDataset.class); - Assertions.assertEquals("foafzdypz", model.description()); - Assertions.assertEquals("itnwlyhbujysv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("pkdn").type()); - Assertions.assertEquals("hdwi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2ObjectDataset model = new GoogleBigQueryV2ObjectDataset().withDescription("foafzdypz") - .withStructure("datalmndhgwhlbpjuaj") - .withSchema("dataxav") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("itnwlyhbujysv") - .withParameters(mapOf("btpgnq", "datayddbhatm"))) - .withParameters(mapOf("pkdn", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datarjewihcigaahmdf"))) - .withAnnotations(Arrays.asList("dataz", "datatertnzrrwsc")) - .withFolder(new DatasetFolder().withName("hdwi")) - .withTable("dataqocy") - .withDataset("datayineuaxpmezit"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryV2ObjectDataset.class); - Assertions.assertEquals("foafzdypz", model.description()); - Assertions.assertEquals("itnwlyhbujysv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("pkdn").type()); - Assertions.assertEquals("hdwi", 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 1c1aa0ee3b31..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\":\"yfubgnm\",\"query\":\"dataarxtd\",\"queryTimeout\":\"datazsdnfp\",\"additionalColumns\":\"datayksu\",\"sourceRetryCount\":\"datajdaxiohulvp\",\"sourceRetryWait\":\"datavcutwngfdsztmqqu\",\"maxConcurrentConnections\":\"dataokpfyojfwvmsf\",\"disableMetricsCollection\":\"datayxt\",\"\":{\"gsa\":\"dataqqzhqgmoexgny\",\"y\":\"datagheicexdxhxpqkcs\"}}") - .toObject(GoogleBigQueryV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2Source model = new GoogleBigQueryV2Source().withSourceRetryCount("datajdaxiohulvp") - .withSourceRetryWait("datavcutwngfdsztmqqu") - .withMaxConcurrentConnections("dataokpfyojfwvmsf") - .withDisableMetricsCollection("datayxt") - .withQueryTimeout("datazsdnfp") - .withAdditionalColumns("datayksu") - .withQuery("dataarxtd"); - 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 3f17da6f0332..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\":\"ymcqidkltvdhq\",\"bucketName\":\"datadsbgzan\",\"version\":\"datainm\",\"folderPath\":\"datafbxweiibntojovfn\",\"fileName\":\"datay\",\"\":{\"rhjkehw\":\"dataihaouwudhua\",\"qircamqprlob\":\"dataumo\",\"gelajdyolje\":\"dataugejcvjkjyczcmt\"}}") - .toObject(GoogleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageLocation model = new GoogleCloudStorageLocation().withFolderPath("datafbxweiibntojovfn") - .withFileName("datay") - .withBucketName("datadsbgzan") - .withVersion("datainm"); - 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 237319737d24..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\":\"qlrt\",\"recursive\":\"dataiovhj\",\"wildcardFolderPath\":\"datafol\",\"wildcardFileName\":\"datar\",\"prefix\":\"dataahvoir\",\"fileListPath\":\"dataxqnzss\",\"enablePartitionDiscovery\":\"dataldtqykzmwdoqre\",\"partitionRootPath\":\"datatrnqxi\",\"deleteFilesAfterCompletion\":\"dataozryoxmfrxfxyc\",\"modifiedDatetimeStart\":\"dataalvchfumlf\",\"modifiedDatetimeEnd\":\"datalzxxkokipklfwnhf\",\"maxConcurrentConnections\":\"dataswq\",\"disableMetricsCollection\":\"datavljitbnhglrvlaro\",\"\":{\"abgsdxtwqqukgo\":\"datamucr\",\"ksltunrwxsqvx\":\"datalvjgsk\",\"y\":\"dataupccfwqisou\",\"etctjh\":\"dataxzjehdklvqtmzoci\"}}") - .toObject(GoogleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageReadSettings model - = new GoogleCloudStorageReadSettings().withMaxConcurrentConnections("dataswq") - .withDisableMetricsCollection("datavljitbnhglrvlaro") - .withRecursive("dataiovhj") - .withWildcardFolderPath("datafol") - .withWildcardFileName("datar") - .withPrefix("dataahvoir") - .withFileListPath("dataxqnzss") - .withEnablePartitionDiscovery("dataldtqykzmwdoqre") - .withPartitionRootPath("datatrnqxi") - .withDeleteFilesAfterCompletion("dataozryoxmfrxfxyc") - .withModifiedDatetimeStart("dataalvchfumlf") - .withModifiedDatetimeEnd("datalzxxkokipklfwnhf"); - 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 bab4e16429a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.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.GreenplumDatasetTypeProperties; - -public final class GreenplumDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"dataptgvnaqyjukka\",\"table\":\"datanewl\",\"schema\":\"datanopffemi\"}") - .toObject(GreenplumDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumDatasetTypeProperties model = new GreenplumDatasetTypeProperties().withTableName("dataptgvnaqyjukka") - .withTable("datanewl") - .withSchema("datanopffemi"); - 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 9ea5b1af8f3c..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\":\"yl\",\"query\":\"datawctjhdbi\",\"queryTimeout\":\"datatfaekpxv\",\"additionalColumns\":\"datadrcmtsorwta\",\"sourceRetryCount\":\"datarfvoskwujhskx\",\"sourceRetryWait\":\"datak\",\"maxConcurrentConnections\":\"datasa\",\"disableMetricsCollection\":\"dataf\",\"\":{\"qicsfaqypj\":\"dataaxgtwpzqti\"}}") - .toObject(GreenplumSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumSource model = new GreenplumSource().withSourceRetryCount("datarfvoskwujhskx") - .withSourceRetryWait("datak") - .withMaxConcurrentConnections("datasa") - .withDisableMetricsCollection("dataf") - .withQueryTimeout("datatfaekpxv") - .withAdditionalColumns("datadrcmtsorwta") - .withQuery("datawctjhdbi"); - 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 7be63278624e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.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.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\":\"cltfcieileem\",\"typeProperties\":{\"tableName\":\"databmk\",\"table\":\"datavdlor\",\"schema\":\"datapqdit\"},\"description\":\"kehldopjsxvbbwsg\",\"structure\":\"datakm\",\"schema\":\"datanmdpidipwtgzw\",\"linkedServiceName\":{\"referenceName\":\"zhcmrl\",\"parameters\":{\"tyzavkyjjl\":\"datav\"}},\"parameters\":{\"ythctox\":{\"type\":\"Bool\",\"defaultValue\":\"datajqbngzldvvdkop\"}},\"annotations\":[\"datamqnerwh\"],\"folder\":{\"name\":\"idsssfzsgz\"},\"\":{\"ogdblwjsbaqxaxt\":\"datapejomeqgxhwisp\",\"i\":\"dataxirppbiichlygkv\",\"ni\":\"datawonkrnizdxywabki\"}}") - .toObject(GreenplumTableDataset.class); - Assertions.assertEquals("kehldopjsxvbbwsg", model.description()); - Assertions.assertEquals("zhcmrl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ythctox").type()); - Assertions.assertEquals("idsssfzsgz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumTableDataset model = new GreenplumTableDataset().withDescription("kehldopjsxvbbwsg") - .withStructure("datakm") - .withSchema("datanmdpidipwtgzw") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("zhcmrl").withParameters(mapOf("tyzavkyjjl", "datav"))) - .withParameters(mapOf("ythctox", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajqbngzldvvdkop"))) - .withAnnotations(Arrays.asList("datamqnerwh")) - .withFolder(new DatasetFolder().withName("idsssfzsgz")) - .withTableName("databmk") - .withTable("datavdlor") - .withSchemaTypePropertiesSchema("datapqdit"); - model = BinaryData.fromObject(model).toObject(GreenplumTableDataset.class); - Assertions.assertEquals("kehldopjsxvbbwsg", model.description()); - Assertions.assertEquals("zhcmrl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ythctox").type()); - Assertions.assertEquals("idsssfzsgz", 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 dfb4050a914a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.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.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\":\"qz\",\"typeProperties\":{\"tableName\":\"databfcdikqnxydgzf\"},\"description\":\"spa\",\"structure\":\"datavs\",\"schema\":\"dataeronzeafkx\",\"linkedServiceName\":{\"referenceName\":\"muwdbvytqavou\",\"parameters\":{\"iw\":\"datadeuqxlvzpfdkaxg\",\"bmrrmtr\":\"datagopqlktt\",\"rjzwawpewajccs\":\"datagjmpd\"}},\"parameters\":{\"guzprpxhhboigzxk\":{\"type\":\"String\",\"defaultValue\":\"datauijtickzo\"}},\"annotations\":[\"datalrzhtocjzfppexu\",\"dataatzw\",\"datakjwg\"],\"folder\":{\"name\":\"vjcmimbmswskbb\"},\"\":{\"lodaqrbkpo\":\"datayp\",\"valcrqaxlmbrtvtg\":\"dataffsobg\"}}") - .toObject(HBaseObjectDataset.class); - Assertions.assertEquals("spa", model.description()); - Assertions.assertEquals("muwdbvytqavou", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("guzprpxhhboigzxk").type()); - Assertions.assertEquals("vjcmimbmswskbb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseObjectDataset model = new HBaseObjectDataset().withDescription("spa") - .withStructure("datavs") - .withSchema("dataeronzeafkx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("muwdbvytqavou") - .withParameters( - mapOf("iw", "datadeuqxlvzpfdkaxg", "bmrrmtr", "datagopqlktt", "rjzwawpewajccs", "datagjmpd"))) - .withParameters(mapOf("guzprpxhhboigzxk", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datauijtickzo"))) - .withAnnotations(Arrays.asList("datalrzhtocjzfppexu", "dataatzw", "datakjwg")) - .withFolder(new DatasetFolder().withName("vjcmimbmswskbb")) - .withTableName("databfcdikqnxydgzf"); - model = BinaryData.fromObject(model).toObject(HBaseObjectDataset.class); - Assertions.assertEquals("spa", model.description()); - Assertions.assertEquals("muwdbvytqavou", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("guzprpxhhboigzxk").type()); - Assertions.assertEquals("vjcmimbmswskbb", 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 38eaeb112c28..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\":\"pipslcfw\",\"query\":\"datakujwn\",\"queryTimeout\":\"datamipn\",\"additionalColumns\":\"dataedp\",\"sourceRetryCount\":\"datazzqfbo\",\"sourceRetryWait\":\"datafghdg\",\"maxConcurrentConnections\":\"datahncxoqxtjzdpll\",\"disableMetricsCollection\":\"datalvk\",\"\":{\"ttxqxvmybq\":\"dataosoxxoqyikdjaog\",\"lf\":\"datalg\",\"miw\":\"datasdccmdplhzjiqi\",\"punuvfs\":\"datahmzkxrqzgshqx\"}}") - .toObject(HBaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseSource model = new HBaseSource().withSourceRetryCount("datazzqfbo") - .withSourceRetryWait("datafghdg") - .withMaxConcurrentConnections("datahncxoqxtjzdpll") - .withDisableMetricsCollection("datalvk") - .withQueryTimeout("datamipn") - .withAdditionalColumns("dataedp") - .withQuery("datakujwn"); - 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 7522e592190d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"pibaxkyw\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"wvfv\",\"parameters\":{\"vzdervn\":\"datamcoxob\",\"ggeeagbrs\":\"datafieaqbvgue\",\"ibexaxu\":\"databzcyubqemrxm\"}}],\"arguments\":[\"dataqnwxohbmvga\",\"datad\"],\"getDebugInfo\":\"Failure\",\"scriptPath\":\"datahrnqnurun\",\"scriptLinkedService\":{\"referenceName\":\"uzcpifas\",\"parameters\":{\"ascvcmt\":\"datatiocsfpcyyi\",\"adtyhmoph\":\"dataukboryn\"}},\"defines\":{\"tbqijeqfoatqnhr\":\"datahvnqwdphnc\",\"tiznvijdtmjy\":\"dataxhmtxpxdtmrwjk\"},\"variables\":{\"sliou\":\"datadhwadnccunrviqrz\",\"xqnpnpggbu\":\"dataa\"},\"queryTimeout\":1194274375},\"linkedServiceName\":{\"referenceName\":\"nmuir\",\"parameters\":{\"uuzaczmej\":\"dataztkxfhix\",\"tketw\":\"dataiiegpdhit\",\"mqhzys\":\"datasko\",\"jqevmzhk\":\"datachbvejgfx\"}},\"policy\":{\"timeout\":\"datangdgk\",\"retry\":\"datanxy\",\"retryIntervalInSeconds\":1965812046,\"secureInput\":false,\"secureOutput\":false,\"\":{\"biisnh\":\"datalndlvcbc\",\"uuetmqzuen\":\"dataqqaedgwghqq\",\"mj\":\"datallqvroopk\"}},\"name\":\"spnrcuvlfzd\",\"description\":\"feupacah\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"orabspfinyijm\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"dhedmfidro\":\"datalbd\"}},{\"activity\":\"fpucwmdmbys\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Succeeded\",\"Failed\"],\"\":{\"xeusioawrorexi\":\"dataheyxc\",\"tmyc\":\"datawbquppkzuxsbbmxf\",\"ezadkfmpiffgtqhg\":\"dataelyopobgzluukiw\"}},{\"activity\":\"ygzaya\",\"dependencyConditions\":[\"Failed\",\"Succeeded\"],\"\":{\"gbi\":\"dataerxhucxmybuqj\"}},{\"activity\":\"axga\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"dkdcvowaslswwg\":\"datahpvbmbfixcuamd\",\"vhfdezomykjbl\":\"datayvopotiefxhaqq\",\"vmymfaiw\":\"dataypuon\"}}],\"userProperties\":[{\"name\":\"phaddsxsqcvab\",\"value\":\"datazdaroedwipauc\"},{\"name\":\"etypzziav\",\"value\":\"datauskvvnzng\"},{\"name\":\"boqeuez\",\"value\":\"datafldjkkva\"}],\"\":{\"b\":\"datadaejn\"}}") - .toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("spnrcuvlfzd", model.name()); - Assertions.assertEquals("feupacah", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("orabspfinyijm", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("phaddsxsqcvab", model.userProperties().get(0).name()); - Assertions.assertEquals("nmuir", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1965812046, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("wvfv", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("uzcpifas", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1194274375, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivity model = new HDInsightHiveActivity().withName("spnrcuvlfzd") - .withDescription("feupacah") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("orabspfinyijm") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fpucwmdmbys") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ygzaya") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("axga") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("phaddsxsqcvab").withValue("datazdaroedwipauc"), - new UserProperty().withName("etypzziav").withValue("datauskvvnzng"), - new UserProperty().withName("boqeuez").withValue("datafldjkkva"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nmuir") - .withParameters(mapOf("uuzaczmej", "dataztkxfhix", "tketw", "dataiiegpdhit", "mqhzys", "datasko", - "jqevmzhk", "datachbvejgfx"))) - .withPolicy(new ActivityPolicy().withTimeout("datangdgk") - .withRetry("datanxy") - .withRetryIntervalInSeconds(1965812046) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices( - Arrays - .asList(new LinkedServiceReference().withReferenceName("wvfv") - .withParameters(mapOf("vzdervn", "datamcoxob", "ggeeagbrs", "datafieaqbvgue", "ibexaxu", - "databzcyubqemrxm")))) - .withArguments(Arrays.asList("dataqnwxohbmvga", "datad")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("datahrnqnurun") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("uzcpifas") - .withParameters(mapOf("ascvcmt", "datatiocsfpcyyi", "adtyhmoph", "dataukboryn"))) - .withDefines(mapOf("tbqijeqfoatqnhr", "datahvnqwdphnc", "tiznvijdtmjy", "dataxhmtxpxdtmrwjk")) - .withVariables(mapOf("sliou", "datadhwadnccunrviqrz", "xqnpnpggbu", "dataa")) - .withQueryTimeout(1194274375); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("spnrcuvlfzd", model.name()); - Assertions.assertEquals("feupacah", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("orabspfinyijm", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("phaddsxsqcvab", model.userProperties().get(0).name()); - Assertions.assertEquals("nmuir", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1965812046, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("wvfv", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("uzcpifas", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1194274375, 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 1902aa6d1a15..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.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.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\":\"fuqqb\",\"parameters\":{\"kn\":\"databhrspzkv\",\"uwkcnhdecxbi\":\"dataerednoes\",\"dntp\":\"datanfepixfdojxbyxf\",\"asvahbqoojd\":\"datasbtigegwaidqzf\"}}],\"arguments\":[\"dataxjlumrzfdbotn\",\"dataadanlhq\",\"datar\",\"databgiaoxpfkozvc\"],\"getDebugInfo\":\"None\",\"scriptPath\":\"dataurhgu\",\"scriptLinkedService\":{\"referenceName\":\"sspble\",\"parameters\":{\"zkkmrlptdk\":\"datayftklbbribg\",\"rivedshuxlhecz\":\"dataib\",\"bviw\":\"datamwwm\"}},\"defines\":{\"udskcadkyoo\":\"dataeysjglponkrhpyed\"},\"variables\":{\"wtwzufm\":\"datapcjrbfayduzzyxly\"},\"queryTimeout\":1907026033}") - .toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("fuqqb", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("sspble", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1907026033, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivityTypeProperties model = new HDInsightHiveActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("fuqqb") - .withParameters(mapOf("kn", "databhrspzkv", "uwkcnhdecxbi", "dataerednoes", "dntp", - "datanfepixfdojxbyxf", "asvahbqoojd", "datasbtigegwaidqzf")))) - .withArguments(Arrays.asList("dataxjlumrzfdbotn", "dataadanlhq", "datar", "databgiaoxpfkozvc")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withScriptPath("dataurhgu") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("sspble") - .withParameters(mapOf("zkkmrlptdk", "datayftklbbribg", "rivedshuxlhecz", "dataib", "bviw", "datamwwm"))) - .withDefines(mapOf("udskcadkyoo", "dataeysjglponkrhpyed")) - .withVariables(mapOf("wtwzufm", "datapcjrbfayduzzyxly")) - .withQueryTimeout(1907026033); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("fuqqb", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("sspble", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1907026033, 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 b4c24df011e6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"hukuypyeo\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"dukrjjfnexuqalwj\",\"parameters\":{\"vjdcehlgryvkubf\":\"datanvbzemdff\",\"rxyffttsdtnqlggt\":\"datatgivporiok\",\"yinly\":\"datajzimxzbuqcinje\",\"ddujzenagmhhm\":\"datagul\"}},{\"referenceName\":\"tbqzftm\",\"parameters\":{\"oldxmgyjvjyxueu\":\"databmngbkqcprbwsnd\",\"xaktkbryolzbmdn\":\"datacbgbsc\"}},{\"referenceName\":\"ajggzuyokc\",\"parameters\":{\"jfuwt\":\"datasbhdixzaobsenxg\",\"euwpivsltlyqc\":\"dataukbpwwfeixm\",\"qcmsrzrcddlzga\":\"datapwndcjr\"}}],\"arguments\":[\"datawqfg\"],\"getDebugInfo\":\"Always\",\"className\":\"dataondaop\",\"jarFilePath\":\"datar\",\"jarLinkedService\":{\"referenceName\":\"pmezlloflcilr\",\"parameters\":{\"vdwknymqzmu\":\"datar\",\"vdjinuos\":\"datanuvtgjgp\"}},\"jarLibs\":[\"databzzfevwc\",\"datarbjgdvwamcvcne\",\"datak\",\"datakmenawsvximqkuy\"],\"defines\":{\"comqyqvywzhb\":\"dataxgsuuapktfvemwf\"}},\"linkedServiceName\":{\"referenceName\":\"snfeybkhyqouzzp\",\"parameters\":{\"lhnmydshgfdvwsh\":\"datadzsnv\",\"nfsjnrfpzlvae\":\"dataczy\",\"vvrk\":\"datajnskekhmo\"}},\"policy\":{\"timeout\":\"datafazsiizcwha\",\"retry\":\"datahaet\",\"retryIntervalInSeconds\":1382688900,\"secureInput\":false,\"secureOutput\":true,\"\":{\"yiwvqlrzobvkgf\":\"dataacacdya\",\"qrjbzrzf\":\"datajbjavnk\"}},\"name\":\"saeabbxkldtwrry\",\"description\":\"jr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"x\",\"dependencyConditions\":[\"Completed\"],\"\":{\"pxyrfkslg\":\"dataudfwlp\",\"ilcntmueemexa\":\"dataladqcmkdhgpzqib\",\"ntkokndjwpxe\":\"datajxaaw\"}},{\"activity\":\"n\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Completed\"],\"\":{\"nnvtlbclgrkfwofw\":\"databv\",\"xpeodbmuzpd\":\"dataayowzp\",\"hi\":\"datathpsycasx\",\"xrzqagmcivsqa\":\"dataymmiipffjgjmysnf\"}},{\"activity\":\"iabyfzadeui\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Skipped\",\"Succeeded\"],\"\":{\"uxg\":\"datazakqgabrb\",\"ulozdoi\":\"datawuy\",\"iv\":\"datahrxjiw\"}},{\"activity\":\"orqlkycwnb\",\"dependencyConditions\":[\"Completed\"],\"\":{\"ah\":\"dataazyrisciokbvft\",\"dlmag\":\"datansllfkcroviim\",\"gfx\":\"dataw\",\"sxxk\":\"dataendfpdoxtif\"}}],\"userProperties\":[{\"name\":\"lojlgs\",\"value\":\"dataystznwjg\"}],\"\":{\"riqbptvkjdowu\":\"datalefl\",\"jadippdnt\":\"dataasdztufm\"}}") - .toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("saeabbxkldtwrry", model.name()); - Assertions.assertEquals("jr", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("x", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("lojlgs", model.userProperties().get(0).name()); - Assertions.assertEquals("snfeybkhyqouzzp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1382688900, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("dukrjjfnexuqalwj", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("pmezlloflcilr", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivity model = new HDInsightMapReduceActivity().withName("saeabbxkldtwrry") - .withDescription("jr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("x") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("n") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("iabyfzadeui") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("orqlkycwnb") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("lojlgs").withValue("dataystznwjg"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("snfeybkhyqouzzp") - .withParameters( - mapOf("lhnmydshgfdvwsh", "datadzsnv", "nfsjnrfpzlvae", "dataczy", "vvrk", "datajnskekhmo"))) - .withPolicy(new ActivityPolicy().withTimeout("datafazsiizcwha") - .withRetry("datahaet") - .withRetryIntervalInSeconds(1382688900) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("dukrjjfnexuqalwj") - .withParameters(mapOf("vjdcehlgryvkubf", "datanvbzemdff", "rxyffttsdtnqlggt", "datatgivporiok", - "yinly", "datajzimxzbuqcinje", "ddujzenagmhhm", "datagul")), - new LinkedServiceReference().withReferenceName("tbqzftm") - .withParameters(mapOf("oldxmgyjvjyxueu", "databmngbkqcprbwsnd", "xaktkbryolzbmdn", "datacbgbsc")), - new LinkedServiceReference().withReferenceName("ajggzuyokc") - .withParameters(mapOf("jfuwt", "datasbhdixzaobsenxg", "euwpivsltlyqc", "dataukbpwwfeixm", - "qcmsrzrcddlzga", "datapwndcjr")))) - .withArguments(Arrays.asList("datawqfg")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withClassName("dataondaop") - .withJarFilePath("datar") - .withJarLinkedService(new LinkedServiceReference().withReferenceName("pmezlloflcilr") - .withParameters(mapOf("vdwknymqzmu", "datar", "vdjinuos", "datanuvtgjgp"))) - .withJarLibs(Arrays.asList("databzzfevwc", "datarbjgdvwamcvcne", "datak", "datakmenawsvximqkuy")) - .withDefines(mapOf("comqyqvywzhb", "dataxgsuuapktfvemwf")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("saeabbxkldtwrry", model.name()); - Assertions.assertEquals("jr", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("x", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("lojlgs", model.userProperties().get(0).name()); - Assertions.assertEquals("snfeybkhyqouzzp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1382688900, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("dukrjjfnexuqalwj", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("pmezlloflcilr", 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 23834c13751c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.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.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\":\"peeprmeb\",\"parameters\":{\"ozjces\":\"dataaacrqrov\",\"t\":\"datarcxug\",\"dbuz\":\"datajxyv\",\"asdrrfozz\":\"dataphogmrcmguel\"}},{\"referenceName\":\"ygolz\",\"parameters\":{\"fc\":\"datakb\",\"rkrjmzqnbwnl\":\"dataysvca\"}},{\"referenceName\":\"ozahrpv\",\"parameters\":{\"lypbrnjor\":\"datatcoq\",\"pebuvxxloqrdefhb\":\"datacrgrjxit\",\"dwg\":\"dataict\"}}],\"arguments\":[\"datanwesxzuklz\",\"datavmwjuqchcooty\",\"datacarjmhiewvcpys\"],\"getDebugInfo\":\"Always\",\"className\":\"datavkw\",\"jarFilePath\":\"datatbvyclg\",\"jarLinkedService\":{\"referenceName\":\"byxtprxtfwvn\",\"parameters\":{\"vdrjlgwzbrggnt\":\"datasnoakglygeuoolyw\"}},\"jarLibs\":[\"datarjtyhth\"],\"defines\":{\"hdxchaogawtvrnw\":\"datazdnhvkhkubpo\",\"fhiqliulfxgz\":\"datao\",\"uhca\":\"datartquxltekix\",\"sqcwjxatghuixc\":\"dataozsodp\"}}") - .toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("peeprmeb", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("byxtprxtfwvn", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivityTypeProperties model - = new HDInsightMapReduceActivityTypeProperties() - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference().withReferenceName("peeprmeb") - .withParameters(mapOf("ozjces", "dataaacrqrov", "t", "datarcxug", "dbuz", "datajxyv", - "asdrrfozz", "dataphogmrcmguel")), - new LinkedServiceReference().withReferenceName("ygolz") - .withParameters(mapOf("fc", "datakb", "rkrjmzqnbwnl", "dataysvca")), - new LinkedServiceReference().withReferenceName("ozahrpv") - .withParameters(mapOf("lypbrnjor", "datatcoq", "pebuvxxloqrdefhb", "datacrgrjxit", - "dwg", "dataict")))) - .withArguments(Arrays.asList("datanwesxzuklz", "datavmwjuqchcooty", "datacarjmhiewvcpys")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withClassName("datavkw") - .withJarFilePath("datatbvyclg") - .withJarLinkedService(new LinkedServiceReference().withReferenceName("byxtprxtfwvn") - .withParameters(mapOf("vdrjlgwzbrggnt", "datasnoakglygeuoolyw"))) - .withJarLibs(Arrays.asList("datarjtyhth")) - .withDefines(mapOf("hdxchaogawtvrnw", "datazdnhvkhkubpo", "fhiqliulfxgz", "datao", "uhca", - "datartquxltekix", "sqcwjxatghuixc", "dataozsodp")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("peeprmeb", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("byxtprxtfwvn", 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 33d766cc6cdd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.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.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\":\"djmv\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"mgho\",\"parameters\":{\"qcxrrkcvclqlibpm\":\"datacontsr\",\"zs\":\"datan\",\"gzljgrtfic\":\"datahkkktlodsyyzmf\",\"ufet\":\"dataejmzbasxapcegtc\"}}],\"arguments\":\"datattjnneynmgvqysgh\",\"getDebugInfo\":\"Failure\",\"scriptPath\":\"datax\",\"scriptLinkedService\":{\"referenceName\":\"mvfdo\",\"parameters\":{\"ktutwczdwmt\":\"datafcfidd\"}},\"defines\":{\"mobsjudpeed\":\"datauqhyq\",\"igtsrrlelpobm\":\"dataowverhtyc\",\"qgluhr\":\"datamdsisll\",\"fqb\":\"dataimojozhdcptxxb\"}},\"linkedServiceName\":{\"referenceName\":\"pvnrngiffsn\",\"parameters\":{\"vqqrcyeu\":\"datafqgu\",\"u\":\"datawvzagurgurpc\",\"dcrwoiqsrqebjgo\":\"datayuzhkefownc\",\"chkmq\":\"datamjcahda\"}},\"policy\":{\"timeout\":\"dataseaomqqb\",\"retry\":\"datawxcf\",\"retryIntervalInSeconds\":952320530,\"secureInput\":false,\"secureOutput\":false,\"\":{\"nxppgfeppne\":\"datarwn\",\"nvvkfbmrppjf\":\"datajvataeaoqknz\",\"s\":\"dataeabgpw\",\"n\":\"dataewi\"}},\"name\":\"cycgftelimqxw\",\"description\":\"npyexjr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ih\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"twnppstpqws\":\"datafciskl\"}},{\"activity\":\"eawolhlfffe\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Failed\",\"Skipped\"],\"\":{\"ipchdpdev\":\"datarsywiscoqtvx\",\"kfesh\":\"datampoqkc\",\"lpyp\":\"dataomtvkxps\",\"utspocr\":\"datagdetydqgyhuy\"}},{\"activity\":\"kkraapczmziiftj\",\"dependencyConditions\":[\"Completed\"],\"\":{\"wcflciooxybmk\":\"datazocfy\",\"cpwtj\":\"databwdfjcep\"}},{\"activity\":\"kuhrtqnbdgc\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"xhf\":\"databbccbqxwojve\"}}],\"userProperties\":[{\"name\":\"zftfyjcen\",\"value\":\"dataidlpmlxhzwyy\"}],\"\":{\"dnegwsyxdf\":\"datazbmlhgytkthevod\",\"i\":\"datajftcrjoh\"}}") - .toObject(HDInsightPigActivity.class); - Assertions.assertEquals("cycgftelimqxw", model.name()); - Assertions.assertEquals("npyexjr", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ih", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zftfyjcen", model.userProperties().get(0).name()); - Assertions.assertEquals("pvnrngiffsn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(952320530, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("mgho", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("mvfdo", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivity model = new HDInsightPigActivity().withName("cycgftelimqxw") - .withDescription("npyexjr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ih") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("eawolhlfffe") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kkraapczmziiftj") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kuhrtqnbdgc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("zftfyjcen").withValue("dataidlpmlxhzwyy"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("pvnrngiffsn") - .withParameters(mapOf("vqqrcyeu", "datafqgu", "u", "datawvzagurgurpc", "dcrwoiqsrqebjgo", - "datayuzhkefownc", "chkmq", "datamjcahda"))) - .withPolicy(new ActivityPolicy().withTimeout("dataseaomqqb") - .withRetry("datawxcf") - .withRetryIntervalInSeconds(952320530) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("mgho") - .withParameters(mapOf("qcxrrkcvclqlibpm", "datacontsr", "zs", "datan", "gzljgrtfic", - "datahkkktlodsyyzmf", "ufet", "dataejmzbasxapcegtc")))) - .withArguments("datattjnneynmgvqysgh") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("datax") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("mvfdo") - .withParameters(mapOf("ktutwczdwmt", "datafcfidd"))) - .withDefines(mapOf("mobsjudpeed", "datauqhyq", "igtsrrlelpobm", "dataowverhtyc", "qgluhr", "datamdsisll", - "fqb", "dataimojozhdcptxxb")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivity.class); - Assertions.assertEquals("cycgftelimqxw", model.name()); - Assertions.assertEquals("npyexjr", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ih", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zftfyjcen", model.userProperties().get(0).name()); - Assertions.assertEquals("pvnrngiffsn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(952320530, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("mgho", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("mvfdo", 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 d67adcd05566..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.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.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\":\"txtc\",\"parameters\":{\"twlpuur\":\"datacd\",\"ixlzaavvuvhyerj\":\"dataxkphaqtnejufljqz\"}},{\"referenceName\":\"cxyxepllb\",\"parameters\":{\"spli\":\"datapfjib\",\"qpgncscw\":\"datafqjweigywj\",\"utyjdcvnanejmcr\":\"dataefdqnsuaoml\"}}],\"arguments\":\"dataecq\",\"getDebugInfo\":\"Failure\",\"scriptPath\":\"datayhkvtofxke\",\"scriptLinkedService\":{\"referenceName\":\"v\",\"parameters\":{\"ftk\":\"datarpognqv\",\"gochp\":\"datayghcmpyk\"}},\"defines\":{\"fnstvtbpwwot\":\"datasapk\",\"shdwive\":\"datazesfdrsgfp\"}}") - .toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("txtc", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("v", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivityTypeProperties model = new HDInsightPigActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("txtc") - .withParameters(mapOf("twlpuur", "datacd", "ixlzaavvuvhyerj", "dataxkphaqtnejufljqz")), - new LinkedServiceReference().withReferenceName("cxyxepllb") - .withParameters(mapOf("spli", "datapfjib", "qpgncscw", "datafqjweigywj", "utyjdcvnanejmcr", - "dataefdqnsuaoml")))) - .withArguments("dataecq") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("datayhkvtofxke") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("v") - .withParameters(mapOf("ftk", "datarpognqv", "gochp", "datayghcmpyk"))) - .withDefines(mapOf("fnstvtbpwwot", "datasapk", "shdwive", "datazesfdrsgfp")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("txtc", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("v", 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 fbeccb3e9087..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"nn\",\"typeProperties\":{\"rootPath\":\"datameacj\",\"entryFilePath\":\"dataaixhma\",\"arguments\":[\"datagvwvlqqnf\",\"datawrws\",\"datayblwjhpibgalefjs\"],\"getDebugInfo\":\"Failure\",\"sparkJobLinkedService\":{\"referenceName\":\"gmvzci\",\"parameters\":{\"tskprgztzcib\":\"datapqnshnbfdwxsj\",\"nbsxoe\":\"datawqmfhg\",\"hv\":\"dataephohjorguif\"}},\"className\":\"bmngkqej\",\"proxyUser\":\"dataw\",\"sparkConfig\":{\"hwcfxbywpw\":\"datazdlfayi\",\"j\":\"datavpglstxznkbj\",\"pdnnvepbocwbcx\":\"datazunrddy\"}},\"linkedServiceName\":{\"referenceName\":\"pummphb\",\"parameters\":{\"l\":\"dataive\"}},\"policy\":{\"timeout\":\"dataizyenajjx\",\"retry\":\"datadpnersmevhgs\",\"retryIntervalInSeconds\":417182956,\"secureInput\":true,\"secureOutput\":true,\"\":{\"syqpkpvbxgrgy\":\"dataqakbh\",\"eiocacngiaa\":\"datauqyxvzyivg\",\"teidfzof\":\"datagxdzhyc\"}},\"name\":\"cmlomlnprkiky\",\"description\":\"csgquphqnuitu\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"gabcw\",\"dependencyConditions\":[\"Completed\"],\"\":{\"zanr\":\"datakc\",\"hijjlaxeqehg\":\"datatjdmdbtbdtrqiu\",\"gb\":\"datajgvrawjom\"}},{\"activity\":\"dwfyagvhe\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"z\":\"datawpcupejz\"}},{\"activity\":\"dapxxgvcsvtflcj\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Completed\"],\"\":{\"pdfi\":\"datapf\",\"maqyesahvowlibr\":\"datarutcedeygsrrgd\",\"acyrkcdokka\":\"dataomdwz\",\"ysadjlqkoraqtbis\":\"datakaitihn\"}},{\"activity\":\"kcebjajl\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"ukghxde\":\"dataipkeonixx\",\"uevzqawjnwj\":\"dataqptvxibpzhkn\",\"eisjg\":\"datasiubp\"}}],\"userProperties\":[{\"name\":\"ldxsdrlbbpkjseft\",\"value\":\"datawu\"},{\"name\":\"fmakn\",\"value\":\"datanaqyeswinoecwabu\"}],\"\":{\"skbbeqayvkmptg\":\"datal\",\"zjrlm\":\"dataqxiyllamdz\"}}") - .toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("cmlomlnprkiky", model.name()); - Assertions.assertEquals("csgquphqnuitu", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("gabcw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ldxsdrlbbpkjseft", model.userProperties().get(0).name()); - Assertions.assertEquals("pummphb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(417182956, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("gmvzci", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("bmngkqej", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivity model = new HDInsightSparkActivity().withName("cmlomlnprkiky") - .withDescription("csgquphqnuitu") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gabcw") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dwfyagvhe") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dapxxgvcsvtflcj") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kcebjajl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ldxsdrlbbpkjseft").withValue("datawu"), - new UserProperty().withName("fmakn").withValue("datanaqyeswinoecwabu"))) - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("pummphb").withParameters(mapOf("l", "dataive"))) - .withPolicy(new ActivityPolicy().withTimeout("dataizyenajjx") - .withRetry("datadpnersmevhgs") - .withRetryIntervalInSeconds(417182956) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withRootPath("datameacj") - .withEntryFilePath("dataaixhma") - .withArguments(Arrays.asList("datagvwvlqqnf", "datawrws", "datayblwjhpibgalefjs")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withSparkJobLinkedService(new LinkedServiceReference().withReferenceName("gmvzci") - .withParameters( - mapOf("tskprgztzcib", "datapqnshnbfdwxsj", "nbsxoe", "datawqmfhg", "hv", "dataephohjorguif"))) - .withClassName("bmngkqej") - .withProxyUser("dataw") - .withSparkConfig( - mapOf("hwcfxbywpw", "datazdlfayi", "j", "datavpglstxznkbj", "pdnnvepbocwbcx", "datazunrddy")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("cmlomlnprkiky", model.name()); - Assertions.assertEquals("csgquphqnuitu", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("gabcw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ldxsdrlbbpkjseft", model.userProperties().get(0).name()); - Assertions.assertEquals("pummphb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(417182956, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("gmvzci", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("bmngkqej", 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 0ac729b19f24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.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.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\":\"datadboesxpc\",\"entryFilePath\":\"datagl\",\"arguments\":[\"datah\",\"datacyggflosxtbdgpy\"],\"getDebugInfo\":\"Failure\",\"sparkJobLinkedService\":{\"referenceName\":\"dcglima\",\"parameters\":{\"pxdyyohbbtwpkg\":\"datakypyvztdhoyarcu\",\"ybvxumtxuv\":\"datavuemjcjeja\",\"egqmlv\":\"dataoteidcwrmdqqgt\",\"yfszluzmzgat\":\"dataym\"}},\"className\":\"groejsaerzckmcuk\",\"proxyUser\":\"dataz\",\"sparkConfig\":{\"wbvyraazscxi\":\"datazzrxgqxddvuiur\",\"kmybohax\":\"datajyjcshmtpdvuix\"}}") - .toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("dcglima", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("groejsaerzckmcuk", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivityTypeProperties model - = new HDInsightSparkActivityTypeProperties().withRootPath("datadboesxpc") - .withEntryFilePath("datagl") - .withArguments(Arrays.asList("datah", "datacyggflosxtbdgpy")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withSparkJobLinkedService(new LinkedServiceReference().withReferenceName("dcglima") - .withParameters(mapOf("pxdyyohbbtwpkg", "datakypyvztdhoyarcu", "ybvxumtxuv", "datavuemjcjeja", - "egqmlv", "dataoteidcwrmdqqgt", "yfszluzmzgat", "dataym"))) - .withClassName("groejsaerzckmcuk") - .withProxyUser("dataz") - .withSparkConfig(mapOf("wbvyraazscxi", "datazzrxgqxddvuiur", "kmybohax", "datajyjcshmtpdvuix")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("dcglima", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("groejsaerzckmcuk", 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 ce625b7ad8de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"ludfdhiori\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"meuukk\",\"parameters\":{\"wzgb\":\"datatucmhpjmnxlfkm\",\"mrpbmxmxshfh\":\"databwmiap\",\"qimjnxpfvxyt\":\"datap\",\"zyr\":\"dataoqnytuc\"}}],\"arguments\":[\"dataebsinsoybegejr\"],\"getDebugInfo\":\"Failure\",\"mapper\":\"datahlhludimqjc\",\"reducer\":\"datagxrozcfcxks\",\"input\":\"dataj\",\"output\":\"databteakdrh\",\"filePaths\":[\"dataepmnxv\",\"datahqvcnlphlkxd\"],\"fileLinkedService\":{\"referenceName\":\"lyccdmkpohgatq\",\"parameters\":{\"wndnsggfzpst\":\"datadizd\"}},\"combiner\":\"datadmwsflrdyr\",\"commandEnvironment\":[\"datax\",\"datay\",\"dataxnmxkmdl\",\"datanlhsdtcgflevndl\"],\"defines\":{\"wf\":\"datarfcfl\",\"izloyqjrkted\":\"datajyuhuthqdfi\",\"jsogesrmah\":\"datauqve\"}},\"linkedServiceName\":{\"referenceName\":\"ow\",\"parameters\":{\"aeisboeapsrayd\":\"datawvupndnhq\",\"rkaymdgzbklioku\":\"datapuokmakkw\"}},\"policy\":{\"timeout\":\"datapamavxorldubbba\",\"retry\":\"dataxlirolaooldwd\",\"retryIntervalInSeconds\":391806464,\"secureInput\":false,\"secureOutput\":false,\"\":{\"kcczb\":\"datagpoeqgku\",\"kwjhkjvsvywnz\":\"dataobe\",\"aquke\":\"dataiqvqbvfihna\"}},\"name\":\"qzf\",\"description\":\"qa\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"t\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Succeeded\"],\"\":{\"uufenpzt\":\"dataywtgilhxaaf\",\"exqyroqklgvyce\":\"dataktnfeghcmxi\",\"twhyznlhak\":\"dataywuioi\"}},{\"activity\":\"fskgxfmdpsreqor\",\"dependencyConditions\":[\"Failed\"],\"\":{\"akdsmwajalsens\":\"dataqjqbwjiqrukbj\",\"vbslrhcceyobjs\":\"dataoslvf\",\"bbyvxk\":\"dataunz\"}},{\"activity\":\"fukuht\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Completed\",\"Completed\"],\"\":{\"ftmpjinrq\":\"datamjccnjv\",\"scngdu\":\"dataliqxahpy\",\"vhcwt\":\"dataw\",\"xigpmc\":\"dataqires\"}},{\"activity\":\"equocawcb\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Skipped\"],\"\":{\"aaav\":\"datapwhybtx\",\"dxdxrkrvmhhgvrxv\":\"dataiadygoad\"}}],\"userProperties\":[{\"name\":\"bvrbwafwix\",\"value\":\"datatnc\"}],\"\":{\"ftbwmuxc\":\"datafgv\"}}") - .toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("qzf", model.name()); - Assertions.assertEquals("qa", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("t", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bvrbwafwix", model.userProperties().get(0).name()); - Assertions.assertEquals("ow", model.linkedServiceName().referenceName()); - Assertions.assertEquals(391806464, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("meuukk", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("lyccdmkpohgatq", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivity model = new HDInsightStreamingActivity().withName("qzf") - .withDescription("qa") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("t") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fskgxfmdpsreqor") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fukuht") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("equocawcb") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("bvrbwafwix").withValue("datatnc"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ow") - .withParameters(mapOf("aeisboeapsrayd", "datawvupndnhq", "rkaymdgzbklioku", "datapuokmakkw"))) - .withPolicy(new ActivityPolicy().withTimeout("datapamavxorldubbba") - .withRetry("dataxlirolaooldwd") - .withRetryIntervalInSeconds(391806464) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("meuukk") - .withParameters(mapOf("wzgb", "datatucmhpjmnxlfkm", "mrpbmxmxshfh", "databwmiap", "qimjnxpfvxyt", - "datap", "zyr", "dataoqnytuc")))) - .withArguments(Arrays.asList("dataebsinsoybegejr")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withMapper("datahlhludimqjc") - .withReducer("datagxrozcfcxks") - .withInput("dataj") - .withOutput("databteakdrh") - .withFilePaths(Arrays.asList("dataepmnxv", "datahqvcnlphlkxd")) - .withFileLinkedService(new LinkedServiceReference().withReferenceName("lyccdmkpohgatq") - .withParameters(mapOf("wndnsggfzpst", "datadizd"))) - .withCombiner("datadmwsflrdyr") - .withCommandEnvironment(Arrays.asList("datax", "datay", "dataxnmxkmdl", "datanlhsdtcgflevndl")) - .withDefines(mapOf("wf", "datarfcfl", "izloyqjrkted", "datajyuhuthqdfi", "jsogesrmah", "datauqve")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("qzf", model.name()); - Assertions.assertEquals("qa", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("t", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bvrbwafwix", model.userProperties().get(0).name()); - Assertions.assertEquals("ow", model.linkedServiceName().referenceName()); - Assertions.assertEquals(391806464, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("meuukk", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("lyccdmkpohgatq", 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 acf6ad060d3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.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.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\":\"bvf\",\"parameters\":{\"gfdsrngy\":\"datahhzmxptkbehpyw\"}}],\"arguments\":[\"datazqwcmmolpfcvvk\",\"datannyksskuscdnn\"],\"getDebugInfo\":\"Failure\",\"mapper\":\"datata\",\"reducer\":\"datayrhttjtqwwlaxh\",\"input\":\"datajwpc\",\"output\":\"datatwywhrzntmzzzavx\",\"filePaths\":[\"datakexspoiq\",\"dataukytteai\"],\"fileLinkedService\":{\"referenceName\":\"wopkov\",\"parameters\":{\"yqmgvqthlim\":\"dataaigdvcbylds\"}},\"combiner\":\"datazr\",\"commandEnvironment\":[\"datagyon\"],\"defines\":{\"sijcjnbtgfitpx\":\"dataxwldktphn\",\"ngj\":\"datakb\",\"fzkujgeppxiyo\":\"databbyqvbd\"}}") - .toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("bvf", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("wopkov", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivityTypeProperties model = new HDInsightStreamingActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("bvf") - .withParameters(mapOf("gfdsrngy", "datahhzmxptkbehpyw")))) - .withArguments(Arrays.asList("datazqwcmmolpfcvvk", "datannyksskuscdnn")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withMapper("datata") - .withReducer("datayrhttjtqwwlaxh") - .withInput("datajwpc") - .withOutput("datatwywhrzntmzzzavx") - .withFilePaths(Arrays.asList("datakexspoiq", "dataukytteai")) - .withFileLinkedService(new LinkedServiceReference().withReferenceName("wopkov") - .withParameters(mapOf("yqmgvqthlim", "dataaigdvcbylds"))) - .withCombiner("datazr") - .withCommandEnvironment(Arrays.asList("datagyon")) - .withDefines(mapOf("sijcjnbtgfitpx", "dataxwldktphn", "ngj", "datakb", "fzkujgeppxiyo", "databbyqvbd")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("bvf", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("wopkov", 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 d6057922068d..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\":\"fm\",\"folderPath\":\"datask\",\"fileName\":\"dataxvlzjxplhpevasyn\",\"\":{\"elbqrvvbqvkn\":\"datajy\",\"nstlpwqpjn\":\"datapecqxgiqasifubn\",\"psvyouweuiyxfw\":\"datajkht\"}}") - .toObject(HdfsLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsLocation model = new HdfsLocation().withFolderPath("datask").withFileName("dataxvlzjxplhpevasyn"); - 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 4ae02799af12..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\":\"rmficqrdervtru\",\"recursive\":\"dataetdruugimviefbje\",\"wildcardFolderPath\":\"dataiyjkhjuuep\",\"wildcardFileName\":\"datauqwnajb\",\"fileListPath\":\"dataxqsvax\",\"enablePartitionDiscovery\":\"datawisdwtugadxupipg\",\"partitionRootPath\":\"datawiwhtjoxxllh\",\"modifiedDatetimeStart\":\"dataunnwm\",\"modifiedDatetimeEnd\":\"dataxyawxkd\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"datavhyu\",\"tempScriptPath\":\"dataihapcqmcvur\",\"distcpOptions\":\"dataubljnizwztlcrxfi\"},\"deleteFilesAfterCompletion\":\"datafgxn\",\"maxConcurrentConnections\":\"datal\",\"disableMetricsCollection\":\"datartcsmpm\",\"\":{\"xcgcdfel\":\"dataxb\"}}") - .toObject(HdfsReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsReadSettings model = new HdfsReadSettings().withMaxConcurrentConnections("datal") - .withDisableMetricsCollection("datartcsmpm") - .withRecursive("dataetdruugimviefbje") - .withWildcardFolderPath("dataiyjkhjuuep") - .withWildcardFileName("datauqwnajb") - .withFileListPath("dataxqsvax") - .withEnablePartitionDiscovery("datawisdwtugadxupipg") - .withPartitionRootPath("datawiwhtjoxxllh") - .withModifiedDatetimeStart("dataunnwm") - .withModifiedDatetimeEnd("dataxyawxkd") - .withDistcpSettings(new DistcpSettings().withResourceManagerEndpoint("datavhyu") - .withTempScriptPath("dataihapcqmcvur") - .withDistcpOptions("dataubljnizwztlcrxfi")) - .withDeleteFilesAfterCompletion("datafgxn"); - 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 4fb6b5867b10..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\":\"f\",\"recursive\":\"datalaxjmnbmfmloq\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"dataswvtd\",\"tempScriptPath\":\"datapicwnbtvlrs\",\"distcpOptions\":\"datatrmodknxerkaiik\"},\"sourceRetryCount\":\"dataxpqrkeyhj\",\"sourceRetryWait\":\"dataezkbrvtaul\",\"maxConcurrentConnections\":\"dataqvtpkodijcn\",\"disableMetricsCollection\":\"datao\",\"\":{\"hijbfiyuho\":\"datacyqjj\",\"phyacdhjm\":\"dataulevpdbirhgj\",\"jtkuyvytfuq\":\"datanvgkxshh\",\"kf\":\"datastqbxpyfawkjei\"}}") - .toObject(HdfsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsSource model = new HdfsSource().withSourceRetryCount("dataxpqrkeyhj") - .withSourceRetryWait("dataezkbrvtaul") - .withMaxConcurrentConnections("dataqvtpkodijcn") - .withDisableMetricsCollection("datao") - .withRecursive("datalaxjmnbmfmloq") - .withDistcpSettings(new DistcpSettings().withResourceManagerEndpoint("dataswvtd") - .withTempScriptPath("datapicwnbtvlrs") - .withDistcpOptions("datatrmodknxerkaiik")); - 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 e29ca1d0c4e3..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\":\"dataphceeivk\",\"table\":\"dataxlepghcnu\",\"schema\":\"dataqpvtwttf\"}") - .toObject(HiveDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveDatasetTypeProperties model = new HiveDatasetTypeProperties().withTableName("dataphceeivk") - .withTable("dataxlepghcnu") - .withSchema("dataqpvtwttf"); - 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 e9907cb06e20..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.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.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\":\"ybivywotjnjuv\",\"typeProperties\":{\"tableName\":\"datays\",\"table\":\"dataqqjhdfhfaob\",\"schema\":\"datajcsbozvcdqwssydv\"},\"description\":\"ijrdl\",\"structure\":\"dataaeyocpkvlt\",\"schema\":\"datadzf\",\"linkedServiceName\":{\"referenceName\":\"npbdrcibjxnnnoz\",\"parameters\":{\"pshtisy\":\"datavdtuoamqobqeh\"}},\"parameters\":{\"vwdxgyypmxqzlm\":{\"type\":\"SecureString\",\"defaultValue\":\"datatrzjwnzwckzebm\"},\"ilyeshox\":{\"type\":\"String\",\"defaultValue\":\"datarcatkuhskegdkvv\"},\"busxyugozwp\":{\"type\":\"Int\",\"defaultValue\":\"datajdmu\"}},\"annotations\":[\"datagzumnotii\",\"datakkbyg\",\"datagiq\",\"datawyshybbnhtt\"],\"folder\":{\"name\":\"onzsurqcoj\"},\"\":{\"hjfvnhwsgn\":\"datazhzzcarciuoxyipd\",\"ssjgbfbb\":\"dataputfelfchnu\",\"zunf\":\"datachxxc\"}}") - .toObject(HiveObjectDataset.class); - Assertions.assertEquals("ijrdl", model.description()); - Assertions.assertEquals("npbdrcibjxnnnoz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("vwdxgyypmxqzlm").type()); - Assertions.assertEquals("onzsurqcoj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveObjectDataset model = new HiveObjectDataset().withDescription("ijrdl") - .withStructure("dataaeyocpkvlt") - .withSchema("datadzf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("npbdrcibjxnnnoz") - .withParameters(mapOf("pshtisy", "datavdtuoamqobqeh"))) - .withParameters(mapOf("vwdxgyypmxqzlm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datatrzjwnzwckzebm"), - "ilyeshox", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datarcatkuhskegdkvv"), - "busxyugozwp", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datajdmu"))) - .withAnnotations(Arrays.asList("datagzumnotii", "datakkbyg", "datagiq", "datawyshybbnhtt")) - .withFolder(new DatasetFolder().withName("onzsurqcoj")) - .withTableName("datays") - .withTable("dataqqjhdfhfaob") - .withSchemaTypePropertiesSchema("datajcsbozvcdqwssydv"); - model = BinaryData.fromObject(model).toObject(HiveObjectDataset.class); - Assertions.assertEquals("ijrdl", model.description()); - Assertions.assertEquals("npbdrcibjxnnnoz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("vwdxgyypmxqzlm").type()); - Assertions.assertEquals("onzsurqcoj", 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 6f93e8631db3..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\":\"xmnoa\",\"query\":\"datahoaqj\",\"queryTimeout\":\"datazqz\",\"additionalColumns\":\"datadipnhbsvrlr\",\"sourceRetryCount\":\"datayadyfnxtlln\",\"sourceRetryWait\":\"datamdgsvaekuovwi\",\"maxConcurrentConnections\":\"dataykprrddbenf\",\"disableMetricsCollection\":\"datafszmxpos\",\"\":{\"j\":\"datacvyuldkpdleeslj\"}}") - .toObject(HiveSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveSource model = new HiveSource().withSourceRetryCount("datayadyfnxtlln") - .withSourceRetryWait("datamdgsvaekuovwi") - .withMaxConcurrentConnections("dataykprrddbenf") - .withDisableMetricsCollection("datafszmxpos") - .withQueryTimeout("datazqz") - .withAdditionalColumns("datadipnhbsvrlr") - .withQuery("datahoaqj"); - 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 5310f0de2309..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.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.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\":\"gwaakktbjortz\",\"typeProperties\":{\"relativeUrl\":\"dataejexfdlhuhd\",\"requestMethod\":\"databgywadrklpdye\",\"requestBody\":\"datarwcflvxbocayw\",\"additionalHeaders\":\"datavuhzmolhveoln\",\"format\":{\"type\":\"mhwdxqupyml\",\"serializer\":\"datalmnjqzm\",\"deserializer\":\"datanhitrnwqgqrbth\",\"\":{\"qeiaddp\":\"dataiqnrjocogwfvkywz\",\"mizunzbqvioync\":\"datahuvnlmdcnutie\"}},\"compression\":{\"type\":\"dataqhhvvwz\",\"level\":\"datajaaaiaibtvavly\",\"\":{\"rl\":\"datalocnwmefzvzuzq\",\"v\":\"datao\",\"sfyqncowm\":\"datazgyhen\",\"ywjiaaosla\":\"datanozf\"}}},\"description\":\"ajqhsnsejplis\",\"structure\":\"datayljzbk\",\"schema\":\"datalfjwxgvtkjctv\",\"linkedServiceName\":{\"referenceName\":\"peawzzkvfccozv\",\"parameters\":{\"raitrms\":\"dataph\",\"ptctxpoegyckmemf\":\"datakxtuytg\",\"mwrv\":\"datarcclclfkfvyjo\",\"x\":\"dataoipjy\"}},\"parameters\":{\"qwh\":{\"type\":\"String\",\"defaultValue\":\"dataewfzvvpay\"}},\"annotations\":[\"datayandblk\",\"datantcv\"],\"folder\":{\"name\":\"fmo\"},\"\":{\"pff\":\"datatfvxuos\",\"wyjzuakkiubeqk\":\"datapjpjmsbzzjsnyf\"}}") - .toObject(HttpDataset.class); - Assertions.assertEquals("ajqhsnsejplis", model.description()); - Assertions.assertEquals("peawzzkvfccozv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("qwh").type()); - Assertions.assertEquals("fmo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDataset model = new HttpDataset().withDescription("ajqhsnsejplis") - .withStructure("datayljzbk") - .withSchema("datalfjwxgvtkjctv") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("peawzzkvfccozv") - .withParameters(mapOf("raitrms", "dataph", "ptctxpoegyckmemf", "datakxtuytg", "mwrv", - "datarcclclfkfvyjo", "x", "dataoipjy"))) - .withParameters(mapOf("qwh", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataewfzvvpay"))) - .withAnnotations(Arrays.asList("datayandblk", "datantcv")) - .withFolder(new DatasetFolder().withName("fmo")) - .withRelativeUrl("dataejexfdlhuhd") - .withRequestMethod("databgywadrklpdye") - .withRequestBody("datarwcflvxbocayw") - .withAdditionalHeaders("datavuhzmolhveoln") - .withFormat(new DatasetStorageFormat().withSerializer("datalmnjqzm") - .withDeserializer("datanhitrnwqgqrbth") - .withAdditionalProperties(mapOf("type", "mhwdxqupyml"))) - .withCompression(new DatasetCompression().withType("dataqhhvvwz") - .withLevel("datajaaaiaibtvavly") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(HttpDataset.class); - Assertions.assertEquals("ajqhsnsejplis", model.description()); - Assertions.assertEquals("peawzzkvfccozv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("qwh").type()); - Assertions.assertEquals("fmo", 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 49cb1483c794..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\":\"datatlrglhxso\",\"requestMethod\":\"dataguhbnhogsezreneg\",\"requestBody\":\"datadtyzpx\",\"additionalHeaders\":\"datatwkejmgem\",\"format\":{\"type\":\"pehskvsdfvhr\",\"serializer\":\"datae\",\"deserializer\":\"datammpkapvnpeukg\",\"\":{\"vktfp\":\"dataakeqnitromlc\",\"fxjtxla\":\"datarowsh\",\"fqdmll\":\"datamvdyqabjrop\"}},\"compression\":{\"type\":\"datayjyuwqlzw\",\"level\":\"datapvhwirilamqtrh\",\"\":{\"dedpkwdtobpgdc\":\"dataxdega\",\"q\":\"datadpd\",\"ddlirqqcl\":\"datarm\",\"k\":\"dataaqifepdureevi\"}}}") - .toObject(HttpDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDatasetTypeProperties model = new HttpDatasetTypeProperties().withRelativeUrl("datatlrglhxso") - .withRequestMethod("dataguhbnhogsezreneg") - .withRequestBody("datadtyzpx") - .withAdditionalHeaders("datatwkejmgem") - .withFormat(new DatasetStorageFormat().withSerializer("datae") - .withDeserializer("datammpkapvnpeukg") - .withAdditionalProperties(mapOf("type", "pehskvsdfvhr"))) - .withCompression(new DatasetCompression().withType("datayjyuwqlzw") - .withLevel("datapvhwirilamqtrh") - .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 c0bc860ed54b..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\":\"cnkgius\",\"requestMethod\":\"datamxgglkqitpbyne\",\"requestBody\":\"dataxux\",\"additionalHeaders\":\"dataoclef\",\"requestTimeout\":\"dataggglzsbou\",\"additionalColumns\":\"datan\",\"maxConcurrentConnections\":\"dataswcpspaoxig\",\"disableMetricsCollection\":\"datai\",\"\":{\"yn\":\"datapgpqsmglutn\",\"xbgfwwcfwlwnj\":\"datalxxnbogxkidb\"}}") - .toObject(HttpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpReadSettings model = new HttpReadSettings().withMaxConcurrentConnections("dataswcpspaoxig") - .withDisableMetricsCollection("datai") - .withRequestMethod("datamxgglkqitpbyne") - .withRequestBody("dataxux") - .withAdditionalHeaders("dataoclef") - .withRequestTimeout("dataggglzsbou") - .withAdditionalColumns("datan"); - 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 4f335e7228f9..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\":\"tnaczkfwfatga\",\"relativeUrl\":\"datawkuh\",\"folderPath\":\"datahnskivdwgtqcume\",\"fileName\":\"dataaaqgoqbdiuycs\",\"\":{\"bhz\":\"dataowk\",\"htmqowi\":\"datarb\",\"ruozkgyfp\":\"dataasfgqgucyhfaimqv\"}}") - .toObject(HttpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpServerLocation model = new HttpServerLocation().withFolderPath("datahnskivdwgtqcume") - .withFileName("dataaaqgoqbdiuycs") - .withRelativeUrl("datawkuh"); - 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 090511ddc51d..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\":\"hcnybhvzltbgw\",\"httpRequestTimeout\":\"dataslyqmlg\",\"sourceRetryCount\":\"dataepjmkruzogs\",\"sourceRetryWait\":\"dataoqjbnfaxcdcmqe\",\"maxConcurrentConnections\":\"datasirotj\",\"disableMetricsCollection\":\"datatugobs\",\"\":{\"jnqifoznfd\":\"datackgqyuvhlpmjpz\"}}") - .toObject(HttpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpSource model = new HttpSource().withSourceRetryCount("dataepjmkruzogs") - .withSourceRetryWait("dataoqjbnfaxcdcmqe") - .withMaxConcurrentConnections("datasirotj") - .withDisableMetricsCollection("datatugobs") - .withHttpRequestTimeout("dataslyqmlg"); - 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 987361f23045..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.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.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\":\"dnihuzzjuzvwg\",\"typeProperties\":{\"tableName\":\"datatbfyt\"},\"description\":\"dto\",\"structure\":\"dataiwnyfzdpxctsu\",\"schema\":\"dataxdte\",\"linkedServiceName\":{\"referenceName\":\"objzr\",\"parameters\":{\"lgmpupj\":\"dataidcnz\"}},\"parameters\":{\"dvbgvzlzjs\":{\"type\":\"String\",\"defaultValue\":\"datayu\"}},\"annotations\":[\"datacutzaz\"],\"folder\":{\"name\":\"pokns\"},\"\":{\"kdarl\":\"datambdqra\",\"bva\":\"datao\",\"vclfjyclvi\":\"dataqwzknyujxy\",\"leirmtxfqpfildcg\":\"datadlff\"}}") - .toObject(HubspotObjectDataset.class); - Assertions.assertEquals("dto", model.description()); - Assertions.assertEquals("objzr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("dvbgvzlzjs").type()); - Assertions.assertEquals("pokns", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotObjectDataset model = new HubspotObjectDataset().withDescription("dto") - .withStructure("dataiwnyfzdpxctsu") - .withSchema("dataxdte") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("objzr").withParameters(mapOf("lgmpupj", "dataidcnz"))) - .withParameters(mapOf("dvbgvzlzjs", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayu"))) - .withAnnotations(Arrays.asList("datacutzaz")) - .withFolder(new DatasetFolder().withName("pokns")) - .withTableName("datatbfyt"); - model = BinaryData.fromObject(model).toObject(HubspotObjectDataset.class); - Assertions.assertEquals("dto", model.description()); - Assertions.assertEquals("objzr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("dvbgvzlzjs").type()); - Assertions.assertEquals("pokns", 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 5b12732f445b..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\":\"xpnzpuknfpgg\",\"query\":\"datakniqoqyrcpsjea\",\"queryTimeout\":\"dataluchbfrta\",\"additionalColumns\":\"datasddy\",\"sourceRetryCount\":\"dataxsyufexivhjyxa\",\"sourceRetryWait\":\"datatkqofr\",\"maxConcurrentConnections\":\"dataccqjenzloxazy\",\"disableMetricsCollection\":\"datajbvqaey\",\"\":{\"wliitaieledmiup\":\"databdwflx\"}}") - .toObject(HubspotSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotSource model = new HubspotSource().withSourceRetryCount("dataxsyufexivhjyxa") - .withSourceRetryWait("datatkqofr") - .withMaxConcurrentConnections("dataccqjenzloxazy") - .withDisableMetricsCollection("datajbvqaey") - .withQueryTimeout("dataluchbfrta") - .withAdditionalColumns("datasddy") - .withQuery("datakniqoqyrcpsjea"); - model = BinaryData.fromObject(model).toObject(HubspotSource.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 a6341eb2ac7c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"abzr\",\"typeProperties\":{\"expression\":{\"value\":\"uhjqdwlxabtlms\"},\"ifTrueActivities\":[{\"type\":\"dai\",\"name\":\"fqnxjkopivsz\",\"description\":\"bptrmhabzjem\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"axnbqsjznc\",\"dependencyConditions\":[\"Failed\"],\"\":{\"xojimussvursl\":\"datagiv\",\"ksoqrhwl\":\"datadxnxgvalvkdaq\"}},{\"activity\":\"nwhtwsxliwpzu\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"ubh\":\"datarvtrwswbm\",\"ivusehyvqxjbqfcl\":\"databtthzfgpzy\",\"xdlzxua\":\"datajecajtuo\"}},{\"activity\":\"bavpkrxnrrbck\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"bdhhqsfhtlvjaxd\":\"datasgxeijnvsjg\"}}],\"userProperties\":[{\"name\":\"icikzmvdddfjmirb\",\"value\":\"datafcqls\"}],\"\":{\"rymrfpqyxlncwagi\":\"datapfspfd\",\"uerhzyl\":\"dataqhzotkowi\",\"emsl\":\"datawymrmuioepi\",\"vryszqzve\":\"dataz\"}},{\"type\":\"newmpwjcgr\",\"name\":\"olbqcftrywd\",\"description\":\"skdl\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"nxvmcxljlpyhdx\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"qbqgfq\":\"dataewt\",\"xwevdjmxvvtuky\":\"datavm\"}},{\"activity\":\"ubjnmoidinbfb\",\"dependencyConditions\":[\"Failed\",\"Succeeded\"],\"\":{\"ghysedqrb\":\"datacgmfklqswwdbs\",\"qrwngfyjfquzxmtm\":\"datavo\"}},{\"activity\":\"yibycoupksa\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Failed\",\"Failed\"],\"\":{\"gyjoklngjsglzoir\":\"dataxvffrncswv\",\"pbgak\":\"datasqdnasj\",\"rgye\":\"dataszzbdt\",\"qiot\":\"datavqslikeuq\"}},{\"activity\":\"fcbgffd\",\"dependencyConditions\":[\"Completed\"],\"\":{\"qawtfyzqop\":\"datat\",\"ea\":\"datalixhapvwacwrc\",\"ble\":\"dataucnknzncoxeop\"}}],\"userProperties\":[{\"name\":\"rsyxeqwgaeic\",\"value\":\"dataovrcdcidcxkyw\"},{\"name\":\"p\",\"value\":\"datatssqbclaeci\"},{\"name\":\"zwvttkhaxqyinfdm\",\"value\":\"datajq\"},{\"name\":\"khq\",\"value\":\"dataxpiczaqgevsnn\"}],\"\":{\"skffqqaobbq\":\"dataufezwgwmdv\",\"adffdr\":\"datadkjusqhr\",\"rvn\":\"dataykhtsycct\"}},{\"type\":\"iembc\",\"name\":\"tzmldw\",\"description\":\"xjkxvzhacorqbmkf\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"qgm\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"dnu\":\"datanv\",\"acxldhoqcdpwx\":\"datasaskgiyrilbi\",\"znpxaxcshtlqhi\":\"dataccvtb\",\"obhnuziaz\":\"datamfzdlhp\"}}],\"userProperties\":[{\"name\":\"wmjaevwidnjpfku\",\"value\":\"datahwdirt\"},{\"name\":\"y\",\"value\":\"dataaqya\"},{\"name\":\"dykxgcfhv\",\"value\":\"dataynsyhz\"},{\"name\":\"suoqfbycra\",\"value\":\"datayxrt\"}],\"\":{\"tstlgdvvpxhdefy\":\"datajhjbfoemm\",\"jyqhcowouoih\":\"dataitbjmva\",\"mpzb\":\"datatnyvigjbxhjpsgpr\"}}],\"ifFalseActivities\":[{\"type\":\"yflryhvphkdci\",\"name\":\"idz\",\"description\":\"fwlxxwpyzbgstml\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"azyni\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"m\":\"datawcutohm\",\"iimennxvqjakqd\":\"datamdouich\",\"zuuguze\":\"datannef\"}},{\"activity\":\"fggheqllrp\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"hohqe\":\"datakrvmvdqhag\",\"xeubngwidgxypdo\":\"datatlsipedgtupkm\",\"lt\":\"datalphmcmfvyhmivy\"}},{\"activity\":\"akmtvoprg\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"fxkud\":\"dataorxibw\",\"enmuevq\":\"datacwfo\",\"gzdionlgnes\":\"datassclgolbpw\"}},{\"activity\":\"k\",\"dependencyConditions\":[\"Completed\"],\"\":{\"hlbxrqbi\":\"datatzskvpqqxnd\",\"zkehfkpoczxm\":\"datajhaafvxxi\",\"qpq\":\"databkrwihbyufmuin\"}}],\"userProperties\":[{\"name\":\"xdihuxz\",\"value\":\"datagoto\"}],\"\":{\"d\":\"dataduirjqxknaeuhxnp\",\"dvnaxtbnjmj\":\"datajaeqaolfyqjgob\",\"bdfmhzgtieybimit\":\"datagrwvl\"}}]},\"name\":\"reftwhiivxytvje\",\"description\":\"kuzlfnbz\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"kwrv\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"g\":\"dataqy\",\"wxmqyhtlnnpftay\":\"datavpxsdtnxg\",\"gxamhmqexyoy\":\"datao\",\"pvvelcrwhrpxs\":\"datacwzkcreuf\"}},{\"activity\":\"ybalsmiar\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Succeeded\",\"Failed\"],\"\":{\"obyyv\":\"datapv\"}},{\"activity\":\"jelsjh\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"ujjdoelawdbkez\":\"datahkhiycddonqi\"}},{\"activity\":\"kotvoszgcy\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Succeeded\"],\"\":{\"j\":\"dataqwvvferlqhfzzqqs\",\"skjqejkm\":\"datashwxy\",\"utcyjjbdgfrl\":\"datatwftlhsmtkxzio\",\"egqvusffzvpwzvh\":\"datah\"}}],\"userProperties\":[{\"name\":\"rvmpiw\",\"value\":\"dataoorrnssthninza\"},{\"name\":\"dmnc\",\"value\":\"dataltrxwab\"},{\"name\":\"d\",\"value\":\"dataclqgteoepdpx\"}],\"\":{\"qikeamymalvoy\":\"dataqwfpqixomonq\"}}") - .toObject(IfConditionActivity.class); - Assertions.assertEquals("reftwhiivxytvje", model.name()); - Assertions.assertEquals("kuzlfnbz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("kwrv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rvmpiw", model.userProperties().get(0).name()); - Assertions.assertEquals("uhjqdwlxabtlms", model.expression().value()); - Assertions.assertEquals("fqnxjkopivsz", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("bptrmhabzjem", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("axnbqsjznc", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("icikzmvdddfjmirb", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("idz", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("fwlxxwpyzbgstml", 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("azyni", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xdihuxz", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IfConditionActivity model - = new IfConditionActivity().withName("reftwhiivxytvje") - .withDescription("kuzlfnbz") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("kwrv") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ybalsmiar") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jelsjh") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kotvoszgcy") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("rvmpiw").withValue("dataoorrnssthninza"), - new UserProperty().withName("dmnc").withValue("dataltrxwab"), new UserProperty() - .withName("d") - .withValue("dataclqgteoepdpx"))) - .withExpression(new Expression().withValue("uhjqdwlxabtlms")) - .withIfTrueActivities(Arrays.asList( - new Activity().withName("fqnxjkopivsz") - .withDescription("bptrmhabzjem") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("axnbqsjznc") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nwhtwsxliwpzu") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("bavpkrxnrrbck") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("icikzmvdddfjmirb").withValue("datafcqls"))) - .withAdditionalProperties(mapOf("type", "dai")), - new Activity().withName("olbqcftrywd") - .withDescription("skdl") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("nxvmcxljlpyhdx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ubjnmoidinbfb") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yibycoupksa") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fcbgffd") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("rsyxeqwgaeic").withValue("dataovrcdcidcxkyw"), - new UserProperty().withName("p").withValue("datatssqbclaeci"), - new UserProperty().withName("zwvttkhaxqyinfdm").withValue("datajq"), - new UserProperty().withName("khq").withValue("dataxpiczaqgevsnn"))) - .withAdditionalProperties(mapOf("type", "newmpwjcgr")), - new Activity().withName("tzmldw") - .withDescription("xjkxvzhacorqbmkf") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("qgm") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("wmjaevwidnjpfku").withValue("datahwdirt"), - new UserProperty().withName("y").withValue("dataaqya"), - new UserProperty().withName("dykxgcfhv").withValue("dataynsyhz"), - new UserProperty().withName("suoqfbycra").withValue("datayxrt"))) - .withAdditionalProperties(mapOf("type", "iembc")))) - .withIfFalseActivities(Arrays.asList(new Activity().withName("idz") - .withDescription("fwlxxwpyzbgstml") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("azyni") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fggheqllrp") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("akmtvoprg") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("k") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("xdihuxz").withValue("datagoto"))) - .withAdditionalProperties(mapOf("type", "yflryhvphkdci")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivity.class); - Assertions.assertEquals("reftwhiivxytvje", model.name()); - Assertions.assertEquals("kuzlfnbz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("kwrv", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rvmpiw", model.userProperties().get(0).name()); - Assertions.assertEquals("uhjqdwlxabtlms", model.expression().value()); - Assertions.assertEquals("fqnxjkopivsz", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("bptrmhabzjem", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("axnbqsjznc", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("icikzmvdddfjmirb", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("idz", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("fwlxxwpyzbgstml", 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("azyni", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xdihuxz", 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 8f942bd70270..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"qgelcccccc\"},\"ifTrueActivities\":[{\"type\":\"jzqve\",\"name\":\"mzpo\",\"description\":\"h\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"khvxtxuihy\",\"dependencyConditions\":[\"Failed\"],\"\":{\"ydtllpwzayau\":\"dataycpzqjpyquy\",\"kfplhrenedsnu\":\"dataell\",\"skn\":\"datair\"}},{\"activity\":\"yfvptoktrjwnq\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"ngkkf\":\"datafngktmzooszv\",\"iqtyeqeasia\":\"dataebwqz\",\"idbbqvip\":\"datascjhay\"}}],\"userProperties\":[{\"name\":\"wbxp\",\"value\":\"datamndqmz\"},{\"name\":\"gqedonozwy\",\"value\":\"datahvqkeuiyme\"}],\"\":{\"gwsnqnxrrjihgig\":\"datankntldddknpvus\",\"nouwxkeqlbmwoya\":\"dataozksood\",\"udfixhxl\":\"dataxnq\",\"xvmenlqwxsk\":\"datavzqhtgtadtootkg\"}},{\"type\":\"zzp\",\"name\":\"twgtmpytomft\",\"description\":\"hvbw\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"a\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Failed\"],\"\":{\"srdaoixgq\":\"dataxfzvllihw\",\"qhdgix\":\"datadsjnleko\",\"kjcdjswxek\":\"datanchyoimt\",\"clg\":\"datahvccxuntghwcb\"}},{\"activity\":\"yfcbcakcq\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\"],\"\":{\"gvcm\":\"dataumlnfxboqvgwaiyw\"}},{\"activity\":\"i\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Failed\"],\"\":{\"zbnqmxirspj\":\"dataxz\",\"zisdnbourw\":\"dataakrbew\"}},{\"activity\":\"g\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"fnxtynus\":\"dataxgmzyqftlafeco\",\"nztwnylk\":\"dataza\",\"uzw\":\"databwxcjf\"}}],\"userProperties\":[{\"name\":\"guqzlmh\",\"value\":\"datauqlsd\"}],\"\":{\"cpvych\":\"datajxlzyyylyxujqp\",\"jg\":\"databshogjaubplf\",\"ujtnnd\":\"datafrwym\",\"yc\":\"datas\"}}],\"ifFalseActivities\":[{\"type\":\"yt\",\"name\":\"qbtijybpfwgclppw\",\"description\":\"xh\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"faqgzakisipjgvm\",\"dependencyConditions\":[\"Succeeded\",\"Completed\"],\"\":{\"ubqfbwffgconiyd\":\"datavuzbxuubwjopkl\"}}],\"userProperties\":[{\"name\":\"sgyytnmhlankos\",\"value\":\"datafvmfyxle\"},{\"name\":\"khkiaybdivx\",\"value\":\"dataxwdfm\"},{\"name\":\"zndlgq\",\"value\":\"datauqjczcorct\"}],\"\":{\"hmsdod\":\"dataxaafcv\",\"lfo\":\"datarzsninkhbm\",\"jphzxmcpsepkrdge\":\"datayt\"}},{\"type\":\"zxkpxrfulqhhm\",\"name\":\"dbbpjdgn\",\"description\":\"elxkzmfmgboyliop\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"yvmpfebsummy\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\",\"Completed\"],\"\":{\"rskosbzvclzutvqk\":\"datasdupmrickuhgbrv\",\"mv\":\"datai\"}},{\"activity\":\"fskqwjlohkaffyny\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"xkucxpq\":\"datatyi\",\"egiufjnjgupj\":\"dataaxkayv\",\"wbdmunuv\":\"datappbalcft\"}},{\"activity\":\"wm\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"yza\":\"datapzqrb\",\"qzmwxoogi\":\"datawrufiouafxp\",\"l\":\"datagnplzbtvpuigtnjy\",\"extlyyvebpykzhr\":\"datavvitxoitnqmiwlri\"}},{\"activity\":\"usbtwpvmzgnxepa\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\"],\"\":{\"nbttefbbr\":\"datahkyluqxndmtasx\"}}],\"userProperties\":[{\"name\":\"fkvshozjkwj\",\"value\":\"datavdohocsgktfzs\"}],\"\":{\"cxevitvbzyhexlh\":\"datacbe\"}},{\"type\":\"piedcrtv\",\"name\":\"cbzpynedts\",\"description\":\"tdmgwxowaawehxs\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"cuvj\",\"dependencyConditions\":[\"Completed\"],\"\":{\"fuuu\":\"dataswgkbzrmeftg\",\"ykvgfh\":\"dataagsyvzghnqed\",\"ims\":\"dataihotzygqdc\",\"ynunrajtbumaid\":\"datarytkmfhbpcr\"}},{\"activity\":\"sn\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Succeeded\",\"Skipped\"],\"\":{\"cgtlttnjpgxuxkce\":\"datamvgttj\"}},{\"activity\":\"xkdqqombiaoaqwwo\",\"dependencyConditions\":[\"Completed\"],\"\":{\"sqtj\":\"datafrau\",\"zqqtipkrea\":\"datatqbhrdp\",\"nwaymrlvhl\":\"dataakkgqfkigukfximw\",\"hszgaub\":\"dataeriqendtyccn\"}},{\"activity\":\"bizjbwufjogswf\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"fgx\":\"dataypwrvnveetayd\",\"awfzyvxk\":\"datadobsxshjsrau\"}}],\"userProperties\":[{\"name\":\"ofpsr\",\"value\":\"dataoujkcpyerfsngt\"},{\"name\":\"ijbolksehtyx\",\"value\":\"datagsurfnktxht\"},{\"name\":\"rzdqqo\",\"value\":\"datadralt\"},{\"name\":\"cttjibognhuqdkq\",\"value\":\"dataffcvahknv\"}],\"\":{\"bijzoixutizl\":\"datapwobhkq\"}}]}") - .toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("qgelcccccc", model.expression().value()); - Assertions.assertEquals("mzpo", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("h", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("khvxtxuihy", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wbxp", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qbtijybpfwgclppw", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("xh", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("faqgzakisipjgvm", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sgyytnmhlankos", 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("qgelcccccc")) - .withIfTrueActivities(Arrays.asList( - new Activity().withName("mzpo") - .withDescription("h") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("khvxtxuihy") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yfvptoktrjwnq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("wbxp").withValue("datamndqmz"), - new UserProperty().withName("gqedonozwy").withValue("datahvqkeuiyme"))) - .withAdditionalProperties(mapOf("type", "jzqve")), - new Activity().withName("twgtmpytomft") - .withDescription("hvbw") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("a") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yfcbcakcq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("i") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("g") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("guqzlmh").withValue("datauqlsd"))) - .withAdditionalProperties(mapOf("type", "zzp")))) - .withIfFalseActivities(Arrays.asList( - new Activity().withName("qbtijybpfwgclppw") - .withDescription("xh") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("faqgzakisipjgvm") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("sgyytnmhlankos").withValue("datafvmfyxle"), - new UserProperty().withName("khkiaybdivx") - .withValue("dataxwdfm"), - new UserProperty().withName("zndlgq").withValue("datauqjczcorct"))) - .withAdditionalProperties(mapOf("type", "yt")), - new Activity().withName("dbbpjdgn") - .withDescription("elxkzmfmgboyliop") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("yvmpfebsummy") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fskqwjlohkaffyny") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wm") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("usbtwpvmzgnxepa") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("fkvshozjkwj").withValue("datavdohocsgktfzs"))) - .withAdditionalProperties(mapOf("type", "zxkpxrfulqhhm")), - new Activity().withName("cbzpynedts") - .withDescription("tdmgwxowaawehxs") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("cuvj") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("sn") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xkdqqombiaoaqwwo") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bizjbwufjogswf") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ofpsr").withValue("dataoujkcpyerfsngt"), - new UserProperty().withName("ijbolksehtyx").withValue("datagsurfnktxht"), - new UserProperty().withName("rzdqqo").withValue("datadralt"), - new UserProperty().withName("cttjibognhuqdkq").withValue("dataffcvahknv"))) - .withAdditionalProperties(mapOf("type", "piedcrtv")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("qgelcccccc", model.expression().value()); - Assertions.assertEquals("mzpo", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("h", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("khvxtxuihy", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wbxp", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qbtijybpfwgclppw", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("xh", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("faqgzakisipjgvm", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sgyytnmhlankos", 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 6f21ba2a7949..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.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.ImpalaDatasetTypeProperties; - -public final class ImpalaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaDatasetTypeProperties model = BinaryData - .fromString( - "{\"tableName\":\"datatqmlzuwtbdzqa\",\"table\":\"datakmpebfhlgeehb\",\"schema\":\"datagplnl\"}") - .toObject(ImpalaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaDatasetTypeProperties model = new ImpalaDatasetTypeProperties().withTableName("datatqmlzuwtbdzqa") - .withTable("datakmpebfhlgeehb") - .withSchema("datagplnl"); - 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 1f025e284182..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.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.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\":\"zbyqhaath\",\"typeProperties\":{\"tableName\":\"datapgcryvidbzdylbvj\",\"table\":\"datagngwn\",\"schema\":\"dataftecgprzsqmpdqc\"},\"description\":\"yxuuc\",\"structure\":\"datausyrux\",\"schema\":\"datahhlhrvmgs\",\"linkedServiceName\":{\"referenceName\":\"pgmncrvtp\",\"parameters\":{\"cmpu\":\"dataromppzsauqmeuhpl\",\"e\":\"dataiugo\",\"rncfu\":\"datatlyspjymwicc\",\"iwtwfgoc\":\"datalakgixhqjqhgqwbb\"}},\"parameters\":{\"eohl\":{\"type\":\"Int\",\"defaultValue\":\"datamnnzugabkyydsy\"},\"nvbftswcdopnsep\":{\"type\":\"Object\",\"defaultValue\":\"datanv\"},\"af\":{\"type\":\"Object\",\"defaultValue\":\"datatic\"}},\"annotations\":[\"datawkopxdk\",\"datatwoqhgpp\"],\"folder\":{\"name\":\"ik\"},\"\":{\"zjnnuwwv\":\"dataxxfnduv\",\"bkj\":\"datazrfxajtbcqj\",\"i\":\"dataurxrjwyz\"}}") - .toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("yxuuc", model.description()); - Assertions.assertEquals("pgmncrvtp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("eohl").type()); - Assertions.assertEquals("ik", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaObjectDataset model = new ImpalaObjectDataset().withDescription("yxuuc") - .withStructure("datausyrux") - .withSchema("datahhlhrvmgs") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("pgmncrvtp") - .withParameters(mapOf("cmpu", "dataromppzsauqmeuhpl", "e", "dataiugo", "rncfu", "datatlyspjymwicc", - "iwtwfgoc", "datalakgixhqjqhgqwbb"))) - .withParameters(mapOf("eohl", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datamnnzugabkyydsy"), - "nvbftswcdopnsep", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanv"), "af", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datatic"))) - .withAnnotations(Arrays.asList("datawkopxdk", "datatwoqhgpp")) - .withFolder(new DatasetFolder().withName("ik")) - .withTableName("datapgcryvidbzdylbvj") - .withTable("datagngwn") - .withSchemaTypePropertiesSchema("dataftecgprzsqmpdqc"); - model = BinaryData.fromObject(model).toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("yxuuc", model.description()); - Assertions.assertEquals("pgmncrvtp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("eohl").type()); - Assertions.assertEquals("ik", 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 9e1fd094e0fe..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\":\"bedvvmrtnmgabfz\",\"query\":\"datajlmstakgrebecxuu\",\"queryTimeout\":\"datawrv\",\"additionalColumns\":\"datajxkttx\",\"sourceRetryCount\":\"dataiihylzwzhlbpmp\",\"sourceRetryWait\":\"datath\",\"maxConcurrentConnections\":\"datanbnamtvooa\",\"disableMetricsCollection\":\"dataefx\",\"\":{\"ywi\":\"datavjctytytyrvtuxv\",\"kfqznvahpxdg\":\"datammmgbynvoytdt\",\"xfwwvmygcfaztoi\":\"datahowxcptx\",\"ytv\":\"dataszjrihcamg\"}}") - .toObject(ImpalaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaSource model = new ImpalaSource().withSourceRetryCount("dataiihylzwzhlbpmp") - .withSourceRetryWait("datath") - .withMaxConcurrentConnections("datanbnamtvooa") - .withDisableMetricsCollection("dataefx") - .withQueryTimeout("datawrv") - .withAdditionalColumns("datajxkttx") - .withQuery("datajlmstakgrebecxuu"); - 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 2b9054b35665..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\":\"lhjgckkbna\",\"\":{\"orosahgcchzuap\":\"datayehmwzgfankeo\"}}") - .toObject(ImportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImportSettings model = new ImportSettings().withAdditionalProperties(mapOf("type", "lhjgckkbna")); - 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 4843f842e1a1..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\":\"seehvmtyubvdou\",\"preCopyScript\":\"datazydwexo\",\"writeBatchSize\":\"datakhipaodohb\",\"writeBatchTimeout\":\"databbweaajgokpnb\",\"sinkRetryCount\":\"dataskhjjxesmbu\",\"sinkRetryWait\":\"datacshyhgahmte\",\"maxConcurrentConnections\":\"datafeoij\",\"disableMetricsCollection\":\"datapn\",\"\":{\"nejnjpwkwxnmqmyt\":\"datawgtrcccyiueh\",\"tyfnmwmgh\":\"dataqrj\",\"tnlbsv\":\"dataeedqakhccwj\",\"zafpvwrbqbyxu\":\"datasjvd\"}}") - .toObject(InformixSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSink model = new InformixSink().withWriteBatchSize("datakhipaodohb") - .withWriteBatchTimeout("databbweaajgokpnb") - .withSinkRetryCount("dataskhjjxesmbu") - .withSinkRetryWait("datacshyhgahmte") - .withMaxConcurrentConnections("datafeoij") - .withDisableMetricsCollection("datapn") - .withPreCopyScript("datazydwexo"); - 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 663493be918c..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\":\"mtcljopivtwxvcfc\",\"query\":\"dataohuabduf\",\"queryTimeout\":\"datapuaptpuwek\",\"additionalColumns\":\"datal\",\"sourceRetryCount\":\"datakkcjjnq\",\"sourceRetryWait\":\"datajoayaj\",\"maxConcurrentConnections\":\"datahcxjmapgfbzbxeqz\",\"disableMetricsCollection\":\"datakfrhfafx\",\"\":{\"ulvue\":\"dataucmuax\",\"geqpa\":\"datasrxqscdbbwejrmk\",\"neteehndfpflf\":\"datallfscosfmeot\"}}") - .toObject(InformixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSource model = new InformixSource().withSourceRetryCount("datakkcjjnq") - .withSourceRetryWait("datajoayaj") - .withMaxConcurrentConnections("datahcxjmapgfbzbxeqz") - .withDisableMetricsCollection("datakfrhfafx") - .withQueryTimeout("datapuaptpuwek") - .withAdditionalColumns("datal") - .withQuery("dataohuabduf"); - 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 d7417b09a296..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.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.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\":\"owo\",\"typeProperties\":{\"tableName\":\"dataiqzzdckhsqdrrjsu\"},\"description\":\"xrxmyokohlsfjfo\",\"structure\":\"datajpz\",\"schema\":\"dataahuvkqxqkvadmjh\",\"linkedServiceName\":{\"referenceName\":\"mud\",\"parameters\":{\"rmclyqwwu\":\"dataajzdebhs\",\"svkb\":\"datayqkaaptb\",\"bloccu\":\"databptw\",\"uybutcdzjfjt\":\"dataplxzbnsshvqnpszb\"}},\"parameters\":{\"jgpqfk\":{\"type\":\"Array\",\"defaultValue\":\"datadyuxurxrltqmm\"},\"czscymqfvxgw\":{\"type\":\"Object\",\"defaultValue\":\"dataei\"}},\"annotations\":[\"datay\",\"datamzapdokez\",\"datape\",\"dataknfzqnzbflbqmhb\"],\"folder\":{\"name\":\"xvwedhag\"},\"\":{\"zzdcrolrz\":\"dataseseayuflms\"}}") - .toObject(InformixTableDataset.class); - Assertions.assertEquals("xrxmyokohlsfjfo", model.description()); - Assertions.assertEquals("mud", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jgpqfk").type()); - Assertions.assertEquals("xvwedhag", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDataset model = new InformixTableDataset().withDescription("xrxmyokohlsfjfo") - .withStructure("datajpz") - .withSchema("dataahuvkqxqkvadmjh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mud") - .withParameters(mapOf("rmclyqwwu", "dataajzdebhs", "svkb", "datayqkaaptb", "bloccu", "databptw", - "uybutcdzjfjt", "dataplxzbnsshvqnpszb"))) - .withParameters(mapOf("jgpqfk", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datadyuxurxrltqmm"), - "czscymqfvxgw", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataei"))) - .withAnnotations(Arrays.asList("datay", "datamzapdokez", "datape", "dataknfzqnzbflbqmhb")) - .withFolder(new DatasetFolder().withName("xvwedhag")) - .withTableName("dataiqzzdckhsqdrrjsu"); - model = BinaryData.fromObject(model).toObject(InformixTableDataset.class); - Assertions.assertEquals("xrxmyokohlsfjfo", model.description()); - Assertions.assertEquals("mud", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jgpqfk").type()); - Assertions.assertEquals("xvwedhag", 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 1eb4247c2e4f..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\":\"databo\"}").toObject(InformixTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDatasetTypeProperties model = new InformixTableDatasetTypeProperties().withTableName("databo"); - 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 82b99caf9f65..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.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.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\":\"ha\",\"nodeSize\":\"ytuecmgu\",\"numberOfNodes\":2137117317,\"maxParallelExecutionsPerNode\":1491172911,\"dataFlowProperties\":{\"computeType\":\"MemoryOptimized\",\"coreCount\":613256770,\"timeToLive\":776631813,\"cleanup\":true,\"customProperties\":[{\"name\":\"qzq\",\"value\":\"seujcmtcid\"},{\"name\":\"b\",\"value\":\"xhcxct\"},{\"name\":\"xoef\",\"value\":\"orylx\"},{\"name\":\"nwkjzvq\",\"value\":\"ymtupyjtrxxzwdsn\"}],\"\":{\"sdlul\":\"dataefnakdmtpj\",\"ttl\":\"datatjxhxwt\",\"lynvpdvctqdapyds\":\"datavukvupuplug\",\"pj\":\"datap\"}},\"vNetProperties\":{\"vNetId\":\"lbnru\",\"subnet\":\"ehy\",\"publicIPs\":[\"mjrgfbmp\"],\"subnetId\":\"wkbcstzuw\",\"\":{\"maxdwxrwq\":\"datae\"}},\"copyComputeScaleProperties\":{\"dataIntegrationUnit\":315112243,\"timeToLive\":768261244,\"\":{\"pghhuluqyfvgpq\":\"datakxyrlkgjhomywl\"}},\"pipelineExternalComputeScaleProperties\":{\"timeToLive\":595808141,\"numberOfPipelineNodes\":266503485,\"numberOfExternalNodes\":821047302,\"\":{\"mc\":\"datambuihtqfvyq\",\"joxsehj\":\"datauguvlieegjnqwh\",\"xdl\":\"datacgqcrwaucftotedh\",\"axrhljwqu\":\"datauhffjjqvjyqmpmsk\"}},\"\":{\"jvwfijfdj\":\"datapypboqlefxfpwm\",\"lbqntdde\":\"datarvsvhmsmrihddnb\"}}") - .toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("ha", model.location()); - Assertions.assertEquals("ytuecmgu", model.nodeSize()); - Assertions.assertEquals(2137117317, model.numberOfNodes()); - Assertions.assertEquals(1491172911, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.dataFlowProperties().computeType()); - Assertions.assertEquals(613256770, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(776631813, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("qzq", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("seujcmtcid", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("lbnru", model.vNetProperties().vNetId()); - Assertions.assertEquals("ehy", model.vNetProperties().subnet()); - Assertions.assertEquals("mjrgfbmp", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("wkbcstzuw", model.vNetProperties().subnetId()); - Assertions.assertEquals(315112243, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(768261244, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(595808141, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(266503485, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(821047302, model.pipelineExternalComputeScaleProperties().numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeComputeProperties model = new IntegrationRuntimeComputeProperties().withLocation("ha") - .withNodeSize("ytuecmgu") - .withNumberOfNodes(2137117317) - .withMaxParallelExecutionsPerNode(1491172911) - .withDataFlowProperties(new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.MEMORY_OPTIMIZED) - .withCoreCount(613256770) - .withTimeToLive(776631813) - .withCleanup(true) - .withCustomProperties(Arrays.asList( - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("qzq") - .withValue("seujcmtcid"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("b").withValue("xhcxct"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("xoef").withValue("orylx"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("nwkjzvq") - .withValue("ymtupyjtrxxzwdsn"))) - .withAdditionalProperties(mapOf())) - .withVNetProperties(new IntegrationRuntimeVNetProperties().withVNetId("lbnru") - .withSubnet("ehy") - .withPublicIPs(Arrays.asList("mjrgfbmp")) - .withSubnetId("wkbcstzuw") - .withAdditionalProperties(mapOf())) - .withCopyComputeScaleProperties(new CopyComputeScaleProperties().withDataIntegrationUnit(315112243) - .withTimeToLive(768261244) - .withAdditionalProperties(mapOf())) - .withPipelineExternalComputeScaleProperties( - new PipelineExternalComputeScaleProperties().withTimeToLive(595808141) - .withNumberOfPipelineNodes(266503485) - .withNumberOfExternalNodes(821047302) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("ha", model.location()); - Assertions.assertEquals("ytuecmgu", model.nodeSize()); - Assertions.assertEquals(2137117317, model.numberOfNodes()); - Assertions.assertEquals(1491172911, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.dataFlowProperties().computeType()); - Assertions.assertEquals(613256770, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(776631813, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("qzq", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("seujcmtcid", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("lbnru", model.vNetProperties().vNetId()); - Assertions.assertEquals("ehy", model.vNetProperties().subnet()); - Assertions.assertEquals("mjrgfbmp", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("wkbcstzuw", model.vNetProperties().subnetId()); - Assertions.assertEquals(315112243, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(768261244, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(595808141, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(266503485, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(821047302, 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 dac59ca9718c..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\":\"vbploazcc\"}") - .toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("vbploazcc", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeCustomerVirtualNetwork model - = new IntegrationRuntimeCustomerVirtualNetwork().withSubnetId("vbploazcc"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("vbploazcc", 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 1b2f53e730bc..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\":\"mckgpxdxgcq\",\"value\":\"uv\"}") - .toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("mckgpxdxgcq", model.name()); - Assertions.assertEquals("uv", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem model - = new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("mckgpxdxgcq").withValue("uv"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("mckgpxdxgcq", model.name()); - Assertions.assertEquals("uv", 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 82c19504a0aa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.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.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\":\"General\",\"coreCount\":1079304457,\"timeToLive\":776293565,\"cleanup\":true,\"customProperties\":[{\"name\":\"mzsf\",\"value\":\"yyysqnwnl\"},{\"name\":\"zfjd\",\"value\":\"fthsydphdb\"},{\"name\":\"etfgkzqbvh\",\"value\":\"ulymk\"},{\"name\":\"s\",\"value\":\"h\"}],\"\":{\"biubzg\":\"datahaenpftkgmbmv\",\"rbusnaq\":\"datapsotbame\",\"erlurgipvnbxle\":\"datavruuhyncppmmwh\"}}") - .toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.computeType()); - Assertions.assertEquals(1079304457, model.coreCount()); - Assertions.assertEquals(776293565, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); - Assertions.assertEquals("mzsf", model.customProperties().get(0).name()); - Assertions.assertEquals("yyysqnwnl", model.customProperties().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowProperties model = new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(1079304457) - .withTimeToLive(776293565) - .withCleanup(true) - .withCustomProperties(Arrays.asList( - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("mzsf").withValue("yyysqnwnl"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("zfjd").withValue("fthsydphdb"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("etfgkzqbvh") - .withValue("ulymk"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("s").withValue("h"))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.computeType()); - Assertions.assertEquals(1079304457, model.coreCount()); - Assertions.assertEquals(776293565, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); - Assertions.assertEquals("mzsf", model.customProperties().get(0).name()); - Assertions.assertEquals("yyysqnwnl", 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 6de773b7a3e7..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\":\"IntegrationRuntimeReference\",\"referenceName\":\"iyapifcjl\"},\"stagingLinkedService\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"zowcgrzafqso\"},\"path\":\"wqx\"}") - .toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.connectVia().type()); - Assertions.assertEquals("iyapifcjl", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("zowcgrzafqso", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("wqx", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = new IntegrationRuntimeDataProxyProperties() - .withConnectVia( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("iyapifcjl")) - .withStagingLinkedService( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("zowcgrzafqso")) - .withPath("wqx"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.connectVia().type()); - Assertions.assertEquals("iyapifcjl", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("zowcgrzafqso", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("wqx", 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 4e72079f0ea4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.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.IntegrationRuntimeDebugResource; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntime; -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\":\"Managed\",\"description\":\"qwztcmwqkc\",\"\":{\"xfdeqvhpsyl\":\"datawaxfewzjkj\",\"bffmbmxz\":\"dataksh\",\"jx\":\"datargywwp\"}},\"name\":\"ptfujgicgaaoept\"}") - .toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("ptfujgicgaaoept", model.name()); - Assertions.assertEquals("qwztcmwqkc", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDebugResource model = new IntegrationRuntimeDebugResource().withName("ptfujgicgaaoept") - .withProperties(new ManagedIntegrationRuntime().withDescription("qwztcmwqkc")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("ptfujgicgaaoept", model.name()); - Assertions.assertEquals("qwztcmwqkc", model.properties().description()); - } -} 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 a41d764392d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.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.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeListResponse; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; -import java.util.Arrays; -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\":\"SelfHosted\",\"description\":\"oxgvclt\",\"\":{\"zz\":\"datancghkje\",\"mxnehmp\":\"databijhtxfvgxbf\",\"godebfqkkrbmpu\":\"dataec\"}},\"name\":\"riwflzlfb\",\"type\":\"puz\",\"etag\":\"ispnqzahmgkbrp\",\"id\":\"dhibnuq\"},{\"properties\":{\"type\":\"Managed\",\"description\":\"kadrgvt\",\"\":{\"uynhijg\":\"datan\",\"iarbutrcvpna\":\"datamebf\"}},\"name\":\"mhjrunmpxttdbhr\",\"type\":\"l\",\"etag\":\"kx\",\"id\":\"skpbhenbtkcxywn\"}],\"nextLink\":\"nrs\"}") - .toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("dhibnuq", model.value().get(0).id()); - Assertions.assertEquals("oxgvclt", model.value().get(0).properties().description()); - Assertions.assertEquals("nrs", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeListResponse model - = new IntegrationRuntimeListResponse() - .withValue(Arrays.asList( - new IntegrationRuntimeResourceInner().withId("dhibnuq") - .withProperties(new SelfHostedIntegrationRuntime().withDescription("oxgvclt")), - new IntegrationRuntimeResourceInner().withId("skpbhenbtkcxywn") - .withProperties(new ManagedIntegrationRuntime().withDescription("kadrgvt")))) - .withNextLink("nrs"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("dhibnuq", model.value().get(0).id()); - Assertions.assertEquals("oxgvclt", model.value().get(0).properties().description()); - Assertions.assertEquals("nrs", model.nextLink()); - } -} 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 fe89917e029a..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\":\"xsbkyvpyca\",\"nodes\":[{\"nodeName\":\"p\",\"availableMemoryInMB\":1414672968,\"cpuUtilization\":172271307,\"concurrentJobsLimit\":1834539320,\"concurrentJobsRunning\":2051758335,\"maxConcurrentJobs\":1514524475,\"sentBytes\":30.272806,\"receivedBytes\":79.5002,\"\":{\"srtslhspkdeem\":\"dataseyvj\",\"ahvljuaha\":\"dataofmxagkvtmelmqkr\"}}]}") - .toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("xsbkyvpyca", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = new IntegrationRuntimeMonitoringDataInner().withName("xsbkyvpyca") - .withNodes(Arrays.asList(new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "p", "cpuUtilization", 172271307, "receivedBytes", 79.5002f, - "concurrentJobsLimit", 1834539320, "concurrentJobsRunning", 2051758335, "maxConcurrentJobs", - 1514524475, "availableMemoryInMB", 1414672968, "sentBytes", 30.272806f)))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("xsbkyvpyca", 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 64938495fd3c..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\":\"mv\"}").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 8b910bb918ad..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\":\"hcdhmdual\",\"availableMemoryInMB\":115440556,\"cpuUtilization\":758421621,\"concurrentJobsLimit\":1595213350,\"concurrentJobsRunning\":1911566048,\"maxConcurrentJobs\":294636913,\"sentBytes\":37.394695,\"receivedBytes\":4.791844,\"\":{\"zlfmisgwbnbbeld\":\"dataxpvgo\",\"ali\":\"datawkz\"}}") - .toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "hcdhmdual", "cpuUtilization", 758421621, "receivedBytes", - 4.791844f, "concurrentJobsLimit", 1595213350, "concurrentJobsRunning", 1911566048, "maxConcurrentJobs", - 294636913, "availableMemoryInMB", 115440556, "sentBytes", 37.394695f)); - 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 cc1491dfa23b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.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 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("adxs", "otozxadk", "qaptvmbybs", "vzevpypkf", 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 fe351562fe82..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\":\"vfl\"}"; - - 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("peyyzmxuelplbbs", "inldmflngjtltxfo", "yqqleylvyhxlp", "ock", - 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 46041893aabf..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\":\"nwafjibaq\",\"machineName\":\"tdije\",\"hostServiceUri\":\"xrrmnoxjwl\",\"status\":\"NeedRegistration\",\"capabilities\":{\"l\":\"zvvidokvzqeadk\",\"tvtpw\":\"rcxvoltjyzolnqk\",\"qpl\":\"mmyaoegh\",\"hewcevpmt\":\"y\"},\"versionStatus\":\"dfpgsoje\",\"version\":\"jnlvcgar\",\"registerTime\":\"2021-02-19T07:29:51Z\",\"lastConnectTime\":\"2021-07-10T06:20:08Z\",\"expiryTime\":\"2021-02-04T14:24:28Z\",\"lastStartTime\":\"2021-01-08T18:44:26Z\",\"lastStopTime\":\"2021-09-02T20:47:22Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-12-03T17:37:13Z\",\"lastEndUpdateTime\":\"2021-06-09T07:55:39Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":671274453,\"maxConcurrentJobs\":684366978,\"\":{\"d\":\"datatonovveouwixte\",\"qtpbb\":\"dataqprhzsaquha\",\"jlynlrjoydzmbvs\":\"dataicteq\"}}"; - - 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("ii", "jkiajokjuehcryww", "ns", "rcj", 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 640fe63a71db..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\":\"yyfthsafv\",\"machineName\":\"o\",\"hostServiceUri\":\"inmc\",\"status\":\"NeedRegistration\",\"capabilities\":{\"u\":\"ydy\",\"fprfhpcy\":\"kjzp\",\"uzls\":\"ajjyournxq\",\"ebmuv\":\"mbsghzund\"},\"versionStatus\":\"kdea\",\"version\":\"xdwwraimjkaz\",\"registerTime\":\"2021-03-08T20:15:30Z\",\"lastConnectTime\":\"2021-03-04T00:33:43Z\",\"expiryTime\":\"2021-03-25T09:09:50Z\",\"lastStartTime\":\"2021-03-14T23:09:26Z\",\"lastStopTime\":\"2021-01-08T06:02:34Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-09-14T20:41:14Z\",\"lastEndUpdateTime\":\"2021-08-06T06:53:48Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1313337532,\"maxConcurrentJobs\":1925477381,\"\":{\"nwjowgdw\":\"datah\"}}"; - - 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("wlzvxjxvspubf", "elqzcptsbiruy", "iwsfvanpzabbfd", "issdelyecjmfaf", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1818752360), - 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 3e69ee6a9a07..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\":\"Package\",\"id\":7014662316787087438,\"name\":\"zvvrzdbrpdveyxcd\",\"description\":\"l\"},{\"type\":\"Project\",\"id\":5690625794938036184,\"name\":\"mxzszhvjfijxtho\",\"description\":\"giipcvqyapnsnb\"},{\"type\":\"Package\",\"id\":1617738631876995390,\"name\":\"uswdwdau\",\"description\":\"gvs\"}],\"nextLink\":\"s\"}"; - - 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("haugenpipp", "preputusdewnk", "wyry", - new GetSsisObjectMetadataRequest().withMetadataPath("hnoiqtvfr"), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(7014662316787087438L, response.value().get(0).id()); - Assertions.assertEquals("zvvrzdbrpdveyxcd", response.value().get(0).name()); - Assertions.assertEquals("l", response.value().get(0).description()); - Assertions.assertEquals("s", 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 61d78c6a1c5c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.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.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\":\"iaeqcg\",\"name\":\"nj\",\"properties\":\"emlw\",\"error\":\"gsxm\"}"; - - 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("wvcehkva", "cjektkge", "rifyrap", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("iaeqcg", response.status()); - Assertions.assertEquals("nj", response.name()); - Assertions.assertEquals("emlw", response.properties()); - Assertions.assertEquals("gsxm", 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 c4d8778198a3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.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.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\":\"qugxywpmueefjzwf\",\"endpoints\":[{\"domainName\":\"jidsuyonobglaoc\",\"endpointDetails\":[{\"port\":1581079817}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("qugxywpmueefjzwf", model.category()); - Assertions.assertEquals("jidsuyonobglaoc", model.endpoints().get(0).domainName()); - Assertions.assertEquals(1581079817, model.endpoints().get(0).endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("qugxywpmueefjzwf") - .withEndpoints(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("jidsuyonobglaoc") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1581079817))))); - model = BinaryData.fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("qugxywpmueefjzwf", model.category()); - Assertions.assertEquals("jidsuyonobglaoc", model.endpoints().get(0).domainName()); - Assertions.assertEquals(1581079817, 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 1b6022759fa3..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\":1436522503}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(1436522503, model.port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1436522503); - model - = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(1436522503, 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 11cd0e683246..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\":\"g\",\"endpointDetails\":[{\"port\":1209996134}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("g", model.domainName()); - Assertions.assertEquals(1209996134, model.endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("g") - .withEndpointDetails(Arrays - .asList(new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1209996134))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("g", model.domainName()); - Assertions.assertEquals(1209996134, 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 1960710e5e3c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.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.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\":\"yfjfcnjbkcn\",\"endpoints\":[{\"domainName\":\"ttkphywpnvjtoqne\",\"endpointDetails\":[{}]},{\"domainName\":\"fpl\",\"endpointDetails\":[{},{},{},{}]},{\"domainName\":\"uscrpabgyepsb\",\"endpointDetails\":[{},{},{},{}]}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("yfjfcnjbkcn", model.value().get(0).category()); - Assertions.assertEquals("ttkphywpnvjtoqne", 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("yfjfcnjbkcn") - .withEndpoints( - Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("ttkphywpnvjtoqne") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("fpl") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("uscrpabgyepsb") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))))); - model = BinaryData.fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("yfjfcnjbkcn", model.value().get(0).category()); - Assertions.assertEquals("ttkphywpnvjtoqne", 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 1f7ab4320882..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.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.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\":\"kqze\",\"parameters\":{\"mhhv\":\"datadltfz\",\"tibqdxbxwakb\":\"datagureodkwobdag\",\"podxunkb\":\"datagqxndlkzgxhuripl\",\"lrb\":\"databxmubyynt\"}}") - .toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("kqze", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeReference model = new IntegrationRuntimeReference().withReferenceName("kqze") - .withParameters(mapOf("mhhv", "datadltfz", "tibqdxbxwakb", "datagureodkwobdag", "podxunkb", - "datagqxndlkzgxhuripl", "lrb", "databxmubyynt")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("kqze", 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 68d43062e0cc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.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.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntime; -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\":\"Managed\",\"description\":\"idybyxczf\",\"\":{\"fkts\":\"dataaaxdbabphlwrq\",\"nyyazttbtwwrqpue\":\"datahsucoc\",\"xibxujwbhqwalm\":\"datackzywbiexzfeyue\"}},\"name\":\"yoxa\",\"type\":\"dkzjancuxrh\",\"etag\":\"bavxbniwdjswzt\",\"id\":\"bpg\"}") - .toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("bpg", model.id()); - Assertions.assertEquals("idybyxczf", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeResourceInner model = new IntegrationRuntimeResourceInner().withId("bpg") - .withProperties(new ManagedIntegrationRuntime().withDescription("idybyxczf")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("bpg", model.id()); - Assertions.assertEquals("idybyxczf", model.properties().description()); - } -} 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 5f764cf140aa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.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.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeStatus; - -public final class IntegrationRuntimeStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = BinaryData.fromString( - "{\"name\":\"pvlopwiyighxpkd\",\"properties\":{\"type\":\"SelfHosted\",\"dataFactoryName\":\"iuebbaumny\",\"state\":\"Offline\",\"\":{\"hsmtxpsiebtfhvp\":\"dataeojnabc\"}}}") - .toObject(IntegrationRuntimeStatusResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatusResponseInner model - = new IntegrationRuntimeStatusResponseInner().withProperties(new SelfHostedIntegrationRuntimeStatus()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatusResponseInner.class); - } -} 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 1fcb90b81db9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.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.IntegrationRuntimeStatus; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeStatus; - -public final class IntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatus model = BinaryData.fromString( - "{\"type\":\"Managed\",\"dataFactoryName\":\"skrdqmhjj\",\"state\":\"AccessDenied\",\"\":{\"xuutkncwscwsv\":\"datawky\",\"micykvceoveilo\":\"dataxotogtwrupqsxv\"}}") - .toObject(IntegrationRuntimeStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatus model = new ManagedIntegrationRuntimeStatus(); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatus.class); - } -} 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 99581eb362ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.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.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntime; -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\":\"Managed\",\"description\":\"x\",\"\":{\"lcuhxwtctyqiklb\":\"dataxbzpfzab\",\"bhvgy\":\"dataovplw\",\"svmkfssxquk\":\"datagu\"}}") - .toObject(IntegrationRuntime.class); - Assertions.assertEquals("x", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntime model = new ManagedIntegrationRuntime().withDescription("x"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntime.class); - Assertions.assertEquals("x", model.description()); - } -} 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 f46f6539c219..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\":\"oiihrfcowlas\",\"subnet\":\"ifywxjjylaqhx\",\"publicIPs\":[\"dar\",\"jhwgkyn\",\"lwrjgotdtmcktkal\",\"piybfnkylzri\"],\"subnetId\":\"qlwogqnbjuaiuvem\",\"\":{\"ywyfcenkbfxqcap\":\"datankivexiathmar\",\"cxzayvcse\":\"datageciradmxokbutbb\",\"eddjtgoppybse\":\"datadhrodyiit\"}}") - .toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("oiihrfcowlas", model.vNetId()); - Assertions.assertEquals("ifywxjjylaqhx", model.subnet()); - Assertions.assertEquals("dar", model.publicIPs().get(0)); - Assertions.assertEquals("qlwogqnbjuaiuvem", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeVNetProperties model = new IntegrationRuntimeVNetProperties().withVNetId("oiihrfcowlas") - .withSubnet("ifywxjjylaqhx") - .withPublicIPs(Arrays.asList("dar", "jhwgkyn", "lwrjgotdtmcktkal", "piybfnkylzri")) - .withSubnetId("qlwogqnbjuaiuvem") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("oiihrfcowlas", model.vNetId()); - Assertions.assertEquals("ifywxjjylaqhx", model.subnet()); - Assertions.assertEquals("dar", model.publicIPs().get(0)); - Assertions.assertEquals("qlwogqnbjuaiuvem", 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 93a9df5133dd..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\":\"ilygjtibhzjhqf\",\"properties\":{\"type\":\"SelfHosted\",\"dataFactoryName\":\"wh\",\"state\":\"Started\",\"\":{\"jjhn\":\"datagqewcv\",\"aunywk\":\"dataersgrtjmde\",\"ryec\":\"dataucsrqfm\",\"n\":\"datalx\"}}}"; - - 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("obtkyjvzzbryl", "mnmchsjuacdq", "ryo", - new CreateLinkedIntegrationRuntimeRequest().withName("qotzpepmlckz") - .withSubscriptionId("ietfx") - .withDataFactoryName("zzlivkaxwfkanu") - .withDataFactoryLocation("lehvmraoxnii"), - 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 0cea29ac240c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.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.IntegrationRuntimeResource; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; -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 IntegrationRuntimesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Managed\",\"description\":\"nycgzlicytfpywpe\",\"\":{\"jlqdpqkcbflzzdd\":\"datausxr\",\"rrsufvtmse\":\"datarew\",\"rphdakwwiezeut\":\"dataqguz\"}},\"name\":\"qawmoxvq\",\"type\":\"zatvnejlocmqladl\",\"etag\":\"lwtxsh\",\"id\":\"zhhzl\"}"; - - 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("qgoioexh") - .withExistingFactory("nts", "sphi") - .withProperties(new SelfHostedIntegrationRuntime().withDescription("kfkwzk")) - .withIfMatch("izoamttxyddkvi") - .create(); - - Assertions.assertEquals("zhhzl", response.id()); - Assertions.assertEquals("nycgzlicytfpywpe", response.properties().description()); - } -} 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 890d29ab713c..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("rjulttqgun", "tbpiccriqhiwyk", "zncfh", 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 9d0cda43e2d7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.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.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\":\"biszyi\",\"nodes\":[{\"nodeName\":\"jrirg\",\"availableMemoryInMB\":2026881904,\"cpuUtilization\":748969341,\"concurrentJobsLimit\":1141664737,\"concurrentJobsRunning\":216624483,\"maxConcurrentJobs\":1622921552,\"sentBytes\":36.65986,\"receivedBytes\":54.669308,\"\":{\"znuyczlyl\":\"datard\",\"uhkhnzsrgi\":\"datadrziaxigeos\",\"rlyscnbrwhsqtzg\":\"datavzepgljtuzqreprn\",\"x\":\"datafybryexhdigmgszz\"}},{\"nodeName\":\"unuus\",\"availableMemoryInMB\":1333665930,\"cpuUtilization\":536516435,\"concurrentJobsLimit\":872194362,\"concurrentJobsRunning\":158792225,\"maxConcurrentJobs\":460583114,\"sentBytes\":94.75602,\"receivedBytes\":89.53062,\"\":{\"sbzu\":\"datat\",\"rtsnclzyun\":\"datafranngwldymuehvv\",\"pxfhixaagvkwe\":\"dataoogagtjcmly\"}}]}"; - - 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("uiiorbtfarb", "arxyh", "ukc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("biszyi", 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 57cc193f709b..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\":\"qwta\",\"properties\":{\"type\":\"Managed\",\"dataFactoryName\":\"awxslstekbbqq\",\"state\":\"AccessDenied\",\"\":{\"mbbracg\":\"dataycvoexbxrxrvxwl\",\"wyegdutf\":\"datanelozz\",\"kesdfujfpnwfzabl\":\"datatmdlfkjjucpt\"}}}"; - - 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("mgparbirgw", "gewd", "irnfnlyvdryx", 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 2e44d35ad916..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\":\"SelfHosted\",\"description\":\"njwmdtbxqtomcba\",\"\":{\"pkfwzqaelxd\":\"datatd\",\"o\":\"datazdfst\",\"vtzrj\":\"datazog\",\"zrqkgibpeh\":\"dataejvlf\"}},\"name\":\"ctzcm\",\"type\":\"ehxigsi\",\"etag\":\"bwsdoaypixry\",\"id\":\"lbzxyejoxd\"}"; - - 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("stybom", "yjfjsseem", "dfmlail", "xausivh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lbzxyejoxd", response.id()); - Assertions.assertEquals("njwmdtbxqtomcba", 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 879f5fbf4091..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\":\"SelfHosted\",\"description\":\"bvqrhzpfdl\",\"\":{\"nhmatfgo\":\"dataucswhmnsd\",\"wzbkgtgvrrzmkte\":\"datarjmhtxipw\",\"xt\":\"datazeu\"}},\"name\":\"hjcwlfzxxpwexc\",\"type\":\"gpcccg\",\"etag\":\"knjjskzuh\",\"id\":\"yavfeyybyduy\"}]}"; - - 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("ayjeh", "vowvqpncif", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yavfeyybyduy", response.iterator().next().id()); - Assertions.assertEquals("bvqrhzpfdl", 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 19d50e815083..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\":\"xlpmbtmcpwvbp\",\"endpoints\":[{\"domainName\":\"amsgfvuffdvukjy\",\"endpointDetails\":[{},{},{}]},{\"domainName\":\"nrgmjp\",\"endpointDetails\":[{},{}]}]},{\"category\":\"wxc\",\"endpoints\":[{\"domainName\":\"lby\",\"endpointDetails\":[{}]}]},{\"category\":\"skjiiivbvkv\",\"endpoints\":[{\"domainName\":\"slbkrhrnvozj\",\"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("msybvjfnuyoy", "zafkn", "lasfbpjyv", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xlpmbtmcpwvbp", response.value().get(0).category()); - Assertions.assertEquals("amsgfvuffdvukjy", 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 215436af6982..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.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.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("fnffjxdccwuzqwv", "kewlyrweups", "bawzafzdzhh", - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("bxcelvaww"), - 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 70183c9fd8a1..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\":\"jctvohywyvstv\",\"properties\":{\"type\":\"SelfHosted\",\"dataFactoryName\":\"q\",\"state\":\"Limited\",\"\":{\"lwgr\":\"dataocqrylivofnhckl\",\"pxvemjjfvanefw\":\"datavlqq\",\"npbgqemjdtc\":\"dataodnlw\"}}}"; - - 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("bxwda", "hiiduogakrpmj", "dbdcyijnoibclfqd", 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 88eef5ee14bf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.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 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("wk", "kxln", "pbadycnjxyproq", 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 298981461b5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.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 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("bsuijxmw", "shqpjueodhtltoo", "kzouvckrej", 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 14ebd04bc28b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.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 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("lcito", "bgva", "zfiwao", 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 5013288afd29..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\":\"equzytapgzdhzb\",\"typeProperties\":{\"tableName\":\"dataubukqmierzrnob\"},\"description\":\"cdsysxnk\",\"structure\":\"datav\",\"schema\":\"datalsevzc\",\"linkedServiceName\":{\"referenceName\":\"rwn\",\"parameters\":{\"xdqeluvmsaq\":\"datadwqymxsfqe\"}},\"parameters\":{\"fznfgpbc\":{\"type\":\"Float\",\"defaultValue\":\"datagqrwuhvv\"}},\"annotations\":[\"datapympdjieask\"],\"folder\":{\"name\":\"clnfusrgnos\"},\"\":{\"ikbvqzrurgbqaucp\":\"databmjphlyyuahvy\",\"gjlyxtugpea\":\"datakxjnohafwmf\",\"sdwxfamtxccfe\":\"datae\"}}") - .toObject(JiraObjectDataset.class); - Assertions.assertEquals("cdsysxnk", model.description()); - Assertions.assertEquals("rwn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fznfgpbc").type()); - Assertions.assertEquals("clnfusrgnos", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraObjectDataset model = new JiraObjectDataset().withDescription("cdsysxnk") - .withStructure("datav") - .withSchema("datalsevzc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rwn") - .withParameters(mapOf("xdqeluvmsaq", "datadwqymxsfqe"))) - .withParameters(mapOf("fznfgpbc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datagqrwuhvv"))) - .withAnnotations(Arrays.asList("datapympdjieask")) - .withFolder(new DatasetFolder().withName("clnfusrgnos")) - .withTableName("dataubukqmierzrnob"); - model = BinaryData.fromObject(model).toObject(JiraObjectDataset.class); - Assertions.assertEquals("cdsysxnk", model.description()); - Assertions.assertEquals("rwn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fznfgpbc").type()); - Assertions.assertEquals("clnfusrgnos", 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 56be71fd556e..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\":\"jvskpbuo\",\"query\":\"dataoadjooer\",\"queryTimeout\":\"datautqebpuoycawptxq\",\"additionalColumns\":\"dataufdxpwj\",\"sourceRetryCount\":\"datacuk\",\"sourceRetryWait\":\"datacuvww\",\"maxConcurrentConnections\":\"datajjcaaoce\",\"disableMetricsCollection\":\"datawwilyxpq\",\"\":{\"zwybgaycjphoz\":\"dataifhjymqwjliivyat\",\"uoqnktl\":\"datamcypd\"}}") - .toObject(JiraSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraSource model = new JiraSource().withSourceRetryCount("datacuk") - .withSourceRetryWait("datacuvww") - .withMaxConcurrentConnections("datajjcaaoce") - .withDisableMetricsCollection("datawwilyxpq") - .withQueryTimeout("datautqebpuoycawptxq") - .withAdditionalColumns("dataufdxpwj") - .withQuery("dataoadjooer"); - 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 a83570233bfd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.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.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\":\"xcn\",\"typeProperties\":{\"location\":{\"type\":\"bf\",\"folderPath\":\"datalo\",\"fileName\":\"dataekd\",\"\":{\"jmnsvujnjk\":\"datauftrs\",\"se\":\"datavolefcj\",\"otfbjampqoclann\":\"datakdb\",\"zstrktgvpatrg\":\"dataxynlsuqb\"}},\"encodingName\":\"dataktfinfhoksmmculw\",\"compression\":{\"type\":\"dataicruo\",\"level\":\"datarjflsga\",\"\":{\"mcdsgxcelujisw\":\"datatqpqsdoctpzpujzf\",\"nxhfwlfxzfwu\":\"datalu\",\"psjdmng\":\"dataeupcknecexkgrv\",\"pdz\":\"datayt\"}}},\"description\":\"woxcgzbejqfb\",\"structure\":\"dataopfjx\",\"schema\":\"datadrpazqjkrfmbw\",\"linkedServiceName\":{\"referenceName\":\"tfcuuugtj\",\"parameters\":{\"mecjjkmqenhaidzr\":\"datagayiawohfmhnn\",\"lo\":\"datavs\",\"pijpkhc\":\"dataovslvivqsuvwtenb\",\"xukuicjuftekio\":\"dataoa\"}},\"parameters\":{\"zubfjzabbwz\":{\"type\":\"Bool\",\"defaultValue\":\"dataewfhvpxjh\"}},\"annotations\":[\"datauaixcdckix\",\"dataps\",\"dataigavk\",\"datavyxzer\"],\"folder\":{\"name\":\"kpzjbyetjxryopt\"},\"\":{\"bpemnrrabovr\":\"datatwhlbecgih\",\"pskpeswyhhmif\":\"datawxywpjhspboxhif\",\"y\":\"datauajxwwvcmmpeg\"}}") - .toObject(JsonDataset.class); - Assertions.assertEquals("woxcgzbejqfb", model.description()); - Assertions.assertEquals("tfcuuugtj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zubfjzabbwz").type()); - Assertions.assertEquals("kpzjbyetjxryopt", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDataset model = new JsonDataset().withDescription("woxcgzbejqfb") - .withStructure("dataopfjx") - .withSchema("datadrpazqjkrfmbw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tfcuuugtj") - .withParameters(mapOf("mecjjkmqenhaidzr", "datagayiawohfmhnn", "lo", "datavs", "pijpkhc", - "dataovslvivqsuvwtenb", "xukuicjuftekio", "dataoa"))) - .withParameters(mapOf("zubfjzabbwz", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataewfhvpxjh"))) - .withAnnotations(Arrays.asList("datauaixcdckix", "dataps", "dataigavk", "datavyxzer")) - .withFolder(new DatasetFolder().withName("kpzjbyetjxryopt")) - .withLocation(new DatasetLocation().withFolderPath("datalo") - .withFileName("dataekd") - .withAdditionalProperties(mapOf("type", "bf"))) - .withEncodingName("dataktfinfhoksmmculw") - .withCompression(new DatasetCompression().withType("dataicruo") - .withLevel("datarjflsga") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(JsonDataset.class); - Assertions.assertEquals("woxcgzbejqfb", model.description()); - Assertions.assertEquals("tfcuuugtj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zubfjzabbwz").type()); - Assertions.assertEquals("kpzjbyetjxryopt", 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 2a524898fbd2..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\":\"vcmlaexbzbquf\",\"folderPath\":\"dataezs\",\"fileName\":\"dataaymldrorhyogzms\",\"\":{\"m\":\"datahtcuuwdhtqqhyhn\",\"wnwngh\":\"datatnsugisno\",\"cjixxf\":\"datajovkeyym\"}},\"encodingName\":\"datapcrtn\",\"compression\":{\"type\":\"datauefxxijtebdveywe\",\"level\":\"datarhlolmcnwepfg\",\"\":{\"qdljnpe\":\"databv\",\"n\":\"datal\",\"dxljzvdovbrble\":\"datadetawevxehue\",\"c\":\"datalprdaqccddcbnygd\"}}}") - .toObject(JsonDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDatasetTypeProperties model = new JsonDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("dataezs") - .withFileName("dataaymldrorhyogzms") - .withAdditionalProperties(mapOf("type", "vcmlaexbzbquf"))) - .withEncodingName("datapcrtn") - .withCompression(new DatasetCompression().withType("datauefxxijtebdveywe") - .withLevel("datarhlolmcnwepfg") - .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 27c00478a93a..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\":\"jrnm\",\"filePattern\":\"datadxmdses\",\"nestingSeparator\":\"dataujbjppp\",\"encodingName\":\"datalpdib\",\"jsonNodeReference\":\"datath\",\"jsonPathDefinition\":\"dataat\",\"serializer\":\"datazqpl\",\"deserializer\":\"datakihonik\",\"\":{\"gkensckhbmcarmo\":\"datazfffjilzfbpnt\"}}") - .toObject(JsonFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonFormat model = new JsonFormat().withSerializer("datazqpl") - .withDeserializer("datakihonik") - .withFilePattern("datadxmdses") - .withNestingSeparator("dataujbjppp") - .withEncodingName("datalpdib") - .withJsonNodeReference("datath") - .withJsonPathDefinition("dataat"); - 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 56d897e4056d..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\":\"qoy\",\"compressionProperties\":{\"type\":\"dwocufcsh\",\"\":{\"x\":\"datalc\",\"k\":\"dataofwqdro\",\"vgjm\":\"dataegilbkzctqbvntl\"}},\"\":{\"iklnt\":\"dataslepdb\",\"b\":\"datapfnumpyy\"}}") - .toObject(JsonReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonReadSettings model = new JsonReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "dwocufcsh"))); - 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 efc78eaaa6b8..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\":\"rljmjzyadafec\",\"storeSettings\":{\"type\":\"svpmw\",\"maxConcurrentConnections\":\"dataoqypvplmyzebv\",\"disableMetricsCollection\":\"datahoydehbvbex\",\"copyBehavior\":\"dataynnladdhdklwzz\",\"metadata\":[{\"name\":\"databosacrnpscfkef\",\"value\":\"datatxe\"},{\"name\":\"datamimgjuvjvtgece\",\"value\":\"datannle\"}],\"\":{\"kctdnnqok\":\"dataukfj\",\"uywijnlpeczq\":\"dataeuzslnyj\",\"vphr\":\"datanmzkqydthfcwycm\"}},\"formatSettings\":{\"type\":\"hjdhlskeifw\",\"filePattern\":\"datae\",\"\":{\"xiwpptvbudbnujv\":\"dataow\",\"fzxkqsleokbam\":\"datallyjelnhmuzhxk\",\"gccg\":\"datahn\",\"jahlqoxwqlnxv\":\"datalepamvlbaxda\"}},\"writeBatchSize\":\"dataufldzjcp\",\"writeBatchTimeout\":\"datajbzp\",\"sinkRetryCount\":\"datafejg\",\"sinkRetryWait\":\"datafvboxvwtln\",\"maxConcurrentConnections\":\"datashtujaqpkupnr\",\"disableMetricsCollection\":\"datajeypdk\",\"\":{\"sy\":\"datax\",\"rnihgothy\":\"databdrq\",\"ovsvjxnsor\":\"databwge\"}}") - .toObject(JsonSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSink model = new JsonSink().withWriteBatchSize("dataufldzjcp") - .withWriteBatchTimeout("datajbzp") - .withSinkRetryCount("datafejg") - .withSinkRetryWait("datafvboxvwtln") - .withMaxConcurrentConnections("datashtujaqpkupnr") - .withDisableMetricsCollection("datajeypdk") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("dataoqypvplmyzebv") - .withDisableMetricsCollection("datahoydehbvbex") - .withCopyBehavior("dataynnladdhdklwzz") - .withMetadata(Arrays.asList(new MetadataItem().withName("databosacrnpscfkef").withValue("datatxe"), - new MetadataItem().withName("datamimgjuvjvtgece").withValue("datannle"))) - .withAdditionalProperties(mapOf("type", "svpmw"))) - .withFormatSettings(new JsonWriteSettings().withFilePattern("datae")); - 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 1bee5b0acf57..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\":\"yglnfwjslwve\",\"storeSettings\":{\"type\":\"wehjybboqyxi\",\"maxConcurrentConnections\":\"datadvdgemy\",\"disableMetricsCollection\":\"dataddzjtxlvgslmgl\",\"\":{\"ekkae\":\"datayvagakfqpaexllt\",\"wjkraleglpynsbl\":\"datagrhrdnsgvsrtqlt\"}},\"formatSettings\":{\"type\":\"qzbiukzmfyfv\",\"compressionProperties\":{\"type\":\"ltvkylwjopq\",\"\":{\"sscismrnneklfi\":\"datakrjolbaegha\",\"clxtfuo\":\"datanys\"}},\"\":{\"olseyxpgkml\":\"dataofaiwlnfvexiuuqa\"}},\"additionalColumns\":\"dataluaywgcjqnfa\",\"sourceRetryCount\":\"datalucpmqwkfgm\",\"sourceRetryWait\":\"datavekstzqzhd\",\"maxConcurrentConnections\":\"datacajfersxnxlkcw\",\"disableMetricsCollection\":\"dataejssksgxykdepqcy\",\"\":{\"wq\":\"datawsxpzkmotgmdyg\",\"xlycelfeqg\":\"datavbiuntptpmw\",\"ycnk\":\"datawrauuruldt\",\"c\":\"datarmiecfmqcxm\"}}") - .toObject(JsonSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSource model = new JsonSource().withSourceRetryCount("datalucpmqwkfgm") - .withSourceRetryWait("datavekstzqzhd") - .withMaxConcurrentConnections("datacajfersxnxlkcw") - .withDisableMetricsCollection("dataejssksgxykdepqcy") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datadvdgemy") - .withDisableMetricsCollection("dataddzjtxlvgslmgl") - .withAdditionalProperties(mapOf("type", "wehjybboqyxi"))) - .withFormatSettings(new JsonReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "ltvkylwjopq")))) - .withAdditionalColumns("dataluaywgcjqnfa"); - 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 2eff982e66d4..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\":\"omnqcthgqy\",\"filePattern\":\"databygqcwz\",\"\":{\"gixsjhinpyek\":\"dataazfkykkcqafnv\"}}") - .toObject(JsonWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonWriteSettings model = new JsonWriteSettings().withFilePattern("databygqcwz"); - 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 74c2bf836c75..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.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.LakeHouseLocation; - -public final class LakeHouseLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseLocation model = BinaryData.fromString( - "{\"type\":\"lznfhkqytkztado\",\"folderPath\":\"datafzdgjfcycrsvloy\",\"fileName\":\"dataigqkzjuqwqa\",\"\":{\"pnfdbgsosciene\":\"datazxpixhyo\"}}") - .toObject(LakeHouseLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseLocation model - = new LakeHouseLocation().withFolderPath("datafzdgjfcycrsvloy").withFileName("dataigqkzjuqwqa"); - 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 dc5d259e82e9..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\":\"lezkyfykmnrea\",\"recursive\":\"datafprzlvhohzkcsjd\",\"wildcardFolderPath\":\"dataposmnmkypeqm\",\"wildcardFileName\":\"dataeox\",\"fileListPath\":\"datarulavxeaym\",\"enablePartitionDiscovery\":\"datachwpfunptsry\",\"partitionRootPath\":\"dataa\",\"deleteFilesAfterCompletion\":\"databwbxvsytbx\",\"modifiedDatetimeStart\":\"dataubaddlmjquliovrc\",\"modifiedDatetimeEnd\":\"datathluzey\",\"maxConcurrentConnections\":\"datawepqegtytby\",\"disableMetricsCollection\":\"dataeufutfq\",\"\":{\"zwdswikyewvskzw\":\"datavnjgjryksh\",\"emeft\":\"datazwsguipq\",\"drel\":\"datagjrfkqf\",\"glua\":\"datakxk\"}}") - .toObject(LakeHouseReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseReadSettings model = new LakeHouseReadSettings().withMaxConcurrentConnections("datawepqegtytby") - .withDisableMetricsCollection("dataeufutfq") - .withRecursive("datafprzlvhohzkcsjd") - .withWildcardFolderPath("dataposmnmkypeqm") - .withWildcardFileName("dataeox") - .withFileListPath("datarulavxeaym") - .withEnablePartitionDiscovery("datachwpfunptsry") - .withPartitionRootPath("dataa") - .withDeleteFilesAfterCompletion("databwbxvsytbx") - .withModifiedDatetimeStart("dataubaddlmjquliovrc") - .withModifiedDatetimeEnd("datathluzey"); - 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 561ee7470840..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTests.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.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\":\"wvxcai\",\"typeProperties\":{\"table\":\"datazvvxdvphx\"},\"description\":\"icbogsfo\",\"structure\":\"datamamiyfgunruk\",\"schema\":\"datayaalbk\",\"linkedServiceName\":{\"referenceName\":\"bzqa\",\"parameters\":{\"kifqbxmnnidot\":\"datarkvit\",\"odttq\":\"datapumzuh\",\"umvuwjyulqfpqql\":\"datapva\"}},\"parameters\":{\"dblapqraczvtniwf\":{\"type\":\"Float\",\"defaultValue\":\"datahjgmr\"},\"ibxkcegc\":{\"type\":\"Object\",\"defaultValue\":\"datawhxm\"},\"iawpjfkrarerdl\":{\"type\":\"Array\",\"defaultValue\":\"dataxkxtcxbbjbeyqoh\"},\"suameg\":{\"type\":\"String\",\"defaultValue\":\"datatpxowgowwdocj\"}},\"annotations\":[\"dataiszhexu\",\"datafav\",\"dataesloblit\"],\"folder\":{\"name\":\"s\"},\"\":{\"trztogujg\":\"dataosanjso\"}}") - .toObject(LakeHouseTableDataset.class); - Assertions.assertEquals("icbogsfo", model.description()); - Assertions.assertEquals("bzqa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("dblapqraczvtniwf").type()); - Assertions.assertEquals("s", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableDataset model = new LakeHouseTableDataset().withDescription("icbogsfo") - .withStructure("datamamiyfgunruk") - .withSchema("datayaalbk") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bzqa") - .withParameters( - mapOf("kifqbxmnnidot", "datarkvit", "odttq", "datapumzuh", "umvuwjyulqfpqql", "datapva"))) - .withParameters(mapOf("dblapqraczvtniwf", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datahjgmr"), "ibxkcegc", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datawhxm"), - "iawpjfkrarerdl", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataxkxtcxbbjbeyqoh"), - "suameg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatpxowgowwdocj"))) - .withAnnotations(Arrays.asList("dataiszhexu", "datafav", "dataesloblit")) - .withFolder(new DatasetFolder().withName("s")) - .withTable("datazvvxdvphx"); - model = BinaryData.fromObject(model).toObject(LakeHouseTableDataset.class); - Assertions.assertEquals("icbogsfo", model.description()); - Assertions.assertEquals("bzqa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("dblapqraczvtniwf").type()); - Assertions.assertEquals("s", 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 4dd177e5648d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.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.LakeHouseTableDatasetTypeProperties; - -public final class LakeHouseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableDatasetTypeProperties model = BinaryData.fromString("{\"table\":\"dataclxhwkzfggs\"}") - .toObject(LakeHouseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableDatasetTypeProperties model - = new LakeHouseTableDatasetTypeProperties().withTable("dataclxhwkzfggs"); - 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 9766130afe2e..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\":\"czccm\",\"tableActionOption\":\"datahepnmeg\",\"partitionOption\":\"datacpoyda\",\"partitionNameList\":\"dataxmbx\",\"writeBatchSize\":\"dataig\",\"writeBatchTimeout\":\"datapldaoiidxknsqdru\",\"sinkRetryCount\":\"dataanpjvqrwl\",\"sinkRetryWait\":\"dataeuyxxrwovgwqzzu\",\"maxConcurrentConnections\":\"databwqrot\",\"disableMetricsCollection\":\"dataytrzsqbckqgtemin\",\"\":{\"cjzkgy\":\"datavy\",\"eskindgmk\":\"datavi\",\"liflxrnsyvmu\":\"databuvyuzzwph\"}}") - .toObject(LakeHouseTableSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableSink model = new LakeHouseTableSink().withWriteBatchSize("dataig") - .withWriteBatchTimeout("datapldaoiidxknsqdru") - .withSinkRetryCount("dataanpjvqrwl") - .withSinkRetryWait("dataeuyxxrwovgwqzzu") - .withMaxConcurrentConnections("databwqrot") - .withDisableMetricsCollection("dataytrzsqbckqgtemin") - .withTableActionOption("datahepnmeg") - .withPartitionOption("datacpoyda") - .withPartitionNameList("dataxmbx"); - 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 4a18f75d6a31..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\":\"euphg\",\"timestampAsOf\":\"databtgm\",\"versionAsOf\":\"datadredcvwsbsdyxq\",\"additionalColumns\":\"datarqouyfcfd\",\"sourceRetryCount\":\"dataaanubjeboelk\",\"sourceRetryWait\":\"datahso\",\"maxConcurrentConnections\":\"datav\",\"disableMetricsCollection\":\"datajdhw\",\"\":{\"vlkpwavd\":\"datajhhpfjz\"}}") - .toObject(LakeHouseTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableSource model = new LakeHouseTableSource().withSourceRetryCount("dataaanubjeboelk") - .withSourceRetryWait("datahso") - .withMaxConcurrentConnections("datav") - .withDisableMetricsCollection("datajdhw") - .withTimestampAsOf("databtgm") - .withVersionAsOf("datadredcvwsbsdyxq") - .withAdditionalColumns("datarqouyfcfd"); - 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 5711d67453b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseWriteSettingsTests.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.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\":\"kwwdkkvdevdvkey\",\"maxConcurrentConnections\":\"datajchd\",\"disableMetricsCollection\":\"dataxeiluexvmlg\",\"copyBehavior\":\"datapsqpfxjwta\",\"metadata\":[{\"name\":\"datagu\",\"value\":\"datadyxrjjdjiki\"},{\"name\":\"datazubgddk\",\"value\":\"datavq\"},{\"name\":\"datauq\",\"value\":\"datalwnxryyqtjcrpax\"},{\"name\":\"datalfxse\",\"value\":\"datad\"}],\"\":{\"zhdciuxotb\":\"dataldmxfqftywbba\"}}") - .toObject(LakeHouseWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseWriteSettings model = new LakeHouseWriteSettings().withMaxConcurrentConnections("datajchd") - .withDisableMetricsCollection("dataxeiluexvmlg") - .withCopyBehavior("datapsqpfxjwta") - .withMetadata(Arrays.asList(new MetadataItem().withName("datagu").withValue("datadyxrjjdjiki"), - new MetadataItem().withName("datazubgddk").withValue("datavq"), - new MetadataItem().withName("datauq").withValue("datalwnxryyqtjcrpax"), - new MetadataItem().withName("datalfxse").withValue("datad"))); - 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 2f52b720e57f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.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.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\":\"urqhaka\"}").toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("urqhaka", model.linkedFactoryName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntimeRequest model = new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("urqhaka"); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("urqhaka", 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 81501b477c47..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\":\"ms\",\"subscriptionId\":\"wsmdoowfrgd\",\"dataFactoryName\":\"gbhtpomiustkqywa\",\"dataFactoryLocation\":\"lgrrsk\",\"createTime\":\"2021-11-10T11:26:07Z\"}") - .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 4256a3131010..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.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.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\":\"xmqeqalh\",\"connectVia\":{\"referenceName\":\"nhg\",\"parameters\":{\"ta\":\"datayynfsvkhgbv\",\"jcpeogkhnmg\":\"dataarfdlpukhpyrnei\",\"xddbhfhpfpaz\":\"dataro\"}},\"description\":\"oywjxhpdulont\",\"parameters\":{\"ehtuevrhr\":{\"type\":\"Bool\",\"defaultValue\":\"dataw\"}},\"annotations\":[\"dataoogwxhnsduugwb\",\"datareur\"],\"\":{\"lnvnafvvkyfedev\":\"datafuarenlvhht\",\"lcqxypokk\":\"databo\",\"zng\":\"dataminqcym\"}},\"name\":\"dxxewuninv\"}") - .toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("dxxewuninv", model.name()); - Assertions.assertEquals("nhg", model.properties().connectVia().referenceName()); - Assertions.assertEquals("oywjxhpdulont", model.properties().description()); - Assertions.assertEquals(ParameterType.BOOL, model.properties().parameters().get("ehtuevrhr").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceDebugResource model - = new LinkedServiceDebugResource().withName("dxxewuninv") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("nhg") - .withParameters(mapOf("ta", "datayynfsvkhgbv", "jcpeogkhnmg", "dataarfdlpukhpyrnei", - "xddbhfhpfpaz", "dataro"))) - .withDescription("oywjxhpdulont") - .withParameters(mapOf("ehtuevrhr", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataw"))) - .withAnnotations(Arrays.asList("dataoogwxhnsduugwb", "datareur")) - .withAdditionalProperties(mapOf("type", "xmqeqalh"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("dxxewuninv", model.name()); - Assertions.assertEquals("nhg", model.properties().connectVia().referenceName()); - Assertions.assertEquals("oywjxhpdulont", model.properties().description()); - Assertions.assertEquals(ParameterType.BOOL, model.properties().parameters().get("ehtuevrhr").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 753d616e64c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.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.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\":\"gpw\",\"connectVia\":{\"referenceName\":\"uh\",\"parameters\":{\"uusdttouwa\":\"databsjyofdx\"}},\"description\":\"ekqvkeln\",\"parameters\":{\"sxyawjoyaqcs\":{\"type\":\"SecureString\",\"defaultValue\":\"datawyjsflhhcaalnjix\"},\"zyexzn\":{\"type\":\"Float\",\"defaultValue\":\"datapkii\"},\"xknalaulppg\":{\"type\":\"Array\",\"defaultValue\":\"dataxhnrztfolhb\"}},\"annotations\":[\"datapnapnyiropuh\",\"dataigvpgylg\",\"datagit\",\"datamedjvcslynqwwncw\"],\"\":{\"rmgucnap\":\"dataxgk\"}},\"name\":\"eoellwptfdygp\",\"type\":\"b\",\"etag\":\"ceopzfqrhhuaopp\",\"id\":\"qeqxo\"}],\"nextLink\":\"dahzxctobg\"}") - .toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("qeqxo", model.value().get(0).id()); - Assertions.assertEquals("uh", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("ekqvkeln", model.value().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).properties().parameters().get("sxyawjoyaqcs").type()); - Assertions.assertEquals("dahzxctobg", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceListResponse model - = new LinkedServiceListResponse().withValue(Arrays.asList(new LinkedServiceResourceInner().withId("qeqxo") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("uh") - .withParameters(mapOf("uusdttouwa", "databsjyofdx"))) - .withDescription("ekqvkeln") - .withParameters(mapOf("sxyawjoyaqcs", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datawyjsflhhcaalnjix"), - "zyexzn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datapkii"), - "xknalaulppg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataxhnrztfolhb"))) - .withAnnotations( - Arrays.asList("datapnapnyiropuh", "dataigvpgylg", "datagit", "datamedjvcslynqwwncw")) - .withAdditionalProperties(mapOf("type", "gpw"))))) - .withNextLink("dahzxctobg"); - model = BinaryData.fromObject(model).toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("qeqxo", model.value().get(0).id()); - Assertions.assertEquals("uh", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("ekqvkeln", model.value().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).properties().parameters().get("sxyawjoyaqcs").type()); - Assertions.assertEquals("dahzxctobg", 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 d66b5b8dd1fc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.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.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\":\"fz\",\"parameters\":{\"xzfe\":\"dataxxbuyq\"}}") - .toObject(LinkedServiceReference.class); - Assertions.assertEquals("fz", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceReference model - = new LinkedServiceReference().withReferenceName("fz").withParameters(mapOf("xzfe", "dataxxbuyq")); - model = BinaryData.fromObject(model).toObject(LinkedServiceReference.class); - Assertions.assertEquals("fz", 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 97c3ec9053d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.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.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\":\"dmoizpostmg\",\"connectVia\":{\"referenceName\":\"fbunrmfqjhhk\",\"parameters\":{\"vkr\":\"datavjymjhxxjyngud\",\"szjfauvjfdxxivet\":\"dataswbxqz\",\"qaqtdoqmcbxvwvxy\":\"datat\",\"obl\":\"datalqbhsf\"}},\"description\":\"k\",\"parameters\":{\"rn\":{\"type\":\"Float\",\"defaultValue\":\"datawwwfbkr\"}},\"annotations\":[\"datahqjohxcrsbfova\",\"datarruvwbhsq\",\"datasub\"],\"\":{\"pybsrfbjfdtw\":\"databirx\"}},\"name\":\"otftpvjzbexilz\",\"type\":\"fqqnvwpmqtaruo\",\"etag\":\"mkcjhwqytjrybn\",\"id\":\"ewgdrjervn\"}") - .toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("ewgdrjervn", model.id()); - Assertions.assertEquals("fbunrmfqjhhk", model.properties().connectVia().referenceName()); - Assertions.assertEquals("k", model.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("rn").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceResourceInner model = new LinkedServiceResourceInner().withId("ewgdrjervn") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("fbunrmfqjhhk") - .withParameters(mapOf("vkr", "datavjymjhxxjyngud", "szjfauvjfdxxivet", "dataswbxqz", - "qaqtdoqmcbxvwvxy", "datat", "obl", "datalqbhsf"))) - .withDescription("k") - .withParameters(mapOf("rn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datawwwfbkr"))) - .withAnnotations(Arrays.asList("datahqjohxcrsbfova", "datarruvwbhsq", "datasub")) - .withAdditionalProperties(mapOf("type", "dmoizpostmg"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("ewgdrjervn", model.id()); - Assertions.assertEquals("fbunrmfqjhhk", model.properties().connectVia().referenceName()); - Assertions.assertEquals("k", model.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("rn").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 42e3b77d1c0e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.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.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\":\"nqpeh\",\"connectVia\":{\"referenceName\":\"doy\",\"parameters\":{\"sl\":\"datafthnzdn\",\"ynduha\":\"datanayqi\"}},\"description\":\"qlkth\",\"parameters\":{\"cdui\":{\"type\":\"Array\",\"defaultValue\":\"datalbg\"},\"lfmmdnbbglzpswi\":{\"type\":\"Float\",\"defaultValue\":\"datagccymvaolpssl\"},\"bzmnvdfznud\":{\"type\":\"SecureString\",\"defaultValue\":\"datacwyhzdxssa\"},\"ylpstdbhhxsrzdz\":{\"type\":\"SecureString\",\"defaultValue\":\"datavxzbncb\"}},\"annotations\":[\"datarsc\",\"datantnev\",\"dataiwjmygtdssls\"],\"\":{\"abnetshh\":\"dataweriofzpyqsem\",\"bmwmbesldnkw\":\"datazhedplvwiw\",\"gaokonzmnsikv\":\"datatppjflcx\"}}") - .toObject(LinkedService.class); - Assertions.assertEquals("doy", model.connectVia().referenceName()); - Assertions.assertEquals("qlkth", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("cdui").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedService model - = new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("doy") - .withParameters(mapOf("sl", "datafthnzdn", "ynduha", "datanayqi"))) - .withDescription("qlkth") - .withParameters(mapOf("cdui", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datalbg"), - "lfmmdnbbglzpswi", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datagccymvaolpssl"), - "bzmnvdfznud", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datacwyhzdxssa"), - "ylpstdbhhxsrzdz", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datavxzbncb"))) - .withAnnotations(Arrays.asList("datarsc", "datantnev", "dataiwjmygtdssls")) - .withAdditionalProperties(mapOf("type", "nqpeh")); - model = BinaryData.fromObject(model).toObject(LinkedService.class); - Assertions.assertEquals("doy", model.connectVia().referenceName()); - Assertions.assertEquals("qlkth", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("cdui").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 62b09c0e7590..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.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.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\":\"pmjtfymvlvosbc\",\"connectVia\":{\"referenceName\":\"bbrkuss\",\"parameters\":{\"aspglc\":\"datasbucmth\"}},\"description\":\"raer\",\"parameters\":{\"yox\":{\"type\":\"Float\",\"defaultValue\":\"datayhwdogchdqtlbnkr\"},\"sr\":{\"type\":\"String\",\"defaultValue\":\"datae\"},\"g\":{\"type\":\"Bool\",\"defaultValue\":\"datazs\"}},\"annotations\":[\"datasbp\"],\"\":{\"tbn\":\"datamgwmmwjugaqy\",\"qfiigslbriawkn\":\"datayspbghnnxkouvsmm\",\"gerqtcxk\":\"datacdfcyeyulmxonobo\",\"z\":\"datai\"}},\"name\":\"crucz\",\"type\":\"juxijmawsamdfwex\",\"etag\":\"bdglsll\",\"id\":\"armlbqekvj\"}"; - - 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("g") - .withExistingFactory("colf", "ftz") - .withProperties(new LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("ivt") - .withParameters(mapOf("rqiijkvop", "datauzyyniv", "odmnytdborujflt", "dataamtxvnelw", "n", - "dataxwfwlfqbgugvr", "khdxqaccdzb", "dataeiwk"))) - .withDescription("ot") - .withParameters(mapOf("jzv", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datasxgaojwulatq"))) - .withAnnotations(Arrays.asList("dataslifcwj", "datayfdjzefkzcajav", "datamokaqnu")) - .withAdditionalProperties(mapOf("type", "fnl"))) - .withIfMatch("pz") - .create(); - - Assertions.assertEquals("armlbqekvj", response.id()); - Assertions.assertEquals("bbrkuss", response.properties().connectVia().referenceName()); - Assertions.assertEquals("raer", response.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, response.properties().parameters().get("yox").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 c9ba14703757..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.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 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("udfikduw", "khma", "g", 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 337c592a241c..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\":\"it\",\"connectVia\":{\"referenceName\":\"uzjlcmzghao\",\"parameters\":{\"hrlhtknmpj\":\"datap\",\"vubpjwwviesj\":\"datarcrxxkvuzpsoujc\"}},\"description\":\"izhicxlm\",\"parameters\":{\"qowrtniymaznmql\":{\"type\":\"SecureString\",\"defaultValue\":\"datahqetmpqcxrwtyg\"},\"nryjqboylm\":{\"type\":\"Object\",\"defaultValue\":\"datappagv\"},\"tbflechgiqxknjr\":{\"type\":\"String\",\"defaultValue\":\"datazvmftxkwicg\"},\"hfccbbhztqiay\":{\"type\":\"String\",\"defaultValue\":\"datanqidwsggjkzulih\"}},\"annotations\":[\"datalpdjtliil\"],\"\":{\"indcakansjrznyd\":\"dataaqoiif\",\"pwtkce\":\"dataslyd\"}},\"name\":\"yngupphvo\",\"type\":\"ocjsadbuvvpdj\",\"etag\":\"nndvvgs\",\"id\":\"vz\"}"; - - 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("qwsec", "swoibqnuhr", "iwnb", "gesaolceb", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vz", response.id()); - Assertions.assertEquals("uzjlcmzghao", response.properties().connectVia().referenceName()); - Assertions.assertEquals("izhicxlm", response.properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - response.properties().parameters().get("qowrtniymaznmql").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 6a963cf88425..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\":\"qeywmqhnl\",\"connectVia\":{\"referenceName\":\"fqglvflxltngmulp\",\"parameters\":{\"ymybryvlhvrgjpmz\":\"dataorkzwuppvgqvfz\",\"xqwy\":\"databgitkowflc\",\"y\":\"datavuaiqqgay\"}},\"description\":\"jdvtlygwxilbaz\",\"parameters\":{\"qzwqlh\":{\"type\":\"Object\",\"defaultValue\":\"dataslbrowbfsly\"},\"wlernchdxpsonkk\":{\"type\":\"SecureString\",\"defaultValue\":\"datajzrifgubpno\"}},\"annotations\":[\"datamojz\",\"datangmkeunpb\",\"datamssnacg\",\"datawmqgya\"],\"\":{\"qyc\":\"dataxwxnnjvodqne\",\"g\":\"datanrctrpu\"}},\"name\":\"o\",\"type\":\"yvwxcerhhzjh\",\"etag\":\"ynszadgv\",\"id\":\"oxmlb\"}]}"; - - 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("h", "sbx", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("oxmlb", response.iterator().next().id()); - Assertions.assertEquals("fqglvflxltngmulp", - response.iterator().next().properties().connectVia().referenceName()); - Assertions.assertEquals("jdvtlygwxilbaz", response.iterator().next().properties().description()); - Assertions.assertEquals(ParameterType.OBJECT, - response.iterator().next().properties().parameters().get("qzwqlh").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 8bccece3618a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.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.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\":\"uftpv\",\"parameters\":{\"vmlltasu\":\"datazitc\",\"zeszv\":\"dataqsf\",\"vgmbir\":\"datagawbm\",\"rbqxisavktuxwzvl\":\"datav\"}},\"path\":\"databridagwuvcdymoqv\"}") - .toObject(LogLocationSettings.class); - Assertions.assertEquals("uftpv", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogLocationSettings model - = new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("uftpv") - .withParameters(mapOf("vmlltasu", "datazitc", "zeszv", "dataqsf", "vgmbir", "datagawbm", - "rbqxisavktuxwzvl", "datav"))) - .withPath("databridagwuvcdymoqv"); - model = BinaryData.fromObject(model).toObject(LogLocationSettings.class); - Assertions.assertEquals("uftpv", 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 9276428a596d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.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.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\":\"dataxdwecvkwwjj\",\"copyActivityLogSettings\":{\"logLevel\":\"dataunsduejx\",\"enableReliableLogging\":\"datawalekqedofuobxml\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"i\",\"parameters\":{\"ib\":\"datahlpf\",\"gzy\":\"datalmihvzdaycmen\",\"lvgqlexwqwbbell\":\"datal\"}},\"path\":\"datadotpcvd\"}}") - .toObject(LogSettings.class); - Assertions.assertEquals("i", model.logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSettings model = new LogSettings().withEnableCopyActivityLog("dataxdwecvkwwjj") - .withCopyActivityLogSettings(new CopyActivityLogSettings().withLogLevel("dataunsduejx") - .withEnableReliableLogging("datawalekqedofuobxml")) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("i") - .withParameters(mapOf("ib", "datahlpf", "gzy", "datalmihvzdaycmen", "lvgqlexwqwbbell", "datal"))) - .withPath("datadotpcvd")); - model = BinaryData.fromObject(model).toObject(LogSettings.class); - Assertions.assertEquals("i", 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 3d8ecdf05254..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.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.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\":\"xn\",\"parameters\":{\"vectooxjztt\":\"datajfvj\",\"mdyb\":\"datalsnmxvsrvkzvxlez\",\"ogtnfla\":\"dataehjk\"}},\"path\":\"datapghfvkqijmyqo\",\"logLevel\":\"datasfaoc\",\"enableReliableLogging\":\"datazrrgdpy\",\"\":{\"vlwhtfscoups\":\"datamru\",\"c\":\"dataeywbhxhawkwcf\"}}") - .toObject(LogStorageSettings.class); - Assertions.assertEquals("xn", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogStorageSettings model = new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xn") - .withParameters( - mapOf("vectooxjztt", "datajfvj", "mdyb", "datalsnmxvsrvkzvxlez", "ogtnfla", "dataehjk"))) - .withPath("datapghfvkqijmyqo") - .withLogLevel("datasfaoc") - .withEnableReliableLogging("datazrrgdpy") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(LogStorageSettings.class); - Assertions.assertEquals("xn", 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 b5f165ebcc83..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.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.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\":\"xgczwxyghsppmvxc\",\"typeProperties\":{\"source\":{\"type\":\"udranmdcfwaw\",\"sourceRetryCount\":\"datahfauubcv\",\"sourceRetryWait\":\"datafxwhicacmviclhom\",\"maxConcurrentConnections\":\"dataaxteg\",\"disableMetricsCollection\":\"dataf\",\"\":{\"jfzbavqmmk\":\"datan\"}},\"dataset\":{\"referenceName\":\"qdfjeuwwq\",\"parameters\":{\"qvywolccxdctkhe\":\"datazpskzplbzyj\",\"gemspn\":\"databosa\"}},\"firstRowOnly\":\"dataohhhexgxn\"},\"linkedServiceName\":{\"referenceName\":\"stzdxbspglcbhahx\",\"parameters\":{\"rhpihtxgjzifyh\":\"datau\",\"e\":\"datajgrbjmzagxjoimoz\",\"jgfihl\":\"datapscrfbdttcfwjzqu\",\"zb\":\"datalauo\"}},\"policy\":{\"timeout\":\"datafxvggk\",\"retry\":\"datahsny\",\"retryIntervalInSeconds\":2037856397,\"secureInput\":true,\"secureOutput\":true,\"\":{\"lzjki\":\"datatlfngonhmblkk\",\"h\":\"datamne\",\"qvcfzr\":\"dataynencaf\"}},\"name\":\"zpdq\",\"description\":\"chygbeofiwbtfkiu\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xjrafhdf\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"gqhefeasm\":\"datawnqijphhuvflg\",\"pcxxpyrtajlyde\":\"datadguodoujpwqbotlv\"}},{\"activity\":\"qfvrqru\",\"dependencyConditions\":[\"Failed\"],\"\":{\"jzvceyxvfoyuyk\":\"datauxbqdwbjh\"}}],\"userProperties\":[{\"name\":\"gyhpuhccl\",\"value\":\"datahndbutptyabd\"},{\"name\":\"bkblopemorfzuhvy\",\"value\":\"datadnd\"}],\"\":{\"kplnd\":\"datazsfvri\"}}") - .toObject(LookupActivity.class); - Assertions.assertEquals("zpdq", model.name()); - Assertions.assertEquals("chygbeofiwbtfkiu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("xjrafhdf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gyhpuhccl", model.userProperties().get(0).name()); - Assertions.assertEquals("stzdxbspglcbhahx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2037856397, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("qdfjeuwwq", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivity model - = new LookupActivity().withName("zpdq") - .withDescription("chygbeofiwbtfkiu") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("xjrafhdf") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qfvrqru") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("gyhpuhccl").withValue("datahndbutptyabd"), - new UserProperty().withName("bkblopemorfzuhvy").withValue("datadnd"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("stzdxbspglcbhahx") - .withParameters(mapOf("rhpihtxgjzifyh", "datau", "e", "datajgrbjmzagxjoimoz", "jgfihl", - "datapscrfbdttcfwjzqu", "zb", "datalauo"))) - .withPolicy(new ActivityPolicy().withTimeout("datafxvggk") - .withRetry("datahsny") - .withRetryIntervalInSeconds(2037856397) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withSource(new CopySource().withSourceRetryCount("datahfauubcv") - .withSourceRetryWait("datafxwhicacmviclhom") - .withMaxConcurrentConnections("dataaxteg") - .withDisableMetricsCollection("dataf") - .withAdditionalProperties(mapOf("type", "udranmdcfwaw"))) - .withDataset(new DatasetReference().withReferenceName("qdfjeuwwq") - .withParameters(mapOf("qvywolccxdctkhe", "datazpskzplbzyj", "gemspn", "databosa"))) - .withFirstRowOnly("dataohhhexgxn"); - model = BinaryData.fromObject(model).toObject(LookupActivity.class); - Assertions.assertEquals("zpdq", model.name()); - Assertions.assertEquals("chygbeofiwbtfkiu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("xjrafhdf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gyhpuhccl", model.userProperties().get(0).name()); - Assertions.assertEquals("stzdxbspglcbhahx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2037856397, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("qdfjeuwwq", 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 dd64437b89d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.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.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\":\"qcqinvkmkbtpbw\",\"sourceRetryCount\":\"datazmqabvwbg\",\"sourceRetryWait\":\"datanvdrrm\",\"maxConcurrentConnections\":\"datashraepcl\",\"disableMetricsCollection\":\"datame\",\"\":{\"jeqdmolmcyba\":\"datazhrzeibkuuolul\",\"qamvdnexqvt\":\"datakeuraylygclwbu\",\"lkny\":\"datafnhzgtydllauno\",\"hhcqjahhcbzoary\":\"datapglgkeaz\"}},\"dataset\":{\"referenceName\":\"cxmftgmqlco\",\"parameters\":{\"yhjfmycgucccbsyy\":\"datafrrdb\"}},\"firstRowOnly\":\"dataxlt\"}") - .toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("cxmftgmqlco", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivityTypeProperties model = new LookupActivityTypeProperties() - .withSource(new CopySource().withSourceRetryCount("datazmqabvwbg") - .withSourceRetryWait("datanvdrrm") - .withMaxConcurrentConnections("datashraepcl") - .withDisableMetricsCollection("datame") - .withAdditionalProperties(mapOf("type", "qcqinvkmkbtpbw"))) - .withDataset(new DatasetReference().withReferenceName("cxmftgmqlco") - .withParameters(mapOf("yhjfmycgucccbsyy", "datafrrdb"))) - .withFirstRowOnly("dataxlt"); - model = BinaryData.fromObject(model).toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("cxmftgmqlco", 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 2cb0fa6bca29..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.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.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\":\"mqfwbgdmfv\",\"typeProperties\":{\"tableName\":\"dataima\"},\"description\":\"fmpota\",\"structure\":\"datapfigrxxtrcodb\",\"schema\":\"dataogldmxxb\",\"linkedServiceName\":{\"referenceName\":\"hspvamsxrwqlwdf\",\"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(MagentoObjectDataset.class); - Assertions.assertEquals("fmpota", model.description()); - Assertions.assertEquals("hspvamsxrwqlwdf", 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 { - MagentoObjectDataset model = new MagentoObjectDataset().withDescription("fmpota") - .withStructure("datapfigrxxtrcodb") - .withSchema("dataogldmxxb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hspvamsxrwqlwdf") - .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("dataima"); - model = BinaryData.fromObject(model).toObject(MagentoObjectDataset.class); - Assertions.assertEquals("fmpota", model.description()); - Assertions.assertEquals("hspvamsxrwqlwdf", 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/MagentoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java deleted file mode 100644 index d1cd23c4902e..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\":\"omdlsps\",\"query\":\"datagdkpyavfcpohlfv\",\"queryTimeout\":\"dataucxtyufso\",\"additionalColumns\":\"datakmcu\",\"sourceRetryCount\":\"dataxpnyg\",\"sourceRetryWait\":\"dataqi\",\"maxConcurrentConnections\":\"datalxoxwndfuyj\",\"disableMetricsCollection\":\"datagal\",\"\":{\"oa\":\"datalzuztdwx\",\"p\":\"datab\"}}") - .toObject(MagentoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MagentoSource model = new MagentoSource().withSourceRetryCount("dataxpnyg") - .withSourceRetryWait("dataqi") - .withMaxConcurrentConnections("datalxoxwndfuyj") - .withDisableMetricsCollection("datagal") - .withQueryTimeout("dataucxtyufso") - .withAdditionalColumns("datakmcu") - .withQuery("datagdkpyavfcpohlfv"); - model = BinaryData.fromObject(model).toObject(MagentoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialResourceTests.java deleted file mode 100644 index b2f8346d7911..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialResourceTests.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 com.azure.resourcemanager.datafactory.models.ManagedIdentityCredentialResource; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityCredentialResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentityCredentialResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"yxxbxqvmvuayt\",\"description\":\"dxk\",\"annotations\":[\"databwpntghy\",\"datasa\",\"datacdrnxsl\"],\"\":{\"v\":\"datazladltxkpbq\",\"isgglmvokat\":\"datadqqjwkrhwzdano\",\"xsmzygdf\":\"dataztjctibpvbkae\",\"eivmak\":\"dataakw\"}},\"name\":\"ysowl\",\"type\":\"x\",\"etag\":\"bectvtfjmskdch\",\"id\":\"iubavlzwpvgm\"}") - .toObject(ManagedIdentityCredentialResource.class); - Assertions.assertEquals("iubavlzwpvgm", model.id()); - Assertions.assertEquals("dxk", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityCredentialResource model = new ManagedIdentityCredentialResource().withId("iubavlzwpvgm") - .withProperties(new ManagedIdentityCredential().withDescription("dxk") - .withAnnotations(Arrays.asList("databwpntghy", "datasa", "datacdrnxsl"))); - model = BinaryData.fromObject(model).toObject(ManagedIdentityCredentialResource.class); - Assertions.assertEquals("iubavlzwpvgm", model.id()); - Assertions.assertEquals("dxk", model.properties().description()); - } -} 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 aa7aee7d9696..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.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.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\":\"rthqe\",\"typeProperties\":{\"resourceId\":\"jqafkmkro\"},\"description\":\"pqrtvaoznqni\",\"annotations\":[\"datazeagmceituuge\",\"datahfpjstlzmbls\",\"datajdeolctae\",\"datafsyrledjc\"],\"\":{\"igdx\":\"databvt\"}}") - .toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("pqrtvaoznqni", model.description()); - Assertions.assertEquals("jqafkmkro", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityCredential model = new ManagedIdentityCredential().withDescription("pqrtvaoznqni") - .withAnnotations(Arrays.asList("datazeagmceituuge", "datahfpjstlzmbls", "datajdeolctae", "datafsyrledjc")) - .withResourceId("jqafkmkro"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("pqrtvaoznqni", model.description()); - Assertions.assertEquals("jqafkmkro", 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 37b7b89355fc..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\":\"sgeafgfosehx\"}").toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("sgeafgfosehx", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityTypeProperties model = new ManagedIdentityTypeProperties().withResourceId("sgeafgfosehx"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("sgeafgfosehx", 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 6ebb4cc0218d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.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.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\":\"itlhguyn\",\"description\":\"hlgmltxdwhmoz\",\"status\":\"gzvlnsnn\"},\"fqdns\":[\"pafolp\",\"mwamxqzragpgdph\",\"vdulajv\",\"ejchcsrlz\"],\"groupId\":\"mzlanru\",\"isReserved\":false,\"privateLinkResourceId\":\"nphcnzqtpjhmqrh\",\"provisioningState\":\"hlaiwd\",\"\":{\"hqvlnnpxybafiqg\":\"datamlzzhzdtxetlgyd\",\"klbyulidwcw\":\"dataaarbgjekg\",\"hj\":\"datamzegjon\",\"zhzmtksjci\":\"datarwgdnqzbrfks\"}},\"name\":\"igsxcdgljplk\",\"type\":\"acht\",\"etag\":\"flrytswfpfm\",\"id\":\"ycxnmskw\"}],\"nextLink\":\"jjyslurlps\"}") - .toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("ycxnmskw", model.value().get(0).id()); - Assertions.assertEquals("pafolp", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("mzlanru", model.value().get(0).properties().groupId()); - Assertions.assertEquals("nphcnzqtpjhmqrh", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("jjyslurlps", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointListResponse model = new ManagedPrivateEndpointListResponse() - .withValue(Arrays.asList(new ManagedPrivateEndpointResourceInner().withId("ycxnmskw") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("pafolp", "mwamxqzragpgdph", "vdulajv", "ejchcsrlz")) - .withGroupId("mzlanru") - .withPrivateLinkResourceId("nphcnzqtpjhmqrh") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "hlaiwd"))))) - .withNextLink("jjyslurlps"); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("ycxnmskw", model.value().get(0).id()); - Assertions.assertEquals("pafolp", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("mzlanru", model.value().get(0).properties().groupId()); - Assertions.assertEquals("nphcnzqtpjhmqrh", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("jjyslurlps", 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 69bf689cc2a6..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\":\"vpedwqslsrh\",\"description\":\"qvwwsko\",\"status\":\"cbrwi\"},\"fqdns\":[\"qejo\",\"ovyrrleaesinu\",\"tljqobbpih\"],\"groupId\":\"cecybmrqbrjbbmpx\",\"isReserved\":true,\"privateLinkResourceId\":\"kfrexcrseqwjks\",\"provisioningState\":\"udgzhxogjgg\",\"\":{\"kxibdafh\":\"datau\",\"y\":\"datakmdyomkxfbvfbh\",\"gddeimaw\":\"datarhpw\"}},\"name\":\"vgkk\",\"type\":\"ui\",\"etag\":\"cjc\",\"id\":\"tbw\"}") - .toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("tbw", model.id()); - Assertions.assertEquals("qejo", model.properties().fqdns().get(0)); - Assertions.assertEquals("cecybmrqbrjbbmpx", model.properties().groupId()); - Assertions.assertEquals("kfrexcrseqwjks", model.properties().privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointResourceInner model = new ManagedPrivateEndpointResourceInner().withId("tbw") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("qejo", "ovyrrleaesinu", "tljqobbpih")) - .withGroupId("cecybmrqbrjbbmpx") - .withPrivateLinkResourceId("kfrexcrseqwjks") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "udgzhxogjgg"))); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("tbw", model.id()); - Assertions.assertEquals("qejo", model.properties().fqdns().get(0)); - Assertions.assertEquals("cecybmrqbrjbbmpx", model.properties().groupId()); - Assertions.assertEquals("kfrexcrseqwjks", 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 5fcb56a3529d..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\":\"qowxwcom\",\"description\":\"kytwvcz\",\"status\":\"wka\"},\"fqdns\":[\"jyfdvlv\",\"b\",\"rnfxtgddp\",\"th\"],\"groupId\":\"n\",\"isReserved\":true,\"privateLinkResourceId\":\"yank\",\"provisioningState\":\"eqswanklty\",\"\":{\"drlktg\":\"datadroznn\",\"waeeczgfb\":\"datacsgguxhemlw\"}}") - .toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("jyfdvlv", model.fqdns().get(0)); - Assertions.assertEquals("n", model.groupId()); - Assertions.assertEquals("yank", model.privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpoint model = new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("jyfdvlv", "b", "rnfxtgddp", "th")) - .withGroupId("n") - .withPrivateLinkResourceId("yank") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "eqswanklty")); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("jyfdvlv", model.fqdns().get(0)); - Assertions.assertEquals("n", model.groupId()); - Assertions.assertEquals("yank", 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 54b2cc583c35..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\":\"jnnm\",\"description\":\"nvln\",\"status\":\"vnfrn\"},\"fqdns\":[\"fc\",\"rxpzniqo\",\"dpbsqovea\"],\"groupId\":\"ynblklykznzf\",\"isReserved\":false,\"privateLinkResourceId\":\"kkkactkmqo\",\"provisioningState\":\"gjwi\",\"\":{\"yvodcbsir\":\"datawgefacbcgssc\"}},\"name\":\"khmjt\",\"type\":\"vpvuaqox\",\"etag\":\"i\",\"id\":\"wfzvnwmbweh\"}"; - - 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("q") - .withExistingManagedVirtualNetwork("zubjcnozlx", "pvoyqcqpyntax", "ytoqxajiog") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("tgbsj")) - .withGroupId("fnlt") - .withPrivateLinkResourceId("zxfli") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "leihpq"))) - .withIfMatch("vkg") - .create(); - - Assertions.assertEquals("wfzvnwmbweh", response.id()); - Assertions.assertEquals("fc", response.properties().fqdns().get(0)); - Assertions.assertEquals("ynblklykznzf", response.properties().groupId()); - Assertions.assertEquals("kkkactkmqo", 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 8badc6fb3160..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.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 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("cojogkufpf", "oajdf", "hlvags", "sto", 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 f676b413552b..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\":\"dy\",\"description\":\"lbwpbieeqaozoo\",\"status\":\"ouifsrjpijz\"},\"fqdns\":[\"fqb\"],\"groupId\":\"ngbqpjswucsjp\",\"isReserved\":false,\"privateLinkResourceId\":\"yoiwmvmnahgknon\",\"provisioningState\":\"msocmxfkwfpoemzb\",\"\":{\"gwp\":\"datapysopmahdsq\",\"izxqbaznrqgloe\":\"datampklawc\",\"voawisxik\":\"dataqrolkfihfairpstg\"}},\"name\":\"vrffftr\",\"type\":\"ljscmofhisdloar\",\"etag\":\"zggwuthoqn\",\"id\":\"rveyrqtdl\"}"; - - 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("kkn", "ba", "eiclxuijmzg", "nvavpyge", "zsnixtwpkngiy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("rveyrqtdl", response.id()); - Assertions.assertEquals("fqb", response.properties().fqdns().get(0)); - Assertions.assertEquals("ngbqpjswucsjp", response.properties().groupId()); - Assertions.assertEquals("yoiwmvmnahgknon", 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 4ab2d578a5d4..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\":\"vtdtbcrhpnmgnxa\",\"description\":\"egxnjxgoa\",\"status\":\"sutbnziaqszzcp\"},\"fqdns\":[\"kkffuo\",\"jp\"],\"groupId\":\"a\",\"isReserved\":false,\"privateLinkResourceId\":\"irsgogbz\",\"provisioningState\":\"vpzyovimpb\",\"\":{\"ffd\":\"datas\"}},\"name\":\"jcgyl\",\"type\":\"sxcdk\",\"etag\":\"leuzm\",\"id\":\"s\"}]}"; - - 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("h", "qogcp", "k", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("s", response.iterator().next().id()); - Assertions.assertEquals("kkffuo", response.iterator().next().properties().fqdns().get(0)); - Assertions.assertEquals("a", response.iterator().next().properties().groupId()); - Assertions.assertEquals("irsgogbz", 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 fc500449ce7b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.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.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\":\"klmtkhlowkx\",\"alias\":\"vbrdfjmzsyzfho\",\"\":{\"unsjlpjrtwszhvvu\":\"dataikcyyc\"}},\"name\":\"phvtrrmhwrb\",\"type\":\"pyf\",\"etag\":\"bhvjglr\",\"id\":\"uyzlw\"},{\"properties\":{\"vNetId\":\"memhooclutnpq\",\"alias\":\"mczjkm\",\"\":{\"jylmbkzudnigr\":\"datayujxsglhsrrry\",\"refqy\":\"dataihotjewlpxuzzjg\",\"kwpzdqtvh\":\"dataqotoihiqakydiwfb\",\"ipietgbe\":\"dataspodaqax\"}},\"name\":\"fulbmoichdl\",\"type\":\"fpubntnbatz\",\"etag\":\"qs\",\"id\":\"saaelca\"}],\"nextLink\":\"cjuhplrvkm\"}") - .toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("uyzlw", model.value().get(0).id()); - Assertions.assertEquals("cjuhplrvkm", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkListResponse model = new ManagedVirtualNetworkListResponse() - .withValue(Arrays.asList( - new ManagedVirtualNetworkResourceInner().withId("uyzlw") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "klmtkhlowkx", "alias", "vbrdfjmzsyzfho"))), - new ManagedVirtualNetworkResourceInner().withId("saaelca") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "memhooclutnpq", "alias", "mczjkm"))))) - .withNextLink("cjuhplrvkm"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("uyzlw", model.value().get(0).id()); - Assertions.assertEquals("cjuhplrvkm", 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 673b72e82444..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\":\"nims\"}") - .toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("nims", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkReference model = new ManagedVirtualNetworkReference() - .withType(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE) - .withReferenceName("nims"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("nims", 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 8c5c8ee9a52c..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\":\"wmj\",\"alias\":\"gfggcvkyylizrzbj\",\"\":{\"vagbwidqlvhukove\":\"dataxsfuztlvt\",\"jfnmjmvlwyz\":\"datafizr\",\"lfojuidjp\":\"dataiblkujr\"}},\"name\":\"yjucejikzoeo\",\"type\":\"tzejetjklnt\",\"etag\":\"yjuzkdb\",\"id\":\"o\"}") - .toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("o", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkResourceInner model = new ManagedVirtualNetworkResourceInner().withId("o") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "wmj", "alias", "gfggcvkyylizrzbj"))); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("o", 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 53819bdee10e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.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.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\":\"rzvh\",\"alias\":\"wtrhtgv\",\"\":{\"rkolawjm\":\"datac\",\"kcdxfzzzw\":\"datasmwr\"}}") - .toObject(ManagedVirtualNetwork.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetwork model - = new ManagedVirtualNetwork().withAdditionalProperties(mapOf("vNetId", "rzvh", "alias", "wtrhtgv")); - 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 289ad2a128aa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.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.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\":\"wnmzxtaxfa\",\"alias\":\"d\",\"\":{\"ihfom\":\"datat\",\"tnsdwyspvps\":\"datak\",\"ynuhknut\":\"datafsirykzcmwze\",\"yccoyxumnd\":\"datank\"}},\"name\":\"znkuilwkfcll\",\"type\":\"mg\",\"etag\":\"msmhrugllxeq\",\"id\":\"boxrezkqqpyhclf\"}"; - - 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("owloe") - .withExistingFactory("aehanntfs", "vdqwh") - .withProperties(new ManagedVirtualNetwork().withAdditionalProperties(mapOf("vNetId", "lfv", "alias", "xu"))) - .withIfMatch("kfecspunfqhhcjd") - .create(); - - Assertions.assertEquals("boxrezkqqpyhclf", 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 571b54dd4207..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\":\"sdlpiazl\",\"alias\":\"wumzdtsm\",\"\":{\"zawrsfogzg\":\"datacjxrsf\",\"rwlvjavztk\":\"databnfloykshgxxwo\",\"yvsjmflxq\":\"datajm\",\"uxtyakybzqgbtzno\":\"datajlfdtnmomvsls\"}},\"name\":\"snfrpesvddgu\",\"type\":\"hmaarordga\",\"etag\":\"ubrhscnvknzct\",\"id\":\"hyghcbnnbr\"}"; - - 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("xowp", "lyehcanp", "defvx", "oitpybtrqilbnv", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("hyghcbnnbr", 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 c4a1d956d2f3..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\":\"vqgjhjie\",\"alias\":\"pv\",\"\":{\"xluungytympf\":\"datapfwhwwdml\",\"kxglnklygrqoqyz\":\"datazyasyhrnwmsznqh\"}},\"name\":\"qqslrvinic\",\"type\":\"bmstrdtcpkdp\",\"etag\":\"rpufxnfmqrlmgql\",\"id\":\"erqkisjjttf\"}]}"; - - 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("rmynyrtijgn", "jodaonhwlqxhahzs", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("erqkisjjttf", 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 d81b6b4374dc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.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.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\":\"crunfhi\",\"type\":\"Derived\",\"functionName\":\"fbcpaqktkrumzu\",\"expression\":\"kyzbfvxovqkxiux\",\"attributeReference\":{\"name\":\"vqrnhyhlwcjsqgg\",\"entity\":\"ffbxrqrkij\",\"entityConnectionReference\":{\"connectionName\":\"qlsdxeqztvxwmw\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"na\",\"entity\":\"amecle\",\"entityConnectionReference\":{\"connectionName\":\"ulndhzyoeo\",\"type\":\"linkedservicetype\"}},{\"name\":\"llhsvidmyt\",\"entity\":\"nglxpn\",\"entityConnectionReference\":{\"connectionName\":\"oanfbcswqagyw\",\"type\":\"linkedservicetype\"}}]}") - .toObject(MapperAttributeMapping.class); - Assertions.assertEquals("crunfhi", model.name()); - Assertions.assertEquals(MappingType.DERIVED, model.type()); - Assertions.assertEquals("fbcpaqktkrumzu", model.functionName()); - Assertions.assertEquals("kyzbfvxovqkxiux", model.expression()); - Assertions.assertEquals("vqrnhyhlwcjsqgg", model.attributeReference().name()); - Assertions.assertEquals("ffbxrqrkij", model.attributeReference().entity()); - Assertions.assertEquals("qlsdxeqztvxwmw", - model.attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("na", model.attributeReferences().get(0).name()); - Assertions.assertEquals("amecle", model.attributeReferences().get(0).entity()); - Assertions.assertEquals("ulndhzyoeo", - 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("crunfhi") - .withType(MappingType.DERIVED) - .withFunctionName("fbcpaqktkrumzu") - .withExpression("kyzbfvxovqkxiux") - .withAttributeReference(new MapperAttributeReference().withName("vqrnhyhlwcjsqgg") - .withEntity("ffbxrqrkij") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("qlsdxeqztvxwmw") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("na") - .withEntity("amecle") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("ulndhzyoeo") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference().withName("llhsvidmyt") - .withEntity("nglxpn") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("oanfbcswqagyw") - .withType(ConnectionType.LINKEDSERVICETYPE)))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMapping.class); - Assertions.assertEquals("crunfhi", model.name()); - Assertions.assertEquals(MappingType.DERIVED, model.type()); - Assertions.assertEquals("fbcpaqktkrumzu", model.functionName()); - Assertions.assertEquals("kyzbfvxovqkxiux", model.expression()); - Assertions.assertEquals("vqrnhyhlwcjsqgg", model.attributeReference().name()); - Assertions.assertEquals("ffbxrqrkij", model.attributeReference().entity()); - Assertions.assertEquals("qlsdxeqztvxwmw", - model.attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("na", model.attributeReferences().get(0).name()); - Assertions.assertEquals("amecle", model.attributeReferences().get(0).entity()); - Assertions.assertEquals("ulndhzyoeo", - 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 45ab2e324cca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"oskkfmk\",\"type\":\"Aggregate\",\"functionName\":\"xyxgbkkqv\",\"expression\":\"teoedl\",\"attributeReference\":{\"name\":\"skkzpxvjnzdpvo\",\"entity\":\"jhpcn\",\"entityConnectionReference\":{\"connectionName\":\"zf\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"e\",\"entity\":\"zilmhivzkww\",\"entityConnectionReference\":{\"connectionName\":\"knrzdajlskzpt\",\"type\":\"linkedservicetype\"}},{\"name\":\"weucyrth\",\"entity\":\"lehmcgcjeinueho\",\"entityConnectionReference\":{\"connectionName\":\"vfejvqnttmbqda\",\"type\":\"linkedservicetype\"}},{\"name\":\"vfokpysthhzag\",\"entity\":\"wyy\",\"entityConnectionReference\":{\"connectionName\":\"g\",\"type\":\"linkedservicetype\"}},{\"name\":\"ejgvkvebaqszllrz\",\"entity\":\"mmdqgmihzpimc\",\"entityConnectionReference\":{\"connectionName\":\"nxtminklog\",\"type\":\"linkedservicetype\"}}]},{\"name\":\"zarhzvqnsqktcmbj\",\"type\":\"Direct\",\"functionName\":\"slpkybtg\",\"expression\":\"kzpgaj\",\"attributeReference\":{\"name\":\"cemqbmfuvqarwz\",\"entity\":\"qreblui\",\"entityConnectionReference\":{\"connectionName\":\"wxs\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"vxekraokqkbud\",\"entity\":\"waokbavlytta\",\"entityConnectionReference\":{\"connectionName\":\"wfrke\",\"type\":\"linkedservicetype\"}}]},{\"name\":\"p\",\"type\":\"Direct\",\"functionName\":\"igatolekscbctna\",\"expression\":\"imwbzxpdcldpk\",\"attributeReference\":{\"name\":\"snlaimoux\",\"entity\":\"sqmu\",\"entityConnectionReference\":{\"connectionName\":\"coibicziuswswjrk\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"tqqvy\",\"entity\":\"cyrfwbivqvog\",\"entityConnectionReference\":{\"connectionName\":\"zwvbhlimbyqecro\",\"type\":\"linkedservicetype\"}},{\"name\":\"kcdrdaasaxxobsm\",\"entity\":\"wiyjvzuko\",\"entityConnectionReference\":{\"connectionName\":\"awn\",\"type\":\"linkedservicetype\"}},{\"name\":\"n\",\"entity\":\"ywsxvjabjqqaxu\",\"entityConnectionReference\":{\"connectionName\":\"mc\",\"type\":\"linkedservicetype\"}},{\"name\":\"doabhj\",\"entity\":\"xqweu\",\"entityConnectionReference\":{\"connectionName\":\"pvksmit\",\"type\":\"linkedservicetype\"}}]},{\"name\":\"tltcl\",\"type\":\"Aggregate\",\"functionName\":\"qgfhyrf\",\"expression\":\"kkld\",\"attributeReference\":{\"name\":\"wfcmfcnr\",\"entity\":\"jqmatxjtielnzq\",\"entityConnectionReference\":{\"connectionName\":\"gfb\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"agynoi\",\"entity\":\"n\",\"entityConnectionReference\":{\"connectionName\":\"lin\",\"type\":\"linkedservicetype\"}},{\"name\":\"xzxaqzibmqimiym\",\"entity\":\"uqguhfupetasvvoq\",\"entityConnectionReference\":{\"connectionName\":\"kfla\",\"type\":\"linkedservicetype\"}},{\"name\":\"xsyaowuzowpuoh\",\"entity\":\"cprgukxrztiochl\",\"entityConnectionReference\":{\"connectionName\":\"xmqrudjizc\",\"type\":\"linkedservicetype\"}}]}]}") - .toObject(MapperAttributeMappings.class); - Assertions.assertEquals("oskkfmk", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.attributeMappings().get(0).type()); - Assertions.assertEquals("xyxgbkkqv", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("teoedl", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("skkzpxvjnzdpvo", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("jhpcn", model.attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("zf", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("e", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("zilmhivzkww", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions.assertEquals("knrzdajlskzpt", - 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("oskkfmk") - .withType(MappingType.AGGREGATE) - .withFunctionName("xyxgbkkqv") - .withExpression("teoedl") - .withAttributeReference(new MapperAttributeReference().withName("skkzpxvjnzdpvo") - .withEntity("jhpcn") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("zf") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays - .asList( - new MapperAttributeReference() - .withName("e") - .withEntity("zilmhivzkww") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("knrzdajlskzpt") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("weucyrth") - .withEntity("lehmcgcjeinueho") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("vfejvqnttmbqda") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("vfokpysthhzag") - .withEntity("wyy") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("g") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference().withName("ejgvkvebaqszllrz") - .withEntity("mmdqgmihzpimc") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("nxtminklog") - .withType(ConnectionType.LINKEDSERVICETYPE)))), - new MapperAttributeMapping().withName("zarhzvqnsqktcmbj") - .withType(MappingType.DIRECT) - .withFunctionName("slpkybtg") - .withExpression("kzpgaj") - .withAttributeReference(new MapperAttributeReference() - .withName("cemqbmfuvqarwz") - .withEntity("qreblui") - .withEntityConnectionReference(new MapperConnectionReference() - .withConnectionName("wxs") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences( - Arrays.asList(new MapperAttributeReference().withName("vxekraokqkbud") - .withEntity("waokbavlytta") - .withEntityConnectionReference(new MapperConnectionReference() - .withConnectionName("wfrke") - .withType(ConnectionType.LINKEDSERVICETYPE)))), - new MapperAttributeMapping().withName("p") - .withType(MappingType.DIRECT) - .withFunctionName("igatolekscbctna") - .withExpression("imwbzxpdcldpk") - .withAttributeReference(new MapperAttributeReference().withName("snlaimoux") - .withEntity("sqmu") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("coibicziuswswjrk") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("tqqvy") - .withEntity("cyrfwbivqvog") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("zwvbhlimbyqecro") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("kcdrdaasaxxobsm") - .withEntity("wiyjvzuko") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("awn") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("n") - .withEntity("ywsxvjabjqqaxu") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("mc") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference().withName("doabhj") - .withEntity("xqweu") - .withEntityConnectionReference(new MapperConnectionReference() - .withConnectionName("pvksmit") - .withType(ConnectionType.LINKEDSERVICETYPE)))), - new MapperAttributeMapping().withName("tltcl") - .withType(MappingType.AGGREGATE) - .withFunctionName("qgfhyrf") - .withExpression("kkld") - .withAttributeReference(new MapperAttributeReference().withName("wfcmfcnr") - .withEntity("jqmatxjtielnzq") - .withEntityConnectionReference(new MapperConnectionReference() - .withConnectionName("gfb") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference().withName("agynoi") - .withEntity("n") - .withEntityConnectionReference(new MapperConnectionReference() - .withConnectionName("lin") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference().withName("xzxaqzibmqimiym") - .withEntity("uqguhfupetasvvoq") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("kfla") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference().withName("xsyaowuzowpuoh") - .withEntity("cprgukxrztiochl") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("xmqrudjizc") - .withType(ConnectionType.LINKEDSERVICETYPE)))))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMappings.class); - Assertions.assertEquals("oskkfmk", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.attributeMappings().get(0).type()); - Assertions.assertEquals("xyxgbkkqv", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("teoedl", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("skkzpxvjnzdpvo", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("jhpcn", model.attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("zf", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("e", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("zilmhivzkww", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions.assertEquals("knrzdajlskzpt", - 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 e41933802b9e..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\":\"gvjrktpgaeuky\",\"entity\":\"ohpmwhqn\",\"entityConnectionReference\":{\"connectionName\":\"klhsidsjtdlpb\",\"type\":\"linkedservicetype\"}}") - .toObject(MapperAttributeReference.class); - Assertions.assertEquals("gvjrktpgaeuky", model.name()); - Assertions.assertEquals("ohpmwhqn", model.entity()); - Assertions.assertEquals("klhsidsjtdlpb", 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("gvjrktpgaeuky") - .withEntity("ohpmwhqn") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("klhsidsjtdlpb") - .withType(ConnectionType.LINKEDSERVICETYPE)); - model = BinaryData.fromObject(model).toObject(MapperAttributeReference.class); - Assertions.assertEquals("gvjrktpgaeuky", model.name()); - Assertions.assertEquals("ohpmwhqn", model.entity()); - Assertions.assertEquals("klhsidsjtdlpb", 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 36a29fea3bd8..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\":\"zodubtlm\",\"type\":\"linkedservicetype\"}") - .toObject(MapperConnectionReference.class); - Assertions.assertEquals("zodubtlm", model.connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnectionReference model - = new MapperConnectionReference().withConnectionName("zodubtlm").withType(ConnectionType.LINKEDSERVICETYPE); - model = BinaryData.fromObject(model).toObject(MapperConnectionReference.class); - Assertions.assertEquals("zodubtlm", 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 e0791af20f74..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.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.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\":\"dfmmpzhzzwvy\",\"parameters\":{\"aondjrkclamgg\":\"datayngydgrpxncaki\",\"oqeykglt\":\"datavlmfej\",\"tlgflwfgz\":\"datagxhqfgqkayejs\",\"lijjjrtvam\":\"dataiucijjcea\"}},\"linkedServiceType\":\"szknxkvccxe\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"ignohi\",\"value\":\"datagqogjwpindedva\"},{\"name\":\"xbhmed\",\"value\":\"datalbjywfcfxzirzzih\"}]}") - .toObject(MapperConnection.class); - Assertions.assertEquals("dfmmpzhzzwvy", model.linkedService().referenceName()); - Assertions.assertEquals("szknxkvccxe", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("ignohi", model.commonDslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnection model = new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("dfmmpzhzzwvy") - .withParameters(mapOf("aondjrkclamgg", "datayngydgrpxncaki", "oqeykglt", "datavlmfej", "tlgflwfgz", - "datagxhqfgqkayejs", "lijjjrtvam", "dataiucijjcea"))) - .withLinkedServiceType("szknxkvccxe") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("ignohi").withValue("datagqogjwpindedva"), - new MapperDslConnectorProperties().withName("xbhmed").withValue("datalbjywfcfxzirzzih"))); - model = BinaryData.fromObject(model).toObject(MapperConnection.class); - Assertions.assertEquals("dfmmpzhzzwvy", model.linkedService().referenceName()); - Assertions.assertEquals("szknxkvccxe", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("ignohi", 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 ac35b7319198..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.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.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\":\"iqch\",\"value\":\"datatuicds\"}") - .toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("iqch", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperDslConnectorProperties model - = new MapperDslConnectorProperties().withName("iqch").withValue("datatuicds"); - model = BinaryData.fromObject(model).toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("iqch", 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 36e75b73d540..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\":\"Second\",\"interval\":606826553}") - .toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.SECOND, model.frequency()); - Assertions.assertEquals(606826553, model.interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicyRecurrence model - = new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND).withInterval(606826553); - model = BinaryData.fromObject(model).toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.SECOND, model.frequency()); - Assertions.assertEquals(606826553, 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 d6d09a74aa85..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\":\"gazlsvbz\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":63190145}}") - .toObject(MapperPolicy.class); - Assertions.assertEquals("gazlsvbz", model.mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.recurrence().frequency()); - Assertions.assertEquals(63190145, model.recurrence().interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicy model = new MapperPolicy().withMode("gazlsvbz") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(63190145)); - model = BinaryData.fromObject(model).toObject(MapperPolicy.class); - Assertions.assertEquals("gazlsvbz", model.mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.recurrence().frequency()); - Assertions.assertEquals(63190145, 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 c0c377e66ec0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.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.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\":\"dkadppyibn\",\"properties\":{\"schema\":[{\"name\":\"ywrxw\",\"dataType\":\"dtluvvadswzsn\"},{\"name\":\"emlowuowhl\",\"dataType\":\"nwyrmouv\"},{\"name\":\"gmokzkltrfowt\",\"dataType\":\"rfmvlihcvjdrqcrj\"}],\"dslConnectorProperties\":[{\"name\":\"tuk\",\"value\":\"datadxlwyojbfqz\"}]}},{\"name\":\"fnjyix\",\"properties\":{\"schema\":[{\"name\":\"tqxmbj\",\"dataType\":\"umzznvalqjrhuz\"},{\"name\":\"xonjtpusl\",\"dataType\":\"wpvtiotzbpdbol\"},{\"name\":\"ryf\",\"dataType\":\"uasigr\"}],\"dslConnectorProperties\":[{\"name\":\"c\",\"value\":\"dataquygdjboqgrmtq\"},{\"name\":\"qevadrmmw\",\"value\":\"dataawvcmjzkxiid\"},{\"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\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"qt\",\"parameters\":{\"jomevtfycnlb\":\"datarclsso\",\"kk\":\"datagjco\",\"ytssikiz\":\"dataji\"}},\"linkedServiceType\":\"ufqbvntnr\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"cekxgnly\",\"value\":\"dataxcpwzvmdok\"},{\"name\":\"dt\",\"value\":\"datalwxlboncqbazq\"},{\"name\":\"qchygtv\",\"value\":\"datayjanepubdp\"}]}}") - .toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("dkadppyibn", model.sourceEntities().get(0).name()); - Assertions.assertEquals("ywrxw", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("dtluvvadswzsn", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("tuk", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("qt", model.connection().linkedService().referenceName()); - Assertions.assertEquals("ufqbvntnr", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("cekxgnly", 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("dkadppyibn") - .withSchema(Arrays.asList(new MapperTableSchema().withName("ywrxw").withDataType("dtluvvadswzsn"), - new MapperTableSchema().withName("emlowuowhl").withDataType("nwyrmouv"), - new MapperTableSchema().withName("gmokzkltrfowt").withDataType("rfmvlihcvjdrqcrj"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("tuk").withValue("datadxlwyojbfqz"))), - new MapperTable().withName("fnjyix") - .withSchema(Arrays.asList(new MapperTableSchema().withName("tqxmbj").withDataType("umzznvalqjrhuz"), - new MapperTableSchema().withName("xonjtpusl").withDataType("wpvtiotzbpdbol"), - new MapperTableSchema().withName("ryf").withDataType("uasigr"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("c").withValue("dataquygdjboqgrmtq"), - new MapperDslConnectorProperties().withName("qevadrmmw").withValue("dataawvcmjzkxiid"), - 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"))))) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("qt") - .withParameters(mapOf("jomevtfycnlb", "datarclsso", "kk", "datagjco", "ytssikiz", "dataji"))) - .withLinkedServiceType("ufqbvntnr") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("cekxgnly").withValue("dataxcpwzvmdok"), - new MapperDslConnectorProperties().withName("dt").withValue("datalwxlboncqbazq"), - new MapperDslConnectorProperties().withName("qchygtv").withValue("datayjanepubdp")))); - model = BinaryData.fromObject(model).toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("dkadppyibn", model.sourceEntities().get(0).name()); - Assertions.assertEquals("ywrxw", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("dtluvvadswzsn", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("tuk", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("qt", model.connection().linkedService().referenceName()); - Assertions.assertEquals("ufqbvntnr", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("cekxgnly", 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 3d844a248945..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.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.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\":\"txwaljglzo\",\"dataType\":\"qwaafrqulhm\"},{\"name\":\"qb\",\"dataType\":\"vafjrqpjiyrqj\"}],\"dslConnectorProperties\":[{\"name\":\"xwmzwdfkbnrz\",\"value\":\"datapdltbq\"},{\"name\":\"qjf\",\"value\":\"dataxsaetg\"},{\"name\":\"gvpyigdaqqilzdc\",\"value\":\"datawjoe\"},{\"name\":\"ngucaifpaurww\",\"value\":\"datal\"}]}") - .toObject(MapperTableProperties.class); - Assertions.assertEquals("txwaljglzo", model.schema().get(0).name()); - Assertions.assertEquals("qwaafrqulhm", model.schema().get(0).dataType()); - Assertions.assertEquals("xwmzwdfkbnrz", 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("txwaljglzo").withDataType("qwaafrqulhm"), - new MapperTableSchema().withName("qb").withDataType("vafjrqpjiyrqj"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("xwmzwdfkbnrz").withValue("datapdltbq"), - new MapperDslConnectorProperties().withName("qjf").withValue("dataxsaetg"), - new MapperDslConnectorProperties().withName("gvpyigdaqqilzdc").withValue("datawjoe"), - new MapperDslConnectorProperties().withName("ngucaifpaurww").withValue("datal"))); - model = BinaryData.fromObject(model).toObject(MapperTableProperties.class); - Assertions.assertEquals("txwaljglzo", model.schema().get(0).name()); - Assertions.assertEquals("qwaafrqulhm", model.schema().get(0).dataType()); - Assertions.assertEquals("xwmzwdfkbnrz", 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 6d8d52c76128..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\":\"qqa\",\"dataType\":\"mkxwxdcvjwcyziak\"}") - .toObject(MapperTableSchema.class); - Assertions.assertEquals("qqa", model.name()); - Assertions.assertEquals("mkxwxdcvjwcyziak", model.dataType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTableSchema model = new MapperTableSchema().withName("qqa").withDataType("mkxwxdcvjwcyziak"); - model = BinaryData.fromObject(model).toObject(MapperTableSchema.class); - Assertions.assertEquals("qqa", model.name()); - Assertions.assertEquals("mkxwxdcvjwcyziak", 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 e6f84aedbd09..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.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.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\":\"yqvgxia\",\"properties\":{\"schema\":[{\"name\":\"ohkxdxuw\",\"dataType\":\"ifmcwnosbzlehg\"}],\"dslConnectorProperties\":[{\"name\":\"cknjolgj\",\"value\":\"dataxpvelszerqzevxo\"}]}}") - .toObject(MapperTable.class); - Assertions.assertEquals("yqvgxia", model.name()); - Assertions.assertEquals("ohkxdxuw", model.schema().get(0).name()); - Assertions.assertEquals("ifmcwnosbzlehg", model.schema().get(0).dataType()); - Assertions.assertEquals("cknjolgj", model.dslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTable model = new MapperTable().withName("yqvgxia") - .withSchema(Arrays.asList(new MapperTableSchema().withName("ohkxdxuw").withDataType("ifmcwnosbzlehg"))) - .withDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("cknjolgj").withValue("dataxpvelszerqzevxo"))); - model = BinaryData.fromObject(model).toObject(MapperTable.class); - Assertions.assertEquals("yqvgxia", model.name()); - Assertions.assertEquals("ohkxdxuw", model.schema().get(0).name()); - Assertions.assertEquals("ifmcwnosbzlehg", model.schema().get(0).dataType()); - Assertions.assertEquals("cknjolgj", 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 10c071b5ef9d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"usuv\",\"properties\":{\"schema\":[{\"name\":\"wci\",\"dataType\":\"jsllfryvd\"},{\"name\":\"x\",\"dataType\":\"q\"},{\"name\":\"frgnawbabgfbktyj\",\"dataType\":\"czlfsy\"},{\"name\":\"frbzgowo\",\"dataType\":\"mj\"}],\"dslConnectorProperties\":[{\"name\":\"xnyqgxhlusr\",\"value\":\"datai\"}]}},{\"name\":\"mjceagbjqvls\",\"properties\":{\"schema\":[{\"name\":\"ashxgonoyjfqi\",\"dataType\":\"b\"}],\"dslConnectorProperties\":[{\"name\":\"lkfk\",\"value\":\"databgvopemt\"},{\"name\":\"qujlyegqa\",\"value\":\"dataigflqqbtnyjp\"},{\"name\":\"xdb\",\"value\":\"dataabmvmsxbaevwjc\"}]}},{\"name\":\"ot\",\"properties\":{\"schema\":[{\"name\":\"vajmailfem\",\"dataType\":\"zakzwjiqullqxbd\"},{\"name\":\"rscmqerndbrnye\",\"dataType\":\"ltfnnxrkad\"},{\"name\":\"ynnfmuiii\",\"dataType\":\"pfoh\"},{\"name\":\"fkx\",\"dataType\":\"cbrwjiutgnjizbe\"}],\"dslConnectorProperties\":[{\"name\":\"ymrvzbju\",\"value\":\"datasrziuct\"},{\"name\":\"gbdsuifrev\",\"value\":\"dataapezkiswqjmdghs\"},{\"name\":\"arybjufptbjc\",\"value\":\"datanciuiyqvldaswvpp\"},{\"name\":\"qqzlgcndhz\",\"value\":\"datarfc\"}]}},{\"name\":\"r\",\"properties\":{\"schema\":[{\"name\":\"nxu\",\"dataType\":\"kpphefsbzx\"},{\"name\":\"zxomeikjclwz\",\"dataType\":\"nmwpf\"}],\"dslConnectorProperties\":[{\"name\":\"aazyqbxyxoyfpuqq\",\"value\":\"dataezxlhdjzqdca\"},{\"name\":\"vpsozjiihjri\",\"value\":\"datamrzoep\"},{\"name\":\"wdvwnjkgvfnmx\",\"value\":\"datarsqftib\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"buyvp\",\"parameters\":{\"nrexkxbhxv\":\"dataqjpnqnoowsbed\",\"nfa\":\"datacnulgmnhjevdy\"}},\"linkedServiceType\":\"vkskmqozzk\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"iizjixlqfhefkwa\",\"value\":\"dataolro\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"mgnlqxsjxtel\",\"sourceEntityName\":\"hvuqbo\",\"sourceConnectionReference\":{\"connectionName\":\"lzqocark\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"dtsnxawqytllhdyz\",\"type\":\"Derived\",\"functionName\":\"zexnxakcky\",\"expression\":\"mxgaabjkdtfohfao\",\"attributeReference\":{},\"attributeReferences\":[{},{}]},{\"name\":\"wrsiwdyjqurykc\",\"type\":\"Direct\",\"functionName\":\"eek\",\"expression\":\"uehogdd\",\"attributeReference\":{},\"attributeReferences\":[{},{}]}]},\"sourceDenormalizeInfo\":\"datagydlqidywm\"},{\"targetEntityName\":\"ptyrilkfbnrqqxv\",\"sourceEntityName\":\"pbnfnqtx\",\"sourceConnectionReference\":{\"connectionName\":\"m\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"ddepldwqjns\",\"type\":\"Direct\",\"functionName\":\"leexahvmywh\",\"expression\":\"rcarycsjj\",\"attributeReference\":{},\"attributeReferences\":[{}]},{\"name\":\"qajuvehzptdmk\",\"type\":\"Derived\",\"functionName\":\"mpfu\",\"expression\":\"be\",\"attributeReference\":{},\"attributeReferences\":[{},{},{},{}]},{\"name\":\"mfbfununmpzkrvfy\",\"type\":\"Aggregate\",\"functionName\":\"schlzvfictnkj\",\"expression\":\"gcwn\",\"attributeReference\":{},\"attributeReferences\":[{}]},{\"name\":\"fyrtogmhmjp\",\"type\":\"Direct\",\"functionName\":\"fp\",\"expression\":\"wtyg\",\"attributeReference\":{},\"attributeReferences\":[{},{},{},{}]}]},\"sourceDenormalizeInfo\":\"datasehar\"},{\"targetEntityName\":\"fv\",\"sourceEntityName\":\"rxtmbpjptnvw\",\"sourceConnectionReference\":{\"connectionName\":\"sidqpxlbtpakft\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"kyutrymdwmfjhpyc\",\"type\":\"Derived\",\"functionName\":\"vdwkqpldr\",\"expression\":\"fgnaavuagnteta\",\"attributeReference\":{},\"attributeReferences\":[{}]},{\"name\":\"dc\",\"type\":\"Aggregate\",\"functionName\":\"pfe\",\"expression\":\"i\",\"attributeReference\":{},\"attributeReferences\":[{},{}]},{\"name\":\"uyld\",\"type\":\"Aggregate\",\"functionName\":\"ybkcgsuthhllnmwy\",\"expression\":\"fxexlfciatxtjrr\",\"attributeReference\":{},\"attributeReferences\":[{},{},{}]},{\"name\":\"kjhhxdlajf\",\"type\":\"Aggregate\",\"functionName\":\"scv\",\"expression\":\"xlhuavkrmuk\",\"attributeReference\":{},\"attributeReferences\":[{},{},{}]}]},\"sourceDenormalizeInfo\":\"dataxett\"}],\"relationships\":[\"dataojfkq\",\"datadnqtoqxjhqx\",\"datas\"]}") - .toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("usuv", model.targetEntities().get(0).name()); - Assertions.assertEquals("wci", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("jsllfryvd", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("xnyqgxhlusr", model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("buyvp", model.connection().linkedService().referenceName()); - Assertions.assertEquals("vkskmqozzk", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("iizjixlqfhefkwa", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("mgnlqxsjxtel", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("hvuqbo", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("lzqocark", - model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("dtsnxawqytllhdyz", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DERIVED, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("zexnxakcky", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("mxgaabjkdtfohfao", - 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("usuv") - .withSchema(Arrays.asList(new MapperTableSchema().withName("wci").withDataType("jsllfryvd"), - new MapperTableSchema().withName("x").withDataType("q"), - new MapperTableSchema().withName("frgnawbabgfbktyj").withDataType("czlfsy"), - new MapperTableSchema().withName("frbzgowo").withDataType("mj"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("xnyqgxhlusr").withValue("datai"))), - new MapperTable().withName("mjceagbjqvls") - .withSchema(Arrays.asList(new MapperTableSchema().withName("ashxgonoyjfqi").withDataType("b"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("lkfk").withValue("databgvopemt"), - new MapperDslConnectorProperties().withName("qujlyegqa").withValue("dataigflqqbtnyjp"), - new MapperDslConnectorProperties().withName("xdb").withValue("dataabmvmsxbaevwjc"))), - new MapperTable().withName("ot") - .withSchema( - Arrays.asList(new MapperTableSchema().withName("vajmailfem").withDataType("zakzwjiqullqxbd"), - new MapperTableSchema().withName("rscmqerndbrnye").withDataType("ltfnnxrkad"), - new MapperTableSchema().withName("ynnfmuiii").withDataType("pfoh"), - new MapperTableSchema().withName("fkx").withDataType("cbrwjiutgnjizbe"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("ymrvzbju").withValue("datasrziuct"), - new MapperDslConnectorProperties().withName("gbdsuifrev").withValue("dataapezkiswqjmdghs"), - new MapperDslConnectorProperties().withName("arybjufptbjc") - .withValue("datanciuiyqvldaswvpp"), - new MapperDslConnectorProperties().withName("qqzlgcndhz").withValue("datarfc"))), - new MapperTable().withName("r") - .withSchema(Arrays.asList(new MapperTableSchema().withName("nxu").withDataType("kpphefsbzx"), - new MapperTableSchema().withName("zxomeikjclwz").withDataType("nmwpf"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("aazyqbxyxoyfpuqq").withValue("dataezxlhdjzqdca"), - new MapperDslConnectorProperties().withName("vpsozjiihjri").withValue("datamrzoep"), - new MapperDslConnectorProperties().withName("wdvwnjkgvfnmx").withValue("datarsqftib"))))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("buyvp") - .withParameters(mapOf("nrexkxbhxv", "dataqjpnqnoowsbed", "nfa", "datacnulgmnhjevdy"))) - .withLinkedServiceType("vkskmqozzk") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("iizjixlqfhefkwa").withValue("dataolro")))) - .withDataMapperMappings( - Arrays.asList( - new DataMapperMapping().withTargetEntityName("mgnlqxsjxtel") - .withSourceEntityName("hvuqbo") - .withSourceConnectionReference(new MapperConnectionReference().withConnectionName("lzqocark") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList( - new MapperAttributeMapping().withName("dtsnxawqytllhdyz") - .withType(MappingType.DERIVED) - .withFunctionName("zexnxakcky") - .withExpression("mxgaabjkdtfohfao") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping().withName("wrsiwdyjqurykc") - .withType(MappingType.DIRECT) - .withFunctionName("eek") - .withExpression("uehogdd") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference()))))) - .withSourceDenormalizeInfo("datagydlqidywm"), - new DataMapperMapping().withTargetEntityName("ptyrilkfbnrqqxv") - .withSourceEntityName("pbnfnqtx") - .withSourceConnectionReference(new MapperConnectionReference().withConnectionName("m") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings().withAttributeMappings( - Arrays.asList( - new MapperAttributeMapping().withName("ddepldwqjns") - .withType(MappingType.DIRECT) - .withFunctionName("leexahvmywh") - .withExpression("rcarycsjj") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference())), - new MapperAttributeMapping().withName("qajuvehzptdmk") - .withType(MappingType.DERIVED) - .withFunctionName("mpfu") - .withExpression("be") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference(), new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping().withName("mfbfununmpzkrvfy") - .withType(MappingType.AGGREGATE) - .withFunctionName("schlzvfictnkj") - .withExpression("gcwn") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference())), - new MapperAttributeMapping().withName("fyrtogmhmjp") - .withType(MappingType.DIRECT) - .withFunctionName("fp") - .withExpression("wtyg") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference(), new MapperAttributeReference(), - new MapperAttributeReference()))))) - .withSourceDenormalizeInfo("datasehar"), - new DataMapperMapping().withTargetEntityName("fv") - .withSourceEntityName("rxtmbpjptnvw") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("sidqpxlbtpakft") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList( - new MapperAttributeMapping().withName("kyutrymdwmfjhpyc") - .withType(MappingType.DERIVED) - .withFunctionName("vdwkqpldr") - .withExpression("fgnaavuagnteta") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference())), - new MapperAttributeMapping().withName("dc") - .withType(MappingType.AGGREGATE) - .withFunctionName("pfe") - .withExpression("i") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping().withName("uyld") - .withType(MappingType.AGGREGATE) - .withFunctionName("ybkcgsuthhllnmwy") - .withExpression("fxexlfciatxtjrr") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference(), new MapperAttributeReference())), - new MapperAttributeMapping().withName("kjhhxdlajf") - .withType(MappingType.AGGREGATE) - .withFunctionName("scv") - .withExpression("xlhuavkrmuk") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference(), new MapperAttributeReference()))))) - .withSourceDenormalizeInfo("dataxett"))) - .withRelationships(Arrays.asList("dataojfkq", "datadnqtoqxjhqx", "datas")); - model = BinaryData.fromObject(model).toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("usuv", model.targetEntities().get(0).name()); - Assertions.assertEquals("wci", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("jsllfryvd", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("xnyqgxhlusr", model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("buyvp", model.connection().linkedService().referenceName()); - Assertions.assertEquals("vkskmqozzk", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("iizjixlqfhefkwa", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("mgnlqxsjxtel", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("hvuqbo", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("lzqocark", - model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("dtsnxawqytllhdyz", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DERIVED, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("zexnxakcky", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("mxgaabjkdtfohfao", - 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 fd6744361800..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java +++ /dev/null @@ -1,236 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"qncjubkhjozfymcw\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"zipbwxgoooxzp\",\"parameters\":{\"gzigjsugswhgsaod\":\"datamskxknp\",\"aquvwsxbgnvkervq\":\"datawwnbafoctohz\",\"pabdsrg\":\"datahoadhrsxqvzv\",\"hjnlt\":\"dataajglzrsubklr\"}},\"name\":\"etjdvqydieqqkwa\",\"description\":\"wdxvqzxoebwg\",\"dataset\":{\"referenceName\":\"bibanbau\",\"parameters\":{\"lssan\":\"datazvpaklozkxbzrpej\"}},\"linkedService\":{\"referenceName\":\"ttkgsux\",\"parameters\":{\"hkslgwlokhueoij\":\"dataswgkpjhboyikebh\",\"jyvdwtfxptpqayam\":\"datazcqypzqzufgsyf\",\"ullojk\":\"datancfgybmxsnxoc\",\"g\":\"dataoy\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"j\",\"datasetParameters\":\"datadbdljz\",\"parameters\":{\"nq\":\"datarcvuqbsgzlrqhb\",\"jlf\":\"datagdxwbsfpyxx\",\"ilz\":\"dataecominxojjluxxd\",\"za\":\"datadzzqjmu\"},\"\":{\"vwta\":\"dataribqlotokh\",\"nkbtlwljss\":\"datankcqwwxwjyofgw\",\"isubxbteog\":\"datactsnldkpwol\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"ij\",\"parameters\":{\"m\":\"datawlefksxqceazfpxg\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"zvluyqqaiosss\",\"parameters\":{\"fxtjdhsoym\":\"dataaifppuacvfyeowp\",\"tkfvvdshx\":\"datapvtyqfttehdpbouj\",\"nquktrfnslnlrxs\":\"datadedsuenygnxcgjtf\"}},\"name\":\"ylt\",\"description\":\"ntf\",\"dataset\":{\"referenceName\":\"bgwjdxwnaz\",\"parameters\":{\"jwzzqseuzu\":\"datardreyzjwhsetw\",\"c\":\"datakykcyqhyqqzz\",\"ewfopazdazg\":\"datakeys\",\"mdpv\":\"datasqgpewqcfu\"}},\"linkedService\":{\"referenceName\":\"glq\",\"parameters\":{\"yowmndcovdw\":\"datanlzclctz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"uxza\",\"datasetParameters\":\"datamk\",\"parameters\":{\"txudqyeme\":\"datauwkudrbcp\"},\"\":{\"mjauwcgx\":\"dataaucmcirtnee\",\"zerwgudas\":\"datafnohaitran\",\"ngfcocefhpriyl\":\"dataxubvf\"}}},{\"schemaLinkedService\":{\"referenceName\":\"pztraudsvhl\",\"parameters\":{\"egpqtmo\":\"dataul\",\"shqrdgrt\":\"datahvrztnvg\",\"fa\":\"datamewjzlpyk\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"wjcayerzrr\",\"parameters\":{\"zrghsrleink\":\"dataybylpol\"}},\"name\":\"scjfncjwvuagf\",\"description\":\"tltng\",\"dataset\":{\"referenceName\":\"reuptrk\",\"parameters\":{\"s\":\"dataijajwolx\"}},\"linkedService\":{\"referenceName\":\"ghmp\",\"parameters\":{\"bxqla\":\"datalslrcigtzjc\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ssov\",\"datasetParameters\":\"datapavidnievwffc\",\"parameters\":{\"xgcbdsvalpnpt\":\"dataezslp\",\"x\":\"datatrkxgpazwu\"},\"\":{\"zz\":\"datanjobfelhldiu\",\"iudjp\":\"dataqlmfaewz\",\"qhnmhk\":\"datapqht\",\"gcruxspinym\":\"dataezsdsuxheq\"}}},{\"schemaLinkedService\":{\"referenceName\":\"gwokmikpazfbmjxu\",\"parameters\":{\"zaehpphthd\":\"datapfdvhaxdv\",\"tatlakfqoi\":\"datalmv\",\"rpogwphchg\":\"datawgiksbbvtoo\",\"htukfac\":\"datat\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"mbf\",\"parameters\":{\"wcgasgom\":\"datameezbxvqxbnu\",\"qgo\":\"datamjzwx\",\"gfredmlscg\":\"datasxpwwztjfmkkh\"}},\"name\":\"ll\",\"description\":\"na\",\"dataset\":{\"referenceName\":\"jowazhpab\",\"parameters\":{\"wsxnsrqor\":\"datamlyotg\"}},\"linkedService\":{\"referenceName\":\"enmvcebxeetq\",\"parameters\":{\"jkedwqurcgojmrv\":\"datacxxqndc\",\"qqrsil\":\"dataxwjongzse\",\"sbvr\":\"datachskxxka\",\"rulfuct\":\"dataaqgvto\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"thcfj\",\"datasetParameters\":\"dataxlyubqjrostv\",\"parameters\":{\"qrztrxal\":\"dataqmtzzb\",\"rsnrhp\":\"datardhabsr\",\"iwkkvya\":\"dataa\"},\"\":{\"qmmlivrjjxnwx\":\"datavvcsemsvuvdjkqxe\",\"jxlehzlx\":\"datachp\",\"w\":\"datagfquwz\",\"pjxljtxb\":\"dataibelwcerwkw\"}}},{\"schemaLinkedService\":{\"referenceName\":\"qtbxxniuisdzh\",\"parameters\":{\"cnadbuwqrgxf\":\"datagzpags\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"mqiyn\",\"parameters\":{\"vmtumxpym\":\"dataellnkkii\",\"canlduwzorxs\":\"datajfuaxroqvqpilrgu\",\"kqv\":\"datamxaqklxym\",\"ltuubw\":\"dataqepdx\"}},\"name\":\"vpjbowcpjqduq\",\"description\":\"xe\",\"dataset\":{\"referenceName\":\"ydfbwlj\",\"parameters\":{\"iegftc\":\"datauerkjddvrg\",\"fgmwd\":\"databiiftksdwgdnk\",\"buvczldbglzoutb\":\"datac\",\"orbjg\":\"dataaqgzekajclyzgs\"}},\"linkedService\":{\"referenceName\":\"zjotvmrxkhlo\",\"parameters\":{\"yu\":\"datajbhvhdiqayflu\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"uudtelv\",\"datasetParameters\":\"dataibdrqrswhbuubpyr\",\"parameters\":{\"nnctagfyvrt\":\"datajoxztfwfqchvczev\",\"cgkrepdqhqy\":\"dataqpemh\"},\"\":{\"xin\":\"datawemvxqabckmze\",\"eezn\":\"datagreohtwhlpuzjp\",\"bfaxyxzlbc\":\"dataangp\",\"ndktxfv\":\"dataphmsexroq\"}}}],\"transformations\":[{\"name\":\"eeqgpkri\",\"description\":\"bgnixxoww\",\"dataset\":{\"referenceName\":\"yfwnw\",\"parameters\":{\"icrmpepkldmaxxi\":\"dataxe\",\"ws\":\"datavs\",\"wrasekw\":\"datagkjgya\"}},\"linkedService\":{\"referenceName\":\"cvo\",\"parameters\":{\"wyxqiclad\":\"dataoqar\",\"ob\":\"dataatdavuqmcbyms\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"uvjezcjumvps\",\"datasetParameters\":\"dataioyoiglkmiq\",\"parameters\":{\"ydgnha\":\"dataraclibbfqpspkla\",\"gpmnmabe\":\"datatwukex\"},\"\":{\"gq\":\"datailwgdfpfqfpcvstc\",\"jj\":\"datavwerfwxbsmtb\",\"ci\":\"datah\",\"ekqhs\":\"datakwdvbtb\"}}},{\"name\":\"htfpwpqb\",\"description\":\"j\",\"dataset\":{\"referenceName\":\"yqwdqi\",\"parameters\":{\"nztxlujkh\":\"datahg\"}},\"linkedService\":{\"referenceName\":\"cmrnkfmkhcq\",\"parameters\":{\"eahjedv\":\"datalmhjnqt\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pok\",\"datasetParameters\":\"dataxejhh\",\"parameters\":{\"tbkewkqynspg\":\"datauavt\",\"qokmyrljial\":\"datavoffbkkwvdxae\"},\"\":{\"cjtrpzu\":\"dataobrqlp\",\"lwgdhuruz\":\"dataudivbxnhsqeaeonq\"}}},{\"name\":\"tzarogatmoljiy\",\"description\":\"pinm\",\"dataset\":{\"referenceName\":\"fkneerzztrkn\",\"parameters\":{\"hkeizcp\":\"datalugdybnhrxlelf\",\"wjekptycaydbj\":\"datahtdm\",\"ymlcfnzhmhsurlg\":\"datac\",\"lawiubmomsgvvjhv\":\"dataqkpmmzpstau\"}},\"linkedService\":{\"referenceName\":\"rlohe\",\"parameters\":{\"lqionswaeqk\":\"datamajnkd\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qxjoshohtotryeg\",\"datasetParameters\":\"datah\",\"parameters\":{\"erufgjblcdrmy\":\"dataexznlwkbfokxkhup\",\"ekdfqnhttwd\":\"datacemftzgyykyalu\",\"mhmnulwemp\":\"datawrczfjjnnuxxrk\"},\"\":{\"lusnawmhhgzotfr\":\"datafrhjulrsulwzp\",\"wxxyxhighctx\":\"datayrgkoekv\",\"skiczd\":\"dataxmolpcqydeyk\"}}},{\"name\":\"rjeizik\",\"description\":\"aboohxbmsgyc\",\"dataset\":{\"referenceName\":\"xrmdvewuyqaeohpj\",\"parameters\":{\"xaex\":\"datajkbvhhdaurgho\",\"xjxjoe\":\"datak\",\"dknkobe\":\"datalqxr\",\"cdgzseznux\":\"datatmbozomtzamicbig\"}},\"linkedService\":{\"referenceName\":\"uairaabmdlqjb\",\"parameters\":{\"xlhupmomihzbdnp\":\"dataf\",\"cghf\":\"datapkcdpreyxely\",\"sfxrkbhammgm\":\"datarufssjyg\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"efgvqcp\",\"datasetParameters\":\"datajgquxweysland\",\"parameters\":{\"nquoxsotireimse\":\"datadjhunhghcgawnr\",\"tcyilbvz\":\"databfsx\"},\"\":{\"b\":\"datacjzlquzexokjxebj\",\"v\":\"datainzabwmvoglj\",\"ehaqidoyzltgio\":\"datapgidnw\"}}}],\"script\":\"oqpe\",\"scriptLines\":[\"eapfse\",\"gdtpe\",\"nacyheqwb\"]},\"description\":\"upyvqyvliq\",\"annotations\":[\"datasejb\",\"datavsi\",\"dataieswhddzydisn\",\"dataepywyjlnldpxottd\"],\"folder\":{\"name\":\"ocqibz\"}}") - .toObject(MappingDataFlow.class); - Assertions.assertEquals("upyvqyvliq", model.description()); - Assertions.assertEquals("ocqibz", model.folder().name()); - Assertions.assertEquals("etjdvqydieqqkwa", model.sources().get(0).name()); - Assertions.assertEquals("wdxvqzxoebwg", model.sources().get(0).description()); - Assertions.assertEquals("bibanbau", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ttkgsux", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("j", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("zipbwxgoooxzp", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ylt", model.sinks().get(0).name()); - Assertions.assertEquals("ntf", model.sinks().get(0).description()); - Assertions.assertEquals("bgwjdxwnaz", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("glq", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("uxza", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ij", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zvluyqqaiosss", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("eeqgpkri", model.transformations().get(0).name()); - Assertions.assertEquals("bgnixxoww", model.transformations().get(0).description()); - Assertions.assertEquals("yfwnw", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("cvo", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("uvjezcjumvps", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("oqpe", model.script()); - Assertions.assertEquals("eapfse", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlow model = new MappingDataFlow().withDescription("upyvqyvliq") - .withAnnotations(Arrays.asList("datasejb", "datavsi", "dataieswhddzydisn", "dataepywyjlnldpxottd")) - .withFolder(new DataFlowFolder().withName("ocqibz")) - .withSources(Arrays.asList(new DataFlowSource().withName("etjdvqydieqqkwa") - .withDescription("wdxvqzxoebwg") - .withDataset(new DatasetReference().withReferenceName("bibanbau") - .withParameters(mapOf("lssan", "datazvpaklozkxbzrpej"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ttkgsux") - .withParameters(mapOf("hkslgwlokhueoij", "dataswgkpjhboyikebh", "jyvdwtfxptpqayam", - "datazcqypzqzufgsyf", "ullojk", "datancfgybmxsnxoc", "g", "dataoy"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("j") - .withDatasetParameters("datadbdljz") - .withParameters(mapOf("nq", "datarcvuqbsgzlrqhb", "jlf", "datagdxwbsfpyxx", "ilz", - "dataecominxojjluxxd", "za", "datadzzqjmu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("zipbwxgoooxzp") - .withParameters(mapOf("gzigjsugswhgsaod", "datamskxknp", "aquvwsxbgnvkervq", "datawwnbafoctohz", - "pabdsrg", "datahoadhrsxqvzv", "hjnlt", "dataajglzrsubklr"))))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("ylt") - .withDescription("ntf") - .withDataset(new DatasetReference().withReferenceName("bgwjdxwnaz") - .withParameters(mapOf("jwzzqseuzu", "datardreyzjwhsetw", "c", "datakykcyqhyqqzz", "ewfopazdazg", - "datakeys", "mdpv", "datasqgpewqcfu"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("glq") - .withParameters(mapOf("yowmndcovdw", "datanlzclctz"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("uxza") - .withDatasetParameters("datamk") - .withParameters(mapOf("txudqyeme", "datauwkudrbcp")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ij") - .withParameters(mapOf("m", "datawlefksxqceazfpxg"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("zvluyqqaiosss") - .withParameters(mapOf("fxtjdhsoym", "dataaifppuacvfyeowp", "tkfvvdshx", "datapvtyqfttehdpbouj", - "nquktrfnslnlrxs", "datadedsuenygnxcgjtf"))), - new DataFlowSink().withName("scjfncjwvuagf") - .withDescription("tltng") - .withDataset( - new DatasetReference().withReferenceName("reuptrk").withParameters(mapOf("s", "dataijajwolx"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ghmp") - .withParameters(mapOf("bxqla", "datalslrcigtzjc"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ssov") - .withDatasetParameters("datapavidnievwffc") - .withParameters(mapOf("xgcbdsvalpnpt", "dataezslp", "x", "datatrkxgpazwu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("pztraudsvhl") - .withParameters(mapOf("egpqtmo", "dataul", "shqrdgrt", "datahvrztnvg", "fa", "datamewjzlpyk"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("wjcayerzrr") - .withParameters(mapOf("zrghsrleink", "dataybylpol"))), - new DataFlowSink().withName("ll") - .withDescription("na") - .withDataset(new DatasetReference().withReferenceName("jowazhpab") - .withParameters(mapOf("wsxnsrqor", "datamlyotg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("enmvcebxeetq") - .withParameters(mapOf("jkedwqurcgojmrv", "datacxxqndc", "qqrsil", "dataxwjongzse", "sbvr", - "datachskxxka", "rulfuct", "dataaqgvto"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("thcfj") - .withDatasetParameters("dataxlyubqjrostv") - .withParameters(mapOf("qrztrxal", "dataqmtzzb", "rsnrhp", "datardhabsr", "iwkkvya", "dataa")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("gwokmikpazfbmjxu") - .withParameters(mapOf("zaehpphthd", "datapfdvhaxdv", "tatlakfqoi", "datalmv", "rpogwphchg", - "datawgiksbbvtoo", "htukfac", "datat"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("mbf") - .withParameters(mapOf("wcgasgom", "datameezbxvqxbnu", "qgo", "datamjzwx", "gfredmlscg", - "datasxpwwztjfmkkh"))), - new DataFlowSink().withName("vpjbowcpjqduq") - .withDescription("xe") - .withDataset(new DatasetReference().withReferenceName("ydfbwlj") - .withParameters(mapOf("iegftc", "datauerkjddvrg", "fgmwd", "databiiftksdwgdnk", - "buvczldbglzoutb", "datac", "orbjg", "dataaqgzekajclyzgs"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("zjotvmrxkhlo") - .withParameters(mapOf("yu", "datajbhvhdiqayflu"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("uudtelv") - .withDatasetParameters("dataibdrqrswhbuubpyr") - .withParameters(mapOf("nnctagfyvrt", "datajoxztfwfqchvczev", "cgkrepdqhqy", "dataqpemh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("qtbxxniuisdzh") - .withParameters(mapOf("cnadbuwqrgxf", "datagzpags"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("mqiyn") - .withParameters(mapOf("vmtumxpym", "dataellnkkii", "canlduwzorxs", "datajfuaxroqvqpilrgu", - "kqv", "datamxaqklxym", "ltuubw", "dataqepdx"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("eeqgpkri") - .withDescription("bgnixxoww") - .withDataset(new DatasetReference().withReferenceName("yfwnw") - .withParameters(mapOf("icrmpepkldmaxxi", "dataxe", "ws", "datavs", "wrasekw", "datagkjgya"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("cvo") - .withParameters(mapOf("wyxqiclad", "dataoqar", "ob", "dataatdavuqmcbyms"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("uvjezcjumvps") - .withDatasetParameters("dataioyoiglkmiq") - .withParameters(mapOf("ydgnha", "dataraclibbfqpspkla", "gpmnmabe", "datatwukex")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("htfpwpqb") - .withDescription("j") - .withDataset( - new DatasetReference().withReferenceName("yqwdqi").withParameters(mapOf("nztxlujkh", "datahg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("cmrnkfmkhcq") - .withParameters(mapOf("eahjedv", "datalmhjnqt"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pok") - .withDatasetParameters("dataxejhh") - .withParameters(mapOf("tbkewkqynspg", "datauavt", "qokmyrljial", "datavoffbkkwvdxae")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("tzarogatmoljiy") - .withDescription("pinm") - .withDataset(new DatasetReference().withReferenceName("fkneerzztrkn") - .withParameters(mapOf("hkeizcp", "datalugdybnhrxlelf", "wjekptycaydbj", "datahtdm", - "ymlcfnzhmhsurlg", "datac", "lawiubmomsgvvjhv", "dataqkpmmzpstau"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("rlohe") - .withParameters(mapOf("lqionswaeqk", "datamajnkd"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qxjoshohtotryeg") - .withDatasetParameters("datah") - .withParameters(mapOf("erufgjblcdrmy", "dataexznlwkbfokxkhup", "ekdfqnhttwd", - "datacemftzgyykyalu", "mhmnulwemp", "datawrczfjjnnuxxrk")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("rjeizik") - .withDescription("aboohxbmsgyc") - .withDataset(new DatasetReference().withReferenceName("xrmdvewuyqaeohpj") - .withParameters(mapOf("xaex", "datajkbvhhdaurgho", "xjxjoe", "datak", "dknkobe", "datalqxr", - "cdgzseznux", "datatmbozomtzamicbig"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("uairaabmdlqjb") - .withParameters(mapOf("xlhupmomihzbdnp", "dataf", "cghf", "datapkcdpreyxely", "sfxrkbhammgm", - "datarufssjyg"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("efgvqcp") - .withDatasetParameters("datajgquxweysland") - .withParameters(mapOf("nquoxsotireimse", "datadjhunhghcgawnr", "tcyilbvz", "databfsx")) - .withAdditionalProperties(mapOf())))) - .withScript("oqpe") - .withScriptLines(Arrays.asList("eapfse", "gdtpe", "nacyheqwb")); - model = BinaryData.fromObject(model).toObject(MappingDataFlow.class); - Assertions.assertEquals("upyvqyvliq", model.description()); - Assertions.assertEquals("ocqibz", model.folder().name()); - Assertions.assertEquals("etjdvqydieqqkwa", model.sources().get(0).name()); - Assertions.assertEquals("wdxvqzxoebwg", model.sources().get(0).description()); - Assertions.assertEquals("bibanbau", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ttkgsux", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("j", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("zipbwxgoooxzp", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ylt", model.sinks().get(0).name()); - Assertions.assertEquals("ntf", model.sinks().get(0).description()); - Assertions.assertEquals("bgwjdxwnaz", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("glq", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("uxza", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ij", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zvluyqqaiosss", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("eeqgpkri", model.transformations().get(0).name()); - Assertions.assertEquals("bgnixxoww", model.transformations().get(0).description()); - Assertions.assertEquals("yfwnw", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("cvo", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("uvjezcjumvps", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("oqpe", model.script()); - Assertions.assertEquals("eapfse", 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 9a7c6a520847..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"ee\",\"parameters\":{\"jhdhz\":\"datahryvcjwqwoqsra\"}},\"name\":\"b\",\"description\":\"ijh\",\"dataset\":{\"referenceName\":\"zgdkkagvwu\",\"parameters\":{\"mzhwilzzhni\":\"datausmmor\",\"neyttl\":\"datamriprlk\",\"bkut\":\"datacxiv\",\"ynbpvzlqywauy\":\"dataumltwjflu\"}},\"linkedService\":{\"referenceName\":\"jckhmocgj\",\"parameters\":{\"bsjrclrv\":\"dataouarhwvixqqggljk\",\"nrbctbhpjhxpcvrd\":\"dataz\",\"it\":\"datay\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qady\",\"datasetParameters\":\"datajahwriuomzczf\",\"parameters\":{\"xwspcaxikhfjq\":\"dataeevsa\",\"ysemtmesrfsvpin\":\"databglcxkxgzzromvy\"},\"\":{\"zbbgspftesubzpvp\":\"dataatqtdiswxspvckoj\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ylytcovqseusr\",\"parameters\":{\"zfxnxmlbmuos\":\"datad\",\"zlwhbwzjnufzrfgm\":\"datakjmdihdcyy\",\"tftedz\":\"dataqgnnbz\",\"vdpwwobtdphti\":\"dataubjtvgjsxmtyjjv\"}},\"name\":\"sffofwanmhksca\",\"description\":\"azcg\",\"dataset\":{\"referenceName\":\"friwgybjp\",\"parameters\":{\"wewqkj\":\"datakscvgllixdgbyf\"}},\"linkedService\":{\"referenceName\":\"prwpxsoohu\",\"parameters\":{\"lfb\":\"datacskltezuuggg\",\"srtmdylperpiltt\":\"datardcgu\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"czfcmfpfbod\",\"datasetParameters\":\"dataresrgvtshuvft\",\"parameters\":{\"zgjypanhxmpdxxz\":\"datavmuqke\",\"tnxlkfhglhr\":\"datatwwzjw\",\"qxovppqibukk\":\"dataoxqwecrsnhpcse\",\"etjsczivfqbqna\":\"datavzrlrmlcc\"},\"\":{\"yvdgxlyzk\":\"datayenzsieuscpl\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"shezs\",\"parameters\":{\"sayebra\":\"datalrupjovmo\",\"ykykip\":\"datawzlpzbtz\",\"mbezacfpztg\":\"datasdyepfno\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"wyqejgaao\",\"parameters\":{\"ngdyfcixrhlcq\":\"datagkppgkqzkcyzmf\",\"goiutgw\":\"datahoe\",\"yntacihnco\":\"datamkahpqha\",\"mliqmvlb\":\"datamip\"}},\"name\":\"i\",\"description\":\"aqgrv\",\"dataset\":{\"referenceName\":\"omxp\",\"parameters\":{\"wiqbuoutm\":\"datatsdfjyieso\",\"gbww\":\"datayzgleofjs\"}},\"linkedService\":{\"referenceName\":\"dajfwnncfma\",\"parameters\":{\"l\":\"datagjj\",\"uxtndopgjttbasua\":\"dataiqlwixvtbou\",\"lndbeaqbkixv\":\"dataap\",\"spugzfeuzjljmph\":\"datalwynpbbfqvzfj\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ezolgjzm\",\"datasetParameters\":\"datauydoccnx\",\"parameters\":{\"hbatecaatsdohzni\":\"datanzbuia\",\"wiinjdllw\":\"datacbdaom\"},\"\":{\"owavvqxuajgcqw\":\"datae\"}}}],\"transformations\":[{\"name\":\"nkgfcfdr\",\"description\":\"si\",\"dataset\":{\"referenceName\":\"xtclhuulriqbyok\",\"parameters\":{\"cdjwsu\":\"databzsxebrslttfy\",\"holhujbfw\":\"dataardnagttpufpbpgn\",\"whdmcvhtbbz\":\"dataiplkysolsyjprxs\"}},\"linkedService\":{\"referenceName\":\"f\",\"parameters\":{\"zgihotje\":\"datawzbxpc\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"mx\",\"datasetParameters\":\"datalrrskap\",\"parameters\":{\"uyader\":\"dataiee\"},\"\":{\"yimyccgrvk\":\"dataokyk\",\"ersejeg\":\"dataxzznnui\"}}},{\"name\":\"rkjguwrjmwvvbt\",\"description\":\"kxxi\",\"dataset\":{\"referenceName\":\"gxql\",\"parameters\":{\"vjaqu\":\"dataotjgxieqfkyfhi\"}},\"linkedService\":{\"referenceName\":\"yynvskpa\",\"parameters\":{\"bxcbccwkqm\":\"datageumexm\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"p\",\"datasetParameters\":\"dataiscr\",\"parameters\":{\"dahlfxlmuifmuadj\":\"datagftrqrejdaahuqim\",\"skiioshjgczetybn\":\"datafsn\",\"j\":\"datagztlcgc\"},\"\":{\"mywj\":\"dataj\",\"cljkxpyl\":\"dataebecuvlbefv\"}}}],\"script\":\"oxz\",\"scriptLines\":[\"syxjijeyp\",\"vrbkerdkdkgaw\"]}") - .toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("b", model.sources().get(0).name()); - Assertions.assertEquals("ijh", model.sources().get(0).description()); - Assertions.assertEquals("zgdkkagvwu", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jckhmocgj", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("qady", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ee", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("i", model.sinks().get(0).name()); - Assertions.assertEquals("aqgrv", model.sinks().get(0).description()); - Assertions.assertEquals("omxp", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("dajfwnncfma", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("ezolgjzm", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("shezs", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("wyqejgaao", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("nkgfcfdr", model.transformations().get(0).name()); - Assertions.assertEquals("si", model.transformations().get(0).description()); - Assertions.assertEquals("xtclhuulriqbyok", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("f", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("mx", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("oxz", model.script()); - Assertions.assertEquals("syxjijeyp", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlowTypeProperties model - = new MappingDataFlowTypeProperties() - .withSources( - Arrays.asList( - new DataFlowSource().withName("b") - .withDescription("ijh") - .withDataset(new DatasetReference().withReferenceName("zgdkkagvwu") - .withParameters(mapOf("mzhwilzzhni", "datausmmor", "neyttl", "datamriprlk", "bkut", - "datacxiv", "ynbpvzlqywauy", "dataumltwjflu"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("jckhmocgj") - .withParameters(mapOf("bsjrclrv", "dataouarhwvixqqggljk", "nrbctbhpjhxpcvrd", "dataz", - "it", "datay"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qady") - .withDatasetParameters("datajahwriuomzczf") - .withParameters( - mapOf("xwspcaxikhfjq", "dataeevsa", "ysemtmesrfsvpin", "databglcxkxgzzromvy")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ee") - .withParameters(mapOf("jhdhz", "datahryvcjwqwoqsra"))), - new DataFlowSource().withName("sffofwanmhksca") - .withDescription("azcg") - .withDataset(new DatasetReference().withReferenceName("friwgybjp") - .withParameters(mapOf("wewqkj", "datakscvgllixdgbyf"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("prwpxsoohu") - .withParameters(mapOf("lfb", "datacskltezuuggg", "srtmdylperpiltt", "datardcgu"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("czfcmfpfbod") - .withDatasetParameters("dataresrgvtshuvft") - .withParameters(mapOf("zgjypanhxmpdxxz", "datavmuqke", "tnxlkfhglhr", "datatwwzjw", - "qxovppqibukk", "dataoxqwecrsnhpcse", "etjsczivfqbqna", "datavzrlrmlcc")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ylytcovqseusr") - .withParameters(mapOf("zfxnxmlbmuos", "datad", "zlwhbwzjnufzrfgm", "datakjmdihdcyy", - "tftedz", "dataqgnnbz", "vdpwwobtdphti", "dataubjtvgjsxmtyjjv"))))) - .withSinks( - Arrays.asList(new DataFlowSink().withName("i") - .withDescription("aqgrv") - .withDataset(new DatasetReference().withReferenceName("omxp") - .withParameters(mapOf("wiqbuoutm", "datatsdfjyieso", "gbww", "datayzgleofjs"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("dajfwnncfma") - .withParameters(mapOf("l", "datagjj", "uxtndopgjttbasua", "dataiqlwixvtbou", "lndbeaqbkixv", - "dataap", "spugzfeuzjljmph", "datalwynpbbfqvzfj"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ezolgjzm") - .withDatasetParameters("datauydoccnx") - .withParameters(mapOf("hbatecaatsdohzni", "datanzbuia", "wiinjdllw", "datacbdaom")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("shezs") - .withParameters(mapOf("sayebra", "datalrupjovmo", "ykykip", "datawzlpzbtz", "mbezacfpztg", - "datasdyepfno"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("wyqejgaao") - .withParameters(mapOf("ngdyfcixrhlcq", "datagkppgkqzkcyzmf", "goiutgw", "datahoe", - "yntacihnco", "datamkahpqha", "mliqmvlb", "datamip"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("nkgfcfdr") - .withDescription("si") - .withDataset(new DatasetReference().withReferenceName("xtclhuulriqbyok") - .withParameters(mapOf("cdjwsu", "databzsxebrslttfy", "holhujbfw", "dataardnagttpufpbpgn", - "whdmcvhtbbz", "dataiplkysolsyjprxs"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("f") - .withParameters(mapOf("zgihotje", "datawzbxpc"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("mx") - .withDatasetParameters("datalrrskap") - .withParameters(mapOf("uyader", "dataiee")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("rkjguwrjmwvvbt") - .withDescription("kxxi") - .withDataset(new DatasetReference().withReferenceName("gxql") - .withParameters(mapOf("vjaqu", "dataotjgxieqfkyfhi"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("yynvskpa") - .withParameters(mapOf("bxcbccwkqm", "datageumexm"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("p") - .withDatasetParameters("dataiscr") - .withParameters(mapOf("dahlfxlmuifmuadj", "datagftrqrejdaahuqim", "skiioshjgczetybn", - "datafsn", "j", "datagztlcgc")) - .withAdditionalProperties(mapOf())))) - .withScript("oxz") - .withScriptLines(Arrays.asList("syxjijeyp", "vrbkerdkdkgaw")); - model = BinaryData.fromObject(model).toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("b", model.sources().get(0).name()); - Assertions.assertEquals("ijh", model.sources().get(0).description()); - Assertions.assertEquals("zgdkkagvwu", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jckhmocgj", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("qady", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ee", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("i", model.sinks().get(0).name()); - Assertions.assertEquals("aqgrv", model.sinks().get(0).description()); - Assertions.assertEquals("omxp", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("dajfwnncfma", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("ezolgjzm", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("shezs", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("wyqejgaao", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("nkgfcfdr", model.transformations().get(0).name()); - Assertions.assertEquals("si", model.transformations().get(0).description()); - Assertions.assertEquals("xtclhuulriqbyok", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("f", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("mx", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("oxz", model.script()); - Assertions.assertEquals("syxjijeyp", 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 4fb7ab264e89..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\":\"s\",\"query\":\"databbwtagxhriru\",\"queryTimeout\":\"datad\",\"additionalColumns\":\"dataxjxl\",\"sourceRetryCount\":\"datarolagbellp\",\"sourceRetryWait\":\"datafbrsmyisndf\",\"maxConcurrentConnections\":\"datahgowhnvcqhmuv\",\"disableMetricsCollection\":\"datastohurktod\",\"\":{\"phnxxwble\":\"datatyijlvc\",\"ebw\":\"databdkwzbkhvlsahj\",\"ihfxtbvhmsvcmce\":\"dataqnluszilkrcpxl\"}}") - .toObject(MariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBSource model = new MariaDBSource().withSourceRetryCount("datarolagbellp") - .withSourceRetryWait("datafbrsmyisndf") - .withMaxConcurrentConnections("datahgowhnvcqhmuv") - .withDisableMetricsCollection("datastohurktod") - .withQueryTimeout("datad") - .withAdditionalColumns("dataxjxl") - .withQuery("databbwtagxhriru"); - 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 97a4b4dcaec0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.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.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\":\"kmzv\",\"typeProperties\":{\"tableName\":\"datatq\"},\"description\":\"qxfblsxy\",\"structure\":\"datag\",\"schema\":\"datad\",\"linkedServiceName\":{\"referenceName\":\"kllefmizdcsrvb\",\"parameters\":{\"cgqbmxbpqcn\":\"datasgfyxhs\"}},\"parameters\":{\"lfpiuuf\":{\"type\":\"String\",\"defaultValue\":\"dataojvmazu\"},\"qrgivbhmnimj\":{\"type\":\"Float\",\"defaultValue\":\"datanco\"},\"fnmmib\":{\"type\":\"Float\",\"defaultValue\":\"datab\"},\"aygumqeobr\":{\"type\":\"String\",\"defaultValue\":\"dataduyrg\"}},\"annotations\":[\"dataudgsawhamigs\"],\"folder\":{\"name\":\"fkiaagwkrx\"},\"\":{\"enubrf\":\"datag\"}}") - .toObject(MariaDBTableDataset.class); - Assertions.assertEquals("qxfblsxy", model.description()); - Assertions.assertEquals("kllefmizdcsrvb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("lfpiuuf").type()); - Assertions.assertEquals("fkiaagwkrx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBTableDataset model = new MariaDBTableDataset().withDescription("qxfblsxy") - .withStructure("datag") - .withSchema("datad") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kllefmizdcsrvb") - .withParameters(mapOf("cgqbmxbpqcn", "datasgfyxhs"))) - .withParameters(mapOf("lfpiuuf", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataojvmazu"), - "qrgivbhmnimj", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datanco"), - "fnmmib", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datab"), - "aygumqeobr", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataduyrg"))) - .withAnnotations(Arrays.asList("dataudgsawhamigs")) - .withFolder(new DatasetFolder().withName("fkiaagwkrx")) - .withTableName("datatq"); - model = BinaryData.fromObject(model).toObject(MariaDBTableDataset.class); - Assertions.assertEquals("qxfblsxy", model.description()); - Assertions.assertEquals("kllefmizdcsrvb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("lfpiuuf").type()); - Assertions.assertEquals("fkiaagwkrx", 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 b919b6a1cfc8..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\":\"vuylyumbwep\",\"typeProperties\":{\"tableName\":\"datafo\"},\"description\":\"nuomsx\",\"structure\":\"datakhmemxkahapesn\",\"schema\":\"dataoullyfzmnxrmxx\",\"linkedServiceName\":{\"referenceName\":\"vwbatjgzkmwfw\",\"parameters\":{\"i\":\"datapxfmdj\",\"cbdnpfcg\":\"datammdzphxulx\",\"bzxp\":\"datadttowqxxc\",\"wtc\":\"dataloovhati\"}},\"parameters\":{\"qpzksdpfvls\":{\"type\":\"Object\",\"defaultValue\":\"datakfeomotquqlqeyis\"}},\"annotations\":[\"dataetwtlafnkjt\",\"datafbdpn\",\"datavhgcgr\",\"datalyyfsmoc\"],\"folder\":{\"name\":\"rchmetvzhuugd\"},\"\":{\"cawwayqtsrn\":\"datadskwvb\"}}") - .toObject(MarketoObjectDataset.class); - Assertions.assertEquals("nuomsx", model.description()); - Assertions.assertEquals("vwbatjgzkmwfw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("qpzksdpfvls").type()); - Assertions.assertEquals("rchmetvzhuugd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoObjectDataset model = new MarketoObjectDataset().withDescription("nuomsx") - .withStructure("datakhmemxkahapesn") - .withSchema("dataoullyfzmnxrmxx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vwbatjgzkmwfw") - .withParameters(mapOf("i", "datapxfmdj", "cbdnpfcg", "datammdzphxulx", "bzxp", "datadttowqxxc", "wtc", - "dataloovhati"))) - .withParameters(mapOf("qpzksdpfvls", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datakfeomotquqlqeyis"))) - .withAnnotations(Arrays.asList("dataetwtlafnkjt", "datafbdpn", "datavhgcgr", "datalyyfsmoc")) - .withFolder(new DatasetFolder().withName("rchmetvzhuugd")) - .withTableName("datafo"); - model = BinaryData.fromObject(model).toObject(MarketoObjectDataset.class); - Assertions.assertEquals("nuomsx", model.description()); - Assertions.assertEquals("vwbatjgzkmwfw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("qpzksdpfvls").type()); - Assertions.assertEquals("rchmetvzhuugd", 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 3579e072ab8f..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\":\"l\",\"query\":\"dataddpbt\",\"queryTimeout\":\"datacrmptjsixawipj\",\"additionalColumns\":\"datacyxnza\",\"sourceRetryCount\":\"datakhgdzrcq\",\"sourceRetryWait\":\"dataapohemine\",\"maxConcurrentConnections\":\"datajrdxhlovmxhztdca\",\"disableMetricsCollection\":\"datamvqgqmi\",\"\":{\"tcihupoeljfni\":\"dataagmhhwcyasziuh\"}}") - .toObject(MarketoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoSource model = new MarketoSource().withSourceRetryCount("datakhgdzrcq") - .withSourceRetryWait("dataapohemine") - .withMaxConcurrentConnections("datajrdxhlovmxhztdca") - .withDisableMetricsCollection("datamvqgqmi") - .withQueryTimeout("datacrmptjsixawipj") - .withAdditionalColumns("datacyxnza") - .withQuery("dataddpbt"); - 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 625538f0d4a9..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\":\"datavej\",\"value\":\"datayu\"}").toObject(MetadataItem.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetadataItem model = new MetadataItem().withName("datavej").withValue("datayu"); - 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 bea45005a723..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\":\"lgpepxbjjnxdgn\",\"preCopyScript\":\"datavjw\",\"writeBatchSize\":\"datakltlpbb\",\"writeBatchTimeout\":\"datamm\",\"sinkRetryCount\":\"datamvada\",\"sinkRetryWait\":\"datae\",\"maxConcurrentConnections\":\"datawtdzgngnuuz\",\"disableMetricsCollection\":\"datagfojdb\",\"\":{\"vqmxzdi\":\"datamnelqlqn\",\"nrpqsj\":\"datan\",\"reqbwa\":\"datagncyksb\"}}") - .toObject(MicrosoftAccessSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSink model = new MicrosoftAccessSink().withWriteBatchSize("datakltlpbb") - .withWriteBatchTimeout("datamm") - .withSinkRetryCount("datamvada") - .withSinkRetryWait("datae") - .withMaxConcurrentConnections("datawtdzgngnuuz") - .withDisableMetricsCollection("datagfojdb") - .withPreCopyScript("datavjw"); - 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 1e5fd1de09e8..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\":\"hsodofsxjik\",\"query\":\"datawkwxdgcfcfkyyrj\",\"additionalColumns\":\"datahslrbwwkbyw\",\"sourceRetryCount\":\"datasquhu\",\"sourceRetryWait\":\"dataqwoggwcxdm\",\"maxConcurrentConnections\":\"datauwldfahkyft\",\"disableMetricsCollection\":\"datakbgsgopyckmncru\",\"\":{\"qkgixfnrneyav\":\"datadjmda\",\"iizbwfjumulhf\":\"datadovpwrqcfzokplz\",\"qcapbkfvowzbk\":\"datadgnchahldnrpt\"}}") - .toObject(MicrosoftAccessSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSource model = new MicrosoftAccessSource().withSourceRetryCount("datasquhu") - .withSourceRetryWait("dataqwoggwcxdm") - .withMaxConcurrentConnections("datauwldfahkyft") - .withDisableMetricsCollection("datakbgsgopyckmncru") - .withQuery("datawkwxdgcfcfkyyrj") - .withAdditionalColumns("datahslrbwwkbyw"); - 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 8f5b891c5c58..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\":\"suivmrf\",\"typeProperties\":{\"tableName\":\"databmseesacuicnvq\"},\"description\":\"tnd\",\"structure\":\"datamnlhnkmx\",\"schema\":\"datakekc\",\"linkedServiceName\":{\"referenceName\":\"aviiebeqrfz\",\"parameters\":{\"r\":\"dataymcwtsiucepl\",\"e\":\"datagkuorwpqbst\"}},\"parameters\":{\"noyjyflsm\":{\"type\":\"Float\",\"defaultValue\":\"datacruykkielay\"},\"gdfz\":{\"type\":\"Array\",\"defaultValue\":\"datalyoi\"}},\"annotations\":[\"datahykcvoevcwf\",\"dataotkxxlwwooxg\",\"datasdz\",\"datagcvypjhu\"],\"folder\":{\"name\":\"gobxehujcqg\"},\"\":{\"klqrljdc\":\"dataxwiuaoibm\",\"hgxuwudgcyqruvum\":\"datakylaxrjiqoqovqhg\",\"cqwnjz\":\"datayddnqivah\"}}") - .toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("tnd", model.description()); - Assertions.assertEquals("aviiebeqrfz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("noyjyflsm").type()); - Assertions.assertEquals("gobxehujcqg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDataset model = new MicrosoftAccessTableDataset().withDescription("tnd") - .withStructure("datamnlhnkmx") - .withSchema("datakekc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("aviiebeqrfz") - .withParameters(mapOf("r", "dataymcwtsiucepl", "e", "datagkuorwpqbst"))) - .withParameters(mapOf("noyjyflsm", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datacruykkielay"), "gdfz", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datalyoi"))) - .withAnnotations(Arrays.asList("datahykcvoevcwf", "dataotkxxlwwooxg", "datasdz", "datagcvypjhu")) - .withFolder(new DatasetFolder().withName("gobxehujcqg")) - .withTableName("databmseesacuicnvq"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("tnd", model.description()); - Assertions.assertEquals("aviiebeqrfz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("noyjyflsm").type()); - Assertions.assertEquals("gobxehujcqg", 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 c5f043af8893..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\":\"datapicciyoypoe\"}") - .toObject(MicrosoftAccessTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDatasetTypeProperties model - = new MicrosoftAccessTableDatasetTypeProperties().withTableName("datapicciyoypoe"); - 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 e1484c55b827..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\":\"jrnogykugdl\",\"typeProperties\":{\"collection\":\"datalkyhtrrqwfyybpt\"},\"description\":\"sav\",\"structure\":\"datahk\",\"schema\":\"datageuufkb\",\"linkedServiceName\":{\"referenceName\":\"bfbxj\",\"parameters\":{\"sazdjmofsvpz\":\"datajybdnbycsbto\",\"mlfjymgw\":\"datagnywxu\",\"q\":\"datamszcfy\",\"re\":\"datae\"}},\"parameters\":{\"vrgihl\":{\"type\":\"Array\",\"defaultValue\":\"datapagknxma\"}},\"annotations\":[\"datafewvqk\"],\"folder\":{\"name\":\"cgeipqxxsdyaf\"},\"\":{\"clejqzhpv\":\"datadsmmabh\",\"eullgfyog\":\"dataxpbadj\"}}") - .toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("sav", model.description()); - Assertions.assertEquals("bfbxj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vrgihl").type()); - Assertions.assertEquals("cgeipqxxsdyaf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDataset model = new MongoDbAtlasCollectionDataset().withDescription("sav") - .withStructure("datahk") - .withSchema("datageuufkb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bfbxj") - .withParameters(mapOf("sazdjmofsvpz", "datajybdnbycsbto", "mlfjymgw", "datagnywxu", "q", "datamszcfy", - "re", "datae"))) - .withParameters(mapOf("vrgihl", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datapagknxma"))) - .withAnnotations(Arrays.asList("datafewvqk")) - .withFolder(new DatasetFolder().withName("cgeipqxxsdyaf")) - .withCollection("datalkyhtrrqwfyybpt"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("sav", model.description()); - Assertions.assertEquals("bfbxj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vrgihl").type()); - Assertions.assertEquals("cgeipqxxsdyaf", 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 1fc2cece29ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.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.MongoDbAtlasCollectionDatasetTypeProperties; - -public final class MongoDbAtlasCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collection\":\"dataqscjpvqerqxk\"}") - .toObject(MongoDbAtlasCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model - = new MongoDbAtlasCollectionDatasetTypeProperties().withCollection("dataqscjpvqerqxk"); - 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 1354a17fac79..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.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.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\":\"fshhc\",\"typeProperties\":{\"connectionString\":\"datayvjispkgkhvpvbz\",\"database\":\"datayo\",\"driverVersion\":\"dataxstxsfztlvs\"},\"connectVia\":{\"referenceName\":\"sowyhxwhdyfgtwx\",\"parameters\":{\"im\":\"databzfiacmwmc\",\"tnolziohdxyuk\":\"datahrfmcjjxxwzdwmju\",\"sffpizef\":\"dataplfwykrpojen\",\"zcevf\":\"datajgblehxpeuahvxf\"}},\"description\":\"ekyd\",\"parameters\":{\"pejhyrzzxqtcg\":{\"type\":\"Bool\",\"defaultValue\":\"datafkneckvyrvdszri\"},\"juingnfunhtzgxs\":{\"type\":\"Bool\",\"defaultValue\":\"datahzcicitykzyi\"},\"dhjztbwzjbqzqwb\":{\"type\":\"Object\",\"defaultValue\":\"datamopk\"}},\"annotations\":[\"datahqzdbzlkd\",\"databekvprkwpvxieqc\"],\"\":{\"aeiuex\":\"datazshfafbeh\",\"ecrizkabafdlsiza\":\"datapgrmwdwlraeplpf\"}}") - .toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("sowyhxwhdyfgtwx", model.connectVia().referenceName()); - Assertions.assertEquals("ekyd", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("pejhyrzzxqtcg").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedService model = new MongoDbAtlasLinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("sowyhxwhdyfgtwx") - .withParameters(mapOf("im", "databzfiacmwmc", "tnolziohdxyuk", "datahrfmcjjxxwzdwmju", "sffpizef", - "dataplfwykrpojen", "zcevf", "datajgblehxpeuahvxf"))) - .withDescription("ekyd") - .withParameters(mapOf("pejhyrzzxqtcg", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datafkneckvyrvdszri"), - "juingnfunhtzgxs", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datahzcicitykzyi"), - "dhjztbwzjbqzqwb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datamopk"))) - .withAnnotations(Arrays.asList("datahqzdbzlkd", "databekvprkwpvxieqc")) - .withConnectionString("datayvjispkgkhvpvbz") - .withDatabase("datayo") - .withDriverVersion("dataxstxsfztlvs"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("sowyhxwhdyfgtwx", model.connectVia().referenceName()); - Assertions.assertEquals("ekyd", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("pejhyrzzxqtcg").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 7ab54e0157d2..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\":\"databsgpdbhbdx\",\"database\":\"datajsoxuuwuungdvv\",\"driverVersion\":\"datarcpq\"}") - .toObject(MongoDbAtlasLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedServiceTypeProperties model - = new MongoDbAtlasLinkedServiceTypeProperties().withConnectionString("databsgpdbhbdx") - .withDatabase("datajsoxuuwuungdvv") - .withDriverVersion("datarcpq"); - 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 6923fa0a48a3..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\":\"eftcinjcrayoasku\",\"writeBehavior\":\"datauxvujuxvl\",\"writeBatchSize\":\"dataqweoob\",\"writeBatchTimeout\":\"datagymbzaw\",\"sinkRetryCount\":\"datatzxqbqzplzyjktc\",\"sinkRetryWait\":\"datawvhiaxkmditcz\",\"maxConcurrentConnections\":\"datacqobujfxyfhlw\",\"disableMetricsCollection\":\"dataaaxpwkm\",\"\":{\"ccbduwsw\":\"dataccmjo\",\"gmewdmlk\":\"databqycubmeih\",\"pts\":\"datawchslb\"}}") - .toObject(MongoDbAtlasSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSink model = new MongoDbAtlasSink().withWriteBatchSize("dataqweoob") - .withWriteBatchTimeout("datagymbzaw") - .withSinkRetryCount("datatzxqbqzplzyjktc") - .withSinkRetryWait("datawvhiaxkmditcz") - .withMaxConcurrentConnections("datacqobujfxyfhlw") - .withDisableMetricsCollection("dataaaxpwkm") - .withWriteBehavior("datauxvujuxvl"); - 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 abf8527469bc..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\":\"f\",\"filter\":\"datavufqukjuosajq\",\"cursorMethods\":{\"project\":\"datacqdthmlqamdlcu\",\"sort\":\"datamrvryakc\",\"skip\":\"datasnprda\",\"limit\":\"dataqgabbxexacgmt\",\"\":{\"jlsztpygqwkdlx\":\"databwobovexsnmwwhbm\"}},\"batchSize\":\"datakmkcimksfejzmyv\",\"queryTimeout\":\"datazmngxzp\",\"additionalColumns\":\"databjovhddvtnbtvlg\",\"sourceRetryCount\":\"dataoewimyiz\",\"sourceRetryWait\":\"datalzzauf\",\"maxConcurrentConnections\":\"datawvyxy\",\"disableMetricsCollection\":\"datakngnt\",\"\":{\"gsjyjnhwbbhw\":\"datayv\",\"wzuerrvpamfpini\":\"datanc\"}}") - .toObject(MongoDbAtlasSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSource model = new MongoDbAtlasSource().withSourceRetryCount("dataoewimyiz") - .withSourceRetryWait("datalzzauf") - .withMaxConcurrentConnections("datawvyxy") - .withDisableMetricsCollection("datakngnt") - .withFilter("datavufqukjuosajq") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("datacqdthmlqamdlcu") - .withSort("datamrvryakc") - .withSkip("datasnprda") - .withLimit("dataqgabbxexacgmt") - .withAdditionalProperties(mapOf())) - .withBatchSize("datakmkcimksfejzmyv") - .withQueryTimeout("datazmngxzp") - .withAdditionalColumns("databjovhddvtnbtvlg"); - 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 82b59a1f0799..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.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.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\":\"cjomipvwkaujtt\",\"typeProperties\":{\"collectionName\":\"datar\"},\"description\":\"k\",\"structure\":\"datavbwofxxdplre\",\"schema\":\"datakvgahcbtu\",\"linkedServiceName\":{\"referenceName\":\"lbpxrhrfjenrazwe\",\"parameters\":{\"tostjixyzsecig\":\"datatlhqas\",\"fomcsau\":\"datazdwjtacfvvtdpcbp\"}},\"parameters\":{\"tkfysunt\":{\"type\":\"Int\",\"defaultValue\":\"dataiw\"},\"hcvasyy\":{\"type\":\"Array\",\"defaultValue\":\"dataklx\"},\"ixyxxhwrlqomaqs\":{\"type\":\"Array\",\"defaultValue\":\"dataokjbmsr\"}},\"annotations\":[\"datapzzbrwn\"],\"folder\":{\"name\":\"zsxagysokli\"},\"\":{\"bhujcydyl\":\"dataybvrrbnhyl\"}}") - .toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("k", model.description()); - Assertions.assertEquals("lbpxrhrfjenrazwe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("tkfysunt").type()); - Assertions.assertEquals("zsxagysokli", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDataset model = new MongoDbCollectionDataset().withDescription("k") - .withStructure("datavbwofxxdplre") - .withSchema("datakvgahcbtu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lbpxrhrfjenrazwe") - .withParameters(mapOf("tostjixyzsecig", "datatlhqas", "fomcsau", "datazdwjtacfvvtdpcbp"))) - .withParameters( - mapOf("tkfysunt", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataiw"), - "hcvasyy", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataklx"), - "ixyxxhwrlqomaqs", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataokjbmsr"))) - .withAnnotations(Arrays.asList("datapzzbrwn")) - .withFolder(new DatasetFolder().withName("zsxagysokli")) - .withCollectionName("datar"); - model = BinaryData.fromObject(model).toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("k", model.description()); - Assertions.assertEquals("lbpxrhrfjenrazwe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("tkfysunt").type()); - Assertions.assertEquals("zsxagysokli", 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 f9acabab7169..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\":\"datamxvps\"}") - .toObject(MongoDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDatasetTypeProperties model - = new MongoDbCollectionDatasetTypeProperties().withCollectionName("datamxvps"); - 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 d28f2a912b1a..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\":\"databfkmfbruuh\",\"sort\":\"dataqgeovnlbjfsollr\",\"skip\":\"dataulnhxrcjshicvrm\",\"limit\":\"datagpcalqbxpp\",\"\":{\"pboaevtxi\":\"datasrfshkjg\",\"hqnprbvruhdjziv\":\"datarooogijiqwxwpub\",\"xmksxxbdtjvvngn\":\"dataaxiimqnqmbfptz\",\"ic\":\"datakkzulmqx\"}}") - .toObject(MongoDbCursorMethodsProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCursorMethodsProperties model = new MongoDbCursorMethodsProperties().withProject("databfkmfbruuh") - .withSort("dataqgeovnlbjfsollr") - .withSkip("dataulnhxrcjshicvrm") - .withLimit("datagpcalqbxpp") - .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 1975c0f67f72..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\":\"fhhayfxkfgx\",\"query\":\"datawc\",\"additionalColumns\":\"datazztv\",\"sourceRetryCount\":\"datafzlig\",\"sourceRetryWait\":\"dataqoszcmfmynljig\",\"maxConcurrentConnections\":\"datank\",\"disableMetricsCollection\":\"datam\",\"\":{\"wpnpunr\":\"datavskn\"}}") - .toObject(MongoDbSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbSource model = new MongoDbSource().withSourceRetryCount("datafzlig") - .withSourceRetryWait("dataqoszcmfmynljig") - .withMaxConcurrentConnections("datank") - .withDisableMetricsCollection("datam") - .withQuery("datawc") - .withAdditionalColumns("datazztv"); - 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 42240c6a4fbe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.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.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\":\"pwwvmbjecfw\",\"typeProperties\":{\"collection\":\"datacuex\"},\"description\":\"ghnkfrwxohlydsn\",\"structure\":\"datapchiypbfhmih\",\"schema\":\"datatqozewbrsrjzgkbr\",\"linkedServiceName\":{\"referenceName\":\"uxboufqnnqbjxgj\",\"parameters\":{\"ri\":\"dataerukbuu\",\"ssybzbe\":\"datawkwkjxlaacedikqe\",\"zyjj\":\"datagbnrommkiqhypwt\",\"omzq\":\"datau\"}},\"parameters\":{\"ialezaydpu\":{\"type\":\"Bool\",\"defaultValue\":\"datawiijcfqiywhxpsba\"},\"smhssfnwh\":{\"type\":\"Object\",\"defaultValue\":\"dataegefxlieggot\"},\"ckn\":{\"type\":\"Array\",\"defaultValue\":\"datahh\"},\"vhzfkdnwy\":{\"type\":\"Array\",\"defaultValue\":\"datacufthdgwuzrono\"}},\"annotations\":[\"datacikgxkk\",\"datazfzdjekeb\"],\"folder\":{\"name\":\"xz\"},\"\":{\"ixirgcjfaiw\":\"datay\",\"akrxi\":\"datalpj\"}}") - .toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("ghnkfrwxohlydsn", model.description()); - Assertions.assertEquals("uxboufqnnqbjxgj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ialezaydpu").type()); - Assertions.assertEquals("xz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDataset model = new MongoDbV2CollectionDataset().withDescription("ghnkfrwxohlydsn") - .withStructure("datapchiypbfhmih") - .withSchema("datatqozewbrsrjzgkbr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uxboufqnnqbjxgj") - .withParameters(mapOf("ri", "dataerukbuu", "ssybzbe", "datawkwkjxlaacedikqe", "zyjj", - "datagbnrommkiqhypwt", "omzq", "datau"))) - .withParameters(mapOf("ialezaydpu", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawiijcfqiywhxpsba"), - "smhssfnwh", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataegefxlieggot"), "ckn", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahh"), "vhzfkdnwy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datacufthdgwuzrono"))) - .withAnnotations(Arrays.asList("datacikgxkk", "datazfzdjekeb")) - .withFolder(new DatasetFolder().withName("xz")) - .withCollection("datacuex"); - model = BinaryData.fromObject(model).toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("ghnkfrwxohlydsn", model.description()); - Assertions.assertEquals("uxboufqnnqbjxgj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ialezaydpu").type()); - Assertions.assertEquals("xz", 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 b4250bd320b5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.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.MongoDbV2CollectionDatasetTypeProperties; - -public final class MongoDbV2CollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collection\":\"dataqnfforxsqtzngxbs\"}") - .toObject(MongoDbV2CollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model - = new MongoDbV2CollectionDatasetTypeProperties().withCollection("dataqnfforxsqtzngxbs"); - 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 e10421a590cd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.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.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\":\"ev\",\"typeProperties\":{\"connectionString\":\"datarpeli\",\"database\":\"datamitmtkcqixgqxs\"},\"connectVia\":{\"referenceName\":\"uvupdsafqaghw\",\"parameters\":{\"vkodkqffhuxoxq\":\"dataecqyianjm\",\"p\":\"datagzvzcfmwfogjrhmt\"}},\"description\":\"joclvfz\",\"parameters\":{\"ixhulfjlmwhv\":{\"type\":\"String\",\"defaultValue\":\"dataptapyqeesgin\"},\"izviswixlvnwznf\":{\"type\":\"Bool\",\"defaultValue\":\"datawrvtflot\"},\"bdtrwkpely\":{\"type\":\"Object\",\"defaultValue\":\"dataylsl\"}},\"annotations\":[\"datawmajllatbl\",\"datahcfhw\",\"dataithxna\",\"datanssvrkzslyliog\"],\"\":{\"bblwkqztqrnreyjf\":\"datahrmcpbmyghqtth\",\"jdclugv\":\"datanrweevtu\"}}") - .toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("uvupdsafqaghw", model.connectVia().referenceName()); - Assertions.assertEquals("joclvfz", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ixhulfjlmwhv").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedService model = new MongoDbV2LinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("uvupdsafqaghw") - .withParameters(mapOf("vkodkqffhuxoxq", "dataecqyianjm", "p", "datagzvzcfmwfogjrhmt"))) - .withDescription("joclvfz") - .withParameters(mapOf("ixhulfjlmwhv", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataptapyqeesgin"), - "izviswixlvnwznf", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawrvtflot"), - "bdtrwkpely", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataylsl"))) - .withAnnotations(Arrays.asList("datawmajllatbl", "datahcfhw", "dataithxna", "datanssvrkzslyliog")) - .withConnectionString("datarpeli") - .withDatabase("datamitmtkcqixgqxs"); - model = BinaryData.fromObject(model).toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("uvupdsafqaghw", model.connectVia().referenceName()); - Assertions.assertEquals("joclvfz", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ixhulfjlmwhv").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 f1dc6aef47f4..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\":\"datajfpsyqvgaaymfk\",\"database\":\"dataxhiwmkljhk\"}") - .toObject(MongoDbV2LinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedServiceTypeProperties model - = new MongoDbV2LinkedServiceTypeProperties().withConnectionString("datajfpsyqvgaaymfk") - .withDatabase("dataxhiwmkljhk"); - 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 d7230f8cce10..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\":\"mazdgeablknqnq\",\"writeBehavior\":\"datanjegom\",\"writeBatchSize\":\"datagiy\",\"writeBatchTimeout\":\"datadeo\",\"sinkRetryCount\":\"datawlpopjlg\",\"sinkRetryWait\":\"dataswqxeva\",\"maxConcurrentConnections\":\"dataoxmxtcnmo\",\"disableMetricsCollection\":\"datakpgnagncguq\",\"\":{\"wdez\":\"datammved\",\"lmvvbw\":\"datatpbezlucxbudaj\",\"myvbiuvxlhf\":\"dataunr\",\"hqzvfzxseqscoy\":\"datakllxoahfvkyhfd\"}}") - .toObject(MongoDbV2Sink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Sink model = new MongoDbV2Sink().withWriteBatchSize("datagiy") - .withWriteBatchTimeout("datadeo") - .withSinkRetryCount("datawlpopjlg") - .withSinkRetryWait("dataswqxeva") - .withMaxConcurrentConnections("dataoxmxtcnmo") - .withDisableMetricsCollection("datakpgnagncguq") - .withWriteBehavior("datanjegom"); - 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 7ff23a4ecd17..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\":\"frxlsypwu\",\"filter\":\"datatobosjxbnyt\",\"cursorMethods\":{\"project\":\"dataruditumyycvtya\",\"sort\":\"datayimhspjqhi\",\"skip\":\"datablqvwhjgtbh\",\"limit\":\"dataoutq\",\"\":{\"drdxoutkgezuln\":\"databtqibqbougcwzgd\",\"arejxjhl\":\"datatp\"}},\"batchSize\":\"datalj\",\"queryTimeout\":\"dataoeoywy\",\"additionalColumns\":\"datahavwhrivvzrc\",\"sourceRetryCount\":\"dataearbbxan\",\"sourceRetryWait\":\"dataiqkjupvidzh\",\"maxConcurrentConnections\":\"datappqcgbp\",\"disableMetricsCollection\":\"datani\",\"\":{\"arjbakpasuugcng\":\"datadlxuptbtl\"}}") - .toObject(MongoDbV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Source model = new MongoDbV2Source().withSourceRetryCount("dataearbbxan") - .withSourceRetryWait("dataiqkjupvidzh") - .withMaxConcurrentConnections("datappqcgbp") - .withDisableMetricsCollection("datani") - .withFilter("datatobosjxbnyt") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("dataruditumyycvtya") - .withSort("datayimhspjqhi") - .withSkip("datablqvwhjgtbh") - .withLimit("dataoutq") - .withAdditionalProperties(mapOf())) - .withBatchSize("datalj") - .withQueryTimeout("dataoeoywy") - .withAdditionalColumns("datahavwhrivvzrc"); - 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 86636628f95d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.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.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\":\"fmxomupdqpc\",\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"qgfimllra\",\"name\":\"wpudvuphizztklk\"},\"parameters\":{\"kphsk\":\"dataeehtjmde\",\"yafopc\":\"datai\",\"fxz\":\"datanpjulpwwmxwlwcur\",\"juki\":\"dataazep\"}},{\"pipelineReference\":{\"referenceName\":\"cvruxmp\",\"name\":\"guj\"},\"parameters\":{\"sjobanxshltfghyk\":\"dataduns\",\"pyb\":\"dataxruqrobkne\",\"gkqudxvj\":\"dataskvjb\"}},{\"pipelineReference\":{\"referenceName\":\"dbinqqrkkgawnae\",\"name\":\"ui\"},\"parameters\":{\"iskqxeclw\":\"datavaxyitnzpfdoete\",\"r\":\"dataso\"}}],\"description\":\"vktdvwmefjpoelly\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datarltrztrloyrjvr\",\"datayr\",\"datahfrsyckqwefmq\"],\"\":{\"ffrzg\":\"datazlvfncphhlnba\",\"mxzraihlzgroj\":\"dataob\",\"jrccyysyceykvml\":\"datanx\",\"pp\":\"datahymceg\"}}") - .toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("vktdvwmefjpoelly", model.description()); - Assertions.assertEquals("qgfimllra", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("wpudvuphizztklk", model.pipelines().get(0).pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MultiplePipelineTrigger model = new MultiplePipelineTrigger().withDescription("vktdvwmefjpoelly") - .withAnnotations(Arrays.asList("datarltrztrloyrjvr", "datayr", "datahfrsyckqwefmq")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("qgfimllra").withName("wpudvuphizztklk")) - .withParameters(mapOf("kphsk", "dataeehtjmde", "yafopc", "datai", "fxz", "datanpjulpwwmxwlwcur", - "juki", "dataazep")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("cvruxmp").withName("guj")) - .withParameters( - mapOf("sjobanxshltfghyk", "dataduns", "pyb", "dataxruqrobkne", "gkqudxvj", "dataskvjb")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("dbinqqrkkgawnae").withName("ui")) - .withParameters(mapOf("iskqxeclw", "datavaxyitnzpfdoete", "r", "dataso")))); - model = BinaryData.fromObject(model).toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("vktdvwmefjpoelly", model.description()); - Assertions.assertEquals("qgfimllra", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("wpudvuphizztklk", 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 1d87865fc86d..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\":\"nucgw\",\"query\":\"datawvpnbgyxo\",\"queryTimeout\":\"dataqpzqivfgemvuicxw\",\"additionalColumns\":\"datarydl\",\"sourceRetryCount\":\"datajjatjmnd\",\"sourceRetryWait\":\"datacdum\",\"maxConcurrentConnections\":\"datahatckomdyfjss\",\"disableMetricsCollection\":\"datazvkddaeiepvjrmk\",\"\":{\"awokr\":\"dataymkbfd\",\"idtxmbnmjimggz\":\"datahjyahrmuwvsdyruo\"}}") - .toObject(MySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlSource model = new MySqlSource().withSourceRetryCount("datajjatjmnd") - .withSourceRetryWait("datacdum") - .withMaxConcurrentConnections("datahatckomdyfjss") - .withDisableMetricsCollection("datazvkddaeiepvjrmk") - .withQueryTimeout("dataqpzqivfgemvuicxw") - .withAdditionalColumns("datarydl") - .withQuery("datawvpnbgyxo"); - 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 863c24ec46f4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.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.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\":\"uubxcwojtupqdvnp\",\"typeProperties\":{\"tableName\":\"dataryibrb\"},\"description\":\"evffifu\",\"structure\":\"datatdowlxmwefcbyb\",\"schema\":\"datahrtczwjcujyz\",\"linkedServiceName\":{\"referenceName\":\"vyrjqdjlgk\",\"parameters\":{\"n\":\"dataxxeuwiiirc\"}},\"parameters\":{\"fujdbqjnyexbvx\":{\"type\":\"Float\",\"defaultValue\":\"dataiwxohktxa\"},\"asfeooq\":{\"type\":\"Float\",\"defaultValue\":\"dataq\"}},\"annotations\":[\"datavev\",\"dataarp\",\"dataklqlii\",\"dataeanuwg\"],\"folder\":{\"name\":\"fgijydgs\"},\"\":{\"mwywhrjkejva\":\"datauymtevaeb\",\"gcphivfhrmte\":\"datadogzougxbxxgj\",\"usrjzhdtrsyfezf\":\"datafdvdoeary\"}}") - .toObject(MySqlTableDataset.class); - Assertions.assertEquals("evffifu", model.description()); - Assertions.assertEquals("vyrjqdjlgk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fujdbqjnyexbvx").type()); - Assertions.assertEquals("fgijydgs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDataset model = new MySqlTableDataset().withDescription("evffifu") - .withStructure("datatdowlxmwefcbyb") - .withSchema("datahrtczwjcujyz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vyrjqdjlgk") - .withParameters(mapOf("n", "dataxxeuwiiirc"))) - .withParameters(mapOf("fujdbqjnyexbvx", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataiwxohktxa"), "asfeooq", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataq"))) - .withAnnotations(Arrays.asList("datavev", "dataarp", "dataklqlii", "dataeanuwg")) - .withFolder(new DatasetFolder().withName("fgijydgs")) - .withTableName("dataryibrb"); - model = BinaryData.fromObject(model).toObject(MySqlTableDataset.class); - Assertions.assertEquals("evffifu", model.description()); - Assertions.assertEquals("vyrjqdjlgk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fujdbqjnyexbvx").type()); - Assertions.assertEquals("fgijydgs", 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 65c8a2aacefe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.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.MySqlTableDatasetTypeProperties; - -public final class MySqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datayljdzyyrwnmwt\"}") - .toObject(MySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDatasetTypeProperties model - = new MySqlTableDatasetTypeProperties().withTableName("datayljdzyyrwnmwt"); - 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 efaf58af8312..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\":\"databl\",\"partitionUpperBound\":\"datakqubnnmzz\",\"partitionLowerBound\":\"datacxbvn\"}") - .toObject(NetezzaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaPartitionSettings model = new NetezzaPartitionSettings().withPartitionColumnName("databl") - .withPartitionUpperBound("datakqubnnmzz") - .withPartitionLowerBound("datacxbvn"); - 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 dae441198ee6..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\":\"lvxdpopubbwps\",\"query\":\"datauwmbdtfe\",\"partitionOption\":\"datagzybp\",\"partitionSettings\":{\"partitionColumnName\":\"datapghloemqa\",\"partitionUpperBound\":\"datanqszqk\",\"partitionLowerBound\":\"datanxuezwrbq\"},\"queryTimeout\":\"datamtgkrivcxxejp\",\"additionalColumns\":\"datahkiyiqpiiodvzjk\",\"sourceRetryCount\":\"dataxbkwmhjqakacbc\",\"sourceRetryWait\":\"datasnnvlmmgfgt\",\"maxConcurrentConnections\":\"datamtyfqutmjkbis\",\"disableMetricsCollection\":\"datarilq\",\"\":{\"fogockbizqqajsua\":\"datazdorb\",\"qcyvrbginbrde\":\"datawojgvpqzvtgwl\"}}") - .toObject(NetezzaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaSource model = new NetezzaSource().withSourceRetryCount("dataxbkwmhjqakacbc") - .withSourceRetryWait("datasnnvlmmgfgt") - .withMaxConcurrentConnections("datamtyfqutmjkbis") - .withDisableMetricsCollection("datarilq") - .withQueryTimeout("datamtgkrivcxxejp") - .withAdditionalColumns("datahkiyiqpiiodvzjk") - .withQuery("datauwmbdtfe") - .withPartitionOption("datagzybp") - .withPartitionSettings(new NetezzaPartitionSettings().withPartitionColumnName("datapghloemqa") - .withPartitionUpperBound("datanqszqk") - .withPartitionLowerBound("datanxuezwrbq")); - 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 e798d47a7914..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.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.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\":\"zrinlpxngzzx\",\"typeProperties\":{\"tableName\":\"datanlsyia\",\"table\":\"dataistcjhatclpp\",\"schema\":\"datastmrycpanapfa\"},\"description\":\"gqnzmzctbxzjkpif\",\"structure\":\"datacvbdozwbsk\",\"schema\":\"dataafzsq\",\"linkedServiceName\":{\"referenceName\":\"binpxmiwtkqifpv\",\"parameters\":{\"buxtwgbawshra\":\"datakcdnzoxl\",\"ugqcglmadfztof\":\"dataq\",\"ayfmcerfxfeiqbas\":\"datavqlauuag\"}},\"parameters\":{\"o\":{\"type\":\"Int\",\"defaultValue\":\"dataipssv\"},\"pdqqbtok\":{\"type\":\"Int\",\"defaultValue\":\"datacqcjozzjku\"},\"rhwetto\":{\"type\":\"SecureString\",\"defaultValue\":\"datauzxllbpw\"}},\"annotations\":[\"dataz\",\"dataxyvtkzbhizxp\"],\"folder\":{\"name\":\"dmwnfhmjusuqn\"},\"\":{\"nirmidtvhjc\":\"datahvlxudheka\"}}") - .toObject(NetezzaTableDataset.class); - Assertions.assertEquals("gqnzmzctbxzjkpif", model.description()); - Assertions.assertEquals("binpxmiwtkqifpv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("o").type()); - Assertions.assertEquals("dmwnfhmjusuqn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDataset model = new NetezzaTableDataset().withDescription("gqnzmzctbxzjkpif") - .withStructure("datacvbdozwbsk") - .withSchema("dataafzsq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("binpxmiwtkqifpv") - .withParameters(mapOf("buxtwgbawshra", "datakcdnzoxl", "ugqcglmadfztof", "dataq", "ayfmcerfxfeiqbas", - "datavqlauuag"))) - .withParameters(mapOf("o", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataipssv"), "pdqqbtok", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datacqcjozzjku"), "rhwetto", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datauzxllbpw"))) - .withAnnotations(Arrays.asList("dataz", "dataxyvtkzbhizxp")) - .withFolder(new DatasetFolder().withName("dmwnfhmjusuqn")) - .withTableName("datanlsyia") - .withTable("dataistcjhatclpp") - .withSchemaTypePropertiesSchema("datastmrycpanapfa"); - model = BinaryData.fromObject(model).toObject(NetezzaTableDataset.class); - Assertions.assertEquals("gqnzmzctbxzjkpif", model.description()); - Assertions.assertEquals("binpxmiwtkqifpv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("o").type()); - Assertions.assertEquals("dmwnfhmjusuqn", 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 8880020495ce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.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.NetezzaTableDatasetTypeProperties; - -public final class NetezzaTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datazfbqygkxrlfojl\",\"table\":\"datapum\",\"schema\":\"dataybodhrv\"}") - .toObject(NetezzaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDatasetTypeProperties model - = new NetezzaTableDatasetTypeProperties().withTableName("datazfbqygkxrlfojl") - .withTable("datapum") - .withSchema("dataybodhrv"); - 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 4b48b6dc8c9b..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\":\"datafkgzgveud\",\"type\":\"int\"}").toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.INT, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NotebookParameter model - = new NotebookParameter().withValue("datafkgzgveud").withType(NotebookParameterType.INT); - model = BinaryData.fromObject(model).toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.INT, 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 3aa0a852ae31..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.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.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\":\"kkfku\",\"typeProperties\":{\"path\":\"datavqiiasbt\"},\"description\":\"kmxhhqsx\",\"structure\":\"datajkewriglbqtrefe\",\"schema\":\"dataflxcjffzwncvde\",\"linkedServiceName\":{\"referenceName\":\"xonzt\",\"parameters\":{\"pjrrhpgsjbioag\":\"dataptnntqrcjqpzjv\",\"dxdfsfvk\":\"dataviqehmdqvaol\"}},\"parameters\":{\"rkd\":{\"type\":\"Array\",\"defaultValue\":\"datarsvxphtjnhptj\"}},\"annotations\":[\"datahimmydtdtftmi\"],\"folder\":{\"name\":\"jdurgyzcslazpr\"},\"\":{\"cnqpjuytvudeylp\":\"datayimxpggktteagbg\",\"ifm\":\"dataybkisb\",\"urfshzn\":\"dataglpwdjr\",\"xdcdjmdkqt\":\"datarttuhaaa\"}}") - .toObject(ODataResourceDataset.class); - Assertions.assertEquals("kmxhhqsx", model.description()); - Assertions.assertEquals("xonzt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rkd").type()); - Assertions.assertEquals("jdurgyzcslazpr", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDataset model = new ODataResourceDataset().withDescription("kmxhhqsx") - .withStructure("datajkewriglbqtrefe") - .withSchema("dataflxcjffzwncvde") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xonzt") - .withParameters(mapOf("pjrrhpgsjbioag", "dataptnntqrcjqpzjv", "dxdfsfvk", "dataviqehmdqvaol"))) - .withParameters(mapOf("rkd", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datarsvxphtjnhptj"))) - .withAnnotations(Arrays.asList("datahimmydtdtftmi")) - .withFolder(new DatasetFolder().withName("jdurgyzcslazpr")) - .withPath("datavqiiasbt"); - model = BinaryData.fromObject(model).toObject(ODataResourceDataset.class); - Assertions.assertEquals("kmxhhqsx", model.description()); - Assertions.assertEquals("xonzt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rkd").type()); - Assertions.assertEquals("jdurgyzcslazpr", 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 4bd4ef7a74fb..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\":\"datarmbecx\"}").toObject(ODataResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDatasetTypeProperties model = new ODataResourceDatasetTypeProperties().withPath("datarmbecx"); - 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 abb519d6f0e3..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\":\"gd\",\"query\":\"datajjprd\",\"httpRequestTimeout\":\"datablonlhtgexwjhicu\",\"additionalColumns\":\"dataavimxnhylwogtvl\",\"sourceRetryCount\":\"datat\",\"sourceRetryWait\":\"datadxlfn\",\"maxConcurrentConnections\":\"dataclkmggnzlfyxaiaf\",\"disableMetricsCollection\":\"datamxekfvycvhwduo\",\"\":{\"sbahcassqeybd\":\"datapzzcxku\",\"cxtumqinawctaarb\":\"datazeyakgrkohfqmxzk\"}}") - .toObject(ODataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataSource model = new ODataSource().withSourceRetryCount("datat") - .withSourceRetryWait("datadxlfn") - .withMaxConcurrentConnections("dataclkmggnzlfyxaiaf") - .withDisableMetricsCollection("datamxekfvycvhwduo") - .withQuery("datajjprd") - .withHttpRequestTimeout("datablonlhtgexwjhicu") - .withAdditionalColumns("dataavimxnhylwogtvl"); - 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 0b02d794df53..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\":\"tupjqfupoam\",\"preCopyScript\":\"dataacn\",\"writeBatchSize\":\"datadzqxkgr\",\"writeBatchTimeout\":\"datanqipskpynrsacdc\",\"sinkRetryCount\":\"datautahlhiqodx\",\"sinkRetryWait\":\"datacirgqjnf\",\"maxConcurrentConnections\":\"datahhkeyhf\",\"disableMetricsCollection\":\"dataif\",\"\":{\"scx\":\"dataojkikgbhkvhld\"}}") - .toObject(OdbcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSink model = new OdbcSink().withWriteBatchSize("datadzqxkgr") - .withWriteBatchTimeout("datanqipskpynrsacdc") - .withSinkRetryCount("datautahlhiqodx") - .withSinkRetryWait("datacirgqjnf") - .withMaxConcurrentConnections("datahhkeyhf") - .withDisableMetricsCollection("dataif") - .withPreCopyScript("dataacn"); - 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 b5d2aa68b90a..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\":\"otodprrq\",\"query\":\"dataydmeu\",\"queryTimeout\":\"datalqgyu\",\"additionalColumns\":\"dataoelyjduzapn\",\"sourceRetryCount\":\"dataglytxjcbdpc\",\"sourceRetryWait\":\"datazu\",\"maxConcurrentConnections\":\"datacehfw\",\"disableMetricsCollection\":\"dataclea\",\"\":{\"fccnwmdpb\":\"dataiqskylwpqrc\",\"uckrzwraqaptqy\":\"dataotknhfxpver\",\"b\":\"datanlyuyopwwnqoub\",\"osyl\":\"datasvfzjjflcx\"}}") - .toObject(OdbcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSource model = new OdbcSource().withSourceRetryCount("dataglytxjcbdpc") - .withSourceRetryWait("datazu") - .withMaxConcurrentConnections("datacehfw") - .withDisableMetricsCollection("dataclea") - .withQueryTimeout("datalqgyu") - .withAdditionalColumns("dataoelyjduzapn") - .withQuery("dataydmeu"); - 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 c61af0383958..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.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.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\":\"eujywdalisdeqngc\",\"typeProperties\":{\"tableName\":\"datamunwjivtbuszbdjr\"},\"description\":\"dz\",\"structure\":\"datalooulpozm\",\"schema\":\"datahyclxrsidoebldp\",\"linkedServiceName\":{\"referenceName\":\"iaffj\",\"parameters\":{\"x\":\"datanhrevimxm\",\"wdsoqtbfkvuozbzc\":\"datajppitygv\",\"urlcydjhtkjs\":\"datanqekwankl\",\"lr\":\"datarwiyndurdonkgobx\"}},\"parameters\":{\"froefq\":{\"type\":\"SecureString\",\"defaultValue\":\"datarswknpdrgnmza\"}},\"annotations\":[\"dataevyrejyoybkqftu\"],\"folder\":{\"name\":\"m\"},\"\":{\"wsicvwqzoc\":\"datavvbucnnrovomep\"}}") - .toObject(OdbcTableDataset.class); - Assertions.assertEquals("dz", model.description()); - Assertions.assertEquals("iaffj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("froefq").type()); - Assertions.assertEquals("m", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDataset model = new OdbcTableDataset().withDescription("dz") - .withStructure("datalooulpozm") - .withSchema("datahyclxrsidoebldp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iaffj") - .withParameters(mapOf("x", "datanhrevimxm", "wdsoqtbfkvuozbzc", "datajppitygv", "urlcydjhtkjs", - "datanqekwankl", "lr", "datarwiyndurdonkgobx"))) - .withParameters(mapOf("froefq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datarswknpdrgnmza"))) - .withAnnotations(Arrays.asList("dataevyrejyoybkqftu")) - .withFolder(new DatasetFolder().withName("m")) - .withTableName("datamunwjivtbuszbdjr"); - model = BinaryData.fromObject(model).toObject(OdbcTableDataset.class); - Assertions.assertEquals("dz", model.description()); - Assertions.assertEquals("iaffj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("froefq").type()); - Assertions.assertEquals("m", 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 8c46bdd79ad0..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\":\"datashennmsgpywdib\"}") - .toObject(OdbcTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDatasetTypeProperties model = new OdbcTableDatasetTypeProperties().withTableName("datashennmsgpywdib"); - 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 e4685c24b669..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.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.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\":\"uqmtxynof\",\"typeProperties\":{\"tableName\":\"datarnicupdyttqmi\",\"predicate\":\"datajplosebmh\"},\"description\":\"obfixngxebi\",\"structure\":\"dataxhnkingiqcd\",\"schema\":\"datarpgupsjlbsmnda\",\"linkedServiceName\":{\"referenceName\":\"bncuyjeykcnhp\",\"parameters\":{\"xjziuucrlnew\":\"datahcf\",\"zlvwyw\":\"datauwkkfzzetlvhdy\",\"lgqpwwlzpd\":\"datav\",\"knmstbdoprwkamp\":\"dataarcbcdwhslxebaja\"}},\"parameters\":{\"huzymhlhihqk\":{\"type\":\"Float\",\"defaultValue\":\"dataldzniudrcycm\"},\"aiildcpud\":{\"type\":\"Array\",\"defaultValue\":\"datakmnbzko\"}},\"annotations\":[\"datauxsyjofpgved\",\"dataobujnjgyb\",\"dataxmqxigidullnjgc\"],\"folder\":{\"name\":\"grh\"},\"\":{\"n\":\"dataslgsazuq\",\"zj\":\"datahxhky\",\"ffxsfybntmveh\":\"datadkpvnrvzw\",\"zqweuyd\":\"datahflyuvbgtz\"}}") - .toObject(Office365Dataset.class); - Assertions.assertEquals("obfixngxebi", model.description()); - Assertions.assertEquals("bncuyjeykcnhp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("huzymhlhihqk").type()); - Assertions.assertEquals("grh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Dataset model = new Office365Dataset().withDescription("obfixngxebi") - .withStructure("dataxhnkingiqcd") - .withSchema("datarpgupsjlbsmnda") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bncuyjeykcnhp") - .withParameters(mapOf("xjziuucrlnew", "datahcf", "zlvwyw", "datauwkkfzzetlvhdy", "lgqpwwlzpd", "datav", - "knmstbdoprwkamp", "dataarcbcdwhslxebaja"))) - .withParameters(mapOf("huzymhlhihqk", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataldzniudrcycm"), - "aiildcpud", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datakmnbzko"))) - .withAnnotations(Arrays.asList("datauxsyjofpgved", "dataobujnjgyb", "dataxmqxigidullnjgc")) - .withFolder(new DatasetFolder().withName("grh")) - .withTableName("datarnicupdyttqmi") - .withPredicate("datajplosebmh"); - model = BinaryData.fromObject(model).toObject(Office365Dataset.class); - Assertions.assertEquals("obfixngxebi", model.description()); - Assertions.assertEquals("bncuyjeykcnhp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("huzymhlhihqk").type()); - Assertions.assertEquals("grh", 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 cb54d014daeb..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\":\"databnairvhpqsv\",\"predicate\":\"dataeoge\"}") - .toObject(Office365DatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365DatasetTypeProperties model - = new Office365DatasetTypeProperties().withTableName("databnairvhpqsv").withPredicate("dataeoge"); - 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 a99bdd277168..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\":\"o\",\"allowedGroups\":\"datafcduqsdurfqaawr\",\"userScopeFilterUri\":\"datatzslfrztpnry\",\"dateFilterColumn\":\"dataxajr\",\"startTime\":\"dataighlhddvno\",\"endTime\":\"datasowbtnfqlwc\",\"outputColumns\":\"datajphtehoucmeuuua\",\"sourceRetryCount\":\"datacxofqjninrsk\",\"sourceRetryWait\":\"datakqtiuve\",\"maxConcurrentConnections\":\"datauciwbiwygwpwqu\",\"disableMetricsCollection\":\"dataqgslspihuxgvvio\",\"\":{\"quxvufrf\":\"dataolkmfizefbbrnd\",\"ysieyeblkgu\":\"dataaehssosowav\"}}") - .toObject(Office365Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Source model = new Office365Source().withSourceRetryCount("datacxofqjninrsk") - .withSourceRetryWait("datakqtiuve") - .withMaxConcurrentConnections("datauciwbiwygwpwqu") - .withDisableMetricsCollection("dataqgslspihuxgvvio") - .withAllowedGroups("datafcduqsdurfqaawr") - .withUserScopeFilterUri("datatzslfrztpnry") - .withDateFilterColumn("dataxajr") - .withStartTime("dataighlhddvno") - .withEndTime("datasowbtnfqlwc") - .withOutputColumns("datajphtehoucmeuuua"); - 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 86d18fa5d8ae..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\":\"wegijdejs\",\"origin\":\"j\",\"display\":{\"description\":\"o\",\"provider\":\"blhc\",\"resource\":\"nz\",\"operation\":\"aathdr\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"cwzmdencqyms\",\"displayName\":\"lio\",\"blobDuration\":\"av\"},{\"name\":\"mxctkwx\",\"displayName\":\"kcvbfeucdqejazht\",\"blobDuration\":\"imcjkhexxn\"},{\"name\":\"lcekonmcxriqfrrx\",\"displayName\":\"svrhcjhszmy\",\"blobDuration\":\"riosmicjkiz\"},{\"name\":\"dawmrkryixbb\",\"displayName\":\"gnjlzdjz\",\"blobDuration\":\"wobxsokemawr\"}],\"metricSpecifications\":[{\"name\":\"drtkwxmglln\",\"displayName\":\"h\",\"displayDescription\":\"fup\",\"unit\":\"fosrwzhmlklocyjp\",\"aggregationType\":\"tnvxomhk\",\"enableRegionalMdmAccount\":\"vdmjjiqjv\",\"sourceMdmAccount\":\"iomfkiopkkhb\",\"sourceMdmNamespace\":\"hsp\",\"availabilities\":[{}],\"dimensions\":[{}]},{\"name\":\"t\",\"displayName\":\"crwnayfkvwl\",\"displayDescription\":\"feyhny\",\"unit\":\"mpuqnvn\",\"aggregationType\":\"awicou\",\"enableRegionalMdmAccount\":\"bjccjorovrfdfgdv\",\"sourceMdmAccount\":\"oxozqcy\",\"sourceMdmNamespace\":\"jpkojykyt\",\"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("wegijdejs", response.iterator().next().name()); - Assertions.assertEquals("j", response.iterator().next().origin()); - Assertions.assertEquals("o", response.iterator().next().display().description()); - Assertions.assertEquals("blhc", response.iterator().next().display().provider()); - Assertions.assertEquals("nz", response.iterator().next().display().resource()); - Assertions.assertEquals("aathdr", response.iterator().next().display().operation()); - Assertions.assertEquals("cwzmdencqyms", - response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("lio", - response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("av", - response.iterator().next().serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("drtkwxmglln", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("h", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("fup", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("fosrwzhmlklocyjp", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("tnvxomhk", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("vdmjjiqjv", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("iomfkiopkkhb", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("hsp", - 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 dbf9482cd52d..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\":\"naihtgsiqikvllr\",\"bucketName\":\"dataiwifhbk\",\"version\":\"datadttohq\",\"folderPath\":\"datap\",\"fileName\":\"datalxkoi\",\"\":{\"klwzlw\":\"datarawrqkzawbunmp\",\"ejzltka\":\"dataepr\",\"xapgrcqebmvrdjom\":\"datazfjsxscbd\"}}") - .toObject(OracleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageLocation model = new OracleCloudStorageLocation().withFolderPath("datap") - .withFileName("datalxkoi") - .withBucketName("dataiwifhbk") - .withVersion("datadttohq"); - 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 4854d05f0b71..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\":\"mqntutetdtgci\",\"recursive\":\"dataslfxejpocsgig\",\"wildcardFolderPath\":\"datab\",\"wildcardFileName\":\"datandyjwmglgstrzfhe\",\"prefix\":\"datazovkbcbef\",\"fileListPath\":\"datanymfhmljimkg\",\"enablePartitionDiscovery\":\"datazvmtjcxigiszxd\",\"partitionRootPath\":\"datalceetuivmbugizwy\",\"deleteFilesAfterCompletion\":\"datahfptbdxtv\",\"modifiedDatetimeStart\":\"datajuls\",\"modifiedDatetimeEnd\":\"dataiuzytxeaq\",\"maxConcurrentConnections\":\"datarjwiwou\",\"disableMetricsCollection\":\"dataaqnfyhgrcm\",\"\":{\"twelutrvdzhwp\":\"datapledxyecttu\",\"ltslfccyavy\":\"datapscw\",\"mldkci\":\"datafmndrdqqjkeg\"}}") - .toObject(OracleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageReadSettings model - = new OracleCloudStorageReadSettings().withMaxConcurrentConnections("datarjwiwou") - .withDisableMetricsCollection("dataaqnfyhgrcm") - .withRecursive("dataslfxejpocsgig") - .withWildcardFolderPath("datab") - .withWildcardFileName("datandyjwmglgstrzfhe") - .withPrefix("datazovkbcbef") - .withFileListPath("datanymfhmljimkg") - .withEnablePartitionDiscovery("datazvmtjcxigiszxd") - .withPartitionRootPath("datalceetuivmbugizwy") - .withDeleteFilesAfterCompletion("datahfptbdxtv") - .withModifiedDatetimeStart("datajuls") - .withModifiedDatetimeEnd("dataiuzytxeaq"); - 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 6a52d120b8cc..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\":\"dataflizmul\",\"partitionColumnName\":\"dataaulwlzekygnepj\",\"partitionUpperBound\":\"dataxqdrphiyxjq\",\"partitionLowerBound\":\"datanpztlac\"}") - .toObject(OraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OraclePartitionSettings model = new OraclePartitionSettings().withPartitionNames("dataflizmul") - .withPartitionColumnName("dataaulwlzekygnepj") - .withPartitionUpperBound("dataxqdrphiyxjq") - .withPartitionLowerBound("datanpztlac"); - 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 c4819701f42c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.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.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\":\"shm\",\"typeProperties\":{\"tableName\":\"datacthype\"},\"description\":\"iscsdvkymktcw\",\"structure\":\"datavoxgzegnglafnfga\",\"schema\":\"dataghddc\",\"linkedServiceName\":{\"referenceName\":\"zwxuxorrutuhvem\",\"parameters\":{\"vwxlxo\":\"datassolqy\",\"vgdojcvzfcmxmjp\":\"datavrkqv\",\"xp\":\"dataakjdtuodocgquqxn\"}},\"parameters\":{\"kuzabrsoih\":{\"type\":\"Bool\",\"defaultValue\":\"dataniiontqikdipkxs\"},\"oadoh\":{\"type\":\"Array\",\"defaultValue\":\"datajdtacvsynssxylsu\"},\"qqnzk\":{\"type\":\"Int\",\"defaultValue\":\"dataiehkxgfu\"}},\"annotations\":[\"dataq\"],\"folder\":{\"name\":\"ipdnl\"},\"\":{\"pwwgzeylzp\":\"datatf\",\"o\":\"dataimxacrkt\",\"quarb\":\"datagynsixgzbbnug\",\"zbhg\":\"datauvqbeyxwrmupzpe\"}}") - .toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("iscsdvkymktcw", model.description()); - Assertions.assertEquals("zwxuxorrutuhvem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kuzabrsoih").type()); - Assertions.assertEquals("ipdnl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudObjectDataset model = new OracleServiceCloudObjectDataset().withDescription("iscsdvkymktcw") - .withStructure("datavoxgzegnglafnfga") - .withSchema("dataghddc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zwxuxorrutuhvem") - .withParameters( - mapOf("vwxlxo", "datassolqy", "vgdojcvzfcmxmjp", "datavrkqv", "xp", "dataakjdtuodocgquqxn"))) - .withParameters(mapOf("kuzabrsoih", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataniiontqikdipkxs"), - "oadoh", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajdtacvsynssxylsu"), - "qqnzk", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataiehkxgfu"))) - .withAnnotations(Arrays.asList("dataq")) - .withFolder(new DatasetFolder().withName("ipdnl")) - .withTableName("datacthype"); - model = BinaryData.fromObject(model).toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("iscsdvkymktcw", model.description()); - Assertions.assertEquals("zwxuxorrutuhvem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kuzabrsoih").type()); - Assertions.assertEquals("ipdnl", 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 7c8f99f71994..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\":\"bnbluutmfimlozlf\",\"query\":\"datak\",\"queryTimeout\":\"dataxzukhvioccszd\",\"additionalColumns\":\"dataafuhccnqf\",\"sourceRetryCount\":\"datajirfyetljrdcg\",\"sourceRetryWait\":\"datarmx\",\"maxConcurrentConnections\":\"datawcqhaonmfnf\",\"disableMetricsCollection\":\"datawiocuhas\",\"\":{\"dpqkfxdqm\":\"datalhtukheimwhotjc\"}}") - .toObject(OracleServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudSource model = new OracleServiceCloudSource().withSourceRetryCount("datajirfyetljrdcg") - .withSourceRetryWait("datarmx") - .withMaxConcurrentConnections("datawcqhaonmfnf") - .withDisableMetricsCollection("datawiocuhas") - .withQueryTimeout("dataxzukhvioccszd") - .withAdditionalColumns("dataafuhccnqf") - .withQuery("datak"); - 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 4edd84673641..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\":\"vav\",\"preCopyScript\":\"datawynslcfx\",\"writeBatchSize\":\"datariedf\",\"writeBatchTimeout\":\"datatfugppiudhylx\",\"sinkRetryCount\":\"datasumqdri\",\"sinkRetryWait\":\"dataxzcrf\",\"maxConcurrentConnections\":\"databchnh\",\"disableMetricsCollection\":\"datamgcqlufoj\",\"\":{\"zvnsnaklob\":\"datapkqhgfw\",\"jfxueqyjee\":\"datauyhmltdgxiqrgrr\",\"buglalaazncnhzqn\":\"dataytgnycnklqipnzgn\",\"galodfsbhphwt\":\"dataxkscyykrzrjjernj\"}}") - .toObject(OracleSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSink model = new OracleSink().withWriteBatchSize("datariedf") - .withWriteBatchTimeout("datatfugppiudhylx") - .withSinkRetryCount("datasumqdri") - .withSinkRetryWait("dataxzcrf") - .withMaxConcurrentConnections("databchnh") - .withDisableMetricsCollection("datamgcqlufoj") - .withPreCopyScript("datawynslcfx"); - 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 711ad77f77d2..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\":\"fhar\",\"oracleReaderQuery\":\"dataob\",\"queryTimeout\":\"dataeb\",\"partitionOption\":\"datatputmt\",\"partitionSettings\":{\"partitionNames\":\"datalkwtnq\",\"partitionColumnName\":\"dataqckmfxldqtm\",\"partitionUpperBound\":\"datadejnemrfq\",\"partitionLowerBound\":\"datacdpwlezbfgullq\"},\"additionalColumns\":\"dataijyxcmqcggksrorx\",\"sourceRetryCount\":\"dataltlftraylxz\",\"sourceRetryWait\":\"datajpu\",\"maxConcurrentConnections\":\"dataaogfwbkxdhavegys\",\"disableMetricsCollection\":\"datamlbzixpdat\",\"\":{\"mhcpujy\":\"datavwwejvqpwyrioq\",\"qxprsocfxlrzj\":\"datantxregbssqthcywy\"}}") - .toObject(OracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSource model = new OracleSource().withSourceRetryCount("dataltlftraylxz") - .withSourceRetryWait("datajpu") - .withMaxConcurrentConnections("dataaogfwbkxdhavegys") - .withDisableMetricsCollection("datamlbzixpdat") - .withOracleReaderQuery("dataob") - .withQueryTimeout("dataeb") - .withPartitionOption("datatputmt") - .withPartitionSettings(new OraclePartitionSettings().withPartitionNames("datalkwtnq") - .withPartitionColumnName("dataqckmfxldqtm") - .withPartitionUpperBound("datadejnemrfq") - .withPartitionLowerBound("datacdpwlezbfgullq")) - .withAdditionalColumns("dataijyxcmqcggksrorx"); - 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 1f1bb00c2da1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.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.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\":\"jwqdmr\",\"typeProperties\":{\"tableName\":\"dataaqgblkkncyp\",\"schema\":\"dataevspsaney\",\"table\":\"dataerpiobnhrfbrj\"},\"description\":\"nilppqcai\",\"structure\":\"datazwfwlrfdjwlzseod\",\"schema\":\"datafdrslzymqx\",\"linkedServiceName\":{\"referenceName\":\"erwycuhytjwgetfi\",\"parameters\":{\"stubw\":\"dataeqjxzizebjrahg\"}},\"parameters\":{\"xliqmsck\":{\"type\":\"Bool\",\"defaultValue\":\"datas\"},\"rsofxcacr\":{\"type\":\"Array\",\"defaultValue\":\"datamdoiiyobqzwjal\"},\"lsxfk\":{\"type\":\"Bool\",\"defaultValue\":\"datafmrsuydldpr\"},\"rjwbuocqflm\":{\"type\":\"Array\",\"defaultValue\":\"datatirjvqxvwkiocxo\"}},\"annotations\":[\"datalqxbctatezyo\",\"datadbcqq\",\"datalsjxcscnito\"],\"folder\":{\"name\":\"ahjjido\"},\"\":{\"i\":\"dataltcvmahpuwkupbbn\",\"zhrcqdfwbif\":\"datalh\",\"ynb\":\"datanhlsforsimtfcqm\",\"zamadlerzi\":\"datapelpfijtezgxmpe\"}}") - .toObject(OracleTableDataset.class); - Assertions.assertEquals("nilppqcai", model.description()); - Assertions.assertEquals("erwycuhytjwgetfi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("xliqmsck").type()); - Assertions.assertEquals("ahjjido", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDataset model = new OracleTableDataset().withDescription("nilppqcai") - .withStructure("datazwfwlrfdjwlzseod") - .withSchema("datafdrslzymqx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("erwycuhytjwgetfi") - .withParameters(mapOf("stubw", "dataeqjxzizebjrahg"))) - .withParameters(mapOf("xliqmsck", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datas"), "rsofxcacr", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamdoiiyobqzwjal"), - "lsxfk", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datafmrsuydldpr"), - "rjwbuocqflm", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datatirjvqxvwkiocxo"))) - .withAnnotations(Arrays.asList("datalqxbctatezyo", "datadbcqq", "datalsjxcscnito")) - .withFolder(new DatasetFolder().withName("ahjjido")) - .withTableName("dataaqgblkkncyp") - .withSchemaTypePropertiesSchema("dataevspsaney") - .withTable("dataerpiobnhrfbrj"); - model = BinaryData.fromObject(model).toObject(OracleTableDataset.class); - Assertions.assertEquals("nilppqcai", model.description()); - Assertions.assertEquals("erwycuhytjwgetfi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("xliqmsck").type()); - Assertions.assertEquals("ahjjido", 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 a7da641fbd66..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.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.OracleTableDatasetTypeProperties; - -public final class OracleTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"dataui\",\"schema\":\"dataz\",\"table\":\"datallxsw\"}") - .toObject(OracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDatasetTypeProperties model - = new OracleTableDatasetTypeProperties().withTableName("dataui").withSchema("dataz").withTable("datallxsw"); - 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 53925d38cda1..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\":\"pt\",\"serializer\":\"dataipuugkwdrqmr\",\"deserializer\":\"datahuuonjkkxukg\",\"\":{\"jojlle\":\"datavvpxjoeg\",\"hgnhtmeplhbpjba\":\"dataidpmton\"}}") - .toObject(OrcFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcFormat model = new OrcFormat().withSerializer("dataipuugkwdrqmr").withDeserializer("datahuuonjkkxukg"); - 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 8e3b52312b7c..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\":\"xljsbtosiwc\",\"storeSettings\":{\"type\":\"lyhgiisn\",\"maxConcurrentConnections\":\"datax\",\"disableMetricsCollection\":\"databo\",\"copyBehavior\":\"datapyilojwcza\",\"metadata\":[{\"name\":\"dataauskishhm\",\"value\":\"datapgrkd\"},{\"name\":\"datazaunbwcqti\",\"value\":\"datavzds\"}],\"\":{\"pplrdkcazujvh\":\"datahjlploa\",\"elaaexcnxrtlnzd\":\"datauzbsxhivnc\"}},\"formatSettings\":{\"type\":\"aboozxkdzmtkmn\",\"maxRowsPerFile\":\"datammzisljxphwy\",\"fileNamePrefix\":\"datamcpfrakucgjreoac\",\"\":{\"kyet\":\"datademrclsxg\",\"yflke\":\"datatkhihixisd\"}},\"writeBatchSize\":\"dataqgehbw\",\"writeBatchTimeout\":\"dataoc\",\"sinkRetryCount\":\"datazlfhhwdajfth\",\"sinkRetryWait\":\"datawuomjd\",\"maxConcurrentConnections\":\"dataufqhq\",\"disableMetricsCollection\":\"dataio\",\"\":{\"pyemppwkryzrdqpk\":\"dataxxbneiobub\",\"myhjgmfyernckg\":\"datafuvhoiqqzb\",\"kafiokeolzizfbun\":\"datawiq\",\"muwl\":\"datamxhfttmj\"}}") - .toObject(OrcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSink model = new OrcSink().withWriteBatchSize("dataqgehbw") - .withWriteBatchTimeout("dataoc") - .withSinkRetryCount("datazlfhhwdajfth") - .withSinkRetryWait("datawuomjd") - .withMaxConcurrentConnections("dataufqhq") - .withDisableMetricsCollection("dataio") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datax") - .withDisableMetricsCollection("databo") - .withCopyBehavior("datapyilojwcza") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataauskishhm").withValue("datapgrkd"), - new MetadataItem().withName("datazaunbwcqti").withValue("datavzds"))) - .withAdditionalProperties(mapOf("type", "lyhgiisn"))) - .withFormatSettings(new OrcWriteSettings().withMaxRowsPerFile("datammzisljxphwy") - .withFileNamePrefix("datamcpfrakucgjreoac")); - 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 a48781b884d3..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\":\"yrdlvbomhfqsjz\",\"storeSettings\":{\"type\":\"ygkuidgwdhawjco\",\"maxConcurrentConnections\":\"datanmthxcmx\",\"disableMetricsCollection\":\"dataexn\",\"\":{\"pnjgiumuztbcjt\":\"dataoxcmsmzy\",\"ehmvrveurpzrysef\":\"datamcnrgwgcstozrv\"}},\"additionalColumns\":\"datachkkwah\",\"sourceRetryCount\":\"dataktk\",\"sourceRetryWait\":\"dataxtee\",\"maxConcurrentConnections\":\"datahxgnlpjytle\",\"disableMetricsCollection\":\"datamijhnjk\",\"\":{\"nkzbdeyhw\":\"datahhuwz\",\"jmmdmbylyndtq\":\"databhobdocfv\"}}") - .toObject(OrcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSource model = new OrcSource().withSourceRetryCount("dataktk") - .withSourceRetryWait("dataxtee") - .withMaxConcurrentConnections("datahxgnlpjytle") - .withDisableMetricsCollection("datamijhnjk") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datanmthxcmx") - .withDisableMetricsCollection("dataexn") - .withAdditionalProperties(mapOf("type", "ygkuidgwdhawjco"))) - .withAdditionalColumns("datachkkwah"); - 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 33ee234ef853..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\":\"cslzca\",\"maxRowsPerFile\":\"databbfweozkbok\",\"fileNamePrefix\":\"datasu\",\"\":{\"bsg\":\"datacvfwkpu\"}}") - .toObject(OrcWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcWriteSettings model - = new OrcWriteSettings().withMaxRowsPerFile("databbfweozkbok").withFileNamePrefix("datasu"); - 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 294937cb4146..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\":\"zorprraptvbj\",\"packageStoreLinkedService\":{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"gebrsnvofu\"}}") - .toObject(PackageStore.class); - Assertions.assertEquals("zorprraptvbj", model.name()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("gebrsnvofu", model.packageStoreLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PackageStore model = new PackageStore().withName("zorprraptvbj") - .withPackageStoreLinkedService( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("gebrsnvofu")); - model = BinaryData.fromObject(model).toObject(PackageStore.class); - Assertions.assertEquals("zorprraptvbj", model.name()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("gebrsnvofu", 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 716827cf5a9d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.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.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\":\"Float\",\"defaultValue\":\"dataoievseotgqrlltm\"}") - .toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.FLOAT, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParameterSpecification model - = new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataoievseotgqrlltm"); - model = BinaryData.fromObject(model).toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.FLOAT, 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 530967ad7f79..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\":\"iqpmnufz\",\"serializer\":\"datachxwwuzdmh\",\"deserializer\":\"datalvivj\",\"\":{\"cotyx\":\"datalitqdsjipdvi\",\"s\":\"datariifefn\"}}") - .toObject(ParquetFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetFormat model = new ParquetFormat().withSerializer("datachxwwuzdmh").withDeserializer("datalvivj"); - 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 194683755a57..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\":\"ift\",\"compressionProperties\":{\"type\":\"ofts\",\"\":{\"vjemp\":\"datawusfbrnjvzly\",\"wzntbi\":\"dataubs\",\"fg\":\"datau\"}},\"\":{\"hcfndijz\":\"datapuukpswwutdu\",\"mxtijssytdp\":\"datavckhbu\"}}") - .toObject(ParquetReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetReadSettings model = new ParquetReadSettings() - .withCompressionProperties(new CompressionReadSettings().withAdditionalProperties(mapOf("type", "ofts"))); - 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 c46d5a08ca7d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.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.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\":\"jzf\",\"storeSettings\":{\"type\":\"vshg\",\"maxConcurrentConnections\":\"dataukaswgvoa\",\"disableMetricsCollection\":\"datatdt\",\"copyBehavior\":\"dataoafhhiyk\",\"metadata\":[{\"name\":\"dataebcuynq\",\"value\":\"dataiptefdvjgbemr\"},{\"name\":\"dataovquxpdprjethyh\",\"value\":\"dataoyexuivdrzxob\"}],\"\":{\"q\":\"datalg\",\"xwmwrjm\":\"dataiblaumogu\"}},\"formatSettings\":{\"type\":\"pxaps\",\"maxRowsPerFile\":\"datatyvra\",\"fileNamePrefix\":\"dataqbeqz\",\"\":{\"gouwefzdnyg\":\"dataygajqmpf\",\"qxjpzykkwk\":\"datathvlwhrjakd\",\"sdg\":\"datakkpbybhqwil\",\"kir\":\"datahe\"}},\"writeBatchSize\":\"datan\",\"writeBatchTimeout\":\"datahbcurthmbgav\",\"sinkRetryCount\":\"dataqjetoaijayvu\",\"sinkRetryWait\":\"dataibfnqjcx\",\"maxConcurrentConnections\":\"datadeqwxivjhmldvnox\",\"disableMetricsCollection\":\"datahltxtpgqqinkktay\",\"\":{\"wawblkkc\":\"datab\",\"ncqqhbjmvbe\":\"dataixsgklxgsqhczok\",\"ejnwwqyyfctfs\":\"datanlukeqzcbqv\",\"tnuzorx\":\"datahmrughmrybbh\"}}") - .toObject(ParquetSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSink model = new ParquetSink().withWriteBatchSize("datan") - .withWriteBatchTimeout("datahbcurthmbgav") - .withSinkRetryCount("dataqjetoaijayvu") - .withSinkRetryWait("dataibfnqjcx") - .withMaxConcurrentConnections("datadeqwxivjhmldvnox") - .withDisableMetricsCollection("datahltxtpgqqinkktay") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("dataukaswgvoa") - .withDisableMetricsCollection("datatdt") - .withCopyBehavior("dataoafhhiyk") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataebcuynq").withValue("dataiptefdvjgbemr"), - new MetadataItem().withName("dataovquxpdprjethyh").withValue("dataoyexuivdrzxob"))) - .withAdditionalProperties(mapOf("type", "vshg"))) - .withFormatSettings( - new ParquetWriteSettings().withMaxRowsPerFile("datatyvra").withFileNamePrefix("dataqbeqz")); - 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 9a929a247934..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\":\"mnkvpafoe\",\"storeSettings\":{\"type\":\"lrjdkyp\",\"maxConcurrentConnections\":\"datavilgn\",\"disableMetricsCollection\":\"datatjbldgikokjwgej\",\"\":{\"gsyszdtgw\":\"datazezwnqhcpk\",\"prourtmccd\":\"dataqcutk\",\"dcvlbxr\":\"datajtoypluxvjutckfh\",\"mzcxlgmuhxw\":\"datazvujp\"}},\"formatSettings\":{\"type\":\"q\",\"compressionProperties\":{\"type\":\"jczpfoispc\",\"\":{\"hazmcuggtsovozy\":\"datavmvsbgyq\",\"ugubob\":\"datapkrncjrq\",\"qcyhfubz\":\"dataqnwhcmvdow\"}},\"\":{\"fhjefiu\":\"datarawbftznxf\",\"bkdieismdkvfim\":\"databrnrilljucod\"}},\"additionalColumns\":\"datacij\",\"sourceRetryCount\":\"datacsk\",\"sourceRetryWait\":\"datawzmji\",\"maxConcurrentConnections\":\"dataqyllcckgfo\",\"disableMetricsCollection\":\"datarbfyjmenq\",\"\":{\"qtvsfsvq\":\"dataf\",\"hdaczixf\":\"datazgaweixnoblaz\",\"s\":\"datauw\"}}") - .toObject(ParquetSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSource model = new ParquetSource().withSourceRetryCount("datacsk") - .withSourceRetryWait("datawzmji") - .withMaxConcurrentConnections("dataqyllcckgfo") - .withDisableMetricsCollection("datarbfyjmenq") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datavilgn") - .withDisableMetricsCollection("datatjbldgikokjwgej") - .withAdditionalProperties(mapOf("type", "lrjdkyp"))) - .withFormatSettings(new ParquetReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "jczpfoispc")))) - .withAdditionalColumns("datacij"); - 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 1b9781f84d02..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\":\"tcistd\",\"maxRowsPerFile\":\"dataiklx\",\"fileNamePrefix\":\"datastun\",\"\":{\"azwxdfaask\":\"datakbuajkodpzqtg\",\"ncjwzeatezlt\":\"dataasjbuhzucdljqjs\",\"hxivshjuxmcj\":\"dataundkjphv\"}}") - .toObject(ParquetWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetWriteSettings model - = new ParquetWriteSettings().withMaxRowsPerFile("dataiklx").withFileNamePrefix("datastun"); - 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 8ce864643627..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.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.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\":\"ryhhe\",\"typeProperties\":{\"tableName\":\"datadc\"},\"description\":\"zhhllx\",\"structure\":\"datan\",\"schema\":\"dataxdjklfsd\",\"linkedServiceName\":{\"referenceName\":\"tkqiymmddslwnlg\",\"parameters\":{\"pybnnnlpqdn\":\"datahmk\",\"atupmrslwknrdvvm\":\"datas\",\"kdeetnne\":\"datajerndzzywxqraqx\"}},\"parameters\":{\"uxjmrzsxwasfwqj\":{\"type\":\"Float\",\"defaultValue\":\"dataks\"},\"r\":{\"type\":\"Int\",\"defaultValue\":\"datamfqdnppfcfgua\"},\"kgdwpj\":{\"type\":\"Int\",\"defaultValue\":\"datau\"}},\"annotations\":[\"dataukgctvnspjvsyydj\",\"datahdukcsqvyeegxhu\",\"dataojwumfjdymeqv\"],\"folder\":{\"name\":\"fyxdjspnonxem\"},\"\":{\"twvgc\":\"datazhn\",\"ypmjc\":\"datacvdjlwwefevtwll\",\"fwgkzuhk\":\"datay\",\"kckwbqwjyfmmkwa\":\"datahx\"}}") - .toObject(PaypalObjectDataset.class); - Assertions.assertEquals("zhhllx", model.description()); - Assertions.assertEquals("tkqiymmddslwnlg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("uxjmrzsxwasfwqj").type()); - Assertions.assertEquals("fyxdjspnonxem", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalObjectDataset model - = new PaypalObjectDataset().withDescription("zhhllx") - .withStructure("datan") - .withSchema("dataxdjklfsd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tkqiymmddslwnlg") - .withParameters(mapOf("pybnnnlpqdn", "datahmk", "atupmrslwknrdvvm", "datas", "kdeetnne", - "datajerndzzywxqraqx"))) - .withParameters(mapOf("uxjmrzsxwasfwqj", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataks"), "r", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datamfqdnppfcfgua"), - "kgdwpj", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datau"))) - .withAnnotations(Arrays.asList("dataukgctvnspjvsyydj", "datahdukcsqvyeegxhu", "dataojwumfjdymeqv")) - .withFolder(new DatasetFolder().withName("fyxdjspnonxem")) - .withTableName("datadc"); - model = BinaryData.fromObject(model).toObject(PaypalObjectDataset.class); - Assertions.assertEquals("zhhllx", model.description()); - Assertions.assertEquals("tkqiymmddslwnlg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("uxjmrzsxwasfwqj").type()); - Assertions.assertEquals("fyxdjspnonxem", 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 cf6eb307817e..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\":\"wld\",\"query\":\"datadeqqbdcbnr\",\"queryTimeout\":\"datatgtn\",\"additionalColumns\":\"datasopuwesmxodyto\",\"sourceRetryCount\":\"datan\",\"sourceRetryWait\":\"datasdgmuaqtqn\",\"maxConcurrentConnections\":\"datasiptzgomujuken\",\"disableMetricsCollection\":\"datayombkgky\",\"\":{\"kzxrmmoy\":\"dataihprvokodrpy\",\"xoubekafdxgtgcfk\":\"dataufkxy\",\"m\":\"dataaeu\"}}") - .toObject(PaypalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalSource model = new PaypalSource().withSourceRetryCount("datan") - .withSourceRetryWait("datasdgmuaqtqn") - .withMaxConcurrentConnections("datasiptzgomujuken") - .withDisableMetricsCollection("datayombkgky") - .withQueryTimeout("datatgtn") - .withAdditionalColumns("datasopuwesmxodyto") - .withQuery("datadeqqbdcbnr"); - 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 ce1620c83f35..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.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.PhoenixDatasetTypeProperties; - -public final class PhoenixDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datah\",\"table\":\"dataeinvzsodm\",\"schema\":\"datarq\"}") - .toObject(PhoenixDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixDatasetTypeProperties model - = new PhoenixDatasetTypeProperties().withTableName("datah").withTable("dataeinvzsodm").withSchema("datarq"); - 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 fae167bfc0af..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.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.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\":\"eenlqtqyvlfb\",\"typeProperties\":{\"tableName\":\"datauepaco\",\"table\":\"dataohex\",\"schema\":\"datagukfkbsycbdymb\"},\"description\":\"vqdvfjdsqephtosh\",\"structure\":\"dataua\",\"schema\":\"datawgujrcn\",\"linkedServiceName\":{\"referenceName\":\"a\",\"parameters\":{\"jwyyeomiflrvfeow\":\"datayqoizfyasyddqbws\",\"znwwu\":\"datatshwfrhhasabva\",\"bwtpwbjlpfwuq\":\"datakbpgci\",\"mpnxg\":\"datarpdgitenyuksli\"}},\"parameters\":{\"xej\":{\"type\":\"Bool\",\"defaultValue\":\"datalanchqotmmxl\"},\"psbeqieiux\":{\"type\":\"SecureString\",\"defaultValue\":\"datajzbjwvtuekbbypqs\"}},\"annotations\":[\"datawndalnjjh\",\"datagkjjpcpi\"],\"folder\":{\"name\":\"yxvtajfjatoid\"},\"\":{\"zanaqvengnpuelr\":\"dataurdgc\",\"jt\":\"dataanbrpkocuxfbage\",\"xmdboefnhx\":\"dataltckiwxggfagi\"}}") - .toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("vqdvfjdsqephtosh", model.description()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("xej").type()); - Assertions.assertEquals("yxvtajfjatoid", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixObjectDataset model = new PhoenixObjectDataset().withDescription("vqdvfjdsqephtosh") - .withStructure("dataua") - .withSchema("datawgujrcn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("a") - .withParameters(mapOf("jwyyeomiflrvfeow", "datayqoizfyasyddqbws", "znwwu", "datatshwfrhhasabva", - "bwtpwbjlpfwuq", "datakbpgci", "mpnxg", "datarpdgitenyuksli"))) - .withParameters(mapOf("xej", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datalanchqotmmxl"), - "psbeqieiux", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datajzbjwvtuekbbypqs"))) - .withAnnotations(Arrays.asList("datawndalnjjh", "datagkjjpcpi")) - .withFolder(new DatasetFolder().withName("yxvtajfjatoid")) - .withTableName("datauepaco") - .withTable("dataohex") - .withSchemaTypePropertiesSchema("datagukfkbsycbdymb"); - model = BinaryData.fromObject(model).toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("vqdvfjdsqephtosh", model.description()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("xej").type()); - Assertions.assertEquals("yxvtajfjatoid", 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 e35ef7bb9ab4..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\":\"ancjlkrskzw\",\"query\":\"datajwlwysrswzhci\",\"queryTimeout\":\"dataskmqkanuxju\",\"additionalColumns\":\"datavzodnxlcdgkc\",\"sourceRetryCount\":\"databafqzihmvw\",\"sourceRetryWait\":\"datajwvqiahoqjz\",\"maxConcurrentConnections\":\"datavwdlrt\",\"disableMetricsCollection\":\"dataulmzxhgwz\",\"\":{\"p\":\"datatwuuwehntjssj\"}}") - .toObject(PhoenixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixSource model = new PhoenixSource().withSourceRetryCount("databafqzihmvw") - .withSourceRetryWait("datajwvqiahoqjz") - .withMaxConcurrentConnections("datavwdlrt") - .withDisableMetricsCollection("dataulmzxhgwz") - .withQueryTimeout("dataskmqkanuxju") - .withAdditionalColumns("datavzodnxlcdgkc") - .withQuery("datajwlwysrswzhci"); - 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 459e48802b07..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\":\"datamblrrilbywd\"}") - .toObject(PipelineElapsedTimeMetricPolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineElapsedTimeMetricPolicy model = new PipelineElapsedTimeMetricPolicy().withDuration("datamblrrilbywd"); - 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 7bd29d982410..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\":707426378,\"numberOfPipelineNodes\":2050100407,\"numberOfExternalNodes\":1341467619,\"\":{\"obmgwavz\":\"datareisojhuswmgrb\",\"widteb\":\"dataqpaa\",\"r\":\"dataed\"}}") - .toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(707426378, model.timeToLive()); - Assertions.assertEquals(2050100407, model.numberOfPipelineNodes()); - Assertions.assertEquals(1341467619, model.numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineExternalComputeScaleProperties model - = new PipelineExternalComputeScaleProperties().withTimeToLive(707426378) - .withNumberOfPipelineNodes(2050100407) - .withNumberOfExternalNodes(1341467619) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(707426378, model.timeToLive()); - Assertions.assertEquals(2050100407, model.numberOfPipelineNodes()); - Assertions.assertEquals(1341467619, 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 d758c66b7171..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\":\"onmacjekniz\"}").toObject(PipelineFolder.class); - Assertions.assertEquals("onmacjekniz", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineFolder model = new PipelineFolder().withName("onmacjekniz"); - model = BinaryData.fromObject(model).toObject(PipelineFolder.class); - Assertions.assertEquals("onmacjekniz", 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 aea32d4b3048..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"lxorjaltolmncws\",\"activities\":[{\"type\":\"csdbnwdcfhuc\",\"name\":\"dpfuvg\",\"description\":\"bjj\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"t\",\"dependencyConditions\":[]},{\"activity\":\"udutnco\",\"dependencyConditions\":[]},{\"activity\":\"mr\",\"dependencyConditions\":[]},{\"activity\":\"xqtvcofu\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"vkg\",\"value\":\"datau\"},{\"name\":\"gdknnqv\",\"value\":\"dataaznqntoru\"}],\"\":{\"grauwjuetaebur\":\"datasahmky\",\"oefki\":\"datavdmovsmzlxwabm\",\"qujmqlgkf\":\"datarvtp\",\"tujitcjedft\":\"datatndoaongbjc\"}},{\"type\":\"ae\",\"name\":\"kojvd\",\"description\":\"zfoqouicybxar\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"x\",\"dependencyConditions\":[]},{\"activity\":\"iqopidoamciod\",\"dependencyConditions\":[]},{\"activity\":\"khazxkhnzbonlwn\",\"dependencyConditions\":[]},{\"activity\":\"oegokdwbwh\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"zcmrvexztvb\",\"value\":\"dataqgsfraoyzkoow\"}],\"\":{\"uximerqfobw\":\"datanguxawqaldsy\",\"r\":\"dataznkbykutwpfhpagm\",\"kkze\":\"datakdsnfdsdoakgtdl\",\"sdsttwvog\":\"datadlhewp\"}},{\"type\":\"bejdcn\",\"name\":\"qqmoaku\",\"description\":\"m\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"rtwaenuuzko\",\"dependencyConditions\":[]},{\"activity\":\"bminrfdwoyuhhzi\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"fozbhdmsmlmzqhof\",\"value\":\"datarmaequ\"},{\"name\":\"ah\",\"value\":\"dataicslfaoq\"},{\"name\":\"piyylhalnswhccsp\",\"value\":\"datakaivwit\"}],\"\":{\"wem\":\"dataywuggwoluhcz\",\"sbrgz\":\"dataai\",\"ggicccnxqhue\":\"datawmsweypqwd\"}},{\"type\":\"ktt\",\"name\":\"stvlzywemhzrnc\",\"description\":\"tclusiypbsfgy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"adcy\",\"dependencyConditions\":[]},{\"activity\":\"qukyhejhzi\",\"dependencyConditions\":[]},{\"activity\":\"xgfpelolppv\",\"dependencyConditions\":[]},{\"activity\":\"srp\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"jzraehtwdwrf\",\"value\":\"dataswibyr\"},{\"name\":\"dl\",\"value\":\"datah\"}],\"\":{\"c\":\"datawpracstwitykhev\",\"jc\":\"dataedcpnmdyodnwzxl\",\"vvwxqi\":\"datanhltiugcxn\"}}],\"parameters\":{\"wxwlmdjrkvfgb\":{\"type\":\"SecureString\",\"defaultValue\":\"datay\"},\"bodacizsjq\":{\"type\":\"SecureString\",\"defaultValue\":\"datap\"},\"ibqipqkg\":{\"type\":\"Float\",\"defaultValue\":\"datarribd\"},\"pjorwkqnyhg\":{\"type\":\"Array\",\"defaultValue\":\"datandzwmkrefa\"}},\"variables\":{\"wfsdjpvkvpbj\":{\"type\":\"Bool\",\"defaultValue\":\"dataivfxzsjabibsyst\"}},\"concurrency\":1795251983,\"annotations\":[\"datazkdvncja\",\"dataudurgkakmokz\"],\"runDimensions\":{\"mouwqlgzrfzeey\":\"dataklff\"},\"folder\":{\"name\":\"zi\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datahqlbjbsybbq\"}}},\"name\":\"vtldgmfpgvmpip\",\"type\":\"ltha\",\"etag\":\"x\",\"\":{\"pdrhne\":\"datawutwbdsre\",\"gpikpzimejza\":\"datayowqkdwytisibir\",\"rjqc\":\"datalfzxiavrmbzonoki\"},\"id\":\"gzpfrla\"},{\"properties\":{\"description\":\"zrnw\",\"activities\":[{\"type\":\"dfpwpjylwbtlhfls\",\"name\":\"cdhszf\",\"description\":\"fbgofeljagrqmqh\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ojnal\",\"dependencyConditions\":[]},{\"activity\":\"hfkvtvsexsowuel\",\"dependencyConditions\":[]},{\"activity\":\"qhhahhxvrhmzkwpj\",\"dependencyConditions\":[]},{\"activity\":\"wws\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"hftqsxhqxujxukn\",\"value\":\"dataxdigrjg\"},{\"name\":\"ufzdmsyq\",\"value\":\"datafi\"},{\"name\":\"whbotzingamv\",\"value\":\"dataphoszqz\"},{\"name\":\"dphqamv\",\"value\":\"datakfwynw\"}],\"\":{\"tnvyqiatkzwp\":\"databvkayh\",\"vvsccyajguq\":\"datanpwzcjaes\",\"lvdnkfx\":\"datahwyg\",\"apfcqdpsq\":\"datasemdwzrmu\"}},{\"type\":\"vpsvuoymgcce\",\"name\":\"vezrypqlmfeo\",\"description\":\"rqwky\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xedk\",\"dependencyConditions\":[]},{\"activity\":\"wep\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"cr\",\"value\":\"datakbwcc\"}],\"\":{\"htjsying\":\"datavcdwxlpqekftn\",\"tmtdhtmdvypgik\":\"datafq\",\"irryuzhlh\":\"datagszywk\"}},{\"type\":\"oqrvqqaatjin\",\"name\":\"vgoup\",\"description\":\"iibfggj\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"x\",\"dependencyConditions\":[]},{\"activity\":\"v\",\"dependencyConditions\":[]},{\"activity\":\"kkgll\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ygvjayvblmh\",\"value\":\"datak\"},{\"name\":\"uhbxvvy\",\"value\":\"datagsopbyrqufegxu\"},{\"name\":\"wz\",\"value\":\"databnhlmc\"}],\"\":{\"itvgbmhrixkwm\":\"datadn\"}}],\"parameters\":{\"hbpnaixexccbd\":{\"type\":\"Array\",\"defaultValue\":\"dataveg\"},\"ghtpw\":{\"type\":\"Float\",\"defaultValue\":\"dataxhcexdrrvqahq\"}},\"variables\":{\"vmtgjqppy\":{\"type\":\"String\",\"defaultValue\":\"datajsvfycxzbfvoowv\"},\"sxkm\":{\"type\":\"String\",\"defaultValue\":\"dataronzmyhgfip\"}},\"concurrency\":115360224,\"annotations\":[\"datarrjreafxtsgu\",\"datahjglikk\"],\"runDimensions\":{\"bq\":\"datalo\"},\"folder\":{\"name\":\"zlmvfelfktgp\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datawjxeznoigbr\"}}},\"name\":\"w\",\"type\":\"kpnb\",\"etag\":\"zejjoqk\",\"\":{\"azpxdtnkdmkqjjl\":\"datahsxttaugzxnf\",\"ou\":\"datauenvrkp\",\"aays\":\"dataibreb\"},\"id\":\"ixqtn\"}],\"nextLink\":\"tezlwff\"}") - .toObject(PipelineListResponse.class); - Assertions.assertEquals("gzpfrla", model.value().get(0).id()); - Assertions.assertEquals("lxorjaltolmncws", model.value().get(0).description()); - Assertions.assertEquals("dpfuvg", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("bjj", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.value().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("t", model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("vkg", model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).parameters().get("wxwlmdjrkvfgb").type()); - Assertions.assertEquals(VariableType.BOOL, model.value().get(0).variables().get("wfsdjpvkvpbj").type()); - Assertions.assertEquals(1795251983, model.value().get(0).concurrency()); - Assertions.assertEquals("zi", model.value().get(0).folder().name()); - Assertions.assertEquals("tezlwff", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineListResponse model = new PipelineListResponse() - .withValue(Arrays.asList( - new PipelineResourceInner().withId("gzpfrla") - .withDescription("lxorjaltolmncws") - .withActivities(Arrays.asList( - new Activity().withName("dpfuvg") - .withDescription("bjj") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("t") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("udutnco") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mr") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xqtvcofu") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("vkg").withValue("datau"), - new UserProperty().withName("gdknnqv").withValue("dataaznqntoru"))) - .withAdditionalProperties(mapOf("type", "csdbnwdcfhuc")), - new Activity().withName("kojvd") - .withDescription("zfoqouicybxar") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("x") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("iqopidoamciod") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("khazxkhnzbonlwn") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("oegokdwbwh") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("zcmrvexztvb").withValue("dataqgsfraoyzkoow"))) - .withAdditionalProperties(mapOf("type", "ae")), - new Activity().withName("qqmoaku") - .withDescription("m") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("rtwaenuuzko") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bminrfdwoyuhhzi") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("fozbhdmsmlmzqhof").withValue("datarmaequ"), - new UserProperty().withName("ah").withValue("dataicslfaoq"), - new UserProperty().withName("piyylhalnswhccsp").withValue("datakaivwit"))) - .withAdditionalProperties(mapOf("type", "bejdcn")), - new Activity().withName("stvlzywemhzrnc") - .withDescription("tclusiypbsfgy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("adcy") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qukyhejhzi") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xgfpelolppv") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("srp") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("jzraehtwdwrf").withValue("dataswibyr"), - new UserProperty().withName("dl").withValue("datah"))) - .withAdditionalProperties(mapOf("type", "ktt")))) - .withParameters(mapOf("wxwlmdjrkvfgb", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datay"), - "bodacizsjq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datap"), - "ibqipqkg", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datarribd"), - "pjorwkqnyhg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datandzwmkrefa"))) - .withVariables(mapOf("wfsdjpvkvpbj", - new VariableSpecification().withType(VariableType.BOOL) - .withDefaultValue("dataivfxzsjabibsyst"))) - .withConcurrency(1795251983) - .withAnnotations(Arrays.asList("datazkdvncja", "dataudurgkakmokz")) - .withRunDimensions(mapOf("mouwqlgzrfzeey", "dataklff")) - .withFolder(new PipelineFolder().withName("zi")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datahqlbjbsybbq"))) - .withAdditionalProperties(mapOf("name", "vtldgmfpgvmpip", "etag", "x", "type", "ltha")), - new PipelineResourceInner().withId("ixqtn") - .withDescription("zrnw") - .withActivities(Arrays.asList( - new Activity().withName("cdhszf") - .withDescription("fbgofeljagrqmqh") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ojnal") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hfkvtvsexsowuel") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qhhahhxvrhmzkwpj") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wws") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hftqsxhqxujxukn").withValue("dataxdigrjg"), - new UserProperty().withName("ufzdmsyq").withValue("datafi"), - new UserProperty().withName("whbotzingamv").withValue("dataphoszqz"), - new UserProperty().withName("dphqamv").withValue("datakfwynw"))) - .withAdditionalProperties(mapOf("type", "dfpwpjylwbtlhfls")), - new Activity().withName("vezrypqlmfeo") - .withDescription("rqwky") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("xedk") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wep") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("cr").withValue("datakbwcc"))) - .withAdditionalProperties(mapOf("type", "vpsvuoymgcce")), - new Activity().withName("vgoup") - .withDescription("iibfggj") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("x") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("v") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kkgll") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ygvjayvblmh").withValue("datak"), - new UserProperty().withName("uhbxvvy").withValue("datagsopbyrqufegxu"), - new UserProperty().withName("wz").withValue("databnhlmc"))) - .withAdditionalProperties(mapOf("type", "oqrvqqaatjin")))) - .withParameters(mapOf("hbpnaixexccbd", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataveg"), "ghtpw", - new ParameterSpecification().withType(ParameterType.FLOAT) - .withDefaultValue("dataxhcexdrrvqahq"))) - .withVariables(mapOf("vmtgjqppy", - new VariableSpecification().withType(VariableType.STRING) - .withDefaultValue("datajsvfycxzbfvoowv"), - "sxkm", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("dataronzmyhgfip"))) - .withConcurrency(115360224) - .withAnnotations(Arrays.asList("datarrjreafxtsgu", "datahjglikk")) - .withRunDimensions(mapOf("bq", "datalo")) - .withFolder(new PipelineFolder().withName("zlmvfelfktgp")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datawjxeznoigbr"))) - .withAdditionalProperties(mapOf("name", "w", "etag", "zejjoqk", "type", "kpnb")))) - .withNextLink("tezlwff"); - model = BinaryData.fromObject(model).toObject(PipelineListResponse.class); - Assertions.assertEquals("gzpfrla", model.value().get(0).id()); - Assertions.assertEquals("lxorjaltolmncws", model.value().get(0).description()); - Assertions.assertEquals("dpfuvg", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("bjj", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.value().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("t", model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("vkg", model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).parameters().get("wxwlmdjrkvfgb").type()); - Assertions.assertEquals(VariableType.BOOL, model.value().get(0).variables().get("wfsdjpvkvpbj").type()); - Assertions.assertEquals(1795251983, model.value().get(0).concurrency()); - Assertions.assertEquals("zi", model.value().get(0).folder().name()); - Assertions.assertEquals("tezlwff", 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 b7b0409a6232..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\":\"datavcimpev\"}}") - .toObject(PipelinePolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelinePolicy model = new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datavcimpev")); - 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 67c58afa33f0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.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.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\":\"cpqtwloesq\",\"name\":\"gvrbny\"}") - .toObject(PipelineReference.class); - Assertions.assertEquals("cpqtwloesq", model.referenceName()); - Assertions.assertEquals("gvrbny", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineReference model = new PipelineReference().withReferenceName("cpqtwloesq").withName("gvrbny"); - model = BinaryData.fromObject(model).toObject(PipelineReference.class); - Assertions.assertEquals("cpqtwloesq", model.referenceName()); - Assertions.assertEquals("gvrbny", 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 d619b2bc59b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"akpjpqqmtedlt\",\"activities\":[{\"type\":\"hyeozphvwau\",\"name\":\"qncygupkvi\",\"description\":\"dscwxqupevzhf\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"jujbypelmcuvhixb\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Succeeded\"],\"\":{\"kkbnu\":\"datalrcoolsttpki\"}},{\"activity\":\"rywvtylbfpn\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"cbihwqk\":\"datawiithtywub\"}}],\"userProperties\":[{\"name\":\"ntwjch\",\"value\":\"datadgoihxumwctondzj\"},{\"name\":\"uu\",\"value\":\"datafdlwg\"},{\"name\":\"ytsbwtovv\",\"value\":\"datagseinq\"}],\"\":{\"qmsniffcdmqnro\":\"datafxqknpirgneptt\",\"hcrat\":\"datalpijnkrxfrd\",\"ft\":\"datazzronasx\",\"zh\":\"datazq\"}}],\"parameters\":{\"mossxkkgthrrghxj\":{\"type\":\"Int\",\"defaultValue\":\"datagogczhonnxkrlgny\"},\"hrnsvbu\":{\"type\":\"Float\",\"defaultValue\":\"dataqxvcxgfrpdsofb\"},\"ybycnunvj\":{\"type\":\"Int\",\"defaultValue\":\"datavz\"}},\"variables\":{\"uxzejntpsew\":{\"type\":\"Bool\",\"defaultValue\":\"dataawnopqgikyzirtxd\"}},\"concurrency\":354517921,\"annotations\":[\"dataqukrydxt\"],\"runDimensions\":{\"tbghhavgrvkf\":\"dataeoxorggufhyao\",\"mv\":\"dataovjzhpjbibgjmfx\",\"zzxscyhwzdgiruj\":\"datacluyovwxnbkf\",\"ujviylwdshfs\":\"datazbomvzzbtdcqvpni\"},\"folder\":{\"name\":\"bgye\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datasgaojfmwncot\"}}},\"name\":\"fhir\",\"type\":\"ymoxoftpipiwyczu\",\"etag\":\"a\",\"\":{\"skasdvlmfwdgzxu\":\"datajlihhyus\",\"euzvx\":\"dataucvpamrs\",\"xmrhu\":\"datarisjnhnytxifqjz\",\"cesutrgjupauut\":\"datalw\"},\"id\":\"oqh\"}") - .toObject(PipelineResourceInner.class); - Assertions.assertEquals("oqh", model.id()); - Assertions.assertEquals("akpjpqqmtedlt", model.description()); - Assertions.assertEquals("qncygupkvi", model.activities().get(0).name()); - Assertions.assertEquals("dscwxqupevzhf", 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("jujbypelmcuvhixb", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ntwjch", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("mossxkkgthrrghxj").type()); - Assertions.assertEquals(VariableType.BOOL, model.variables().get("uxzejntpsew").type()); - Assertions.assertEquals(354517921, model.concurrency()); - Assertions.assertEquals("bgye", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineResourceInner model = new PipelineResourceInner().withId("oqh") - .withDescription("akpjpqqmtedlt") - .withActivities(Arrays.asList(new Activity().withName("qncygupkvi") - .withDescription("dscwxqupevzhf") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jujbypelmcuvhixb") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rywvtylbfpn") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ntwjch").withValue("datadgoihxumwctondzj"), - new UserProperty().withName("uu").withValue("datafdlwg"), - new UserProperty().withName("ytsbwtovv").withValue("datagseinq"))) - .withAdditionalProperties(mapOf("type", "hyeozphvwau")))) - .withParameters(mapOf("mossxkkgthrrghxj", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datagogczhonnxkrlgny"), - "hrnsvbu", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqxvcxgfrpdsofb"), - "ybycnunvj", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datavz"))) - .withVariables(mapOf("uxzejntpsew", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("dataawnopqgikyzirtxd"))) - .withConcurrency(354517921) - .withAnnotations(Arrays.asList("dataqukrydxt")) - .withRunDimensions(mapOf("tbghhavgrvkf", "dataeoxorggufhyao", "mv", "dataovjzhpjbibgjmfx", - "zzxscyhwzdgiruj", "datacluyovwxnbkf", "ujviylwdshfs", "datazbomvzzbtdcqvpni")) - .withFolder(new PipelineFolder().withName("bgye")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datasgaojfmwncot"))) - .withAdditionalProperties(mapOf("name", "fhir", "etag", "a", "type", "ymoxoftpipiwyczu")); - model = BinaryData.fromObject(model).toObject(PipelineResourceInner.class); - Assertions.assertEquals("oqh", model.id()); - Assertions.assertEquals("akpjpqqmtedlt", model.description()); - Assertions.assertEquals("qncygupkvi", model.activities().get(0).name()); - Assertions.assertEquals("dscwxqupevzhf", 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("jujbypelmcuvhixb", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ntwjch", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("mossxkkgthrrghxj").type()); - Assertions.assertEquals(VariableType.BOOL, model.variables().get("uxzejntpsew").type()); - Assertions.assertEquals(354517921, model.concurrency()); - Assertions.assertEquals("bgye", 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 a0e8743d89f3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.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.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\":\"lvofqzhvfcibyfmo\",\"runGroupId\":\"xrkjpvdw\",\"isLatest\":true,\"pipelineName\":\"iivwzjbhyzsxjrka\",\"parameters\":{\"uqeqv\":\"rnegvmn\",\"est\":\"dspastjbkkdmfl\",\"ilozapeewchpxlk\":\"jlxr\",\"ziycslevufuztck\":\"wk\"},\"runDimensions\":{\"qzz\":\"jtqedcgzulwmm\"},\"invokedBy\":{\"name\":\"vpglydz\",\"id\":\"rvqeevtoepryutn\",\"invokedByType\":\"tpzdmovzvfvaawzq\",\"pipelineName\":\"f\",\"pipelineRunId\":\"z\"},\"lastUpdated\":\"2021-05-05T00:43:37Z\",\"runStart\":\"2021-04-25T19:47:18Z\",\"runEnd\":\"2021-02-28T21:39:36Z\",\"durationInMs\":1970549549,\"status\":\"dticokpvzml\",\"message\":\"mldgxobfirc\",\"\":{\"khyawfvjlboxqv\":\"datakciayzri\"}}") - .toObject(PipelineRunInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineRunInner model = new PipelineRunInner().withAdditionalProperties(mapOf("durationInMs", 1970549549, - "runDimensions", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"qzz\":\"jtqedcgzulwmm\"}", Object.class, SerializerEncoding.JSON), - "invokedBy", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"name\":\"vpglydz\",\"id\":\"rvqeevtoepryutn\",\"invokedByType\":\"tpzdmovzvfvaawzq\",\"pipelineName\":\"f\",\"pipelineRunId\":\"z\"}", - Object.class, SerializerEncoding.JSON), - "runStart", "2021-04-25T19:47:18Z", "message", "mldgxobfirc", "pipelineName", "iivwzjbhyzsxjrka", - "lastUpdated", "2021-05-05T00:43:37Z", "isLatest", true, "runId", "lvofqzhvfcibyfmo", "runEnd", - "2021-02-28T21:39:36Z", "runGroupId", "xrkjpvdw", "parameters", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"uqeqv\":\"rnegvmn\",\"est\":\"dspastjbkkdmfl\",\"ilozapeewchpxlk\":\"jlxr\",\"ziycslevufuztck\":\"wk\"}", - Object.class, SerializerEncoding.JSON), - "status", "dticokpvzml")); - 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 aa636c8816d1..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\":\"lmxhomdyn\",\"id\":\"wdigumbnraauz\",\"invokedByType\":\"tj\",\"pipelineName\":\"ysdzhez\",\"pipelineRunId\":\"vaiqyuvvf\"}") - .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 adcd1d8e718a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.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 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("avrqvlu", "wwgfgtnoktilfdy", "urejvqcmpwwrpxth", true, - 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 a9424dfb074c..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\":\"myzoievdb\",\"runGroupId\":\"msndoxuzfapzqj\",\"isLatest\":true,\"pipelineName\":\"hlxq\",\"parameters\":{\"sftjrdilnxbtwm\":\"jgosvcoldyt\",\"mwwsya\":\"xledkjcysfluufvn\",\"ugrlnk\":\"hbikvcy\",\"ucflada\":\"ylgwceickwz\"},\"runDimensions\":{\"bmjzdtxolxzlx\":\"edbhnmbqro\",\"ohsitdlsem\":\"kyrrmrylt\"},\"invokedBy\":{\"name\":\"aakncigyqatvcwtp\",\"id\":\"cdda\",\"invokedByType\":\"ppcypjhnfld\",\"pipelineName\":\"jzvigszgfw\",\"pipelineRunId\":\"ztkldwaqftfbkd\"},\"lastUpdated\":\"2021-10-19T14:15:09Z\",\"runStart\":\"2021-03-29T20:28:40Z\",\"runEnd\":\"2021-05-20T13:13:37Z\",\"durationInMs\":403018461,\"status\":\"esasnpedvq\",\"message\":\"ljmvjojplxyolgsh\",\"\":{\"xfemixxqbrsmomr\":\"datayzizyl\",\"mjcqwgc\":\"datadq\"}}"; - - 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("au", "bkihr", "sdsmmdpn", 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 8e769bd558e8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"ejqgw\",\"activities\":[{\"type\":\"qntcypsxjvfoimwk\",\"name\":\"lirc\",\"description\":\"jxv\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"vlhv\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"jslb\":\"datamrtwna\",\"aeqphchqnr\":\"datawkojgcyztsfmzn\",\"wrykqgai\":\"datarpxeh\"}},{\"activity\":\"mvikl\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"volvtn\":\"datahbejdznxcvdsrhnj\",\"fzg\":\"datav\",\"jltduceam\":\"datamjdftu\"}}],\"userProperties\":[{\"name\":\"zuo\",\"value\":\"dataejwcwwqiok\"}],\"\":{\"vk\":\"dataxmojmsvpkjp\"}}],\"parameters\":{\"dbsdshm\":{\"type\":\"Int\",\"defaultValue\":\"dataljyxgtczhe\"}},\"variables\":{\"baxk\":{\"type\":\"String\",\"defaultValue\":\"datahvbbxuripltfnh\"},\"yklyhpluodpvruud\":{\"type\":\"String\",\"defaultValue\":\"datawrck\"},\"eclze\":{\"type\":\"String\",\"defaultValue\":\"dataibthostgktstvd\"}},\"concurrency\":83422204,\"annotations\":[\"datahzlhplodqkdlww\"],\"runDimensions\":{\"lkxt\":\"datau\"},\"folder\":{\"name\":\"fsmlmbtxhwgfw\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datawcoezbrhub\"}}}") - .toObject(Pipeline.class); - Assertions.assertEquals("ejqgw", model.description()); - Assertions.assertEquals("lirc", model.activities().get(0).name()); - Assertions.assertEquals("jxv", 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("vlhv", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zuo", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("dbsdshm").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("baxk").type()); - Assertions.assertEquals(83422204, model.concurrency()); - Assertions.assertEquals("fsmlmbtxhwgfw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Pipeline model = new Pipeline().withDescription("ejqgw") - .withActivities(Arrays.asList(new Activity().withName("lirc") - .withDescription("jxv") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("vlhv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mvikl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("zuo").withValue("dataejwcwwqiok"))) - .withAdditionalProperties(mapOf("type", "qntcypsxjvfoimwk")))) - .withParameters(mapOf("dbsdshm", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataljyxgtczhe"))) - .withVariables(mapOf("baxk", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datahvbbxuripltfnh"), - "yklyhpluodpvruud", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datawrck"), "eclze", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("dataibthostgktstvd"))) - .withConcurrency(83422204) - .withAnnotations(Arrays.asList("datahzlhplodqkdlww")) - .withRunDimensions(mapOf("lkxt", "datau")) - .withFolder(new PipelineFolder().withName("fsmlmbtxhwgfw")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datawcoezbrhub"))); - model = BinaryData.fromObject(model).toObject(Pipeline.class); - Assertions.assertEquals("ejqgw", model.description()); - Assertions.assertEquals("lirc", model.activities().get(0).name()); - Assertions.assertEquals("jxv", 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("vlhv", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zuo", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("dbsdshm").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("baxk").type()); - Assertions.assertEquals(83422204, model.concurrency()); - Assertions.assertEquals("fsmlmbtxhwgfw", 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 46ccd982bd58..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights 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\":\"tsgvtqvagklmgmld\",\"activities\":[{\"type\":\"rpxwpsmniixacyv\",\"name\":\"zlzdzgvfciptypm\",\"description\":\"ldghxwo\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"hem\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ecwfnscehqkksjb\",\"value\":\"datatbvgfmrtxeij\"},{\"name\":\"qzcf\",\"value\":\"datakmwcwh\"},{\"name\":\"bacwbdxmb\",\"value\":\"dataecfjanfvrrd\"}],\"\":{\"ziadtzezravt\":\"datazyrwztra\",\"qewsyypy\":\"dataarqgakqbswyofx\",\"zxflrcbexxm\":\"datagzqlwbinzcr\"}},{\"type\":\"clapomzqbwh\",\"name\":\"qoh\",\"description\":\"izexzatrzpgld\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"woawbbrvogpr\",\"dependencyConditions\":[]},{\"activity\":\"rwzlbcel\",\"dependencyConditions\":[]},{\"activity\":\"s\",\"dependencyConditions\":[]},{\"activity\":\"qvfcgsw\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"msneg\",\"value\":\"datawomj\"},{\"name\":\"ig\",\"value\":\"datagsozmjshnelmq\"}],\"\":{\"w\":\"datagtlpddfuaw\"}}],\"parameters\":{\"wltyirppsykbxiv\":{\"type\":\"Bool\",\"defaultValue\":\"datajzfwmxdyb\"},\"uaqxrgxmfowex\":{\"type\":\"Bool\",\"defaultValue\":\"databqgoeiaoepczxcc\"}},\"variables\":{\"iw\":{\"type\":\"Array\",\"defaultValue\":\"datadiohshofodorvqvd\"},\"zcsw\":{\"type\":\"Array\",\"defaultValue\":\"dataldnn\"}},\"concurrency\":294111660,\"annotations\":[\"dataecz\"],\"runDimensions\":{\"gntvtraaijyqt\":\"dataoepjqainmr\",\"xba\":\"dataksqbkjuanrwhq\",\"cymeq\":\"datadfzpawvbt\",\"bcrcuqvmmaghaq\":\"datamigo\"},\"folder\":{\"name\":\"iuzzxzgtoycht\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataxwdeurn\"}}},\"name\":\"txw\",\"type\":\"xoynkgeiisjzjj\",\"etag\":\"chkjxm\",\"\":{\"dqbb\":\"datav\",\"qsrwhievbxozmd\":\"datarndwa\",\"g\":\"datafcecikqrkbl\",\"axwuyeudzyxfttf\":\"databunwosyvexcqoufs\"},\"id\":\"xluqrzi\"}"; - - 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("tikkotjhf") - .withExistingFactory("h", "aakdhzgzwb") - .withDescription("dvxb") - .withActivities(Arrays.asList( - new Activity().withName("shugv") - .withDescription("ulydeigungk") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gwccqgdejupuo") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pme") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("if").withValue("datat"), - new UserProperty().withName("yzfcybauwfr").withValue("dataznuljodv"), - new UserProperty().withName("pttts").withValue("datacpdtgz"))) - .withAdditionalProperties(mapOf("type", "vmqyplpyyzaoqfs")), - new Activity().withName("gjsfxiiiqivslpoe") - .withDescription("zahfswcbkjqlwfzl") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("qihhos") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pebhv") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rsihdtphtfo") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("r").withValue("datapn"), - new UserProperty().withName("mg").withValue("datajuvlffgurztd"), - new UserProperty().withName("oykqorwyykmlpi").withValue("datas"))) - .withAdditionalProperties(mapOf("type", "svwrcbmxmbutxtt")), - new Activity().withName("qmvezcdepikul") - .withDescription("mygpcobhvbxai") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("i") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("dpsfihggkixhz").withValue("datagwxvobhjgexenji"), - new UserProperty().withName("kruem").withValue("datahegshyzifn"), - new UserProperty().withName("qgwfulqfvzegxd").withValue("datakxxdymc"), - new UserProperty().withName("cuze").withValue("dataaq"))) - .withAdditionalProperties(mapOf("type", "opksetkfc")))) - .withParameters(mapOf("trinajirigjfaqz", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxv"), - "mkdqmfwzkullgkxw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datalkpp"), - "zbgwhwxlrlsdq", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqhzqzr"), "trp", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataxsbyoogn"))) - .withVariables(mapOf("yboldmpzwcf", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("datai"), "mfggiryrzjatfvq", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("datartbuzlgkevp"), "utqy", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("databpcsgfswgfdq"), "zsvpfj", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("dataepogosktphc"))) - .withConcurrency(1513478816) - .withAnnotations(Arrays.asList("dataifrpj", "datakzvwdtylu", "datatvwwhufdoomhxl")) - .withRunDimensions(mapOf("xzw", "datajtpwdec")) - .withFolder(new PipelineFolder().withName("caq")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datazdzackskuec"))) - .withIfMatch("jzs") - .create(); - - Assertions.assertEquals("xluqrzi", response.id()); - Assertions.assertEquals("tsgvtqvagklmgmld", response.description()); - Assertions.assertEquals("zlzdzgvfciptypm", response.activities().get(0).name()); - Assertions.assertEquals("ldghxwo", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("hem", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("ecwfnscehqkksjb", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.BOOL, response.parameters().get("wltyirppsykbxiv").type()); - Assertions.assertEquals(VariableType.ARRAY, response.variables().get("iw").type()); - Assertions.assertEquals(294111660, response.concurrency()); - Assertions.assertEquals("iuzzxzgtoycht", 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 bc031735d851..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.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.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\":\"xibwhdhgenmefb\"}"; - - 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("ywnl", "mfizfovlufkyg", "yklw", "kdblpeutahm", false, "ersvplnab", true, - mapOf("zlbdbhfaso", "dataiktglaux", "n", "datavhqgkfcspodm", "woxtevonmq", "datakixithykgeqnfe"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xibwhdhgenmefb", 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 791f9fabdb16..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.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 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("txjrhatpebewli", "egdizjdagn", "hd", 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 a150a5b14175..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\":\"hzmckdtwmsmhnzm\",\"activities\":[{\"type\":\"xkslofpguck\",\"name\":\"w\",\"description\":\"epqdcox\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"pgmugged\",\"dependencyConditions\":[]},{\"activity\":\"zuxm\",\"dependencyConditions\":[]},{\"activity\":\"eowaeagqmzxyi\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"fpidtf\",\"value\":\"datahctqxzktauqavo\"},{\"name\":\"lyntvou\",\"value\":\"datasqcmgusuaiquoda\"},{\"name\":\"liefhfjywms\",\"value\":\"datambdkv\"}],\"\":{\"bqceltf\":\"databmlpuzv\",\"hndqzuqdhuqlev\":\"datapzwyrtnkkjzj\",\"flk\":\"datayamdehdv\",\"eqfyuorqzlnek\":\"dataqxsadwkonnoul\"}},{\"type\":\"gsjyzdmsy\",\"name\":\"zabj\",\"description\":\"eftldjesxbov\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"jgwrn\",\"dependencyConditions\":[]},{\"activity\":\"dxab\",\"dependencyConditions\":[]},{\"activity\":\"xqpsjtipvszn\",\"dependencyConditions\":[]},{\"activity\":\"sbpueymimicjjy\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"pqtlgzu\",\"value\":\"dataktbbbv\"}],\"\":{\"kocdqo\":\"datamhc\",\"kbthmrfytxvxurmo\":\"datalbqkjqkgh\",\"qof\":\"dataj\"}}],\"parameters\":{\"nkugzchsxsnipnl\":{\"type\":\"Object\",\"defaultValue\":\"datakykb\"},\"oezathxzfqjwv\":{\"type\":\"SecureString\",\"defaultValue\":\"dataheukbjpldn\"},\"lpzwog\":{\"type\":\"Bool\",\"defaultValue\":\"dataxyrngirdvuvesep\"}},\"variables\":{\"ebcokrugr\":{\"type\":\"Bool\",\"defaultValue\":\"dataoqvuc\"},\"phme\":{\"type\":\"Array\",\"defaultValue\":\"datapuxvcypqt\"},\"fkg\":{\"type\":\"Bool\",\"defaultValue\":\"datac\"}},\"concurrency\":713633064,\"annotations\":[\"dataojvscobnre\",\"datarownnxq\"],\"runDimensions\":{\"qimaklsv\":\"dataalqlkimni\",\"dioadbcwvut\":\"dataggxlddkiwkmbvu\"},\"folder\":{\"name\":\"kkdydsj\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datanbxptew\"}}},\"name\":\"hiowdk\",\"type\":\"opgdwhhsd\",\"etag\":\"mufeq\",\"\":{\"rjeopih\":\"datazbglcfego\",\"ohhksremmboup\":\"datahoxusvwranek\"},\"id\":\"ywfzf\"}"; - - 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("aqambi", "kuh", "r", "xgsjbhlqpn", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ywfzf", response.id()); - Assertions.assertEquals("hzmckdtwmsmhnzm", response.description()); - Assertions.assertEquals("w", response.activities().get(0).name()); - Assertions.assertEquals("epqdcox", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("pgmugged", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("fpidtf", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.OBJECT, response.parameters().get("nkugzchsxsnipnl").type()); - Assertions.assertEquals(VariableType.BOOL, response.variables().get("ebcokrugr").type()); - Assertions.assertEquals(713633064, response.concurrency()); - Assertions.assertEquals("kkdydsj", 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 43fac82c4e5d..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\":\"zhhmshonnmbaott\",\"activities\":[{\"type\":\"l\",\"name\":\"on\",\"description\":\"zwfukjwvmmya\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"afz\",\"dependencyConditions\":[]},{\"activity\":\"xzyrzqnxuab\",\"dependencyConditions\":[]},{\"activity\":\"uerncgvjm\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qruolmumz\",\"value\":\"datajhspy\"}],\"\":{\"ytbjfinhvl\":\"datajdmgzmpbfho\",\"nydehojqh\":\"datatdhsyarkzogovlth\",\"vapretiydlrj\":\"datas\"}},{\"type\":\"mp\",\"name\":\"vbrt\",\"description\":\"id\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"shv\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"kje\",\"value\":\"datadfsgkrr\"},{\"name\":\"ltgbbxghxaqds\",\"value\":\"datatbgslllc\"},{\"name\":\"fhrbqq\",\"value\":\"datamttxmghsbcoguer\"}],\"\":{\"xrdszpoewfanfejk\":\"datajbtytdxhgpjewqgy\",\"jswhoh\":\"datautnaavtjhikcp\"}}],\"parameters\":{\"wx\":{\"type\":\"Object\",\"defaultValue\":\"dataqvximgjksbpudjh\"},\"edxwbhnsbejq\":{\"type\":\"String\",\"defaultValue\":\"datavceudxhnwg\"},\"exdfwr\":{\"type\":\"Object\",\"defaultValue\":\"datalchy\"},\"kbuiuspbeq\":{\"type\":\"Object\",\"defaultValue\":\"datazpokgrr\"}},\"variables\":{\"anqdbufde\":{\"type\":\"Bool\",\"defaultValue\":\"dataahrfhxrvarvtb\"},\"kuvqnop\":{\"type\":\"Bool\",\"defaultValue\":\"datahxngqpbbybhjozn\"},\"myboj\":{\"type\":\"String\",\"defaultValue\":\"databvi\"},\"bfz\":{\"type\":\"Bool\",\"defaultValue\":\"datat\"}},\"concurrency\":725820457,\"annotations\":[\"datawzsazfzyrleih\",\"datand\"],\"runDimensions\":{\"ypj\":\"datamjxpjnvkp\",\"ffiiecignemlahz\":\"datamj\"},\"folder\":{\"name\":\"izsacmtcevwzai\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataugilyykwwot\"}}},\"name\":\"hqahfzaihgmpyd\",\"type\":\"vkolbepqjji\",\"etag\":\"cuyiklmcrtcsc\",\"\":{\"xjhqtihuos\":\"datapcwhyk\"},\"id\":\"sgccxwhcyd\"}]}"; - - 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("nwgchvgpunxnfo", "cc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("sgccxwhcyd", response.iterator().next().id()); - Assertions.assertEquals("zhhmshonnmbaott", response.iterator().next().description()); - Assertions.assertEquals("on", response.iterator().next().activities().get(0).name()); - Assertions.assertEquals("zwfukjwvmmya", response.iterator().next().activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, response.iterator().next().activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, - response.iterator().next().activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("afz", response.iterator().next().activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("qruolmumz", - response.iterator().next().activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.OBJECT, response.iterator().next().parameters().get("wx").type()); - Assertions.assertEquals(VariableType.BOOL, response.iterator().next().variables().get("anqdbufde").type()); - Assertions.assertEquals(725820457, response.iterator().next().concurrency()); - Assertions.assertEquals("izsacmtcevwzai", 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 e013bb8ec4da..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\":\"value\",\"rejectValue\":\"datakscrsbrhkd\",\"rejectSampleValue\":\"dataaxoajg\",\"useTypeDefault\":\"datacachsojgagey\",\"\":{\"gfxwynzbeemlsrtg\":\"datakkzkzprjqb\",\"dglpu\":\"datagcmutuk\"}}") - .toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.VALUE, model.rejectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolybaseSettings model = new PolybaseSettings().withRejectType(PolybaseSettingsRejectType.VALUE) - .withRejectValue("datakscrsbrhkd") - .withRejectSampleValue("dataaxoajg") - .withUseTypeDefault("datacachsojgagey") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.VALUE, 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 fa701b874f14..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\":\"aeu\",\"query\":\"datanfbms\",\"queryTimeout\":\"dataerbdd\",\"additionalColumns\":\"datangdctmjz\",\"sourceRetryCount\":\"datagvheqzlqevas\",\"sourceRetryWait\":\"datagoodfh\",\"maxConcurrentConnections\":\"datauegdynyddp\",\"disableMetricsCollection\":\"dataizlzxht\",\"\":{\"znhol\":\"datalgm\",\"okuykrvxmobn\":\"dataflsjwawlkqmznkcw\"}}") - .toObject(PostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlSource model = new PostgreSqlSource().withSourceRetryCount("datagvheqzlqevas") - .withSourceRetryWait("datagoodfh") - .withMaxConcurrentConnections("datauegdynyddp") - .withDisableMetricsCollection("dataizlzxht") - .withQueryTimeout("dataerbdd") - .withAdditionalColumns("datangdctmjz") - .withQuery("datanfbms"); - 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 8aa8b7a5a03d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.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.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\":\"fdyfao\",\"typeProperties\":{\"tableName\":\"datahfxa\",\"table\":\"datayihjcwwvaosckfa\",\"schema\":\"datakhpspww\"},\"description\":\"ng\",\"structure\":\"datanrdpuzlaihsujt\",\"schema\":\"dataybsz\",\"linkedServiceName\":{\"referenceName\":\"mijxejpd\",\"parameters\":{\"rnhhjtvh\":\"dataqwzutiye\",\"toqwrnfc\":\"datasznsyovqmqcud\",\"awfubkngejjxu\":\"datajthlokmx\"}},\"parameters\":{\"drsjtmn\":{\"type\":\"String\",\"defaultValue\":\"datajmoozmxuk\"},\"w\":{\"type\":\"Object\",\"defaultValue\":\"datao\"},\"tia\":{\"type\":\"String\",\"defaultValue\":\"datafdt\"}},\"annotations\":[\"datarnuhcfhepisqbc\",\"datalr\",\"datai\",\"datammemsoqgblcye\"],\"folder\":{\"name\":\"bobaqca\"},\"\":{\"wnlpjcxbjg\":\"datackcesrsi\"}}") - .toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("ng", model.description()); - Assertions.assertEquals("mijxejpd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("drsjtmn").type()); - Assertions.assertEquals("bobaqca", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDataset model = new PostgreSqlTableDataset().withDescription("ng") - .withStructure("datanrdpuzlaihsujt") - .withSchema("dataybsz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mijxejpd") - .withParameters(mapOf("rnhhjtvh", "dataqwzutiye", "toqwrnfc", "datasznsyovqmqcud", "awfubkngejjxu", - "datajthlokmx"))) - .withParameters(mapOf("drsjtmn", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datajmoozmxuk"), "w", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datao"), "tia", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafdt"))) - .withAnnotations(Arrays.asList("datarnuhcfhepisqbc", "datalr", "datai", "datammemsoqgblcye")) - .withFolder(new DatasetFolder().withName("bobaqca")) - .withTableName("datahfxa") - .withTable("datayihjcwwvaosckfa") - .withSchemaTypePropertiesSchema("datakhpspww"); - model = BinaryData.fromObject(model).toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("ng", model.description()); - Assertions.assertEquals("mijxejpd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("drsjtmn").type()); - Assertions.assertEquals("bobaqca", 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 6274de935b11..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.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.PostgreSqlTableDatasetTypeProperties; - -public final class PostgreSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datay\",\"table\":\"datayfr\",\"schema\":\"datadzfpsfyakidfhmlx\"}") - .toObject(PostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model = new PostgreSqlTableDatasetTypeProperties().withTableName("datay") - .withTable("datayfr") - .withSchema("datadzfpsfyakidfhmlx"); - 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 218c1b397e75..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\":\"svmp\",\"query\":\"datamgnjmskuv\",\"queryTimeout\":\"datazpyptgwm\",\"additionalColumns\":\"datarhc\",\"sourceRetryCount\":\"datarzilvcncdazw\",\"sourceRetryWait\":\"datagoravovqpn\",\"maxConcurrentConnections\":\"dataufvggv\",\"disableMetricsCollection\":\"datamezfyelf\",\"\":{\"jzgyzjtmakhgat\":\"datakbhjdkq\",\"zoopzaenlzjx\":\"datankihbfixybtow\",\"wva\":\"datatgduwun\"}}") - .toObject(PostgreSqlV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2Source model = new PostgreSqlV2Source().withSourceRetryCount("datarzilvcncdazw") - .withSourceRetryWait("datagoravovqpn") - .withMaxConcurrentConnections("dataufvggv") - .withDisableMetricsCollection("datamezfyelf") - .withQueryTimeout("datazpyptgwm") - .withAdditionalColumns("datarhc") - .withQuery("datamgnjmskuv"); - 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 7ed8c1294ce4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.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.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\":\"vvoydwedggwg\",\"typeProperties\":{\"table\":\"datai\",\"schema\":\"datajrgtruwpuqpsrce\"},\"description\":\"vbwa\",\"structure\":\"dataadrjbjng\",\"schema\":\"datar\",\"linkedServiceName\":{\"referenceName\":\"rdrwiem\",\"parameters\":{\"rxirq\":\"dataniapypi\",\"nytkmlfupjzc\":\"dataipzesstu\",\"ahxuerrdaktnytk\":\"dataxvzjoyxj\"}},\"parameters\":{\"fqjckmpwyvlhnhhc\":{\"type\":\"SecureString\",\"defaultValue\":\"datacvcp\"},\"lrcygotohzwto\":{\"type\":\"Int\",\"defaultValue\":\"datalebgjgylsacagi\"}},\"annotations\":[\"databxitrapwzhlutj\",\"datajzelsriemvupmea\",\"dataosysycv\",\"datade\"],\"folder\":{\"name\":\"bsaipusuofkegbvb\"},\"\":{\"f\":\"dataedfflzvsluazz\",\"ee\":\"dataveugpx\",\"scboxra\":\"datapup\"}}") - .toObject(PostgreSqlV2TableDataset.class); - Assertions.assertEquals("vbwa", model.description()); - Assertions.assertEquals("rdrwiem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("fqjckmpwyvlhnhhc").type()); - Assertions.assertEquals("bsaipusuofkegbvb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2TableDataset model - = new PostgreSqlV2TableDataset().withDescription("vbwa") - .withStructure("dataadrjbjng") - .withSchema("datar") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rdrwiem") - .withParameters(mapOf("rxirq", "dataniapypi", "nytkmlfupjzc", "dataipzesstu", "ahxuerrdaktnytk", - "dataxvzjoyxj"))) - .withParameters(mapOf("fqjckmpwyvlhnhhc", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datacvcp"), - "lrcygotohzwto", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datalebgjgylsacagi"))) - .withAnnotations(Arrays.asList("databxitrapwzhlutj", "datajzelsriemvupmea", "dataosysycv", "datade")) - .withFolder(new DatasetFolder().withName("bsaipusuofkegbvb")) - .withTable("datai") - .withSchemaTypePropertiesSchema("datajrgtruwpuqpsrce"); - model = BinaryData.fromObject(model).toObject(PostgreSqlV2TableDataset.class); - Assertions.assertEquals("vbwa", model.description()); - Assertions.assertEquals("rdrwiem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("fqjckmpwyvlhnhhc").type()); - Assertions.assertEquals("bsaipusuofkegbvb", 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 c4290ffd09c3..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\":\"dataczmrjgobe\",\"schema\":\"dataeheow\"}") - .toObject(PostgreSqlV2TableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2TableDatasetTypeProperties model - = new PostgreSqlV2TableDatasetTypeProperties().withTable("dataczmrjgobe").withSchema("dataeheow"); - 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 9cbf63d5aa45..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.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.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\":\"rx\",\"dataflowSinks\":[{\"script\":\"ptvr\",\"schemaLinkedService\":{\"referenceName\":\"cpr\",\"parameters\":{\"hdnx\":\"dataswozpm\",\"n\":\"datakfesursbyfoavozq\",\"kzchcmuvskdvqyf\":\"datamxitvmrq\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"wxcabfrvjpfojh\",\"parameters\":{\"dxfvjdfusuwght\":\"datadoqyohzhundfk\"}},\"name\":\"pgarhf\",\"description\":\"dedi\",\"dataset\":{\"referenceName\":\"dpc\",\"parameters\":{\"sdzfle\":\"datapmw\"}},\"linkedService\":{\"referenceName\":\"fsgrheak\",\"parameters\":{\"vpbjclih\":\"dataukmnu\",\"mjqjoamzdsa\":\"datazriigteqyp\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tkqbvtdeouqixgtp\",\"datasetParameters\":\"databjevjjjuwdv\",\"parameters\":{\"ucobpkphxh\":\"datalbfrch\"},\"\":{\"umjysukezqohthsm\":\"dataekxbc\",\"yuwuypou\":\"datauaoyp\",\"dfreyrgrgft\":\"datapdclajujso\"}}}]}") - .toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("rx", model.queryName()); - Assertions.assertEquals("pgarhf", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("dedi", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("dpc", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("fsgrheak", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("tkqbvtdeouqixgtp", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("cpr", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("wxcabfrvjpfojh", - model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ptvr", model.dataflowSinks().get(0).script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySinkMapping model = new PowerQuerySinkMapping().withQueryName("rx") - .withDataflowSinks(Arrays.asList(new PowerQuerySink().withName("pgarhf") - .withDescription("dedi") - .withDataset(new DatasetReference().withReferenceName("dpc").withParameters(mapOf("sdzfle", "datapmw"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("fsgrheak") - .withParameters(mapOf("vpbjclih", "dataukmnu", "mjqjoamzdsa", "datazriigteqyp"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tkqbvtdeouqixgtp") - .withDatasetParameters("databjevjjjuwdv") - .withParameters(mapOf("ucobpkphxh", "datalbfrch")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("cpr") - .withParameters(mapOf("hdnx", "dataswozpm", "n", "datakfesursbyfoavozq", "kzchcmuvskdvqyf", - "datamxitvmrq"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("wxcabfrvjpfojh") - .withParameters(mapOf("dxfvjdfusuwght", "datadoqyohzhundfk"))) - .withScript("ptvr"))); - model = BinaryData.fromObject(model).toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("rx", model.queryName()); - Assertions.assertEquals("pgarhf", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("dedi", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("dpc", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("fsgrheak", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("tkqbvtdeouqixgtp", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("cpr", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("wxcabfrvjpfojh", - model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ptvr", 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 741aa1791051..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.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.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\":\"ygmgsevm\",\"schemaLinkedService\":{\"referenceName\":\"zenlrstgfcz\",\"parameters\":{\"idt\":\"datan\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"amyyznmrgcdogcv\",\"parameters\":{\"aqm\":\"dataytoxuwhttnzq\",\"dzzmssgpgv\":\"databgszplusdek\",\"squnycwztlv\":\"datakyejidbdq\"}},\"name\":\"wsnmrkkyjt\",\"description\":\"pwpwfkcauxuva\",\"dataset\":{\"referenceName\":\"pfpdof\",\"parameters\":{\"evsolzwilf\":\"dataclbtxl\",\"uuxjxhfx\":\"datagojfsqe\",\"mbmxbmbrwgzzxl\":\"datajwpdkkt\",\"dmhweqjfyxydgto\":\"databkhxsdplaum\"}},\"linkedService\":{\"referenceName\":\"qbvwglgw\",\"parameters\":{\"mqiydvxcgdh\":\"dataxakglhpsesrfg\",\"cbqp\":\"datahgoqgsoyqyxyj\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pglqjo\",\"datasetParameters\":\"datadahneaoovty\",\"parameters\":{\"fsr\":\"dataivfwjlofze\",\"jvcfoczh\":\"dataaukl\"},\"\":{\"yrza\":\"datajovtkwxnhwhhn\"}}}") - .toObject(PowerQuerySink.class); - Assertions.assertEquals("wsnmrkkyjt", model.name()); - Assertions.assertEquals("pwpwfkcauxuva", model.description()); - Assertions.assertEquals("pfpdof", model.dataset().referenceName()); - Assertions.assertEquals("qbvwglgw", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("pglqjo", model.flowlet().referenceName()); - Assertions.assertEquals("zenlrstgfcz", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("amyyznmrgcdogcv", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ygmgsevm", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySink model - = new PowerQuerySink().withName("wsnmrkkyjt") - .withDescription("pwpwfkcauxuva") - .withDataset(new DatasetReference().withReferenceName("pfpdof") - .withParameters(mapOf("evsolzwilf", "dataclbtxl", "uuxjxhfx", "datagojfsqe", "mbmxbmbrwgzzxl", - "datajwpdkkt", "dmhweqjfyxydgto", "databkhxsdplaum"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("qbvwglgw") - .withParameters(mapOf("mqiydvxcgdh", "dataxakglhpsesrfg", "cbqp", "datahgoqgsoyqyxyj"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pglqjo") - .withDatasetParameters("datadahneaoovty") - .withParameters(mapOf("fsr", "dataivfwjlofze", "jvcfoczh", "dataaukl")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("zenlrstgfcz").withParameters(mapOf("idt", "datan"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("amyyznmrgcdogcv") - .withParameters(mapOf("aqm", "dataytoxuwhttnzq", "dzzmssgpgv", "databgszplusdek", "squnycwztlv", - "datakyejidbdq"))) - .withScript("ygmgsevm"); - model = BinaryData.fromObject(model).toObject(PowerQuerySink.class); - Assertions.assertEquals("wsnmrkkyjt", model.name()); - Assertions.assertEquals("pwpwfkcauxuva", model.description()); - Assertions.assertEquals("pfpdof", model.dataset().referenceName()); - Assertions.assertEquals("qbvwglgw", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("pglqjo", model.flowlet().referenceName()); - Assertions.assertEquals("zenlrstgfcz", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("amyyznmrgcdogcv", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ygmgsevm", 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 3150a08e705d..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\":\"krehyhtmj\",\"schemaLinkedService\":{\"referenceName\":\"uif\",\"parameters\":{\"gdezvjqwahoy\":\"dataxfaryrvj\",\"nvovbooqbmdqrxy\":\"datayaxqvjweiwtczkd\"}},\"name\":\"laetscflwtjdtlr\",\"description\":\"fooy\",\"dataset\":{\"referenceName\":\"uxdtzcq\",\"parameters\":{\"lantolamlb\":\"datadudgcozzomeh\",\"z\":\"datajuxkqll\"}},\"linkedService\":{\"referenceName\":\"vwdtgckzdqiqdl\",\"parameters\":{\"uwxsuykznhrfgsl\":\"datarkwxo\",\"eo\":\"datalhpryjfzihuio\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"jtfeyvkbdgddkr\",\"datasetParameters\":\"dataccxbeuuqutkz\",\"parameters\":{\"xfn\":\"datawwguzytij\",\"ckcatuqbhpo\":\"datandegjdydhqkkkbj\",\"toakatprytgrhz\":\"datacnxtpzdlysei\",\"wrp\":\"dataqfdpf\"},\"\":{\"tbqgdirdamm\":\"datashtkutzc\",\"bwjjirmuydgf\":\"datazjgcfjfx\",\"uoft\":\"datatmdofgeoag\",\"aj\":\"dataxodwxm\"}}}") - .toObject(PowerQuerySource.class); - Assertions.assertEquals("laetscflwtjdtlr", model.name()); - Assertions.assertEquals("fooy", model.description()); - Assertions.assertEquals("uxdtzcq", model.dataset().referenceName()); - Assertions.assertEquals("vwdtgckzdqiqdl", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("jtfeyvkbdgddkr", model.flowlet().referenceName()); - Assertions.assertEquals("uif", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("krehyhtmj", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySource model = new PowerQuerySource().withName("laetscflwtjdtlr") - .withDescription("fooy") - .withDataset(new DatasetReference().withReferenceName("uxdtzcq") - .withParameters(mapOf("lantolamlb", "datadudgcozzomeh", "z", "datajuxkqll"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("vwdtgckzdqiqdl") - .withParameters(mapOf("uwxsuykznhrfgsl", "datarkwxo", "eo", "datalhpryjfzihuio"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("jtfeyvkbdgddkr") - .withDatasetParameters("dataccxbeuuqutkz") - .withParameters(mapOf("xfn", "datawwguzytij", "ckcatuqbhpo", "datandegjdydhqkkkbj", "toakatprytgrhz", - "datacnxtpzdlysei", "wrp", "dataqfdpf")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("uif") - .withParameters(mapOf("gdezvjqwahoy", "dataxfaryrvj", "nvovbooqbmdqrxy", "datayaxqvjweiwtczkd"))) - .withScript("krehyhtmj"); - model = BinaryData.fromObject(model).toObject(PowerQuerySource.class); - Assertions.assertEquals("laetscflwtjdtlr", model.name()); - Assertions.assertEquals("fooy", model.description()); - Assertions.assertEquals("uxdtzcq", model.dataset().referenceName()); - Assertions.assertEquals("vwdtgckzdqiqdl", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("jtfeyvkbdgddkr", model.flowlet().referenceName()); - Assertions.assertEquals("uif", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("krehyhtmj", 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 f624038f03e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.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.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\":\"umnqdurhzzfopu\",\"schemaLinkedService\":{\"referenceName\":\"qusvwlujopwnib\",\"parameters\":{\"ad\":\"dataoztjdqumqvfmw\",\"tvgwyurbe\":\"datatgctxe\"}},\"name\":\"fnzzryizwbxg\",\"description\":\"bxlayunomirhpf\",\"dataset\":{\"referenceName\":\"enqlamwmgewayx\",\"parameters\":{\"cucsqsnxfbxu\":\"databcpjstbhem\",\"su\":\"dataeapdrbzyv\",\"hmhjd\":\"datadulpodkaxpfobk\",\"eluqr\":\"datalt\"}},\"linkedService\":{\"referenceName\":\"adhfztlray\",\"parameters\":{\"yh\":\"datagz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"kuwpzqxlcw\",\"datasetParameters\":\"datakfecjvxf\",\"parameters\":{\"jvppwooajeyy\":\"datafqi\",\"zls\":\"datamjjxizxpxh\",\"egh\":\"dataekcttgzkjtyqpdwa\"},\"\":{\"jiahuqy\":\"datadsvcz\",\"jjqhddwvm\":\"datajzucwwm\"}}},{\"script\":\"iyoo\",\"schemaLinkedService\":{\"referenceName\":\"fozkbnz\",\"parameters\":{\"grkkderfrswq\":\"datapfqpgaixw\",\"ggicwnxhtfmcqbs\":\"datakwepwo\",\"pgchzpgfqum\":\"datad\"}},\"name\":\"djxh\",\"description\":\"hgod\",\"dataset\":{\"referenceName\":\"nrceqavfdbdfmmx\",\"parameters\":{\"y\":\"dataajuop\"}},\"linkedService\":{\"referenceName\":\"mk\",\"parameters\":{\"jk\":\"datavcwloqd\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xrwzo\",\"datasetParameters\":\"datazmsxgamtdt\",\"parameters\":{\"uzdprmim\":\"datapt\",\"qfxy\":\"dataljdp\",\"tbaewhte\":\"datamhk\",\"cn\":\"dataloamfmxtllfltym\"},\"\":{\"mkli\":\"dataijhggabqbg\",\"vffhs\":\"datairw\"}}},{\"script\":\"zouhktqrxq\",\"schemaLinkedService\":{\"referenceName\":\"njxrd\",\"parameters\":{\"llygta\":\"datat\",\"a\":\"dataczcxdfw\",\"lxrljphraspifl\":\"datayf\",\"fgsmdrjuqb\":\"dataimixlmdbgice\"}},\"name\":\"xtokljmtz\",\"description\":\"axwfqtyyqip\",\"dataset\":{\"referenceName\":\"ltungbsolj\",\"parameters\":{\"kuckgkdskswtiiq\":\"dataiigz\",\"lnssw\":\"datacqikclsm\"}},\"linkedService\":{\"referenceName\":\"kdnonaaxwmgzru\",\"parameters\":{\"cbgvsbt\":\"datacwnynlleiq\",\"xmnrqstjcmet\":\"dataertoxadhxuvj\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"gicvnpvvdh\",\"datasetParameters\":\"datanaqyqipslzmvcds\",\"parameters\":{\"kdtfo\":\"databit\",\"zdqekivycpzcvd\":\"datavfiybxqichgyb\",\"htre\":\"datazulrqt\"},\"\":{\"xmdutzfkgilnou\":\"datalpryf\"}}},{\"script\":\"cgndjgdp\",\"schemaLinkedService\":{\"referenceName\":\"ggqqyeqfcb\",\"parameters\":{\"igi\":\"datapyuflqjfshtujcyo\",\"kqnqvkixnmbzme\":\"datawdcsk\",\"mbzayspzvrietv\":\"datauyrzw\"}},\"name\":\"phmdzxplgtp\",\"description\":\"vatlzmgsc\",\"dataset\":{\"referenceName\":\"zr\",\"parameters\":{\"dmnfmfws\":\"datakzovl\",\"orimmo\":\"dataafofu\",\"ovanyrva\":\"datazwdehkkmvhz\"}},\"linkedService\":{\"referenceName\":\"tgelgwewikfy\",\"parameters\":{\"fbpbvzopaxmfmvsm\":\"datandmymnqoqjumov\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xfaxdtnq\",\"datasetParameters\":\"databsat\",\"parameters\":{\"cpcjycboelrgtt\":\"dataauesugm\",\"kcedp\":\"datafldsiuorin\",\"vvyczy\":\"datasriwmmtmqrxrz\",\"agpx\":\"datayubtgmbxiqah\"},\"\":{\"mwovyztxlnomfpb\":\"dataplnupoyryef\"}}}],\"script\":\"eegvyieztkutnj\",\"documentLocale\":\"l\"}") - .toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("fnzzryizwbxg", model.sources().get(0).name()); - Assertions.assertEquals("bxlayunomirhpf", model.sources().get(0).description()); - Assertions.assertEquals("enqlamwmgewayx", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("adhfztlray", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("kuwpzqxlcw", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("qusvwlujopwnib", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("umnqdurhzzfopu", model.sources().get(0).script()); - Assertions.assertEquals("eegvyieztkutnj", model.script()); - Assertions.assertEquals("l", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQueryTypeProperties model - = new PowerQueryTypeProperties() - .withSources( - Arrays.asList( - new PowerQuerySource().withName("fnzzryizwbxg") - .withDescription("bxlayunomirhpf") - .withDataset(new DatasetReference().withReferenceName("enqlamwmgewayx") - .withParameters(mapOf("cucsqsnxfbxu", "databcpjstbhem", "su", "dataeapdrbzyv", "hmhjd", - "datadulpodkaxpfobk", "eluqr", "datalt"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("adhfztlray") - .withParameters(mapOf("yh", "datagz"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("kuwpzqxlcw") - .withDatasetParameters("datakfecjvxf") - .withParameters(mapOf("jvppwooajeyy", "datafqi", "zls", "datamjjxizxpxh", "egh", - "dataekcttgzkjtyqpdwa")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("qusvwlujopwnib") - .withParameters(mapOf("ad", "dataoztjdqumqvfmw", "tvgwyurbe", "datatgctxe"))) - .withScript("umnqdurhzzfopu"), - new PowerQuerySource().withName("djxh") - .withDescription("hgod") - .withDataset(new DatasetReference().withReferenceName("nrceqavfdbdfmmx") - .withParameters(mapOf("y", "dataajuop"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("mk") - .withParameters(mapOf("jk", "datavcwloqd"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xrwzo") - .withDatasetParameters("datazmsxgamtdt") - .withParameters(mapOf("uzdprmim", "datapt", "qfxy", "dataljdp", "tbaewhte", "datamhk", - "cn", "dataloamfmxtllfltym")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("fozkbnz") - .withParameters(mapOf("grkkderfrswq", "datapfqpgaixw", "ggicwnxhtfmcqbs", "datakwepwo", - "pgchzpgfqum", "datad"))) - .withScript("iyoo"), - new PowerQuerySource().withName("xtokljmtz") - .withDescription("axwfqtyyqip") - .withDataset(new DatasetReference().withReferenceName("ltungbsolj") - .withParameters(mapOf("kuckgkdskswtiiq", "dataiigz", "lnssw", "datacqikclsm"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("kdnonaaxwmgzru") - .withParameters(mapOf("cbgvsbt", "datacwnynlleiq", "xmnrqstjcmet", "dataertoxadhxuvj"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("gicvnpvvdh") - .withDatasetParameters("datanaqyqipslzmvcds") - .withParameters(mapOf("kdtfo", "databit", "zdqekivycpzcvd", "datavfiybxqichgyb", "htre", - "datazulrqt")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("njxrd") - .withParameters(mapOf("llygta", "datat", "a", "dataczcxdfw", "lxrljphraspifl", "datayf", - "fgsmdrjuqb", "dataimixlmdbgice"))) - .withScript("zouhktqrxq"), - new PowerQuerySource().withName("phmdzxplgtp") - .withDescription("vatlzmgsc") - .withDataset(new DatasetReference().withReferenceName("zr") - .withParameters(mapOf("dmnfmfws", "datakzovl", "orimmo", "dataafofu", "ovanyrva", - "datazwdehkkmvhz"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("tgelgwewikfy") - .withParameters(mapOf("fbpbvzopaxmfmvsm", "datandmymnqoqjumov"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xfaxdtnq") - .withDatasetParameters("databsat") - .withParameters(mapOf("cpcjycboelrgtt", "dataauesugm", "kcedp", "datafldsiuorin", - "vvyczy", "datasriwmmtmqrxrz", "agpx", "datayubtgmbxiqah")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ggqqyeqfcb") - .withParameters(mapOf("igi", "datapyuflqjfshtujcyo", "kqnqvkixnmbzme", "datawdcsk", - "mbzayspzvrietv", "datauyrzw"))) - .withScript("cgndjgdp"))) - .withScript("eegvyieztkutnj") - .withDocumentLocale("l"); - model = BinaryData.fromObject(model).toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("fnzzryizwbxg", model.sources().get(0).name()); - Assertions.assertEquals("bxlayunomirhpf", model.sources().get(0).description()); - Assertions.assertEquals("enqlamwmgewayx", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("adhfztlray", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("kuwpzqxlcw", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("qusvwlujopwnib", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("umnqdurhzzfopu", model.sources().get(0).script()); - Assertions.assertEquals("eegvyieztkutnj", model.script()); - Assertions.assertEquals("l", 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 cc6dacdbf878..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\":\"datatsh\",\"table\":\"datavrsksdzmhwt\",\"schema\":\"datappwfbw\"}") - .toObject(PrestoDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoDatasetTypeProperties model = new PrestoDatasetTypeProperties().withTableName("datatsh") - .withTable("datavrsksdzmhwt") - .withSchema("datappwfbw"); - 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 503f45840400..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.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.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\":\"iva\",\"typeProperties\":{\"tableName\":\"dataotypcjxh\",\"table\":\"datazlocjhzppdbr\",\"schema\":\"datacxbofpr\"},\"description\":\"sbfzl\",\"structure\":\"datajr\",\"schema\":\"datasfv\",\"linkedServiceName\":{\"referenceName\":\"ghqxtmblmf\",\"parameters\":{\"vel\":\"datau\"}},\"parameters\":{\"e\":{\"type\":\"Float\",\"defaultValue\":\"dataxjtezujtoudo\"},\"iexuwemtg\":{\"type\":\"Object\",\"defaultValue\":\"datavssrj\"},\"sxehaxi\":{\"type\":\"Bool\",\"defaultValue\":\"databymmcgsksc\"},\"ptbhm\":{\"type\":\"SecureString\",\"defaultValue\":\"datajxolknshgwa\"}},\"annotations\":[\"datamn\",\"databnatlnch\",\"datazcdkxo\"],\"folder\":{\"name\":\"zzvhbuj\"},\"\":{\"rbfbsdii\":\"dataophqwojdzccqtw\",\"xrvnhhmfsnqp\":\"datadzfbv\"}}") - .toObject(PrestoObjectDataset.class); - Assertions.assertEquals("sbfzl", model.description()); - Assertions.assertEquals("ghqxtmblmf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("e").type()); - Assertions.assertEquals("zzvhbuj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoObjectDataset model = new PrestoObjectDataset().withDescription("sbfzl") - .withStructure("datajr") - .withSchema("datasfv") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("ghqxtmblmf").withParameters(mapOf("vel", "datau"))) - .withParameters(mapOf("e", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxjtezujtoudo"), - "iexuwemtg", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datavssrj"), - "sxehaxi", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("databymmcgsksc"), - "ptbhm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datajxolknshgwa"))) - .withAnnotations(Arrays.asList("datamn", "databnatlnch", "datazcdkxo")) - .withFolder(new DatasetFolder().withName("zzvhbuj")) - .withTableName("dataotypcjxh") - .withTable("datazlocjhzppdbr") - .withSchemaTypePropertiesSchema("datacxbofpr"); - model = BinaryData.fromObject(model).toObject(PrestoObjectDataset.class); - Assertions.assertEquals("sbfzl", model.description()); - Assertions.assertEquals("ghqxtmblmf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("e").type()); - Assertions.assertEquals("zzvhbuj", 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 9b26dec82fc6..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\":\"td\",\"query\":\"datazcajityjznpryo\",\"queryTimeout\":\"datavhc\",\"additionalColumns\":\"datamua\",\"sourceRetryCount\":\"datai\",\"sourceRetryWait\":\"datazytdj\",\"maxConcurrentConnections\":\"dataun\",\"disableMetricsCollection\":\"dataadyrhmpokfxcb\",\"\":{\"lnlwgseouh\":\"dataxgajyrac\",\"zru\":\"dataetxupxeain\",\"zfaja\":\"datageaenkfsxtsmzva\",\"ujcqz\":\"databswwbrllvva\"}}") - .toObject(PrestoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoSource model = new PrestoSource().withSourceRetryCount("datai") - .withSourceRetryWait("datazytdj") - .withMaxConcurrentConnections("dataun") - .withDisableMetricsCollection("dataadyrhmpokfxcb") - .withQueryTimeout("datavhc") - .withAdditionalColumns("datamua") - .withQuery("datazcajityjznpryo"); - 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 017a64508b11..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\":\"eocvypv\",\"privateEndpoint\":{\"id\":\"hop\"},\"privateLinkServiceConnectionState\":{\"status\":\"ztltuew\",\"description\":\"qtdgeepzpttpw\",\"actionsRequired\":\"zvadgmy\"}},\"name\":\"xfrkyzzrmzwgws\",\"type\":\"dcczamnjszqhu\",\"etag\":\"ncznzkpd\",\"id\":\"lpwfewcmkwiyl\"}]}"; - - 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("plruipsrxh", "uvgkmmnwzuejvy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lpwfewcmkwiyl", response.iterator().next().id()); - Assertions.assertEquals("ztltuew", - response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("qtdgeepzpttpw", - response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("zvadgmy", - 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 aa4e4796b989..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.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.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\":\"mkoisqcssf\",\"privateEndpoint\":{\"id\":\"ifmcsypobkdqzr\"},\"privateLinkServiceConnectionState\":{\"status\":\"ylollgtrczzydmxz\",\"description\":\"jpvuaurkihcirld\",\"actionsRequired\":\"xrdcoxnbkkja\"}},\"name\":\"rnnqb\",\"type\":\"bpizxqltgr\",\"etag\":\"gypxrxvbfihwuhvc\",\"id\":\"fsrb\"}],\"nextLink\":\"blml\"}") - .toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("fsrb", model.value().get(0).id()); - Assertions.assertEquals("ylollgtrczzydmxz", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jpvuaurkihcirld", - model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("xrdcoxnbkkja", - model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("blml", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionListResponse model = new PrivateEndpointConnectionListResponse() - .withValue(Arrays.asList(new PrivateEndpointConnectionResourceInner().withId("fsrb") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState().withStatus("ylollgtrczzydmxz") - .withDescription("jpvuaurkihcirld") - .withActionsRequired("xrdcoxnbkkja"))))) - .withNextLink("blml"); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("fsrb", model.value().get(0).id()); - Assertions.assertEquals("ylollgtrczzydmxz", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jpvuaurkihcirld", - model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("xrdcoxnbkkja", - model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("blml", 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 7fc11201fa4a..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\":\"kyj\",\"privateEndpoint\":{\"id\":\"ggidnnsi\"},\"privateLinkServiceConnectionState\":{\"status\":\"cmedceishsg\",\"description\":\"rzunkvnoicwe\",\"actionsRequired\":\"ovnfuj\"}},\"name\":\"igglkoflephdnya\",\"type\":\"okhzymsldomgwc\",\"etag\":\"zdxjmkzkgtj\",\"id\":\"gntuuzlg\"}"; - - 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("sacf") - .withExistingFactory("wpjgwmpcykavy", "crovahr") - .withProperties(new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("imqvolake") - .withDescription("rqmweaik") - .withActionsRequired("oshubvzhmxcwpsu")) - .withPrivateEndpoint(new PrivateEndpoint().withId("pnmpy"))) - .withIfMatch("cxcwloffhlrxldy") - .create(); - - Assertions.assertEquals("gntuuzlg", response.id()); - Assertions.assertEquals("cmedceishsg", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rzunkvnoicwe", - response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ovnfuj", 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 4d9ab7895c64..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("eogfwhuczkakx", "tuejppzahpubq", "mqtuxe", 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 0cc394d12690..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.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.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\":\"lkoduxmi\",\"privateEndpoint\":{\"id\":\"ty\"},\"privateLinkServiceConnectionState\":{\"status\":\"fhzluvlyewepzvfg\",\"description\":\"zxwpqykogbppux\",\"actionsRequired\":\"uldar\"}},\"name\":\"lbkaipapktxe\",\"type\":\"fogs\",\"etag\":\"vn\",\"id\":\"vskdqersaw\"}"; - - 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("lsddaw", "waiviktuxnj", "zdmvrsckc", "rlojgzzfevjexy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vskdqersaw", response.id()); - Assertions.assertEquals("fhzluvlyewepzvfg", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("zxwpqykogbppux", - response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("uldar", 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 9bc4e89fda27..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.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.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\":\"xihspnxwq\",\"privateEndpoint\":{\"id\":\"epzwaklsbsbqq\"},\"privateLinkServiceConnectionState\":{\"status\":\"wwrxaomzisgl\",\"description\":\"czezkhhlt\",\"actionsRequired\":\"adhqoa\"}},\"name\":\"qoyueayfbpcmsplb\",\"type\":\"rueqthwm\",\"etag\":\"mbscbbx\",\"id\":\"dhxiidlopedbwd\"}") - .toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("dhxiidlopedbwd", model.id()); - Assertions.assertEquals("wwrxaomzisgl", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("czezkhhlt", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("adhqoa", model.properties().privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionResourceInner model - = new PrivateEndpointConnectionResourceInner().withId("dhxiidlopedbwd") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("wwrxaomzisgl") - .withDescription("czezkhhlt") - .withActionsRequired("adhqoa"))); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("dhxiidlopedbwd", model.id()); - Assertions.assertEquals("wwrxaomzisgl", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("czezkhhlt", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("adhqoa", 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 58c896a3808c..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\":\"bxn\"}").toObject(PrivateEndpoint.class); - Assertions.assertEquals("bxn", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("bxn"); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("bxn", 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 46dbc61d9c7e..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\":\"zohmnrxxbs\",\"description\":\"klinhmdptysprq\",\"actionsRequired\":\"nzxojpslsvjgpli\"},\"privateEndpoint\":{\"id\":\"qwoyxqvapco\"}},\"name\":\"oucqpqojx\",\"type\":\"zrzdcgd\",\"etag\":\"enribc\",\"id\":\"etzqd\"}") - .toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("etzqd", model.id()); - Assertions.assertEquals("zohmnrxxbs", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("klinhmdptysprq", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("nzxojpslsvjgpli", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("qwoyxqvapco", model.properties().privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequestResource model - = new PrivateLinkConnectionApprovalRequestResource().withId("etzqd") - .withProperties(new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("zohmnrxxbs") - .withDescription("klinhmdptysprq") - .withActionsRequired("nzxojpslsvjgpli")) - .withPrivateEndpoint(new PrivateEndpoint().withId("qwoyxqvapco"))); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("etzqd", model.id()); - Assertions.assertEquals("zohmnrxxbs", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("klinhmdptysprq", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("nzxojpslsvjgpli", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("qwoyxqvapco", 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 3b05173e7e45..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\":\"wflj\",\"description\":\"namtuatmzw\",\"actionsRequired\":\"jncqtjzmi\"},\"privateEndpoint\":{\"id\":\"bgatzu\"}}") - .toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("wflj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("namtuatmzw", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jncqtjzmi", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("bgatzu", model.privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequest model = new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("wflj") - .withDescription("namtuatmzw") - .withActionsRequired("jncqtjzmi")) - .withPrivateEndpoint(new PrivateEndpoint().withId("bgatzu")); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("wflj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("namtuatmzw", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jncqtjzmi", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("bgatzu", 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 a479b72e11f0..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\":\"qfyiaseqchkr\",\"description\":\"zrazisgyk\",\"actionsRequired\":\"emv\"}") - .toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("qfyiaseqchkr", model.status()); - Assertions.assertEquals("zrazisgyk", model.description()); - Assertions.assertEquals("emv", model.actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionState model = new PrivateLinkConnectionState().withStatus("qfyiaseqchkr") - .withDescription("zrazisgyk") - .withActionsRequired("emv"); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("qfyiaseqchkr", model.status()); - Assertions.assertEquals("zrazisgyk", model.description()); - Assertions.assertEquals("emv", 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 8875c07f8c1b..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\":\"gygzyvn\",\"requiredMembers\":[\"aifghtmoqqt\",\"ffhzbkrkjjjavfq\",\"vhnqo\",\"wdogiyetesyp\"],\"requiredZoneNames\":[\"bztjhqtfbovnynkb\",\"etnjuhpsprkz\",\"aupia\"]}") - .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 675f5a013694..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\":\"ksrf\",\"requiredMembers\":[\"olmk\"],\"requiredZoneNames\":[\"xwcdomm\",\"vfqawzfgbrttuiac\",\"kiexhajlfnthiq\"]},\"name\":\"uttdiygbp\",\"type\":\"wswmt\",\"etag\":\"yctww\",\"id\":\"wxjlmec\"}") - .toObject(PrivateLinkResource.class); - Assertions.assertEquals("wxjlmec", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResource model - = new PrivateLinkResource().withId("wxjlmec").withProperties(new PrivateLinkResourceProperties()); - model = BinaryData.fromObject(model).toObject(PrivateLinkResource.class); - Assertions.assertEquals("wxjlmec", 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 b7ce745382dd..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\":\"ufsmkrrtpsimamuc\",\"requiredMembers\":[\"qejzpdzeud\",\"bumjtldskmlg\"],\"requiredZoneNames\":[\"exonmdghdinl\"]},\"name\":\"sagngxzvepiijwse\",\"type\":\"aycylrjfr\",\"etag\":\"ykd\",\"id\":\"tdlouxbmtlho\"}]}"; - - 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("snyepjil", "gepehkmno", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("tdlouxbmtlho", 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 48e15b06ef6b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.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.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\":\"wggahttzlswvaj\",\"requiredMembers\":[\"t\",\"x\",\"oqza\",\"unwqr\"],\"requiredZoneNames\":[\"rg\",\"haohcmbuo\",\"njrohmbpy\"]},\"name\":\"xameblydyvkfkm\",\"type\":\"cxneh\",\"etag\":\"mtodl\",\"id\":\"yapucygvoa\"},{\"properties\":{\"groupId\":\"nssxlgh\",\"requiredMembers\":[\"gjlgvvpase\",\"sgb\",\"xantuygdhg\"],\"requiredZoneNames\":[\"pirpiwrqof\"]},\"name\":\"o\",\"type\":\"jnlex\",\"etag\":\"cbjpibkephuu\",\"id\":\"rctat\"},{\"properties\":{\"groupId\":\"ntqpbr\",\"requiredMembers\":[\"rduczkgofxyfs\",\"uc\",\"crrpcjttbstvje\",\"qnrmvvfko\"],\"requiredZoneNames\":[\"ghktuidvrm\",\"zlpdwwex\",\"mzvlazipbh\"]},\"name\":\"vqs\",\"type\":\"yy\",\"etag\":\"ziven\",\"id\":\"pmeyyvpkpatlbijp\"}]}") - .toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("yapucygvoa", 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("yapucygvoa").withProperties(new PrivateLinkResourceProperties()), - new PrivateLinkResource().withId("rctat").withProperties(new PrivateLinkResourceProperties()), - new PrivateLinkResource().withId("pmeyyvpkpatlbijp").withProperties(new PrivateLinkResourceProperties()))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("yapucygvoa", 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 28e57a68e714..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\":\"exxbczwtr\"}").toObject(PurviewConfiguration.class); - Assertions.assertEquals("exxbczwtr", model.purviewResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PurviewConfiguration model = new PurviewConfiguration().withPurviewResourceId("exxbczwtr"); - model = BinaryData.fromObject(model).toObject(PurviewConfiguration.class); - Assertions.assertEquals("exxbczwtr", 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 2ae307a8bc0d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.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.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\":\"okffqyinljqepqwh\",\"computeType\":\"monstshiyxgve\",\"coreCount\":1153037194,\"nodeCount\":341924514,\"integrationRuntimeName\":\"ccbi\",\"sessionId\":\"svu\",\"startTime\":\"o\",\"timeToLiveInMinutes\":1462697228,\"lastActivityTime\":\"stmninwjizcilng\",\"\":{\"jjtbxqmuluxlxqz\":\"datah\",\"cucrwnamikze\":\"datanersb\",\"fuhok\":\"datarqbsmswziq\"}},{\"dataFlowName\":\"uswhvhczznvfbycj\",\"computeType\":\"jww\",\"coreCount\":184999250,\"nodeCount\":156341242,\"integrationRuntimeName\":\"wmxqhndvnoamlds\",\"sessionId\":\"aohdjh\",\"startTime\":\"lzok\",\"timeToLiveInMinutes\":434777672,\"lastActivityTime\":\"pelnjetag\",\"\":{\"tft\":\"dataxo\"}},{\"dataFlowName\":\"pnpbswveflocc\",\"computeType\":\"mozi\",\"coreCount\":1928373121,\"nodeCount\":215643303,\"integrationRuntimeName\":\"wtxxpkyjcx\",\"sessionId\":\"xgrytfmp\",\"startTime\":\"cil\",\"timeToLiveInMinutes\":735394972,\"lastActivityTime\":\"ykggnoxuztrksx\",\"\":{\"cpfnznthjtwkja\":\"datad\",\"tcqiosmg\":\"datasrxuzvoam\"}}],\"nextLink\":\"ahgx\"}") - .toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("okffqyinljqepqwh", model.value().get(0).dataFlowName()); - Assertions.assertEquals("monstshiyxgve", model.value().get(0).computeType()); - Assertions.assertEquals(1153037194, model.value().get(0).coreCount()); - Assertions.assertEquals(341924514, model.value().get(0).nodeCount()); - Assertions.assertEquals("ccbi", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("svu", model.value().get(0).sessionId()); - Assertions.assertEquals("o", model.value().get(0).startTime()); - Assertions.assertEquals(1462697228, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("stmninwjizcilng", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("ahgx", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QueryDataFlowDebugSessionsResponse model = new QueryDataFlowDebugSessionsResponse().withValue(Arrays.asList( - new DataFlowDebugSessionInfoInner().withDataFlowName("okffqyinljqepqwh") - .withComputeType("monstshiyxgve") - .withCoreCount(1153037194) - .withNodeCount(341924514) - .withIntegrationRuntimeName("ccbi") - .withSessionId("svu") - .withStartTime("o") - .withTimeToLiveInMinutes(1462697228) - .withLastActivityTime("stmninwjizcilng") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("uswhvhczznvfbycj") - .withComputeType("jww") - .withCoreCount(184999250) - .withNodeCount(156341242) - .withIntegrationRuntimeName("wmxqhndvnoamlds") - .withSessionId("aohdjh") - .withStartTime("lzok") - .withTimeToLiveInMinutes(434777672) - .withLastActivityTime("pelnjetag") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("pnpbswveflocc") - .withComputeType("mozi") - .withCoreCount(1928373121) - .withNodeCount(215643303) - .withIntegrationRuntimeName("wtxxpkyjcx") - .withSessionId("xgrytfmp") - .withStartTime("cil") - .withTimeToLiveInMinutes(735394972) - .withLastActivityTime("ykggnoxuztrksx") - .withAdditionalProperties(mapOf()))) - .withNextLink("ahgx"); - model = BinaryData.fromObject(model).toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("okffqyinljqepqwh", model.value().get(0).dataFlowName()); - Assertions.assertEquals("monstshiyxgve", model.value().get(0).computeType()); - Assertions.assertEquals(1153037194, model.value().get(0).coreCount()); - Assertions.assertEquals(341924514, model.value().get(0).nodeCount()); - Assertions.assertEquals("ccbi", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("svu", model.value().get(0).sessionId()); - Assertions.assertEquals("o", model.value().get(0).startTime()); - Assertions.assertEquals(1462697228, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("stmninwjizcilng", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("ahgx", 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 e7d6324befeb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.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.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\":\"nxyksznfs\",\"typeProperties\":{\"tableName\":\"datalgdungaypxsazb\"},\"description\":\"prvgrandzkt\",\"structure\":\"datamlpczlqboomzg\",\"schema\":\"dataolhsfddkhxvevwxm\",\"linkedServiceName\":{\"referenceName\":\"bwax\",\"parameters\":{\"ld\":\"datagnpyhtuhalpq\",\"npnytkqjar\":\"dataaokex\"}},\"parameters\":{\"catrmzoujf\":{\"type\":\"Float\",\"defaultValue\":\"datagtz\"},\"vgyoggkztzttj\":{\"type\":\"Float\",\"defaultValue\":\"dataxuupczegqnaidvs\"},\"iz\":{\"type\":\"Object\",\"defaultValue\":\"datapbqgzkuobclobnaq\"}},\"annotations\":[\"dataq\",\"datayu\"],\"folder\":{\"name\":\"nhzjmkffeonmnv\"},\"\":{\"tdegcrunbkilxs\":\"datayiqywlpxmli\",\"iemorszffiukltr\":\"dataekbirhyvsyuv\",\"uoxcsd\":\"datagio\"}}") - .toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("prvgrandzkt", model.description()); - Assertions.assertEquals("bwax", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("catrmzoujf").type()); - Assertions.assertEquals("nhzjmkffeonmnv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksObjectDataset model = new QuickBooksObjectDataset().withDescription("prvgrandzkt") - .withStructure("datamlpczlqboomzg") - .withSchema("dataolhsfddkhxvevwxm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bwax") - .withParameters(mapOf("ld", "datagnpyhtuhalpq", "npnytkqjar", "dataaokex"))) - .withParameters(mapOf("catrmzoujf", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datagtz"), "vgyoggkztzttj", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxuupczegqnaidvs"), - "iz", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datapbqgzkuobclobnaq"))) - .withAnnotations(Arrays.asList("dataq", "datayu")) - .withFolder(new DatasetFolder().withName("nhzjmkffeonmnv")) - .withTableName("datalgdungaypxsazb"); - model = BinaryData.fromObject(model).toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("prvgrandzkt", model.description()); - Assertions.assertEquals("bwax", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("catrmzoujf").type()); - Assertions.assertEquals("nhzjmkffeonmnv", 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 68f7b5ed0528..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\":\"jqfbvbv\",\"query\":\"datazxyfaidzvdqv\",\"queryTimeout\":\"datajbrqb\",\"additionalColumns\":\"datamacnqudmyduvaw\",\"sourceRetryCount\":\"dataryrzoqyy\",\"sourceRetryWait\":\"datadbgobhltm\",\"maxConcurrentConnections\":\"datay\",\"disableMetricsCollection\":\"dataqgrsytto\",\"\":{\"ca\":\"databbxifacrhpu\",\"wtosuiguoemo\":\"datazpvp\",\"oxwyxodpcgdv\":\"datandbuexr\",\"xdafilaizcd\":\"datatnbk\"}}") - .toObject(QuickBooksSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksSource model = new QuickBooksSource().withSourceRetryCount("dataryrzoqyy") - .withSourceRetryWait("datadbgobhltm") - .withMaxConcurrentConnections("datay") - .withDisableMetricsCollection("dataqgrsytto") - .withQueryTimeout("datajbrqb") - .withAdditionalColumns("datamacnqudmyduvaw") - .withQuery("datazxyfaidzvdqv"); - 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 3238d057cb77..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\":\"Monday\",\"occurrence\":1370922840,\"\":{\"njiwzqnbjk\":\"dataldbkuq\",\"bmfnjuzvwwowy\":\"datat\"}}") - .toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.day()); - Assertions.assertEquals(1370922840, model.occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceScheduleOccurrence model = new RecurrenceScheduleOccurrence().withDay(DayOfWeek.MONDAY) - .withOccurrence(1370922840) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.day()); - Assertions.assertEquals(1370922840, 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 edb9c95cd74e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.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.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\":[855765251,1655443106,2090510823,1836359328],\"hours\":[879333962,787747970,349030599,462374271],\"weekDays\":[\"Thursday\"],\"monthDays\":[199972520,1755547689,554487281,722555937],\"monthlyOccurrences\":[{\"day\":\"Wednesday\",\"occurrence\":1575003480,\"\":{\"rysgabhpfpv\":\"datahgiglkin\",\"jcckhgstohzvrq\":\"datady\"}},{\"day\":\"Friday\",\"occurrence\":2031325920,\"\":{\"u\":\"datafhduniqumpspo\"}},{\"day\":\"Friday\",\"occurrence\":1890860893,\"\":{\"iqzfjlprljilpua\":\"datagkdwvtmmvq\",\"kfxzgopckmmagfbr\":\"dataxidytj\",\"ryourl\":\"datayvrlycikwqtlg\",\"jvsqzchysqy\":\"dataw\"}}],\"\":{\"pqfxyywsxrxv\":\"dataqmikljczxotblx\",\"yijyzhmfuksqi\":\"datavwkzaqqk\"}}") - .toObject(RecurrenceSchedule.class); - Assertions.assertEquals(855765251, model.minutes().get(0)); - Assertions.assertEquals(879333962, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.weekDays().get(0)); - Assertions.assertEquals(199972520, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1575003480, model.monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceSchedule model - = new RecurrenceSchedule().withMinutes(Arrays.asList(855765251, 1655443106, 2090510823, 1836359328)) - .withHours(Arrays.asList(879333962, 787747970, 349030599, 462374271)) - .withWeekDays(Arrays.asList(DaysOfWeek.THURSDAY)) - .withMonthDays(Arrays.asList(199972520, 1755547689, 554487281, 722555937)) - .withMonthlyOccurrences(Arrays.asList( - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(1575003480) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.FRIDAY) - .withOccurrence(2031325920) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.FRIDAY) - .withOccurrence(1890860893) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceSchedule.class); - Assertions.assertEquals(855765251, model.minutes().get(0)); - Assertions.assertEquals(879333962, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.weekDays().get(0)); - Assertions.assertEquals(199972520, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1575003480, 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 384ba45c6c3e..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\":\"datalxrwdjbya\",\"path\":\"datafmsxamncuhxz\",\"\":{\"torh\":\"datakxyhuet\",\"jqgzloorhxdu\":\"dataeuuysszhse\",\"akgd\":\"dataegljqpyxi\",\"qwgoomapc\":\"dataanmhvwgchgpbd\"}}") - .toObject(RedirectIncompatibleRowSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedirectIncompatibleRowSettings model - = new RedirectIncompatibleRowSettings().withLinkedServiceName("datalxrwdjbya") - .withPath("datafmsxamncuhxz") - .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 d6ddaeb60d01..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.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.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\":\"ovblx\",\"parameters\":{\"nykfzso\":\"dataezgdpiurfe\",\"vzqldgii\":\"dataouezszl\",\"b\":\"datanpkxp\",\"jhbvllj\":\"datatyjf\"}},\"bucketName\":\"dataqlruhhkkbfgr\"}") - .toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("ovblx", model.s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedshiftUnloadSettings model - = new RedshiftUnloadSettings() - .withS3LinkedServiceName( - new LinkedServiceReference().withReferenceName("ovblx") - .withParameters(mapOf("nykfzso", "dataezgdpiurfe", "vzqldgii", "dataouezszl", "b", "datanpkxp", - "jhbvllj", "datatyjf"))) - .withBucketName("dataqlruhhkkbfgr"); - model = BinaryData.fromObject(model).toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("ovblx", 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 710596199ab8..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\":\"drfqyqvhzkfyv\",\"query\":\"datanvdabaodiytxq\",\"additionalColumns\":\"datahehhtltwv\",\"sourceRetryCount\":\"dataenozlgxqfghlosh\",\"sourceRetryWait\":\"datamkpcmtsbande\",\"maxConcurrentConnections\":\"datalvuewrljmlod\",\"disableMetricsCollection\":\"datazvtfyqeogwbs\",\"\":{\"grgaosttbw\":\"datawxhcygfgqmdbaz\",\"ydsdmacydqacgyvw\":\"datapoyanir\"}}") - .toObject(RelationalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalSource model = new RelationalSource().withSourceRetryCount("dataenozlgxqfghlosh") - .withSourceRetryWait("datamkpcmtsbande") - .withMaxConcurrentConnections("datalvuewrljmlod") - .withDisableMetricsCollection("datazvtfyqeogwbs") - .withQuery("datanvdabaodiytxq") - .withAdditionalColumns("datahehhtltwv"); - 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 1f073e6c34bb..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\":\"d\",\"typeProperties\":{\"tableName\":\"datapkwmamrlfizjud\"},\"description\":\"upngyhy\",\"structure\":\"datayafewcmodxw\",\"schema\":\"dataytxnxrqx\",\"linkedServiceName\":{\"referenceName\":\"tzeargvfvkhbj\",\"parameters\":{\"w\":\"datapjxsd\",\"ynepkt\":\"dataignybffqcw\",\"conyse\":\"datamwg\",\"ouoxfalo\":\"datajijfhpxni\"}},\"parameters\":{\"gfap\":{\"type\":\"Int\",\"defaultValue\":\"datayporsynieunbyd\"}},\"annotations\":[\"dataubwt\",\"dataay\"],\"folder\":{\"name\":\"vjfqreeoxvqjmrn\"},\"\":{\"ivixzhpjg\":\"datahsdbfbm\"}}") - .toObject(RelationalTableDataset.class); - Assertions.assertEquals("upngyhy", model.description()); - Assertions.assertEquals("tzeargvfvkhbj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gfap").type()); - Assertions.assertEquals("vjfqreeoxvqjmrn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDataset model = new RelationalTableDataset().withDescription("upngyhy") - .withStructure("datayafewcmodxw") - .withSchema("dataytxnxrqx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tzeargvfvkhbj") - .withParameters(mapOf("w", "datapjxsd", "ynepkt", "dataignybffqcw", "conyse", "datamwg", "ouoxfalo", - "datajijfhpxni"))) - .withParameters(mapOf("gfap", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datayporsynieunbyd"))) - .withAnnotations(Arrays.asList("dataubwt", "dataay")) - .withFolder(new DatasetFolder().withName("vjfqreeoxvqjmrn")) - .withTableName("datapkwmamrlfizjud"); - model = BinaryData.fromObject(model).toObject(RelationalTableDataset.class); - Assertions.assertEquals("upngyhy", model.description()); - Assertions.assertEquals("tzeargvfvkhbj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gfap").type()); - Assertions.assertEquals("vjfqreeoxvqjmrn", 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 f288654c2073..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\":\"datamiaoaweacfx\"}") - .toObject(RelationalTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDatasetTypeProperties model - = new RelationalTableDatasetTypeProperties().withTableName("datamiaoaweacfx"); - 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 ad302efe46e1..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\":\"qyybxubmdnafcbq\",\"privateEndpoint\":{\"id\":\"mjel\"},\"privateLinkServiceConnectionState\":{\"status\":\"cigeleohdbvqvw\",\"description\":\"jopwbeonrlkwz\",\"actionsRequired\":\"ybxc\"}}") - .toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("cigeleohdbvqvw", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jopwbeonrlkwz", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ybxc", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemotePrivateEndpointConnection model - = new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("cigeleohdbvqvw") - .withDescription("jopwbeonrlkwz") - .withActionsRequired("ybxc")); - model = BinaryData.fromObject(model).toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("cigeleohdbvqvw", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jopwbeonrlkwz", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ybxc", 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 8af58e77553a..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\":\"fllrieknxbcgn\",\"typeProperties\":{\"parentTrigger\":\"dataxmaimwufuv\",\"requestedStartTime\":\"2021-03-08T14:49:03Z\",\"requestedEndTime\":\"2021-08-11T21:21:34Z\",\"rerunConcurrency\":253054235},\"description\":\"engkwhkekxohq\",\"runtimeState\":\"Disabled\",\"annotations\":[\"dataoqtvmkjle\",\"datalakvhgefvpc\"],\"\":{\"dtcibbgijkw\":\"databyagqiprb\"}}") - .toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("engkwhkekxohq", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T14:49:03Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-11T21:21:34Z"), model.requestedEndTime()); - Assertions.assertEquals(253054235, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTrigger model = new RerunTumblingWindowTrigger().withDescription("engkwhkekxohq") - .withAnnotations(Arrays.asList("dataoqtvmkjle", "datalakvhgefvpc")) - .withParentTrigger("dataxmaimwufuv") - .withRequestedStartTime(OffsetDateTime.parse("2021-03-08T14:49:03Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-08-11T21:21:34Z")) - .withRerunConcurrency(253054235); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("engkwhkekxohq", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T14:49:03Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-11T21:21:34Z"), model.requestedEndTime()); - Assertions.assertEquals(253054235, 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 c9bc9879465c..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\":\"datajlkimo\",\"requestedStartTime\":\"2021-07-16T12:25:12Z\",\"requestedEndTime\":\"2021-05-22T10:20:45Z\",\"rerunConcurrency\":667206244}") - .toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-16T12:25:12Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-22T10:20:45Z"), model.requestedEndTime()); - Assertions.assertEquals(667206244, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTriggerTypeProperties model - = new RerunTumblingWindowTriggerTypeProperties().withParentTrigger("datajlkimo") - .withRequestedStartTime(OffsetDateTime.parse("2021-07-16T12:25:12Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-05-22T10:20:45Z")) - .withRerunConcurrency(667206244); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-16T12:25:12Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-22T10:20:45Z"), model.requestedEndTime()); - Assertions.assertEquals(667206244, 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 84419e974e46..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.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.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\":\"mfwfpoeow\",\"typeProperties\":{\"tableName\":\"datau\"},\"description\":\"zzwncs\",\"structure\":\"datafxvchmubyguqh\",\"schema\":\"datamsvjfgrpryyir\",\"linkedServiceName\":{\"referenceName\":\"bajxj\",\"parameters\":{\"atxkznlwlmbx\":\"datayrkb\",\"ay\":\"datagkev\",\"kxiymzgrg\":\"datax\",\"ybsps\":\"datajalrjwaezp\"}},\"parameters\":{\"suiwexpasckpg\":{\"type\":\"Bool\",\"defaultValue\":\"dataepzimfc\"},\"cmxtoejt\":{\"type\":\"Float\",\"defaultValue\":\"datayxbwslx\"},\"idkxz\":{\"type\":\"Int\",\"defaultValue\":\"datactm\"}},\"annotations\":[\"datauzntbpcadd\",\"datax\",\"datarxiperrplfm\",\"datavmjjfz\"],\"folder\":{\"name\":\"lbiqq\"},\"\":{\"symagbahdbtjmku\":\"datarxknfv\",\"bizrxhuq\":\"dataonrk\",\"cxgqtquirgopgza\":\"datavpanloqov\"}}") - .toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("zzwncs", model.description()); - Assertions.assertEquals("bajxj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("suiwexpasckpg").type()); - Assertions.assertEquals("lbiqq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysObjectDataset model = new ResponsysObjectDataset().withDescription("zzwncs") - .withStructure("datafxvchmubyguqh") - .withSchema("datamsvjfgrpryyir") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bajxj") - .withParameters(mapOf("atxkznlwlmbx", "datayrkb", "ay", "datagkev", "kxiymzgrg", "datax", "ybsps", - "datajalrjwaezp"))) - .withParameters(mapOf("suiwexpasckpg", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataepzimfc"), "cmxtoejt", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datayxbwslx"), "idkxz", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datactm"))) - .withAnnotations(Arrays.asList("datauzntbpcadd", "datax", "datarxiperrplfm", "datavmjjfz")) - .withFolder(new DatasetFolder().withName("lbiqq")) - .withTableName("datau"); - model = BinaryData.fromObject(model).toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("zzwncs", model.description()); - Assertions.assertEquals("bajxj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("suiwexpasckpg").type()); - Assertions.assertEquals("lbiqq", 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 f2059537a9c5..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\":\"cabsmrfx\",\"query\":\"datarxl\",\"queryTimeout\":\"dataiirneop\",\"additionalColumns\":\"databhcfswpda\",\"sourceRetryCount\":\"datagvzgwvmhbiziij\",\"sourceRetryWait\":\"dataeexdboat\",\"maxConcurrentConnections\":\"datafy\",\"disableMetricsCollection\":\"datafeqrn\",\"\":{\"caraxorqjboyng\":\"dataqyagfxaco\",\"aptwmawypkpbmi\":\"dataogqvwchynrdt\"}}") - .toObject(ResponsysSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysSource model = new ResponsysSource().withSourceRetryCount("datagvzgwvmhbiziij") - .withSourceRetryWait("dataeexdboat") - .withMaxConcurrentConnections("datafy") - .withDisableMetricsCollection("datafeqrn") - .withQueryTimeout("dataiirneop") - .withAdditionalColumns("databhcfswpda") - .withQuery("datarxl"); - 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 0ef221cab32e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.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.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\":\"ypkcpwsrqnn\",\"typeProperties\":{\"relativeUrl\":\"datavwkryzgav\",\"requestMethod\":\"datandm\",\"requestBody\":\"dataiekkiskyyyaekn\",\"additionalHeaders\":{\"jiutfofhoajj\":\"datayshdawjlmlcufb\"},\"paginationRules\":{\"quyhbceev\":\"datayqyjnufzvl\",\"dssijuaxxf\":\"datagirrpwnqtvuxeuj\"}},\"description\":\"u\",\"structure\":\"datatl\",\"schema\":\"dataltjhb\",\"linkedServiceName\":{\"referenceName\":\"ycgqakcsihxvt\",\"parameters\":{\"pxpry\":\"datawf\",\"ahtqmmk\":\"datansbubwhzqqgugwlu\",\"qwebagm\":\"datahwq\",\"rgvypa\":\"datapkephujeucosvkke\"}},\"parameters\":{\"ezfpffbuqxkn\":{\"type\":\"SecureString\",\"defaultValue\":\"dataillgnu\"},\"bg\":{\"type\":\"Float\",\"defaultValue\":\"datag\"},\"zoksgqhb\":{\"type\":\"String\",\"defaultValue\":\"datajfchicpare\"}},\"annotations\":[\"datauxilozb\",\"datakcr\",\"datal\"],\"folder\":{\"name\":\"jw\"},\"\":{\"hfgmuxuqiagsko\":\"dataptsflotumbmwgft\"}}") - .toObject(RestResourceDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("ycgqakcsihxvt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("ezfpffbuqxkn").type()); - Assertions.assertEquals("jw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDataset model = new RestResourceDataset().withDescription("u") - .withStructure("datatl") - .withSchema("dataltjhb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ycgqakcsihxvt") - .withParameters(mapOf("pxpry", "datawf", "ahtqmmk", "datansbubwhzqqgugwlu", "qwebagm", "datahwq", - "rgvypa", "datapkephujeucosvkke"))) - .withParameters(mapOf("ezfpffbuqxkn", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataillgnu"), "bg", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datag"), "zoksgqhb", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datajfchicpare"))) - .withAnnotations(Arrays.asList("datauxilozb", "datakcr", "datal")) - .withFolder(new DatasetFolder().withName("jw")) - .withRelativeUrl("datavwkryzgav") - .withRequestMethod("datandm") - .withRequestBody("dataiekkiskyyyaekn") - .withAdditionalHeaders(mapOf("jiutfofhoajj", "datayshdawjlmlcufb")) - .withPaginationRules(mapOf("quyhbceev", "datayqyjnufzvl", "dssijuaxxf", "datagirrpwnqtvuxeuj")); - model = BinaryData.fromObject(model).toObject(RestResourceDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("ycgqakcsihxvt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("ezfpffbuqxkn").type()); - Assertions.assertEquals("jw", 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 b80f567e570c..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\":\"datauqirh\",\"requestMethod\":\"dataxpaowkgvnlfueyx\",\"requestBody\":\"dataibrlrjugcfeb\",\"additionalHeaders\":{\"bvr\":\"datace\",\"lsxr\":\"datalldfknbdzw\"},\"paginationRules\":{\"lwrduxntpfxxgja\":\"dataj\",\"eyfbkqynlzx\":\"datayxfwfctq\",\"vfoy\":\"datamelupjckiehd\"}}") - .toObject(RestResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDatasetTypeProperties model = new RestResourceDatasetTypeProperties().withRelativeUrl("datauqirh") - .withRequestMethod("dataxpaowkgvnlfueyx") - .withRequestBody("dataibrlrjugcfeb") - .withAdditionalHeaders(mapOf("bvr", "datace", "lsxr", "datalldfknbdzw")) - .withPaginationRules( - mapOf("lwrduxntpfxxgja", "dataj", "eyfbkqynlzx", "datayxfwfctq", "vfoy", "datamelupjckiehd")); - 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 52aa0cb40c48..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\":\"lmytnhvy\",\"requestMethod\":\"datagvqioqrebwarljpl\",\"additionalHeaders\":\"dataemxcdreqaqvs\",\"httpRequestTimeout\":\"datayvearwt\",\"requestInterval\":\"databscwbiwvwmcrhy\",\"httpCompressionType\":\"datas\",\"writeBatchSize\":\"datafe\",\"writeBatchTimeout\":\"dataxgstiawywppq\",\"sinkRetryCount\":\"datajxbdyczplmljcisx\",\"sinkRetryWait\":\"datas\",\"maxConcurrentConnections\":\"datayt\",\"disableMetricsCollection\":\"datamufdynhqlzanta\",\"\":{\"oadwiqnsmpfeyjvl\":\"datakxsjympsx\"}}") - .toObject(RestSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSink model = new RestSink().withWriteBatchSize("datafe") - .withWriteBatchTimeout("dataxgstiawywppq") - .withSinkRetryCount("datajxbdyczplmljcisx") - .withSinkRetryWait("datas") - .withMaxConcurrentConnections("datayt") - .withDisableMetricsCollection("datamufdynhqlzanta") - .withRequestMethod("datagvqioqrebwarljpl") - .withAdditionalHeaders("dataemxcdreqaqvs") - .withHttpRequestTimeout("datayvearwt") - .withRequestInterval("databscwbiwvwmcrhy") - .withHttpCompressionType("datas"); - 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 8bc9c7951e6d..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\":\"pxoelfobehr\",\"requestMethod\":\"dataqikcork\",\"requestBody\":\"dataobobxfhtb\",\"additionalHeaders\":\"datavwzjycgcie\",\"paginationRules\":\"datax\",\"httpRequestTimeout\":\"datazvnghtknr\",\"requestInterval\":\"datahysnmyuvf\",\"additionalColumns\":\"datacnrapxw\",\"sourceRetryCount\":\"dataglojjcziytf\",\"sourceRetryWait\":\"datavirmbr\",\"maxConcurrentConnections\":\"datagnqa\",\"disableMetricsCollection\":\"datak\",\"\":{\"dzvuhw\":\"dataybh\"}}") - .toObject(RestSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSource model = new RestSource().withSourceRetryCount("dataglojjcziytf") - .withSourceRetryWait("datavirmbr") - .withMaxConcurrentConnections("datagnqa") - .withDisableMetricsCollection("datak") - .withRequestMethod("dataqikcork") - .withRequestBody("dataobobxfhtb") - .withAdditionalHeaders("datavwzjycgcie") - .withPaginationRules("datax") - .withHttpRequestTimeout("datazvnghtknr") - .withRequestInterval("datahysnmyuvf") - .withAdditionalColumns("datacnrapxw"); - 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 0a287c1c5111..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\":\"dataptnls\",\"intervalInSeconds\":1168799036}") - .toObject(RetryPolicy.class); - Assertions.assertEquals(1168799036, model.intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RetryPolicy model = new RetryPolicy().withCount("dataptnls").withIntervalInSeconds(1168799036); - model = BinaryData.fromObject(model).toObject(RetryPolicy.class); - Assertions.assertEquals(1168799036, 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 6e4da5d9a5cc..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\":\"NotEquals\",\"values\":[\"qytibyowbblgyavu\",\"pthjoxo\",\"smsks\",\"pi\"]}") - .toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.NOT_EQUALS, model.operator()); - Assertions.assertEquals("qytibyowbblgyavu", 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.NOT_EQUALS) - .withValues(Arrays.asList("qytibyowbblgyavu", "pthjoxo", "smsks", "pi")); - model = BinaryData.fromObject(model).toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.NOT_EQUALS, model.operator()); - Assertions.assertEquals("qytibyowbblgyavu", 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 7f9b55c25d16..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\":\"ActivityRunStart\",\"order\":\"ASC\"}") - .toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.ACTIVITY_RUN_START, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.ASC, model.order()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunQueryOrderBy model - = new RunQueryOrderBy().withOrderBy(RunQueryOrderByField.ACTIVITY_RUN_START).withOrder(RunQueryOrder.ASC); - model = BinaryData.fromObject(model).toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.ACTIVITY_RUN_START, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.ASC, 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 25085d6a9a6a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.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.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\":\"jhgvte\",\"typeProperties\":{\"tableName\":\"datajpgbml\"},\"description\":\"runudmakkshrna\",\"structure\":\"dataczkwohdigeyuocf\",\"schema\":\"dataamodw\",\"linkedServiceName\":{\"referenceName\":\"baktvxer\",\"parameters\":{\"eonmtojxgdo\":\"datazvrnnbegra\"}},\"parameters\":{\"qsjknaqszbwgpmdm\":{\"type\":\"Array\",\"defaultValue\":\"datak\"},\"dargkwim\":{\"type\":\"Bool\",\"defaultValue\":\"dataevveswghhbqqhd\"},\"uwczzcujwxvbk\":{\"type\":\"Float\",\"defaultValue\":\"dataeeeuq\"}},\"annotations\":[\"datak\",\"datahfwlajwdajydj\",\"datajgi\",\"datavspewyzhydtkbmtr\"],\"folder\":{\"name\":\"lviaigarma\"},\"\":{\"ysclwbjgiynqr\":\"datagcneviccwb\",\"weofvsxauphzefi\":\"dataoi\",\"gtiivzkd\":\"dataeyydx\",\"ywmwtacrscfc\":\"dataexccwldgfq\"}}") - .toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("runudmakkshrna", model.description()); - Assertions.assertEquals("baktvxer", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("qsjknaqszbwgpmdm").type()); - Assertions.assertEquals("lviaigarma", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudObjectDataset model - = new SalesforceMarketingCloudObjectDataset().withDescription("runudmakkshrna") - .withStructure("dataczkwohdigeyuocf") - .withSchema("dataamodw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("baktvxer") - .withParameters(mapOf("eonmtojxgdo", "datazvrnnbegra"))) - .withParameters(mapOf("qsjknaqszbwgpmdm", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datak"), "dargkwim", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataevveswghhbqqhd"), - "uwczzcujwxvbk", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataeeeuq"))) - .withAnnotations(Arrays.asList("datak", "datahfwlajwdajydj", "datajgi", "datavspewyzhydtkbmtr")) - .withFolder(new DatasetFolder().withName("lviaigarma")) - .withTableName("datajpgbml"); - model = BinaryData.fromObject(model).toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("runudmakkshrna", model.description()); - Assertions.assertEquals("baktvxer", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("qsjknaqszbwgpmdm").type()); - Assertions.assertEquals("lviaigarma", 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 579ac067a0d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.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.SalesforceMarketingCloudSource; - -public final class SalesforceMarketingCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceMarketingCloudSource model = BinaryData.fromString( - "{\"type\":\"jpiecnrivsiwws\",\"query\":\"datawlsrxytevzqxpmf\",\"queryTimeout\":\"dataxqqrmckqmds\",\"additionalColumns\":\"datautbymlzgkzhbn\",\"sourceRetryCount\":\"datasuhki\",\"sourceRetryWait\":\"datauvpcjyh\",\"maxConcurrentConnections\":\"datanmjtan\",\"disableMetricsCollection\":\"datarrnqloomsyw\",\"\":{\"vknquipipgvfch\":\"dataaskapg\"}}") - .toObject(SalesforceMarketingCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudSource model = new SalesforceMarketingCloudSource().withSourceRetryCount("datasuhki") - .withSourceRetryWait("datauvpcjyh") - .withMaxConcurrentConnections("datanmjtan") - .withDisableMetricsCollection("datarrnqloomsyw") - .withQueryTimeout("dataxqqrmckqmds") - .withAdditionalColumns("datautbymlzgkzhbn") - .withQuery("datawlsrxytevzqxpmf"); - 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 c3e25dfab6ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.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.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\":\"fnhcg\",\"typeProperties\":{\"objectApiName\":\"dataxuyxsxteuikhzn\"},\"description\":\"qsrmrfqderk\",\"structure\":\"datasdcobpmgqlwy\",\"schema\":\"datanbbyzpo\",\"linkedServiceName\":{\"referenceName\":\"zfutgpbygbnb\",\"parameters\":{\"ewflwzhxzuxe\":\"dataiqgtzpv\"}},\"parameters\":{\"jdajdqxymxxyfrd\":{\"type\":\"Object\",\"defaultValue\":\"datalrkqsqvvdkfp\"},\"igwouppvyddqsvc\":{\"type\":\"String\",\"defaultValue\":\"datacetfvgwfwsl\"},\"tfxxepzpxzxlcqz\":{\"type\":\"Int\",\"defaultValue\":\"datanxfrppwwqclmd\"}},\"annotations\":[\"dataiti\"],\"folder\":{\"name\":\"jbsmkirpqni\"},\"\":{\"kcomeobwkeuzlten\":\"datam\"}}") - .toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("qsrmrfqderk", model.description()); - Assertions.assertEquals("zfutgpbygbnb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("jdajdqxymxxyfrd").type()); - Assertions.assertEquals("jbsmkirpqni", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDataset model - = new SalesforceObjectDataset().withDescription("qsrmrfqderk") - .withStructure("datasdcobpmgqlwy") - .withSchema("datanbbyzpo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zfutgpbygbnb") - .withParameters(mapOf("ewflwzhxzuxe", "dataiqgtzpv"))) - .withParameters( - mapOf("jdajdqxymxxyfrd", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datalrkqsqvvdkfp"), - "igwouppvyddqsvc", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datacetfvgwfwsl"), - "tfxxepzpxzxlcqz", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanxfrppwwqclmd"))) - .withAnnotations(Arrays.asList("dataiti")) - .withFolder(new DatasetFolder().withName("jbsmkirpqni")) - .withObjectApiName("dataxuyxsxteuikhzn"); - model = BinaryData.fromObject(model).toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("qsrmrfqderk", model.description()); - Assertions.assertEquals("zfutgpbygbnb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("jdajdqxymxxyfrd").type()); - Assertions.assertEquals("jbsmkirpqni", 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 014cfe25d9e6..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\":\"datafxlmxozesnd\"}") - .toObject(SalesforceObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDatasetTypeProperties model - = new SalesforceObjectDatasetTypeProperties().withObjectApiName("datafxlmxozesnd"); - 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 f599a36dbce8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.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.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\":\"ishyfmrzc\",\"typeProperties\":{\"objectApiName\":\"dataxymckikkqyvur\"},\"description\":\"evnkyakck\",\"structure\":\"datah\",\"schema\":\"datansddjkkd\",\"linkedServiceName\":{\"referenceName\":\"desuazogfcn\",\"parameters\":{\"umtcqxmyvkxixypa\":\"datag\",\"g\":\"dataifjc\",\"czbyfkocgm\":\"datahvpsuwichm\",\"gxrolw\":\"datadctsnlwscrngt\"}},\"parameters\":{\"ish\":{\"type\":\"SecureString\",\"defaultValue\":\"datadksutacuctiha\"}},\"annotations\":[\"datahxvpmqququxlp\",\"datan\",\"datarxlexoweorocr\"],\"folder\":{\"name\":\"gy\"},\"\":{\"tvijvwmrgcnz\":\"databqpfyrv\"}}") - .toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("evnkyakck", model.description()); - Assertions.assertEquals("desuazogfcn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("ish").type()); - Assertions.assertEquals("gy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDataset model - = new SalesforceServiceCloudObjectDataset().withDescription("evnkyakck") - .withStructure("datah") - .withSchema("datansddjkkd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("desuazogfcn") - .withParameters(mapOf("umtcqxmyvkxixypa", "datag", "g", "dataifjc", "czbyfkocgm", "datahvpsuwichm", - "gxrolw", "datadctsnlwscrngt"))) - .withParameters(mapOf("ish", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datadksutacuctiha"))) - .withAnnotations(Arrays.asList("datahxvpmqququxlp", "datan", "datarxlexoweorocr")) - .withFolder(new DatasetFolder().withName("gy")) - .withObjectApiName("dataxymckikkqyvur"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("evnkyakck", model.description()); - Assertions.assertEquals("desuazogfcn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("ish").type()); - Assertions.assertEquals("gy", 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 f3309a0eeac1..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\":\"dataplcxfmbzquuutqm\"}") - .toObject(SalesforceServiceCloudObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDatasetTypeProperties model - = new SalesforceServiceCloudObjectDatasetTypeProperties().withObjectApiName("dataplcxfmbzquuutqm"); - 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 7942dc3fccea..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\":\"af\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datakdpnq\",\"ignoreNullValues\":\"dataprlr\",\"writeBatchSize\":\"datacue\",\"writeBatchTimeout\":\"datasqmzeelitqvqyini\",\"sinkRetryCount\":\"datamccf\",\"sinkRetryWait\":\"databytzm\",\"maxConcurrentConnections\":\"datamesdcmgmv\",\"disableMetricsCollection\":\"datanfdhyr\",\"\":{\"uj\":\"dataaapsgyyufhcfeggy\"}}") - .toObject(SalesforceServiceCloudSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSink model = new SalesforceServiceCloudSink().withWriteBatchSize("datacue") - .withWriteBatchTimeout("datasqmzeelitqvqyini") - .withSinkRetryCount("datamccf") - .withSinkRetryWait("databytzm") - .withMaxConcurrentConnections("datamesdcmgmv") - .withDisableMetricsCollection("datanfdhyr") - .withWriteBehavior(SalesforceSinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datakdpnq") - .withIgnoreNullValues("dataprlr"); - 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 f894bb02fdc6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.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.SalesforceServiceCloudSource; - -public final class SalesforceServiceCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudSource model = BinaryData.fromString( - "{\"type\":\"egcg\",\"query\":\"datasz\",\"readBehavior\":\"datauqbuvpbeswgkre\",\"additionalColumns\":\"datapufkcamzcbzgikl\",\"sourceRetryCount\":\"datadpbsieymmcbikte\",\"sourceRetryWait\":\"datavqtcesvcsbyimyg\",\"maxConcurrentConnections\":\"dataduz\",\"disableMetricsCollection\":\"datanbzqweohml\",\"\":{\"tmhaerhxds\":\"dataxadmauanxzr\",\"welicrxbbqmoguy\":\"datakbrkhjj\",\"dxljjzdbzk\":\"datamselwszqveak\"}}") - .toObject(SalesforceServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSource model - = new SalesforceServiceCloudSource().withSourceRetryCount("datadpbsieymmcbikte") - .withSourceRetryWait("datavqtcesvcsbyimyg") - .withMaxConcurrentConnections("dataduz") - .withDisableMetricsCollection("datanbzqweohml") - .withQuery("datasz") - .withReadBehavior("datauqbuvpbeswgkre") - .withAdditionalColumns("datapufkcamzcbzgikl"); - 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 3ed33c032314..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.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.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\":\"bmljrjyfj\",\"typeProperties\":{\"objectApiName\":\"dataulbyzzcxs\",\"reportId\":\"dataaoymyckdpzb\"},\"description\":\"uxixkpsjldgnimqo\",\"structure\":\"datafq\",\"schema\":\"datajziqcso\",\"linkedServiceName\":{\"referenceName\":\"wq\",\"parameters\":{\"mgmgnddaxaog\":\"datadcdefqoe\",\"mbipysehyyb\":\"datakhcm\",\"bpgdiwdy\":\"databfjcvmk\"}},\"parameters\":{\"qwvcwce\":{\"type\":\"Bool\",\"defaultValue\":\"dataembr\"}},\"annotations\":[\"datatrgpd\",\"databtbxhyfwjf\",\"dataktuzrltpe\",\"datasdkbqfzbvttqjntv\"],\"folder\":{\"name\":\"pbhj\"},\"\":{\"xyeeafd\":\"datacupcyfrhooyvmv\"}}") - .toObject(SalesforceServiceCloudV2ObjectDataset.class); - Assertions.assertEquals("uxixkpsjldgnimqo", model.description()); - Assertions.assertEquals("wq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("qwvcwce").type()); - Assertions.assertEquals("pbhj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2ObjectDataset model = new SalesforceServiceCloudV2ObjectDataset() - .withDescription("uxixkpsjldgnimqo") - .withStructure("datafq") - .withSchema("datajziqcso") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wq") - .withParameters( - mapOf("mgmgnddaxaog", "datadcdefqoe", "mbipysehyyb", "datakhcm", "bpgdiwdy", "databfjcvmk"))) - .withParameters(mapOf("qwvcwce", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataembr"))) - .withAnnotations(Arrays.asList("datatrgpd", "databtbxhyfwjf", "dataktuzrltpe", "datasdkbqfzbvttqjntv")) - .withFolder(new DatasetFolder().withName("pbhj")) - .withObjectApiName("dataulbyzzcxs") - .withReportId("dataaoymyckdpzb"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2ObjectDataset.class); - Assertions.assertEquals("uxixkpsjldgnimqo", model.description()); - Assertions.assertEquals("wq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("qwvcwce").type()); - Assertions.assertEquals("pbhj", 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 f319eb212c67..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\":\"datauwlynxzhgbs\",\"reportId\":\"dataxbhj\"}") - .toObject(SalesforceServiceCloudV2ObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2ObjectDatasetTypeProperties model - = new SalesforceServiceCloudV2ObjectDatasetTypeProperties().withObjectApiName("datauwlynxzhgbs") - .withReportId("dataxbhj"); - 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 a9cf4d899f16..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\":\"xsrmadakjsypuvyv\",\"writeBehavior\":\"Insert\",\"externalIdFieldName\":\"databaj\",\"ignoreNullValues\":\"datacngwkz\",\"writeBatchSize\":\"datakkekldxclqjnn\",\"writeBatchTimeout\":\"datatwqkgvrzli\",\"sinkRetryCount\":\"datasutms\",\"sinkRetryWait\":\"dataibzvytempsa\",\"maxConcurrentConnections\":\"datacxuvdcwtn\",\"disableMetricsCollection\":\"dataleghnfqwjwwhsfj\",\"\":{\"scblsxmsc\":\"databclvpgbutyrsrav\",\"clfbvvuyoilnixw\":\"datafgdtu\"}}") - .toObject(SalesforceServiceCloudV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2Sink model = new SalesforceServiceCloudV2Sink().withWriteBatchSize("datakkekldxclqjnn") - .withWriteBatchTimeout("datatwqkgvrzli") - .withSinkRetryCount("datasutms") - .withSinkRetryWait("dataibzvytempsa") - .withMaxConcurrentConnections("datacxuvdcwtn") - .withDisableMetricsCollection("dataleghnfqwjwwhsfj") - .withWriteBehavior(SalesforceV2SinkWriteBehavior.INSERT) - .withExternalIdFieldName("databaj") - .withIgnoreNullValues("datacngwkz"); - 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 ac74608673f5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SourceTests.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.SalesforceServiceCloudV2Source; - -public final class SalesforceServiceCloudV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2Source model = BinaryData.fromString( - "{\"type\":\"mvpsvwwtn\",\"SOQLQuery\":\"datazdecgiomdcolwq\",\"includeDeletedObjects\":\"datarrjudgnph\",\"additionalColumns\":\"datadqt\",\"sourceRetryCount\":\"datanoq\",\"sourceRetryWait\":\"datanllicovvdc\",\"maxConcurrentConnections\":\"datafnbdpaoijx\",\"disableMetricsCollection\":\"datafm\",\"\":{\"xjfkpuszsjay\":\"datavv\"}}") - .toObject(SalesforceServiceCloudV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2Source model = new SalesforceServiceCloudV2Source().withSourceRetryCount("datanoq") - .withSourceRetryWait("datanllicovvdc") - .withMaxConcurrentConnections("datafnbdpaoijx") - .withDisableMetricsCollection("datafm") - .withSoqlQuery("datazdecgiomdcolwq") - .withIncludeDeletedObjects("datarrjudgnph") - .withAdditionalColumns("datadqt"); - 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 7d65facc5c21..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\":\"qhcps\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datajohx\",\"ignoreNullValues\":\"datahvjo\",\"writeBatchSize\":\"datacdgcvf\",\"writeBatchTimeout\":\"datavxkcyhkhw\",\"sinkRetryCount\":\"datavwfo\",\"sinkRetryWait\":\"datacgrwl\",\"maxConcurrentConnections\":\"datarcovqtydf\",\"disableMetricsCollection\":\"datatkrgagxzmr\",\"\":{\"wrhoma\":\"datagzslnnc\",\"up\":\"datavni\"}}") - .toObject(SalesforceSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSink model = new SalesforceSink().withWriteBatchSize("datacdgcvf") - .withWriteBatchTimeout("datavxkcyhkhw") - .withSinkRetryCount("datavwfo") - .withSinkRetryWait("datacgrwl") - .withMaxConcurrentConnections("datarcovqtydf") - .withDisableMetricsCollection("datatkrgagxzmr") - .withWriteBehavior(SalesforceSinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datajohx") - .withIgnoreNullValues("datahvjo"); - model = BinaryData.fromObject(model).toObject(SalesforceSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, 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 3a503e74fc94..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\":\"rhynlbtr\",\"query\":\"dataadmcvvkjnpef\",\"readBehavior\":\"dataevlohuahlqmcb\",\"queryTimeout\":\"dataoyllxc\",\"additionalColumns\":\"datahzylspz\",\"sourceRetryCount\":\"dataecvag\",\"sourceRetryWait\":\"datarhadg\",\"maxConcurrentConnections\":\"dataqrasxeomjqqhb\",\"disableMetricsCollection\":\"dataiuhiafbhzdjvd\",\"\":{\"xz\":\"dataijggbpdpzgvqfz\",\"utyhmflvxilaytjy\":\"dataliic\",\"wnoghqdl\":\"datafq\"}}") - .toObject(SalesforceSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSource model = new SalesforceSource().withSourceRetryCount("dataecvag") - .withSourceRetryWait("datarhadg") - .withMaxConcurrentConnections("dataqrasxeomjqqhb") - .withDisableMetricsCollection("dataiuhiafbhzdjvd") - .withQueryTimeout("dataoyllxc") - .withAdditionalColumns("datahzylspz") - .withQuery("dataadmcvvkjnpef") - .withReadBehavior("dataevlohuahlqmcb"); - 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 2bd71d50a3c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.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.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\":\"poid\",\"typeProperties\":{\"objectApiName\":\"databthutctcabc\",\"reportId\":\"dataabzfihsz\"},\"description\":\"wegvuojuwgweccvu\",\"structure\":\"dataqvfcfsssmyaemk\",\"schema\":\"databsdgktluifiqgp\",\"linkedServiceName\":{\"referenceName\":\"cpenobqysbees\",\"parameters\":{\"rszsu\":\"datavva\",\"intz\":\"datazsautbricvvofe\",\"xjpisrdnowinc\":\"datanhyyqxckd\",\"vijnubxfiiytqx\":\"dataes\"}},\"parameters\":{\"rxkivbkutogecyqo\":{\"type\":\"Bool\",\"defaultValue\":\"datautezlghkvoxdp\"},\"ya\":{\"type\":\"Object\",\"defaultValue\":\"datassbvqnpwdwdmu\"}},\"annotations\":[\"dataqpwxnb\",\"datazrmiukothyfjbpnh\"],\"folder\":{\"name\":\"r\"},\"\":{\"jioqwu\":\"datazfwgnpcjniaffwcg\",\"mwr\":\"dataogdkp\",\"yxqucnbg\":\"datauqjde\"}}") - .toObject(SalesforceV2ObjectDataset.class); - Assertions.assertEquals("wegvuojuwgweccvu", model.description()); - Assertions.assertEquals("cpenobqysbees", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rxkivbkutogecyqo").type()); - Assertions.assertEquals("r", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2ObjectDataset model = new SalesforceV2ObjectDataset().withDescription("wegvuojuwgweccvu") - .withStructure("dataqvfcfsssmyaemk") - .withSchema("databsdgktluifiqgp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("cpenobqysbees") - .withParameters(mapOf("rszsu", "datavva", "intz", "datazsautbricvvofe", "xjpisrdnowinc", - "datanhyyqxckd", "vijnubxfiiytqx", "dataes"))) - .withParameters(mapOf("rxkivbkutogecyqo", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datautezlghkvoxdp"), "ya", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datassbvqnpwdwdmu"))) - .withAnnotations(Arrays.asList("dataqpwxnb", "datazrmiukothyfjbpnh")) - .withFolder(new DatasetFolder().withName("r")) - .withObjectApiName("databthutctcabc") - .withReportId("dataabzfihsz"); - model = BinaryData.fromObject(model).toObject(SalesforceV2ObjectDataset.class); - Assertions.assertEquals("wegvuojuwgweccvu", model.description()); - Assertions.assertEquals("cpenobqysbees", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rxkivbkutogecyqo").type()); - Assertions.assertEquals("r", 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 2d24793386a8..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\":\"dataklscwdko\",\"reportId\":\"datayvihevbfvxmtsm\"}") - .toObject(SalesforceV2ObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2ObjectDatasetTypeProperties model - = new SalesforceV2ObjectDatasetTypeProperties().withObjectApiName("dataklscwdko") - .withReportId("datayvihevbfvxmtsm"); - 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 69b0da2dfc53..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\":\"z\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datadqgavcwxwkjambf\",\"ignoreNullValues\":\"datasrxjfapiodsnz\",\"writeBatchSize\":\"dataqbgcxlg\",\"writeBatchTimeout\":\"dataxoymjx\",\"sinkRetryCount\":\"datantjhvcorobmqudz\",\"sinkRetryWait\":\"datazkkl\",\"maxConcurrentConnections\":\"datazkcygyqgvofhpgu\",\"disableMetricsCollection\":\"databkwwyfsqgass\",\"\":{\"ohpwnrmhlotknb\":\"dataazvrmulsje\",\"zqmudmefsxmdmlow\":\"datau\",\"meqirxwkomjsfkd\":\"datasixpwfvtwg\"}}") - .toObject(SalesforceV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2Sink model = new SalesforceV2Sink().withWriteBatchSize("dataqbgcxlg") - .withWriteBatchTimeout("dataxoymjx") - .withSinkRetryCount("datantjhvcorobmqudz") - .withSinkRetryWait("datazkkl") - .withMaxConcurrentConnections("datazkcygyqgvofhpgu") - .withDisableMetricsCollection("databkwwyfsqgass") - .withWriteBehavior(SalesforceV2SinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datadqgavcwxwkjambf") - .withIgnoreNullValues("datasrxjfapiodsnz"); - 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 1dd1b8fae651..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SourceTests.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.SalesforceV2Source; - -public final class SalesforceV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2Source model = BinaryData.fromString( - "{\"type\":\"riviftjjmtk\",\"SOQLQuery\":\"datagxxmxdrgxhrta\",\"includeDeletedObjects\":\"datajboiyqixb\",\"queryTimeout\":\"datafw\",\"additionalColumns\":\"dataqj\",\"sourceRetryCount\":\"datadgfjvit\",\"sourceRetryWait\":\"dataa\",\"maxConcurrentConnections\":\"dataesxn\",\"disableMetricsCollection\":\"dataslhncaspwvgl\",\"\":{\"qhatwxq\":\"datan\",\"aicyuplmdhuu\":\"dataggbirzj\",\"tjqjtoeaug\":\"datatiecnpka\"}}") - .toObject(SalesforceV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2Source model = new SalesforceV2Source().withSourceRetryCount("datadgfjvit") - .withSourceRetryWait("dataa") - .withMaxConcurrentConnections("dataesxn") - .withDisableMetricsCollection("dataslhncaspwvgl") - .withQueryTimeout("datafw") - .withAdditionalColumns("dataqj") - .withSoqlQuery("datagxxmxdrgxhrta") - .withIncludeDeletedObjects("datajboiyqixb"); - 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 2d35bd3ad6d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.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.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\":\"dqseypdlmajpuy\",\"description\":\"a\",\"structure\":\"datamzgccy\",\"schema\":\"datauvmsie\",\"linkedServiceName\":{\"referenceName\":\"edmmvoneeyr\",\"parameters\":{\"spl\":\"datarxtzayqwddigeb\"}},\"parameters\":{\"izdnuehx\":{\"type\":\"Array\",\"defaultValue\":\"datawwveeozbjkjq\"},\"rxactsawvxcimp\":{\"type\":\"String\",\"defaultValue\":\"datassjdywbnklg\"}},\"annotations\":[\"datarm\",\"datalzmslubnknyfuy\",\"datajhvrrllfswarmy\"],\"folder\":{\"name\":\"rotgeysyq\"},\"\":{\"xia\":\"dataehfwwcbf\"}}") - .toObject(SapBwCubeDataset.class); - Assertions.assertEquals("a", model.description()); - Assertions.assertEquals("edmmvoneeyr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("izdnuehx").type()); - Assertions.assertEquals("rotgeysyq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwCubeDataset model = new SapBwCubeDataset().withDescription("a") - .withStructure("datamzgccy") - .withSchema("datauvmsie") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("edmmvoneeyr") - .withParameters(mapOf("spl", "datarxtzayqwddigeb"))) - .withParameters(mapOf("izdnuehx", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datawwveeozbjkjq"), - "rxactsawvxcimp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datassjdywbnklg"))) - .withAnnotations(Arrays.asList("datarm", "datalzmslubnknyfuy", "datajhvrrllfswarmy")) - .withFolder(new DatasetFolder().withName("rotgeysyq")); - model = BinaryData.fromObject(model).toObject(SapBwCubeDataset.class); - Assertions.assertEquals("a", model.description()); - Assertions.assertEquals("edmmvoneeyr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("izdnuehx").type()); - Assertions.assertEquals("rotgeysyq", 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 fce1609315f1..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\":\"mq\",\"query\":\"datahllmblls\",\"queryTimeout\":\"datajjrhxornuoqpob\",\"additionalColumns\":\"datarsdx\",\"sourceRetryCount\":\"dataxbqyavcxjols\",\"sourceRetryWait\":\"datai\",\"maxConcurrentConnections\":\"datapnms\",\"disableMetricsCollection\":\"datantakr\",\"\":{\"uwcmzpwk\":\"dataurf\"}}") - .toObject(SapBwSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwSource model = new SapBwSource().withSourceRetryCount("dataxbqyavcxjols") - .withSourceRetryWait("datai") - .withMaxConcurrentConnections("datapnms") - .withDisableMetricsCollection("datantakr") - .withQueryTimeout("datajjrhxornuoqpob") - .withAdditionalColumns("datarsdx") - .withQuery("datahllmblls"); - 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 e74663e6114b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.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.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\":\"vjixgofqdqwsjm\",\"typeProperties\":{\"path\":\"dataraxnfyzguax\"},\"description\":\"uvrqpbxdoicqp\",\"structure\":\"datatly\",\"schema\":\"datarpensbm\",\"linkedServiceName\":{\"referenceName\":\"jritu\",\"parameters\":{\"f\":\"datamh\"}},\"parameters\":{\"zwanduhduwdvolxt\":{\"type\":\"Bool\",\"defaultValue\":\"datazjxwjoq\"}},\"annotations\":[\"dataic\",\"datas\",\"datalzbki\",\"datamjfgoxedrmra\"],\"folder\":{\"name\":\"chvvoyiogbntnwz\"},\"\":{\"ppnvcebspciry\":\"datasoowxcsmxtlc\",\"kwh\":\"datamhkdwuwedupbkm\",\"x\":\"datajsqwhaefefvv\",\"dobues\":\"databnmcvaqycd\"}}") - .toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("uvrqpbxdoicqp", model.description()); - Assertions.assertEquals("jritu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zwanduhduwdvolxt").type()); - Assertions.assertEquals("chvvoyiogbntnwz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDataset model - = new SapCloudForCustomerResourceDataset().withDescription("uvrqpbxdoicqp") - .withStructure("datatly") - .withSchema("datarpensbm") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("jritu").withParameters(mapOf("f", "datamh"))) - .withParameters(mapOf("zwanduhduwdvolxt", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datazjxwjoq"))) - .withAnnotations(Arrays.asList("dataic", "datas", "datalzbki", "datamjfgoxedrmra")) - .withFolder(new DatasetFolder().withName("chvvoyiogbntnwz")) - .withPath("dataraxnfyzguax"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("uvrqpbxdoicqp", model.description()); - Assertions.assertEquals("jritu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zwanduhduwdvolxt").type()); - Assertions.assertEquals("chvvoyiogbntnwz", 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 94e32078c2b9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.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.SapCloudForCustomerResourceDatasetTypeProperties; - -public final class SapCloudForCustomerResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model - = BinaryData.fromString("{\"path\":\"datayvfxnzpfdfupk\"}") - .toObject(SapCloudForCustomerResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model - = new SapCloudForCustomerResourceDatasetTypeProperties().withPath("datayvfxnzpfdfupk"); - 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 2114979f6d65..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\":\"u\",\"writeBehavior\":\"Update\",\"httpRequestTimeout\":\"dataktcwgnkxjdax\",\"writeBatchSize\":\"datazawotpiaklef\",\"writeBatchTimeout\":\"dataiabfntrmkeawmfe\",\"sinkRetryCount\":\"datacgdljbnfw\",\"sinkRetryWait\":\"datafn\",\"maxConcurrentConnections\":\"dataiuzbpgskg\",\"disableMetricsCollection\":\"dataspxhhnv\",\"\":{\"tgmd\":\"datajti\",\"akgzcmbgw\":\"datawefstize\",\"jpxpwxabvxwoa\":\"datalnmddflckum\",\"ozkm\":\"dataoeillszdgy\"}}") - .toObject(SapCloudForCustomerSink.class); - Assertions.assertEquals(SapCloudForCustomerSinkWriteBehavior.UPDATE, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSink model = new SapCloudForCustomerSink().withWriteBatchSize("datazawotpiaklef") - .withWriteBatchTimeout("dataiabfntrmkeawmfe") - .withSinkRetryCount("datacgdljbnfw") - .withSinkRetryWait("datafn") - .withMaxConcurrentConnections("dataiuzbpgskg") - .withDisableMetricsCollection("dataspxhhnv") - .withWriteBehavior(SapCloudForCustomerSinkWriteBehavior.UPDATE) - .withHttpRequestTimeout("dataktcwgnkxjdax"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerSink.class); - Assertions.assertEquals(SapCloudForCustomerSinkWriteBehavior.UPDATE, 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 abd7f02d04a7..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\":\"kympwquu\",\"query\":\"dataujshcsnk\",\"httpRequestTimeout\":\"datagpqxqevt\",\"queryTimeout\":\"datakjirvjogsalvjl\",\"additionalColumns\":\"dataimua\",\"sourceRetryCount\":\"dataz\",\"sourceRetryWait\":\"datau\",\"maxConcurrentConnections\":\"datahszjyanhsliqeftg\",\"disableMetricsCollection\":\"dataro\",\"\":{\"zxj\":\"dataufqsdt\",\"gibog\":\"dataxolmehquqi\",\"lxcwrszwa\":\"dataojupenoupc\"}}") - .toObject(SapCloudForCustomerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSource model = new SapCloudForCustomerSource().withSourceRetryCount("dataz") - .withSourceRetryWait("datau") - .withMaxConcurrentConnections("datahszjyanhsliqeftg") - .withDisableMetricsCollection("dataro") - .withQueryTimeout("datakjirvjogsalvjl") - .withAdditionalColumns("dataimua") - .withQuery("dataujshcsnk") - .withHttpRequestTimeout("datagpqxqevt"); - 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 f101388f262c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.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.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\":\"tbuvedwuuqbmen\",\"typeProperties\":{\"path\":\"datatabvbbkflewgsl\"},\"description\":\"q\",\"structure\":\"datawclykcr\",\"schema\":\"dataekkbnj\",\"linkedServiceName\":{\"referenceName\":\"evmp\",\"parameters\":{\"gpkkhpj\":\"dataeuenthshnfiyg\",\"nmtrd\":\"dataglaqlmi\",\"wgecpvfpnrzikvo\":\"datapxi\"}},\"parameters\":{\"hpxukxgoyxon\":{\"type\":\"Float\",\"defaultValue\":\"datahyfivxdifbwbli\"},\"uqr\":{\"type\":\"String\",\"defaultValue\":\"datadqrxro\"},\"tktwjrppifey\":{\"type\":\"SecureString\",\"defaultValue\":\"dataxfuaefewx\"},\"ojklwjpzw\":{\"type\":\"String\",\"defaultValue\":\"dataelrmdcizhvks\"}},\"annotations\":[\"datawksmpyeyzolb\"],\"folder\":{\"name\":\"lytfxudui\"},\"\":{\"wkqwo\":\"datami\",\"ng\":\"datawsnliy\",\"wrgavtfy\":\"datauqzgpdglkfv\",\"ryxpi\":\"datasedfmzu\"}}") - .toObject(SapEccResourceDataset.class); - Assertions.assertEquals("q", model.description()); - Assertions.assertEquals("evmp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("hpxukxgoyxon").type()); - Assertions.assertEquals("lytfxudui", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDataset model = new SapEccResourceDataset().withDescription("q") - .withStructure("datawclykcr") - .withSchema("dataekkbnj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("evmp") - .withParameters( - mapOf("gpkkhpj", "dataeuenthshnfiyg", "nmtrd", "dataglaqlmi", "wgecpvfpnrzikvo", "datapxi"))) - .withParameters( - mapOf("hpxukxgoyxon", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datahyfivxdifbwbli"), - "uqr", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datadqrxro"), - "tktwjrppifey", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataxfuaefewx"), - "ojklwjpzw", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataelrmdcizhvks"))) - .withAnnotations(Arrays.asList("datawksmpyeyzolb")) - .withFolder(new DatasetFolder().withName("lytfxudui")) - .withPath("datatabvbbkflewgsl"); - model = BinaryData.fromObject(model).toObject(SapEccResourceDataset.class); - Assertions.assertEquals("q", model.description()); - Assertions.assertEquals("evmp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("hpxukxgoyxon").type()); - Assertions.assertEquals("lytfxudui", 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 b9a4edb70d0f..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\":\"datavapeakfdmc\"}") - .toObject(SapEccResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDatasetTypeProperties model - = new SapEccResourceDatasetTypeProperties().withPath("datavapeakfdmc"); - 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 bb4d39000bd3..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\":\"pwqzvqtnozw\",\"query\":\"datab\",\"httpRequestTimeout\":\"dataeeeucvvnbymrgel\",\"queryTimeout\":\"datafr\",\"additionalColumns\":\"datanvkqtv\",\"sourceRetryCount\":\"datakaqracvcbrtlt\",\"sourceRetryWait\":\"datahbzbbjxkamitgv\",\"maxConcurrentConnections\":\"datapdv\",\"disableMetricsCollection\":\"datayelrteunkwypu\",\"\":{\"lylzdbrwjlwfthf\":\"datamsygtdfqlfd\",\"jsfgkwrcbgxypr\":\"dataxwi\"}}") - .toObject(SapEccSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccSource model = new SapEccSource().withSourceRetryCount("datakaqracvcbrtlt") - .withSourceRetryWait("datahbzbbjxkamitgv") - .withMaxConcurrentConnections("datapdv") - .withDisableMetricsCollection("datayelrteunkwypu") - .withQueryTimeout("datafr") - .withAdditionalColumns("datanvkqtv") - .withQuery("datab") - .withHttpRequestTimeout("dataeeeucvvnbymrgel"); - 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 7d77f498e022..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\":\"datadpd\"}").toObject(SapHanaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaPartitionSettings model = new SapHanaPartitionSettings().withPartitionColumnName("datadpd"); - 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 b612be95ab0b..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\":\"pceuwmfdy\",\"query\":\"dataoizabjbh\",\"packetSize\":\"dataddijfkkt\",\"partitionOption\":\"dataiseepl\",\"partitionSettings\":{\"partitionColumnName\":\"datarxydsompnce\"},\"queryTimeout\":\"dataczkjkfakgrwtpe\",\"additionalColumns\":\"dataanm\",\"sourceRetryCount\":\"datapy\",\"sourceRetryWait\":\"datagqyszjuijzhvejqj\",\"maxConcurrentConnections\":\"dataolnylpykjpa\",\"disableMetricsCollection\":\"dataouya\",\"\":{\"on\":\"dataxaicheycak\"}}") - .toObject(SapHanaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaSource model = new SapHanaSource().withSourceRetryCount("datapy") - .withSourceRetryWait("datagqyszjuijzhvejqj") - .withMaxConcurrentConnections("dataolnylpykjpa") - .withDisableMetricsCollection("dataouya") - .withQueryTimeout("dataczkjkfakgrwtpe") - .withAdditionalColumns("dataanm") - .withQuery("dataoizabjbh") - .withPacketSize("dataddijfkkt") - .withPartitionOption("dataiseepl") - .withPartitionSettings(new SapHanaPartitionSettings().withPartitionColumnName("datarxydsompnce")); - 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 ff47209f650e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.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.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\":\"oqkanqtrkic\",\"typeProperties\":{\"schema\":\"datax\",\"table\":\"datao\"},\"description\":\"qyrgqmndk\",\"structure\":\"datawmurhvifqeqf\",\"schema\":\"datanackitlw\",\"linkedServiceName\":{\"referenceName\":\"ebylpzjelda\",\"parameters\":{\"h\":\"dataunilni\",\"kbvzpkodngvnq\":\"datacbrdsypotn\"}},\"parameters\":{\"vbqy\":{\"type\":\"Object\",\"defaultValue\":\"datatwgnldxuczl\"},\"uvcqoqkqwucqsdgb\":{\"type\":\"Float\",\"defaultValue\":\"datarirpi\"},\"jlamyv\":{\"type\":\"Int\",\"defaultValue\":\"datatvmijccpk\"}},\"annotations\":[\"datajmaih\",\"datannlb\"],\"folder\":{\"name\":\"ppcbqetf\"},\"\":{\"mprklatwiuujxsuj\":\"datapvolzayjwdunj\",\"pc\":\"datarwgxeegxbnjnczep\",\"dquyyaes\":\"datamgbf\"}}") - .toObject(SapHanaTableDataset.class); - Assertions.assertEquals("qyrgqmndk", model.description()); - Assertions.assertEquals("ebylpzjelda", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vbqy").type()); - Assertions.assertEquals("ppcbqetf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDataset model = new SapHanaTableDataset().withDescription("qyrgqmndk") - .withStructure("datawmurhvifqeqf") - .withSchema("datanackitlw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ebylpzjelda") - .withParameters(mapOf("h", "dataunilni", "kbvzpkodngvnq", "datacbrdsypotn"))) - .withParameters(mapOf("vbqy", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datatwgnldxuczl"), - "uvcqoqkqwucqsdgb", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datarirpi"), "jlamyv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datatvmijccpk"))) - .withAnnotations(Arrays.asList("datajmaih", "datannlb")) - .withFolder(new DatasetFolder().withName("ppcbqetf")) - .withSchemaTypePropertiesSchema("datax") - .withTable("datao"); - model = BinaryData.fromObject(model).toObject(SapHanaTableDataset.class); - Assertions.assertEquals("qyrgqmndk", model.description()); - Assertions.assertEquals("ebylpzjelda", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vbqy").type()); - Assertions.assertEquals("ppcbqetf", 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 967cbc432451..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\":\"dataxnavpyxqb\",\"table\":\"datadtb\"}") - .toObject(SapHanaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDatasetTypeProperties model - = new SapHanaTableDatasetTypeProperties().withSchema("dataxnavpyxqb").withTable("datadtb"); - 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 3e71c3220a44..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.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.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\":\"vuqzgbjwvrudmp\",\"typeProperties\":{\"context\":\"dataick\",\"objectName\":\"datakithueoc\"},\"description\":\"wpm\",\"structure\":\"dataleajabesgyzwp\",\"schema\":\"datajkscecmbaajdfw\",\"linkedServiceName\":{\"referenceName\":\"dkqlvzkf\",\"parameters\":{\"b\":\"dataesbpjqtl\"}},\"parameters\":{\"rr\":{\"type\":\"Array\",\"defaultValue\":\"datauibs\"},\"rcpzhbwcxybtdzyc\":{\"type\":\"String\",\"defaultValue\":\"dataeqrypyurvshhovtu\"},\"wczsrazcbybic\":{\"type\":\"Bool\",\"defaultValue\":\"dataoegjzgpljb\"},\"pua\":{\"type\":\"SecureString\",\"defaultValue\":\"datah\"}},\"annotations\":[\"datai\"],\"folder\":{\"name\":\"mu\"},\"\":{\"enndzgthdzit\":\"datawuycuo\",\"vswtwonadezm\":\"datazffpherwj\"}}") - .toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("wpm", model.description()); - Assertions.assertEquals("dkqlvzkf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rr").type()); - Assertions.assertEquals("mu", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDataset model = new SapOdpResourceDataset().withDescription("wpm") - .withStructure("dataleajabesgyzwp") - .withSchema("datajkscecmbaajdfw") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("dkqlvzkf").withParameters(mapOf("b", "dataesbpjqtl"))) - .withParameters( - mapOf("rr", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datauibs"), - "rcpzhbwcxybtdzyc", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("dataeqrypyurvshhovtu"), - "wczsrazcbybic", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataoegjzgpljb"), "pua", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datah"))) - .withAnnotations(Arrays.asList("datai")) - .withFolder(new DatasetFolder().withName("mu")) - .withContext("dataick") - .withObjectName("datakithueoc"); - model = BinaryData.fromObject(model).toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("wpm", model.description()); - Assertions.assertEquals("dkqlvzkf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rr").type()); - Assertions.assertEquals("mu", 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 2c8d14a7618f..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\":\"dataxvfybxmmr\",\"objectName\":\"datanuvqkrrsguog\"}") - .toObject(SapOdpResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDatasetTypeProperties model - = new SapOdpResourceDatasetTypeProperties().withContext("dataxvfybxmmr").withObjectName("datanuvqkrrsguog"); - 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 3a32f29d4ac2..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\":\"l\",\"extractionMode\":\"dataau\",\"subscriberProcess\":\"datacl\",\"selection\":\"dataaoidjhoykgtyvrn\",\"projection\":\"datakiree\",\"queryTimeout\":\"datah\",\"additionalColumns\":\"datavndg\",\"sourceRetryCount\":\"dataa\",\"sourceRetryWait\":\"datasipfwlyei\",\"maxConcurrentConnections\":\"datadp\",\"disableMetricsCollection\":\"dataqteirrjjmvr\",\"\":{\"auytqdkgaxl\":\"datapopwxxdgzhnpxbu\",\"xqrokw\":\"dataafwsu\"}}") - .toObject(SapOdpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpSource model = new SapOdpSource().withSourceRetryCount("dataa") - .withSourceRetryWait("datasipfwlyei") - .withMaxConcurrentConnections("datadp") - .withDisableMetricsCollection("dataqteirrjjmvr") - .withQueryTimeout("datah") - .withAdditionalColumns("datavndg") - .withExtractionMode("dataau") - .withSubscriberProcess("datacl") - .withSelection("dataaoidjhoykgtyvrn") - .withProjection("datakiree"); - 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 7e55bb21d2bd..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\":\"syhdapynpvgya\",\"excludeLastRequest\":\"datasksfbkxfkeeqo\",\"baseRequestId\":\"databek\",\"customRfcReadTableFunctionModule\":\"dataerwss\",\"sapDataColumnDelimiter\":\"datamrpdjrylfpdudx\",\"queryTimeout\":\"databanfsqfhatqssnge\",\"additionalColumns\":\"datayffgohrhj\",\"sourceRetryCount\":\"datatbet\",\"sourceRetryWait\":\"datadtgpvnczf\",\"maxConcurrentConnections\":\"dataybjku\",\"disableMetricsCollection\":\"dataajkyrhucbfkaqlp\",\"\":{\"ronbqakt\":\"datat\",\"obcqvzmywvsyn\":\"dataotmge\"}}") - .toObject(SapOpenHubSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubSource model = new SapOpenHubSource().withSourceRetryCount("datatbet") - .withSourceRetryWait("datadtgpvnczf") - .withMaxConcurrentConnections("dataybjku") - .withDisableMetricsCollection("dataajkyrhucbfkaqlp") - .withQueryTimeout("databanfsqfhatqssnge") - .withAdditionalColumns("datayffgohrhj") - .withExcludeLastRequest("datasksfbkxfkeeqo") - .withBaseRequestId("databek") - .withCustomRfcReadTableFunctionModule("dataerwss") - .withSapDataColumnDelimiter("datamrpdjrylfpdudx"); - 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 5f5639f011bc..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\":\"on\",\"typeProperties\":{\"openHubDestinationName\":\"datazcg\",\"excludeLastRequest\":\"dataozlibcbnunzuysaj\",\"baseRequestId\":\"dataqlho\"},\"description\":\"ivgtibtkqjqjc\",\"structure\":\"datago\",\"schema\":\"datatkhh\",\"linkedServiceName\":{\"referenceName\":\"emrvk\",\"parameters\":{\"qfxspxgogyp\":\"datajtdyulglhelwrukl\",\"kvctvuz\":\"dataztgaexjn\",\"ttmhlvr\":\"datamb\"}},\"parameters\":{\"jggkwdepem\":{\"type\":\"Float\",\"defaultValue\":\"datanwukfajnpdw\"},\"gtrttcuayiqylnk\":{\"type\":\"Float\",\"defaultValue\":\"datayfiqiidxcorjvudy\"},\"gqexowq\":{\"type\":\"Object\",\"defaultValue\":\"datazifb\"},\"kuobpw\":{\"type\":\"Array\",\"defaultValue\":\"datagqrqkkvfy\"}},\"annotations\":[\"datapgobothx\",\"dataewhpnyjt\",\"dataqgzyvextc\"],\"folder\":{\"name\":\"r\"},\"\":{\"rifiozttcbiichg\":\"dataowuwhd\",\"ryqycymzrlcfgdwz\":\"dataudsozodwjcfqoy\",\"adnyciwzki\":\"datauzfdh\"}}") - .toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("ivgtibtkqjqjc", model.description()); - Assertions.assertEquals("emrvk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jggkwdepem").type()); - Assertions.assertEquals("r", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDataset model = new SapOpenHubTableDataset().withDescription("ivgtibtkqjqjc") - .withStructure("datago") - .withSchema("datatkhh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("emrvk") - .withParameters( - mapOf("qfxspxgogyp", "datajtdyulglhelwrukl", "kvctvuz", "dataztgaexjn", "ttmhlvr", "datamb"))) - .withParameters(mapOf("jggkwdepem", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datanwukfajnpdw"), - "gtrttcuayiqylnk", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datayfiqiidxcorjvudy"), - "gqexowq", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datazifb"), - "kuobpw", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datagqrqkkvfy"))) - .withAnnotations(Arrays.asList("datapgobothx", "dataewhpnyjt", "dataqgzyvextc")) - .withFolder(new DatasetFolder().withName("r")) - .withOpenHubDestinationName("datazcg") - .withExcludeLastRequest("dataozlibcbnunzuysaj") - .withBaseRequestId("dataqlho"); - model = BinaryData.fromObject(model).toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("ivgtibtkqjqjc", model.description()); - Assertions.assertEquals("emrvk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jggkwdepem").type()); - Assertions.assertEquals("r", 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 856bc5c1d78d..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\":\"dataykqadfges\",\"excludeLastRequest\":\"dataoha\",\"baseRequestId\":\"datarizmadjrsbgail\"}") - .toObject(SapOpenHubTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDatasetTypeProperties model - = new SapOpenHubTableDatasetTypeProperties().withOpenHubDestinationName("dataykqadfges") - .withExcludeLastRequest("dataoha") - .withBaseRequestId("datarizmadjrsbgail"); - 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 b62fa5c20999..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\":\"datafnipywgjgf\",\"partitionUpperBound\":\"datafsvay\",\"partitionLowerBound\":\"datajypo\",\"maxPartitionsNumber\":\"dataiptnwpws\"}") - .toObject(SapTablePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTablePartitionSettings model = new SapTablePartitionSettings().withPartitionColumnName("datafnipywgjgf") - .withPartitionUpperBound("datafsvay") - .withPartitionLowerBound("datajypo") - .withMaxPartitionsNumber("dataiptnwpws"); - 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 6b9408adbb2b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.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.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\":\"ekijhminen\",\"typeProperties\":{\"tableName\":\"datacgcsapvbcqpf\"},\"description\":\"ivp\",\"structure\":\"datakvorlfqm\",\"schema\":\"dataewynbf\",\"linkedServiceName\":{\"referenceName\":\"vcwvurkmjufavvln\",\"parameters\":{\"kkf\":\"dataotmynklnmrznmtv\",\"xutcbvriuvnfazx\":\"datawxizkstxneykei\",\"yaeiivjqkq\":\"datavsa\"}},\"parameters\":{\"joqfxqe\":{\"type\":\"Bool\",\"defaultValue\":\"dataew\"},\"zq\":{\"type\":\"SecureString\",\"defaultValue\":\"datadqiuspguzljvgji\"},\"qq\":{\"type\":\"Object\",\"defaultValue\":\"datajsazmjsis\"},\"ygllfkchhgsjuzzc\":{\"type\":\"String\",\"defaultValue\":\"dataecagsbfeiirpn\"}},\"annotations\":[\"datawmqcycabaam\",\"datakhdhpmkxdujkxpuq\",\"datadyoqywsuarpzhry\",\"dataezxiz\"],\"folder\":{\"name\":\"xbfj\"},\"\":{\"kdf\":\"datauazccouhwi\",\"rb\":\"datajsk\",\"piqdqbvxqto\":\"datazepirtv\"}}") - .toObject(SapTableResourceDataset.class); - Assertions.assertEquals("ivp", model.description()); - Assertions.assertEquals("vcwvurkmjufavvln", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("joqfxqe").type()); - Assertions.assertEquals("xbfj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDataset model = new SapTableResourceDataset().withDescription("ivp") - .withStructure("datakvorlfqm") - .withSchema("dataewynbf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vcwvurkmjufavvln") - .withParameters(mapOf("kkf", "dataotmynklnmrznmtv", "xutcbvriuvnfazx", "datawxizkstxneykei", - "yaeiivjqkq", "datavsa"))) - .withParameters(mapOf("joqfxqe", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataew"), "zq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datadqiuspguzljvgji"), - "qq", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datajsazmjsis"), - "ygllfkchhgsjuzzc", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataecagsbfeiirpn"))) - .withAnnotations( - Arrays.asList("datawmqcycabaam", "datakhdhpmkxdujkxpuq", "datadyoqywsuarpzhry", "dataezxiz")) - .withFolder(new DatasetFolder().withName("xbfj")) - .withTableName("datacgcsapvbcqpf"); - model = BinaryData.fromObject(model).toObject(SapTableResourceDataset.class); - Assertions.assertEquals("ivp", model.description()); - Assertions.assertEquals("vcwvurkmjufavvln", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("joqfxqe").type()); - Assertions.assertEquals("xbfj", 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 a35b6fb7a9c3..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\":\"datapwbopvhcbt\"}") - .toObject(SapTableResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDatasetTypeProperties model - = new SapTableResourceDatasetTypeProperties().withTableName("datapwbopvhcbt"); - 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 5f26c4690a72..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\":\"pubsdinfauyt\",\"rowCount\":\"dataql\",\"rowSkips\":\"datarhctbrvegdamoy\",\"rfcTableFields\":\"datafjpkezqjizbyczme\",\"rfcTableOptions\":\"dataacgvlnpjjb\",\"batchSize\":\"datayrktuvdestarulnh\",\"customRfcReadTableFunctionModule\":\"datatvyhsxhcrf\",\"sapDataColumnDelimiter\":\"dataxexupcuizvx\",\"partitionOption\":\"datavzhlkeotdscqkxzr\",\"partitionSettings\":{\"partitionColumnName\":\"dataqzmvemli\",\"partitionUpperBound\":\"datadfqfnftrrhhgwaw\",\"partitionLowerBound\":\"datah\",\"maxPartitionsNumber\":\"datavcfxdvk\"},\"queryTimeout\":\"dataxultxhqqvdhdyy\",\"additionalColumns\":\"datatx\",\"sourceRetryCount\":\"datavsdyqyjkmfo\",\"sourceRetryWait\":\"datamxedlcxm\",\"maxConcurrentConnections\":\"datatpbapojknvxantlp\",\"disableMetricsCollection\":\"dataiipfgdnqpkvvrho\",\"\":{\"uexhskh\":\"dataqdvnruo\",\"xhegc\":\"dataqlvocrdd\",\"unqwcrkkabyx\":\"datalhqzcklq\"}}") - .toObject(SapTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableSource model = new SapTableSource().withSourceRetryCount("datavsdyqyjkmfo") - .withSourceRetryWait("datamxedlcxm") - .withMaxConcurrentConnections("datatpbapojknvxantlp") - .withDisableMetricsCollection("dataiipfgdnqpkvvrho") - .withQueryTimeout("dataxultxhqqvdhdyy") - .withAdditionalColumns("datatx") - .withRowCount("dataql") - .withRowSkips("datarhctbrvegdamoy") - .withRfcTableFields("datafjpkezqjizbyczme") - .withRfcTableOptions("dataacgvlnpjjb") - .withBatchSize("datayrktuvdestarulnh") - .withCustomRfcReadTableFunctionModule("datatvyhsxhcrf") - .withSapDataColumnDelimiter("dataxexupcuizvx") - .withPartitionOption("datavzhlkeotdscqkxzr") - .withPartitionSettings(new SapTablePartitionSettings().withPartitionColumnName("dataqzmvemli") - .withPartitionUpperBound("datadfqfnftrrhhgwaw") - .withPartitionLowerBound("datah") - .withMaxPartitionsNumber("datavcfxdvk")); - 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 03bbaa64e0d5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.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.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\":1449790272,\"startTime\":\"2021-01-15T17:32:17Z\",\"endTime\":\"2021-02-22T01:40:59Z\",\"timeZone\":\"mqbcitlyyphtdwhm\",\"schedule\":{\"minutes\":[758989911],\"hours\":[2057988261],\"weekDays\":[\"Saturday\",\"Wednesday\",\"Saturday\",\"Thursday\"],\"monthDays\":[406785212,1599563071,1148299002],\"monthlyOccurrences\":[{\"day\":\"Monday\",\"occurrence\":1137923293,\"\":{\"ej\":\"dataynsqxyowwrb\"}},{\"day\":\"Wednesday\",\"occurrence\":1214619883,\"\":{\"gidkgsjivdtrtkq\":\"datakswfpqrusxy\"}}],\"\":{\"rdx\":\"dataxslbrttlwaskt\",\"okjnbcdnjexcyhs\":\"datasbbd\"}},\"\":{\"qgimwivqphddewfa\":\"datairaubxfb\",\"zzak\":\"dataajpojz\",\"sqdzivvy\":\"datantwnhpc\",\"uq\":\"dataysavevnerpyz\"}}") - .toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1449790272, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T17:32:17Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T01:40:59Z"), model.endTime()); - Assertions.assertEquals("mqbcitlyyphtdwhm", model.timeZone()); - Assertions.assertEquals(758989911, model.schedule().minutes().get(0)); - Assertions.assertEquals(2057988261, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.SATURDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(406785212, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.MONDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1137923293, model.schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTriggerRecurrence model = new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE) - .withInterval(1449790272) - .withStartTime(OffsetDateTime.parse("2021-01-15T17:32:17Z")) - .withEndTime(OffsetDateTime.parse("2021-02-22T01:40:59Z")) - .withTimeZone("mqbcitlyyphtdwhm") - .withSchedule(new RecurrenceSchedule().withMinutes(Arrays.asList(758989911)) - .withHours(Arrays.asList(2057988261)) - .withWeekDays( - Arrays.asList(DaysOfWeek.SATURDAY, DaysOfWeek.WEDNESDAY, DaysOfWeek.SATURDAY, DaysOfWeek.THURSDAY)) - .withMonthDays(Arrays.asList(406785212, 1599563071, 1148299002)) - .withMonthlyOccurrences(Arrays.asList( - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.MONDAY) - .withOccurrence(1137923293) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(1214619883) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1449790272, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T17:32:17Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T01:40:59Z"), model.endTime()); - Assertions.assertEquals("mqbcitlyyphtdwhm", model.timeZone()); - Assertions.assertEquals(758989911, model.schedule().minutes().get(0)); - Assertions.assertEquals(2057988261, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.SATURDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(406785212, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.MONDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1137923293, 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 6cf768243bc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.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.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\":\"rkrfvlqwi\",\"typeProperties\":{\"recurrence\":{\"frequency\":\"Day\",\"interval\":862096390,\"startTime\":\"2021-01-25T07:32:55Z\",\"endTime\":\"2021-10-08T06:46:47Z\",\"timeZone\":\"lbqdxvxdfkdwk\",\"schedule\":{\"minutes\":[248937577,815850992,462109108,208237939],\"hours\":[239856664,1272427932,1347880889,1400698641],\"weekDays\":[\"Thursday\",\"Wednesday\",\"Tuesday\"],\"monthDays\":[333698935],\"monthlyOccurrences\":[{\"day\":\"Sunday\",\"occurrence\":1064820707,\"\":{\"is\":\"datadrecrrbkmzq\",\"xekql\":\"datagoapxdmxwetkj\",\"edfbfqwll\":\"datactdxargqff\",\"qzj\":\"datab\"}},{\"day\":\"Monday\",\"occurrence\":1818860634,\"\":{\"kiwum\":\"dataf\"}},{\"day\":\"Saturday\",\"occurrence\":158512843,\"\":{\"ecqwdosbsng\":\"datas\",\"cpwrgry\":\"dataiacwdxvlku\",\"zdtfthnjxid\":\"datablrqeqcdikcqc\"}}],\"\":{\"rrzuegindln\":\"datampyixgxtccmqzku\"}},\"\":{\"yracqmfji\":\"dataapszxqnjx\",\"oijtlhxlsxx\":\"datamcgz\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"ts\",\"name\":\"agvq\"},\"parameters\":{\"jr\":\"datardfxqhnwh\"}},{\"pipelineReference\":{\"referenceName\":\"dqlzggvocxi\",\"name\":\"mrdbqujy\"},\"parameters\":{\"mntlbfknxzc\":\"dataciaznpsvgupqwqs\",\"ccpbtvgiokz\":\"datauvjbfryortbres\",\"dwawomkzussgjmub\":\"datatpvs\",\"ekzcmfibbozkp\":\"datagjdluwbmwuj\"}},{\"pipelineReference\":{\"referenceName\":\"v\",\"name\":\"ymswfwckucs\"},\"parameters\":{\"vvomcjpjrxvsgga\":\"datafhqxhtcohrhw\"}}],\"description\":\"oenpihtgigaeeqg\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datazlfccpgeqix\"],\"\":{\"ld\":\"dataltqldlhhqpt\",\"nnb\":\"datamacaj\"}}") - .toObject(ScheduleTrigger.class); - Assertions.assertEquals("oenpihtgigaeeqg", model.description()); - Assertions.assertEquals("ts", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("agvq", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.DAY, model.recurrence().frequency()); - Assertions.assertEquals(862096390, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T07:32:55Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-08T06:46:47Z"), model.recurrence().endTime()); - Assertions.assertEquals("lbqdxvxdfkdwk", model.recurrence().timeZone()); - Assertions.assertEquals(248937577, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(239856664, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(333698935, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1064820707, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTrigger model = new ScheduleTrigger().withDescription("oenpihtgigaeeqg") - .withAnnotations(Arrays.asList("datazlfccpgeqix")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("ts").withName("agvq")) - .withParameters(mapOf("jr", "datardfxqhnwh")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("dqlzggvocxi").withName("mrdbqujy")) - .withParameters(mapOf("mntlbfknxzc", "dataciaznpsvgupqwqs", "ccpbtvgiokz", "datauvjbfryortbres", - "dwawomkzussgjmub", "datatpvs", "ekzcmfibbozkp", "datagjdluwbmwuj")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("v").withName("ymswfwckucs")) - .withParameters(mapOf("vvomcjpjrxvsgga", "datafhqxhtcohrhw")))) - .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.DAY) - .withInterval(862096390) - .withStartTime(OffsetDateTime.parse("2021-01-25T07:32:55Z")) - .withEndTime(OffsetDateTime.parse("2021-10-08T06:46:47Z")) - .withTimeZone("lbqdxvxdfkdwk") - .withSchedule( - new RecurrenceSchedule().withMinutes(Arrays.asList(248937577, 815850992, 462109108, 208237939)) - .withHours(Arrays.asList(239856664, 1272427932, 1347880889, 1400698641)) - .withWeekDays(Arrays.asList(DaysOfWeek.THURSDAY, DaysOfWeek.WEDNESDAY, DaysOfWeek.TUESDAY)) - .withMonthDays(Arrays.asList(333698935)) - .withMonthlyOccurrences(Arrays.asList( - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.SUNDAY) - .withOccurrence(1064820707) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.MONDAY) - .withOccurrence(1818860634) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.SATURDAY) - .withOccurrence(158512843) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTrigger.class); - Assertions.assertEquals("oenpihtgigaeeqg", model.description()); - Assertions.assertEquals("ts", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("agvq", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.DAY, model.recurrence().frequency()); - Assertions.assertEquals(862096390, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T07:32:55Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-08T06:46:47Z"), model.recurrence().endTime()); - Assertions.assertEquals("lbqdxvxdfkdwk", model.recurrence().timeZone()); - Assertions.assertEquals(248937577, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(239856664, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(333698935, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1064820707, 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 a0c045802f69..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.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.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\":\"NotSpecified\",\"interval\":702696908,\"startTime\":\"2021-12-10T14:45:18Z\",\"endTime\":\"2021-02-14T10:58:07Z\",\"timeZone\":\"jlfnjmwbtoqhy\",\"schedule\":{\"minutes\":[686607889,35659933],\"hours\":[972859584],\"weekDays\":[\"Saturday\"],\"monthDays\":[240675793,94288841,1033539808,1637467805],\"monthlyOccurrences\":[{\"day\":\"Tuesday\",\"occurrence\":783846634,\"\":{\"ajqzigqfeaqnbkc\":\"datagitjn\",\"zhczyhtjqtzlf\":\"dataoyqmbupbf\",\"nceowv\":\"dataqp\",\"cvmruxebsl\":\"dataqzxluozmedaqpqu\"}},{\"day\":\"Wednesday\",\"occurrence\":2066615687,\"\":{\"fefyggbacmn\":\"datactiso\",\"dxfstmbb\":\"datazjjrh\"}},{\"day\":\"Saturday\",\"occurrence\":1852769685,\"\":{\"cvksvflur\":\"dataty\",\"rohyecblvpwu\":\"datafnlhlfv\"}},{\"day\":\"Wednesday\",\"occurrence\":1090628733,\"\":{\"mgvipzvvrfplkemv\":\"datahmftshgcrcx\",\"wplyv\":\"datalgezyishipl\",\"pemcf\":\"datao\",\"zopwud\":\"dataxkifjvil\"}}],\"\":{\"gephqdoc\":\"databxaufowhmdpggakt\",\"ibbkly\":\"datagnomqwfwtwjzzy\",\"sfjwty\":\"dataelvhxutctakkdjus\",\"twgdlfgmuojnikwz\":\"datavknbucjy\"}},\"\":{\"zft\":\"datausaddmj\",\"xayswvpavu\":\"datafmzlgjce\",\"yclehagb\":\"dataisz\"}}}") - .toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.NOT_SPECIFIED, model.recurrence().frequency()); - Assertions.assertEquals(702696908, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-10T14:45:18Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T10:58:07Z"), model.recurrence().endTime()); - Assertions.assertEquals("jlfnjmwbtoqhy", model.recurrence().timeZone()); - Assertions.assertEquals(686607889, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(972859584, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.SATURDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(240675793, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(783846634, 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.NOT_SPECIFIED) - .withInterval(702696908) - .withStartTime(OffsetDateTime.parse("2021-12-10T14:45:18Z")) - .withEndTime(OffsetDateTime.parse("2021-02-14T10:58:07Z")) - .withTimeZone("jlfnjmwbtoqhy") - .withSchedule(new RecurrenceSchedule().withMinutes(Arrays.asList(686607889, 35659933)) - .withHours(Arrays.asList(972859584)) - .withWeekDays(Arrays.asList(DaysOfWeek.SATURDAY)) - .withMonthDays(Arrays.asList(240675793, 94288841, 1033539808, 1637467805)) - .withMonthlyOccurrences(Arrays.asList( - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.TUESDAY) - .withOccurrence(783846634) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(2066615687) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.SATURDAY) - .withOccurrence(1852769685) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(1090628733) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.NOT_SPECIFIED, model.recurrence().frequency()); - Assertions.assertEquals(702696908, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-10T14:45:18Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T10:58:07Z"), model.recurrence().endTime()); - Assertions.assertEquals("jlfnjmwbtoqhy", model.recurrence().timeZone()); - Assertions.assertEquals(686607889, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(972859584, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.SATURDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(240675793, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(783846634, 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 cb7e7f122329..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.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.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\":\"ljeh\",\"uri\":\"hxxuofn\",\"roles\":\"dataa\",\"parameters\":\"hzkvna\"}") - .toObject(ScriptAction.class); - Assertions.assertEquals("ljeh", model.name()); - Assertions.assertEquals("hxxuofn", model.uri()); - Assertions.assertEquals("hzkvna", model.parameters()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptAction model - = new ScriptAction().withName("ljeh").withUri("hxxuofn").withRoles("dataa").withParameters("hzkvna"); - model = BinaryData.fromObject(model).toObject(ScriptAction.class); - Assertions.assertEquals("ljeh", model.name()); - Assertions.assertEquals("hxxuofn", model.uri()); - Assertions.assertEquals("hzkvna", 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 cf06981ccdb4..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\":\"datattoplx\",\"type\":\"Timespan\",\"value\":\"dataliyikcnlb\",\"direction\":\"InputOutput\",\"size\":401356233}") - .toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.TIMESPAN, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT_OUTPUT, model.direction()); - Assertions.assertEquals(401356233, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityParameter model = new ScriptActivityParameter().withName("datattoplx") - .withType(ScriptActivityParameterType.TIMESPAN) - .withValue("dataliyikcnlb") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(401356233); - model = BinaryData.fromObject(model).toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.TIMESPAN, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT_OUTPUT, model.direction()); - Assertions.assertEquals(401356233, 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 e20c4a3e8e49..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\":\"datadselbcudxq\",\"type\":\"datarwwmukxk\",\"parameters\":[{\"name\":\"datafr\",\"type\":\"Int32\",\"value\":\"datat\",\"direction\":\"InputOutput\",\"size\":1691603559},{\"name\":\"datavzqi\",\"type\":\"Int64\",\"value\":\"datajodvkn\",\"direction\":\"Output\",\"size\":471985111},{\"name\":\"datahmhqucasfqod\",\"type\":\"Single\",\"value\":\"dataqfkjghlcfoa\",\"direction\":\"Output\",\"size\":754533951}]}") - .toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptActivityParameterType.INT32, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT_OUTPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1691603559, model.parameters().get(0).size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityScriptBlock model = new ScriptActivityScriptBlock().withText("datadselbcudxq") - .withType("datarwwmukxk") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datafr") - .withType(ScriptActivityParameterType.INT32) - .withValue("datat") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(1691603559), - new ScriptActivityParameter().withName("datavzqi") - .withType(ScriptActivityParameterType.INT64) - .withValue("datajodvkn") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(471985111), - new ScriptActivityParameter().withName("datahmhqucasfqod") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("dataqfkjghlcfoa") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(754533951))); - model = BinaryData.fromObject(model).toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptActivityParameterType.INT32, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT_OUTPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1691603559, 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 c40cbcbe8387..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"sb\",\"typeProperties\":{\"scriptBlockExecutionTimeout\":\"datacnwqeixyjlfobj\",\"scripts\":[{\"text\":\"datatsvnlod\",\"type\":\"datavcqowcglf\",\"parameters\":[{\"name\":\"datasyskivlz\",\"type\":\"Int32\",\"value\":\"datavlgcppns\",\"direction\":\"Output\",\"size\":1864282211}]}],\"logSettings\":{\"logDestination\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"urwgty\",\"parameters\":{\"d\":\"dataoxollc\"}},\"path\":\"datacjsktejcmh\"}}},\"linkedServiceName\":{\"referenceName\":\"eavbezzp\",\"parameters\":{\"whodfwvzxrfr\":\"datadvv\"}},\"policy\":{\"timeout\":\"datayktlofgpnswv\",\"retry\":\"dataekwpgdfpoqbekk\",\"retryIntervalInSeconds\":539669660,\"secureInput\":true,\"secureOutput\":true,\"\":{\"flgtq\":\"datawprbzfbdsnc\",\"jomnkeaiamh\":\"dataowtazqexwkkjx\",\"clzrot\":\"datajxud\",\"fkdf\":\"datairttlwuqgaaj\"}},\"name\":\"kmeeowdo\",\"description\":\"jaqfebtvnsk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"tsy\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"gomdqght\":\"datajcbzijnykf\",\"kkdb\":\"dataweltnev\",\"lieyyfqhndj\":\"datagurnxqiwgrj\",\"hsgpym\":\"datayovuyxccrajx\"}}],\"userProperties\":[{\"name\":\"sdj\",\"value\":\"datarlpsj\"},{\"name\":\"nnuqszy\",\"value\":\"dataoiufrqsmjgddbunx\"}],\"\":{\"whacurmmbun\":\"datataqsfphg\"}}") - .toObject(ScriptActivity.class); - Assertions.assertEquals("kmeeowdo", model.name()); - Assertions.assertEquals("jaqfebtvnsk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("tsy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sdj", model.userProperties().get(0).name()); - Assertions.assertEquals("eavbezzp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(539669660, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(ScriptActivityParameterType.INT32, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(1864282211, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("urwgty", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivity model = new ScriptActivity().withName("kmeeowdo") - .withDescription("jaqfebtvnsk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("tsy") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("sdj").withValue("datarlpsj"), - new UserProperty().withName("nnuqszy").withValue("dataoiufrqsmjgddbunx"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("eavbezzp") - .withParameters(mapOf("whodfwvzxrfr", "datadvv"))) - .withPolicy(new ActivityPolicy().withTimeout("datayktlofgpnswv") - .withRetry("dataekwpgdfpoqbekk") - .withRetryIntervalInSeconds(539669660) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withScriptBlockExecutionTimeout("datacnwqeixyjlfobj") - .withScripts(Arrays.asList(new ScriptActivityScriptBlock().withText("datatsvnlod") - .withType("datavcqowcglf") - .withParameters(Arrays.asList(new ScriptActivityParameter().withName("datasyskivlz") - .withType(ScriptActivityParameterType.INT32) - .withValue("datavlgcppns") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1864282211))))) - .withLogSettings(new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.EXTERNAL_STORE) - .withLogLocationSettings(new LogLocationSettings().withLinkedServiceName( - new LinkedServiceReference().withReferenceName("urwgty").withParameters(mapOf("d", "dataoxollc"))) - .withPath("datacjsktejcmh"))); - model = BinaryData.fromObject(model).toObject(ScriptActivity.class); - Assertions.assertEquals("kmeeowdo", model.name()); - Assertions.assertEquals("jaqfebtvnsk", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("tsy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sdj", model.userProperties().get(0).name()); - Assertions.assertEquals("eavbezzp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(539669660, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(ScriptActivityParameterType.INT32, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(1864282211, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("urwgty", - 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 6b0a7f253a6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.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.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\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"jqysfe\",\"parameters\":{\"hfgafznzemisqun\":\"dataiogwckvoxl\",\"uvtbptdeumlfszx\":\"datawosanchr\",\"gp\":\"datarabknkeo\",\"wsnccmunh\":\"datadcrnubntowohtu\"}},\"path\":\"datacsgczv\"}}") - .toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logDestination()); - Assertions.assertEquals("jqysfe", model.logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityTypePropertiesLogSettings model - = new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.EXTERNAL_STORE) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jqysfe") - .withParameters(mapOf("hfgafznzemisqun", "dataiogwckvoxl", "uvtbptdeumlfszx", - "datawosanchr", "gp", "datarabknkeo", "wsnccmunh", "datadcrnubntowohtu"))) - .withPath("datacsgczv")); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logDestination()); - Assertions.assertEquals("jqysfe", 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 7f81dc79594d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"datalivvnyzc\",\"scripts\":[{\"text\":\"dataisuhareqyiadvv\",\"type\":\"datandfyelpnlpnyyux\",\"parameters\":[{\"name\":\"datafxsdntukoss\",\"type\":\"Decimal\",\"value\":\"datavuygeclyrtoshk\",\"direction\":\"Output\",\"size\":923591034},{\"name\":\"datazdnkgpvbvic\",\"type\":\"Decimal\",\"value\":\"databv\",\"direction\":\"Output\",\"size\":1502886890}]},{\"text\":\"datajghdfus\",\"type\":\"dataho\",\"parameters\":[{\"name\":\"dataynnm\",\"type\":\"Timespan\",\"value\":\"dataiighpxxwbetmqugo\",\"direction\":\"Output\",\"size\":1497199399}]},{\"text\":\"datalrbsfqrgjejabqv\",\"type\":\"dataohiqyazpxlyabj\",\"parameters\":[{\"name\":\"datasjfwurhkuxp\",\"type\":\"Guid\",\"value\":\"databgwgmygln\",\"direction\":\"Input\",\"size\":1386262224},{\"name\":\"datadsygdzzufr\",\"type\":\"Boolean\",\"value\":\"datawdglmfs\",\"direction\":\"InputOutput\",\"size\":45666387},{\"name\":\"datazlt\",\"type\":\"Boolean\",\"value\":\"datakfuovkgqtz\",\"direction\":\"InputOutput\",\"size\":988525427}]},{\"text\":\"datatz\",\"type\":\"datawoqmpgvx\",\"parameters\":[{\"name\":\"datasvykthxudowjwlte\",\"type\":\"Int64\",\"value\":\"datadcohsqufsyihsnz\",\"direction\":\"Input\",\"size\":1073338575},{\"name\":\"datag\",\"type\":\"DateTimeOffset\",\"value\":\"dataxjzalhun\",\"direction\":\"InputOutput\",\"size\":359226388}]}],\"logSettings\":{\"logDestination\":\"ActivityOutput\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"kshaulltvlylboq\",\"parameters\":{\"l\":\"dataxxgxncoaiy\",\"xakuq\":\"datavmdjzytao\"}},\"path\":\"dataiohanxlioj\"}}}") - .toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptActivityParameterType.DECIMAL, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(923591034, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logSettings().logDestination()); - Assertions.assertEquals("kshaulltvlylboq", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityTypeProperties model - = new ScriptActivityTypeProperties().withScriptBlockExecutionTimeout("datalivvnyzc") - .withScripts(Arrays.asList( - new ScriptActivityScriptBlock().withText("dataisuhareqyiadvv") - .withType("datandfyelpnlpnyyux") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datafxsdntukoss") - .withType(ScriptActivityParameterType.DECIMAL) - .withValue("datavuygeclyrtoshk") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(923591034), - new ScriptActivityParameter().withName("datazdnkgpvbvic") - .withType(ScriptActivityParameterType.DECIMAL) - .withValue("databv") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1502886890))), - new ScriptActivityScriptBlock().withText("datajghdfus") - .withType("dataho") - .withParameters(Arrays.asList(new ScriptActivityParameter().withName("dataynnm") - .withType(ScriptActivityParameterType.TIMESPAN) - .withValue("dataiighpxxwbetmqugo") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1497199399))), - new ScriptActivityScriptBlock().withText("datalrbsfqrgjejabqv") - .withType("dataohiqyazpxlyabj") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datasjfwurhkuxp") - .withType(ScriptActivityParameterType.GUID) - .withValue("databgwgmygln") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1386262224), - new ScriptActivityParameter().withName("datadsygdzzufr") - .withType(ScriptActivityParameterType.BOOLEAN) - .withValue("datawdglmfs") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(45666387), - new ScriptActivityParameter().withName("datazlt") - .withType(ScriptActivityParameterType.BOOLEAN) - .withValue("datakfuovkgqtz") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(988525427))), - new ScriptActivityScriptBlock().withText("datatz") - .withType("datawoqmpgvx") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datasvykthxudowjwlte") - .withType(ScriptActivityParameterType.INT64) - .withValue("datadcohsqufsyihsnz") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1073338575), - new ScriptActivityParameter().withName("datag") - .withType(ScriptActivityParameterType.DATE_TIME_OFFSET) - .withValue("dataxjzalhun") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(359226388))))) - .withLogSettings(new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.ACTIVITY_OUTPUT) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kshaulltvlylboq") - .withParameters(mapOf("l", "dataxxgxncoaiy", "xakuq", "datavmdjzytao"))) - .withPath("dataiohanxlioj"))); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptActivityParameterType.DECIMAL, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(923591034, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logSettings().logDestination()); - Assertions.assertEquals("kshaulltvlylboq", - 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 1f1f8a129b64..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\":\"hydwbdbfgrlp\"}").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 f48ba57c2b67..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\":false,\"secureOutput\":false}") - .toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(false, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureInputOutputPolicy model = new SecureInputOutputPolicy().withSecureInput(false).withSecureOutput(false); - model = BinaryData.fromObject(model).toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(false, 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 02cfbd9c7542..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\":\"qbeiv\",\"value\":\"xolriy\"}").toObject(SecureString.class); - Assertions.assertEquals("xolriy", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureString model = new SecureString().withValue("xolriy"); - model = BinaryData.fromObject(model).toObject(SecureString.class); - Assertions.assertEquals("xolriy", 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 7e1a9c927631..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\":\"q\",\"offset\":\"nvwaxmeyjimf\",\"size\":\"hcq\"}") - .toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("nvwaxmeyjimf", model.offset()); - Assertions.assertEquals("hcq", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfDependencyTumblingWindowTriggerReference model - = new SelfDependencyTumblingWindowTriggerReference().withOffset("nvwaxmeyjimf").withSize("hcq"); - model = BinaryData.fromObject(model).toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("nvwaxmeyjimf", model.offset()); - Assertions.assertEquals("hcq", 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 6eb3776cfd6c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.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.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\":\"gmtsavjcbpwxqpsr\",\"machineName\":\"ftguv\",\"hostServiceUri\":\"uhprwmdyvxqt\",\"status\":\"InitializeFailed\",\"capabilities\":{\"bycnojvkn\":\"wroyqbexrmcq\"},\"versionStatus\":\"fqsgzvahapjy\",\"version\":\"pvgqzcjrvxdjzlm\",\"registerTime\":\"2021-03-28T06:32:39Z\",\"lastConnectTime\":\"2021-07-11T22:18:52Z\",\"expiryTime\":\"2021-11-03T14:53:04Z\",\"lastStartTime\":\"2021-11-07T19:38:17Z\",\"lastStopTime\":\"2021-02-21T21:24:09Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-04-06T17:45:34Z\",\"lastEndUpdateTime\":\"2021-08-30T15:15:07Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":2116872834,\"maxConcurrentJobs\":1184758782,\"\":{\"jzuaejxdultskzbb\":\"dataprnxipeil\"}}") - .toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "gmtsavjcbpwxqpsr", "lastStartUpdateTime", - "2021-04-06T17:45:34Z", "lastConnectTime", "2021-07-11T22:18:52Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"bycnojvkn\":\"wroyqbexrmcq\"}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", "uhprwmdyvxqt", "registerTime", "2021-03-28T06:32:39Z", "maxConcurrentJobs", - 1184758782, "lastStopTime", "2021-02-21T21:24:09Z", "version", "pvgqzcjrvxdjzlm", "machineName", - "ftguv", "versionStatus", "fqsgzvahapjy", "concurrentJobsLimit", 2116872834, "lastEndUpdateTime", - "2021-08-30T15:15:07Z", "expiryTime", "2021-11-03T14:53:04Z", "lastStartTime", "2021-11-07T19:38:17Z", - "lastUpdateResult", "None", "isActiveDispatcher", false, "status", "InitializeFailed")); - 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 6215590704e7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.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.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-09-03T21:24:36Z\",\"taskQueueId\":\"vopvfgu\",\"internalChannelEncryption\":\"SslEncrypted\",\"version\":\"mwdqw\",\"nodes\":[{\"nodeName\":\"wzeleqpnkq\",\"machineName\":\"rumhaeqboig\",\"hostServiceUri\":\"xatwxiyarf\",\"status\":\"Offline\",\"capabilities\":{\"ruexhgdh\":\"tidzvvndpr\",\"pfopekyzdzvhyoid\":\"kplaseyltqx\",\"vzpqrxsifixo\":\"veqyje\",\"pwpuayxtvpiul\":\"vnylfutg\"},\"versionStatus\":\"b\",\"version\":\"mjrsmkjalor\",\"registerTime\":\"2021-10-31T11:34:50Z\",\"lastConnectTime\":\"2021-07-23T11:41:20Z\",\"expiryTime\":\"2021-11-24T03:52:34Z\",\"lastStartTime\":\"2021-11-03T15:28:53Z\",\"lastStopTime\":\"2021-04-25T12:51:57Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-10-12T04:43:20Z\",\"lastEndUpdateTime\":\"2021-09-26T14:51:21Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":674191876,\"maxConcurrentJobs\":553557202,\"\":{\"g\":\"datakkucwmj\"}},{\"nodeName\":\"twmskuqg\",\"machineName\":\"orqtr\",\"hostServiceUri\":\"eikqvaagnzbkqq\",\"status\":\"Initializing\",\"capabilities\":{\"omzvgjynuwcqu\":\"uc\"},\"versionStatus\":\"anqdmmrodpgtblm\",\"version\":\"lcbwvs\",\"registerTime\":\"2021-10-23T18:25:33Z\",\"lastConnectTime\":\"2021-09-09T10:01Z\",\"expiryTime\":\"2021-09-23T07:22:31Z\",\"lastStartTime\":\"2021-07-30T11:30:39Z\",\"lastStopTime\":\"2021-10-24T02:18:38Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-06-10T03:00:04Z\",\"lastEndUpdateTime\":\"2021-10-09T07:22:10Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":372484908,\"maxConcurrentJobs\":1239610602,\"\":{\"burbxovgjipbnngh\":\"datazcnxjvipehxl\",\"brsaeuzsojblyygf\":\"datajxwjnwgoxenhpyix\",\"teuyqtzo\":\"dataicuydrswq\",\"oqoafdvxrlrsrfrx\":\"dataaotrbnvoepht\"}},{\"nodeName\":\"mdjpspipkpcvhqa\",\"machineName\":\"casncgqui\",\"hostServiceUri\":\"qvatst\",\"status\":\"Offline\",\"capabilities\":{\"r\":\"cktjscjkexybx\",\"mbf\":\"jgptxvzhyun\"},\"versionStatus\":\"selblwmfudpntpsw\",\"version\":\"fktytrivfleqv\",\"registerTime\":\"2021-07-12T03:07:59Z\",\"lastConnectTime\":\"2021-07-09T08:56:23Z\",\"expiryTime\":\"2021-05-08T20:41:53Z\",\"lastStartTime\":\"2021-01-16T11:21:54Z\",\"lastStopTime\":\"2021-08-06T15:03:51Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-09-06T14:18:49Z\",\"lastEndUpdateTime\":\"2021-04-02T19:34:10Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":777618824,\"maxConcurrentJobs\":130802880,\"\":{\"bdhmxbyzfjgr\":\"datailhvtroxlybddx\"}},{\"nodeName\":\"brbmcrtvxjwpvqre\",\"machineName\":\"ui\",\"hostServiceUri\":\"lqwbrfiovpdl\",\"status\":\"Limited\",\"capabilities\":{\"sd\":\"iwerlbcetrvird\",\"yzegchtabhac\":\"wpvnloop\"},\"versionStatus\":\"fqzcklvvwvpfqt\",\"version\":\"zhmlnfvyhdhf\",\"registerTime\":\"2021-08-12T19:39:03Z\",\"lastConnectTime\":\"2021-02-09T04:53:23Z\",\"expiryTime\":\"2021-03-20T04:17:59Z\",\"lastStartTime\":\"2021-07-22T21:24:26Z\",\"lastStopTime\":\"2021-12-03T23:38:17Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-06-22T05:42:16Z\",\"lastEndUpdateTime\":\"2021-02-11T16:56:09Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1715409221,\"maxConcurrentJobs\":815203127,\"\":{\"yqtmdhb\":\"dataayehfzzi\",\"bejhxopehel\":\"datatkgmwxzlphzujkqa\"}}],\"scheduledUpdateDate\":\"2021-04-21T19:03:52Z\",\"updateDelayOffset\":\"hdapxdiibjjwue\",\"localTimeZoneOffset\":\"hqyhxhuhhnr\",\"capabilities\":{\"v\":\"zfkhfnzjffajh\"},\"serviceUrls\":[\"gciedlqvpdtrls\",\"srwlfgbuu\"],\"autoUpdate\":\"Off\",\"versionStatus\":\"tps\",\"links\":[{\"name\":\"fupnypluiv\",\"subscriptionId\":\"sel\",\"dataFactoryName\":\"zrpespeb\",\"dataFactoryLocation\":\"gzx\",\"createTime\":\"2021-11-26T17:46:18Z\"},{\"name\":\"fvflyqauu\",\"subscriptionId\":\"skimntxdvlqmnwhd\",\"dataFactoryName\":\"yvpduma\",\"dataFactoryLocation\":\"p\",\"createTime\":\"2021-04-01T14:53:53Z\"}],\"pushedVersion\":\"ettnmiufpbfqml\",\"latestVersion\":\"yqyekuw\",\"autoUpdateETA\":\"2021-11-04T23:26:01Z\",\"selfContainedInteractiveAuthoringEnabled\":true},\"dataFactoryName\":\"mydogrtfwzecgbxr\",\"state\":\"Stopping\",\"\":{\"wqbvanvgpxn\":\"datajdxii\",\"ruywrxnk\":\"dataaiitn\",\"xeovbgrqwfuxn\":\"datamaebdrxjsmrsea\",\"yl\":\"dataue\"}}") - .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", "wzeleqpnkq", - "lastStartUpdateTime", "2021-10-12T04:43:20Z", "lastConnectTime", "2021-07-23T11:41:20Z", - "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"ruexhgdh\":\"tidzvvndpr\",\"pfopekyzdzvhyoid\":\"kplaseyltqx\",\"vzpqrxsifixo\":\"veqyje\",\"pwpuayxtvpiul\":\"vnylfutg\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "xatwxiyarf", "registerTime", "2021-10-31T11:34:50Z", "maxConcurrentJobs", 553557202, - "lastStopTime", "2021-04-25T12:51:57Z", "version", "mjrsmkjalor", "machineName", "rumhaeqboig", - "versionStatus", "b", "concurrentJobsLimit", 674191876, "lastEndUpdateTime", "2021-09-26T14:51:21Z", - "expiryTime", "2021-11-24T03:52:34Z", "lastStartTime", "2021-11-03T15:28:53Z", "lastUpdateResult", - "Fail", "isActiveDispatcher", false, "status", "Offline")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "twmskuqg", - "lastStartUpdateTime", "2021-06-10T03:00:04Z", "lastConnectTime", "2021-09-09T10:01Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"omzvgjynuwcqu\":\"uc\"}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", "eikqvaagnzbkqq", "registerTime", "2021-10-23T18:25:33Z", "maxConcurrentJobs", - 1239610602, "lastStopTime", "2021-10-24T02:18:38Z", "version", "lcbwvs", "machineName", "orqtr", - "versionStatus", "anqdmmrodpgtblm", "concurrentJobsLimit", 372484908, "lastEndUpdateTime", - "2021-10-09T07:22:10Z", "expiryTime", "2021-09-23T07:22:31Z", "lastStartTime", "2021-07-30T11:30:39Z", - "lastUpdateResult", "Succeed", "isActiveDispatcher", true, "status", "Initializing")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "mdjpspipkpcvhqa", "lastStartUpdateTime", - "2021-09-06T14:18:49Z", "lastConnectTime", "2021-07-09T08:56:23Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"r\":\"cktjscjkexybx\",\"mbf\":\"jgptxvzhyun\"}", Object.class, - SerializerEncoding.JSON), - "hostServiceUri", "qvatst", "registerTime", "2021-07-12T03:07:59Z", "maxConcurrentJobs", 130802880, - "lastStopTime", "2021-08-06T15:03:51Z", "version", "fktytrivfleqv", "machineName", "casncgqui", - "versionStatus", "selblwmfudpntpsw", "concurrentJobsLimit", 777618824, "lastEndUpdateTime", - "2021-04-02T19:34:10Z", "expiryTime", "2021-05-08T20:41:53Z", "lastStartTime", - "2021-01-16T11:21:54Z", "lastUpdateResult", "Succeed", "isActiveDispatcher", false, "status", - "Offline")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "brbmcrtvxjwpvqre", "lastStartUpdateTime", - "2021-06-22T05:42:16Z", "lastConnectTime", "2021-02-09T04:53:23Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"sd\":\"iwerlbcetrvird\",\"yzegchtabhac\":\"wpvnloop\"}", Object.class, - SerializerEncoding.JSON), - "hostServiceUri", "lqwbrfiovpdl", "registerTime", "2021-08-12T19:39:03Z", "maxConcurrentJobs", - 815203127, "lastStopTime", "2021-12-03T23:38:17Z", "version", "zhmlnfvyhdhf", "machineName", "ui", - "versionStatus", "fqzcklvvwvpfqt", "concurrentJobsLimit", 1715409221, "lastEndUpdateTime", - "2021-02-11T16:56:09Z", "expiryTime", "2021-03-20T04:17:59Z", "lastStartTime", - "2021-07-22T21:24:26Z", "lastUpdateResult", "Succeed", "isActiveDispatcher", false, "status", - "Limited")))) - .withLinks(Arrays.asList(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 2ae7b9ed5c1f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.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.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-11-07T15:55:44Z\",\"taskQueueId\":\"tkviptqhatfgkhhb\",\"internalChannelEncryption\":\"SslEncrypted\",\"version\":\"gkd\",\"nodes\":[{\"nodeName\":\"hhbupqo\",\"machineName\":\"whvqih\",\"hostServiceUri\":\"hqjdcbgcemjti\",\"status\":\"Limited\",\"capabilities\":{\"raxil\":\"calyqz\",\"rhiehxjou\":\"dxcmpdmdsypks\"},\"versionStatus\":\"ehs\",\"version\":\"c\",\"registerTime\":\"2021-06-14T23:46:34Z\",\"lastConnectTime\":\"2021-07-02T12:32:20Z\",\"expiryTime\":\"2021-07-05T04:08:34Z\",\"lastStartTime\":\"2021-09-18T17:50:18Z\",\"lastStopTime\":\"2021-01-07T23:07:29Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-06-29T12:45:21Z\",\"lastEndUpdateTime\":\"2021-07-20T14:11:23Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1062834096,\"maxConcurrentJobs\":93393411,\"\":{\"fzwiztvucyackgk\":\"datapuku\",\"pcohfksixvwkp\":\"datavpmg\"}},{\"nodeName\":\"smurjab\",\"machineName\":\"xohagcojgmyzjd\",\"hostServiceUri\":\"qehrqtgdipb\",\"status\":\"Upgrading\",\"capabilities\":{\"g\":\"yu\",\"jyxyunypf\":\"zsebkbfykgmwurcx\",\"jxr\":\"vjgovbbn\",\"nk\":\"aqgmztlru\"},\"versionStatus\":\"upmqffgjsq\",\"version\":\"airoog\",\"registerTime\":\"2021-11-18T20:03:20Z\",\"lastConnectTime\":\"2021-07-02T09:43:33Z\",\"expiryTime\":\"2021-07-21T15:52:53Z\",\"lastStartTime\":\"2021-03-14T06:17:38Z\",\"lastStopTime\":\"2021-01-15T04:09:58Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-07-27T22:50:59Z\",\"lastEndUpdateTime\":\"2021-07-09T19:19:44Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1576744134,\"maxConcurrentJobs\":479771092,\"\":{\"ibtrwgljfa\":\"datarvtf\",\"phgimyomje\":\"dataezdxqhj\",\"uxkepga\":\"datalgnieeqjdfxxxnn\"}},{\"nodeName\":\"ijbiterqfuterrca\",\"machineName\":\"pfqddwwpg\",\"hostServiceUri\":\"awupqkv\",\"status\":\"Online\",\"capabilities\":{\"agw\":\"efrxzwvcvtjdq\",\"rpxj\":\"jafbdvpcdzdbjz\",\"ngvgjgcwwuusjjht\":\"raupirvdonka\"},\"versionStatus\":\"znrhig\",\"version\":\"xhgmfrnktsvwqda\",\"registerTime\":\"2021-12-05T12:31:27Z\",\"lastConnectTime\":\"2021-06-02T09:55:30Z\",\"expiryTime\":\"2021-11-11T22:05:39Z\",\"lastStartTime\":\"2021-03-05T22:36:17Z\",\"lastStopTime\":\"2021-08-24T07:44Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-07-14T19:29:42Z\",\"lastEndUpdateTime\":\"2021-12-03T04:46:12Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1620576978,\"maxConcurrentJobs\":2087234500,\"\":{\"ecweo\":\"dataasflg\",\"wvzapybdeea\":\"datalerpt\",\"eirjrkak\":\"dataigbpabacp\",\"bmazlxlbd\":\"datavnd\"}}],\"scheduledUpdateDate\":\"2021-05-27T01:49Z\",\"updateDelayOffset\":\"gqeyqrlg\",\"localTimeZoneOffset\":\"ypbekpardoad\",\"capabilities\":{\"bzmgzsytmp\":\"xzgy\",\"vsqsbqr\":\"slr\",\"jzijxefydck\":\"bpiqfstkdl\"},\"serviceUrls\":[\"z\"],\"autoUpdate\":\"On\",\"versionStatus\":\"kiwpadnh\",\"links\":[{\"name\":\"nit\",\"subscriptionId\":\"gotfrdlfewexbr\",\"dataFactoryName\":\"dyriy\",\"dataFactoryLocation\":\"ybigksnijclfdpr\",\"createTime\":\"2021-07-31T05:09:25Z\"},{\"name\":\"zxeigydd\",\"subscriptionId\":\"n\",\"dataFactoryName\":\"xerzypcral\",\"dataFactoryLocation\":\"cnmrbizxqldmhzb\",\"createTime\":\"2021-09-06T08:51:46Z\"},{\"name\":\"zlgyerm\",\"subscriptionId\":\"mnyuh\",\"dataFactoryName\":\"pbf\",\"dataFactoryLocation\":\"cbweab\",\"createTime\":\"2021-05-12T10:51:07Z\"}],\"pushedVersion\":\"kuquvcgvnomlcldo\",\"latestVersion\":\"huafu\",\"autoUpdateETA\":\"2020-12-26T05:11:47Z\",\"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", "hhbupqo", "lastStartUpdateTime", - "2021-06-29T12:45:21Z", "lastConnectTime", "2021-07-02T12:32:20Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"raxil\":\"calyqz\",\"rhiehxjou\":\"dxcmpdmdsypks\"}", Object.class, - SerializerEncoding.JSON), - "hostServiceUri", "hqjdcbgcemjti", "registerTime", "2021-06-14T23:46:34Z", - "maxConcurrentJobs", 93393411, "lastStopTime", "2021-01-07T23:07:29Z", "version", "c", - "machineName", "whvqih", "versionStatus", "ehs", "concurrentJobsLimit", 1062834096, - "lastEndUpdateTime", "2021-07-20T14:11:23Z", "expiryTime", "2021-07-05T04:08:34Z", - "lastStartTime", "2021-09-18T17:50:18Z", "lastUpdateResult", "None", "isActiveDispatcher", - false, "status", "Limited")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "smurjab", - "lastStartUpdateTime", "2021-07-27T22:50:59Z", "lastConnectTime", "2021-07-02T09:43:33Z", - "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"g\":\"yu\",\"jyxyunypf\":\"zsebkbfykgmwurcx\",\"jxr\":\"vjgovbbn\",\"nk\":\"aqgmztlru\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "qehrqtgdipb", "registerTime", "2021-11-18T20:03:20Z", "maxConcurrentJobs", - 479771092, "lastStopTime", "2021-01-15T04:09:58Z", "version", "airoog", "machineName", - "xohagcojgmyzjd", "versionStatus", "upmqffgjsq", "concurrentJobsLimit", 1576744134, - "lastEndUpdateTime", "2021-07-09T19:19:44Z", "expiryTime", "2021-07-21T15:52:53Z", - "lastStartTime", "2021-03-14T06:17:38Z", "lastUpdateResult", "Fail", "isActiveDispatcher", - false, "status", "Upgrading")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", - "ijbiterqfuterrca", "lastStartUpdateTime", "2021-07-14T19:29:42Z", "lastConnectTime", - "2021-06-02T09:55:30Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"agw\":\"efrxzwvcvtjdq\",\"rpxj\":\"jafbdvpcdzdbjz\",\"ngvgjgcwwuusjjht\":\"raupirvdonka\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "awupqkv", "registerTime", "2021-12-05T12:31:27Z", "maxConcurrentJobs", - 2087234500, "lastStopTime", "2021-08-24T07:44Z", "version", "xhgmfrnktsvwqda", "machineName", - "pfqddwwpg", "versionStatus", "znrhig", "concurrentJobsLimit", 1620576978, "lastEndUpdateTime", - "2021-12-03T04:46:12Z", "expiryTime", "2021-11-11T22:05:39Z", "lastStartTime", - "2021-03-05T22:36:17Z", "lastUpdateResult", "Succeed", "isActiveDispatcher", false, "status", - "Online")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime(), 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 43d8db718ade..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.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.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\":\"yciwbnqinr\",\"typeProperties\":{\"tableName\":\"datamjogxgr\"},\"description\":\"vvmrn\",\"structure\":\"datadijoxqswsychdc\",\"schema\":\"datagcmpnc\",\"linkedServiceName\":{\"referenceName\":\"qbgbnoqnow\",\"parameters\":{\"wjekyq\":\"dataeytz\",\"polnvgpppdilbdvx\":\"datarv\",\"x\":\"datafhlzzgaps\"}},\"parameters\":{\"roy\":{\"type\":\"Float\",\"defaultValue\":\"datacrmzquuzywkgoux\"},\"scifrzcwuejmxlfz\":{\"type\":\"String\",\"defaultValue\":\"dataesywywnvgy\"},\"hchraunjovlx\":{\"type\":\"Int\",\"defaultValue\":\"datayrgr\"},\"tlhzkrazk\":{\"type\":\"String\",\"defaultValue\":\"datamvzpniqwxmrgmnk\"}},\"annotations\":[\"datayecznvzmsvznghe\"],\"folder\":{\"name\":\"ehgvmmnoyz\"},\"\":{\"fu\":\"datanypluzypkfc\"}}") - .toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("vvmrn", model.description()); - Assertions.assertEquals("qbgbnoqnow", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("roy").type()); - Assertions.assertEquals("ehgvmmnoyz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowObjectDataset model = new ServiceNowObjectDataset().withDescription("vvmrn") - .withStructure("datadijoxqswsychdc") - .withSchema("datagcmpnc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qbgbnoqnow") - .withParameters(mapOf("wjekyq", "dataeytz", "polnvgpppdilbdvx", "datarv", "x", "datafhlzzgaps"))) - .withParameters(mapOf("roy", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datacrmzquuzywkgoux"), - "scifrzcwuejmxlfz", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataesywywnvgy"), - "hchraunjovlx", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datayrgr"), - "tlhzkrazk", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datamvzpniqwxmrgmnk"))) - .withAnnotations(Arrays.asList("datayecznvzmsvznghe")) - .withFolder(new DatasetFolder().withName("ehgvmmnoyz")) - .withTableName("datamjogxgr"); - model = BinaryData.fromObject(model).toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("vvmrn", model.description()); - Assertions.assertEquals("qbgbnoqnow", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("roy").type()); - Assertions.assertEquals("ehgvmmnoyz", 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 539f77fd9ff6..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\":\"ovwizjraks\",\"query\":\"dataljgaykaqwnk\",\"queryTimeout\":\"dataewshhqgjvchl\",\"additionalColumns\":\"datazfbtczzjf\",\"sourceRetryCount\":\"datawqpukltfk\",\"sourceRetryWait\":\"dataoxmisnbzczpfvqt\",\"maxConcurrentConnections\":\"datakcfe\",\"disableMetricsCollection\":\"datazknhcvxf\",\"\":{\"ysdmovbvnjyq\":\"datagrnh\",\"kczolndwrggyt\":\"dataofdgzl\",\"ukfwmhzarrfttx\":\"datavoxnjbyjgobzj\",\"vvab\":\"dataifrjgvhone\"}}") - .toObject(ServiceNowSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowSource model = new ServiceNowSource().withSourceRetryCount("datawqpukltfk") - .withSourceRetryWait("dataoxmisnbzczpfvqt") - .withMaxConcurrentConnections("datakcfe") - .withDisableMetricsCollection("datazknhcvxf") - .withQueryTimeout("dataewshhqgjvchl") - .withAdditionalColumns("datazfbtczzjf") - .withQuery("dataljgaykaqwnk"); - 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 370ea218025c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2ObjectDatasetTests.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.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\":\"vyjehyvnfjngo\",\"typeProperties\":{\"tableName\":\"dataaxtmvmycvjpaxjd\"},\"description\":\"rdvhbgtuhwh\",\"structure\":\"datanwenbphyl\",\"schema\":\"datazgz\",\"linkedServiceName\":{\"referenceName\":\"x\",\"parameters\":{\"etxpun\":\"datasebkc\",\"uiqr\":\"dataerma\"}},\"parameters\":{\"rwjbsycukbocsits\":{\"type\":\"String\",\"defaultValue\":\"dataubqwxvsxrbiyzjl\"},\"yqs\":{\"type\":\"Object\",\"defaultValue\":\"datasgzpwqieyxjkc\"},\"qepeftmub\":{\"type\":\"Object\",\"defaultValue\":\"datam\"},\"zeq\":{\"type\":\"Object\",\"defaultValue\":\"dataoepeqlhbtysy\"}},\"annotations\":[\"datapqnofkwhgy\"],\"folder\":{\"name\":\"yfdbvooelmik\"},\"\":{\"qmlmwjwsmnwb\":\"dataqykgjjsmvsi\",\"vque\":\"dataacvemmriyz\",\"lolxxhcyn\":\"dataxplcsinb\"}}") - .toObject(ServiceNowV2ObjectDataset.class); - Assertions.assertEquals("rdvhbgtuhwh", model.description()); - Assertions.assertEquals("x", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("rwjbsycukbocsits").type()); - Assertions.assertEquals("yfdbvooelmik", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowV2ObjectDataset model = new ServiceNowV2ObjectDataset().withDescription("rdvhbgtuhwh") - .withStructure("datanwenbphyl") - .withSchema("datazgz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("x") - .withParameters(mapOf("etxpun", "datasebkc", "uiqr", "dataerma"))) - .withParameters(mapOf("rwjbsycukbocsits", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataubqwxvsxrbiyzjl"), - "yqs", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datasgzpwqieyxjkc"), - "qepeftmub", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datam"), - "zeq", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataoepeqlhbtysy"))) - .withAnnotations(Arrays.asList("datapqnofkwhgy")) - .withFolder(new DatasetFolder().withName("yfdbvooelmik")) - .withTableName("dataaxtmvmycvjpaxjd"); - model = BinaryData.fromObject(model).toObject(ServiceNowV2ObjectDataset.class); - Assertions.assertEquals("rdvhbgtuhwh", model.description()); - Assertions.assertEquals("x", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("rwjbsycukbocsits").type()); - Assertions.assertEquals("yfdbvooelmik", 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 51aaab73ae6a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2SourceTests.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.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\":\"jqkkacw\",\"expression\":{\"type\":\"Constant\",\"value\":\"feslxwlm\",\"operator\":\"o\",\"operands\":[{\"type\":\"Field\",\"value\":\"blomidvic\",\"operator\":\"ufjahu\",\"operands\":[{\"type\":\"Field\",\"value\":\"cklthsuasnxdhlov\",\"operator\":\"rfdipsshxx\",\"operands\":[{},{},{}]},{\"type\":\"Field\",\"value\":\"yysvexpzsxbfnkj\",\"operator\":\"tynpbi\",\"operands\":[{},{},{}]},{\"type\":\"Constant\",\"value\":\"ahnlxcd\",\"operator\":\"ssdtysnlx\",\"operands\":[{},{},{},{}]}]}]},\"queryTimeout\":\"datafjjjzcxtzkoloos\",\"additionalColumns\":\"dataukqioqh\",\"sourceRetryCount\":\"dataqmxkxfmwbrvsl\",\"sourceRetryWait\":\"datarlaudemzrp\",\"maxConcurrentConnections\":\"datausujbibbgcloknh\",\"disableMetricsCollection\":\"dataqfynrdagmih\",\"\":{\"mqbmcmg\":\"dataflzpuibczlrewf\",\"wezplnzvrh\":\"datazapuunuyokftd\"}}") - .toObject(ServiceNowV2Source.class); - Assertions.assertEquals(ExpressionV2Type.CONSTANT, model.expression().type()); - Assertions.assertEquals("feslxwlm", model.expression().value()); - Assertions.assertEquals("o", model.expression().operator()); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.expression().operands().get(0).type()); - Assertions.assertEquals("blomidvic", model.expression().operands().get(0).value()); - Assertions.assertEquals("ufjahu", model.expression().operands().get(0).operator()); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.expression().operands().get(0).operands().get(0).type()); - Assertions.assertEquals("cklthsuasnxdhlov", model.expression().operands().get(0).operands().get(0).value()); - Assertions.assertEquals("rfdipsshxx", model.expression().operands().get(0).operands().get(0).operator()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowV2Source model - = new ServiceNowV2Source().withSourceRetryCount("dataqmxkxfmwbrvsl") - .withSourceRetryWait("datarlaudemzrp") - .withMaxConcurrentConnections("datausujbibbgcloknh") - .withDisableMetricsCollection("dataqfynrdagmih") - .withQueryTimeout("datafjjjzcxtzkoloos") - .withAdditionalColumns("dataukqioqh") - .withExpression( - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("feslxwlm") - .withOperator("o") - .withOperands( - Arrays - .asList(new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("blomidvic") - .withOperator("ufjahu") - .withOperands(Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("cklthsuasnxdhlov") - .withOperator("rfdipsshxx") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("yysvexpzsxbfnkj") - .withOperator("tynpbi") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("ahnlxcd") - .withOperator("ssdtysnlx") - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2(), new ExpressionV2()))))))); - model = BinaryData.fromObject(model).toObject(ServiceNowV2Source.class); - Assertions.assertEquals(ExpressionV2Type.CONSTANT, model.expression().type()); - Assertions.assertEquals("feslxwlm", model.expression().value()); - Assertions.assertEquals("o", model.expression().operator()); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.expression().operands().get(0).type()); - Assertions.assertEquals("blomidvic", model.expression().operands().get(0).value()); - Assertions.assertEquals("ufjahu", model.expression().operands().get(0).operator()); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.expression().operands().get(0).operands().get(0).type()); - Assertions.assertEquals("cklthsuasnxdhlov", model.expression().operands().get(0).operands().get(0).value()); - Assertions.assertEquals("rfdipsshxx", model.expression().operands().get(0).operands().get(0).operator()); - } -} 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 168680014c09..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.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.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\":\"zd\",\"typeProperties\":{\"variableName\":\"rkvhgn\",\"value\":\"dataxmmpuksvoimdg\",\"setSystemVariable\":false},\"policy\":{\"secureInput\":false,\"secureOutput\":false},\"name\":\"ggghwxpgftshcss\",\"description\":\"eplpphfezzgnwx\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"zgvtjrobowhcvssm\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"o\":\"datalxrgqmuth\"}},{\"activity\":\"dmhypptfppmu\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"z\":\"datahgwqqtbubkyi\"}},{\"activity\":\"hitdqmbo\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"drkolpnebn\":\"datasitgpzablkcvkm\",\"jdbdjxvcxepjfxcm\":\"dataafvks\"}}],\"userProperties\":[{\"name\":\"vwcmt\",\"value\":\"dataetflirbvqkbxg\"},{\"name\":\"epinyursqfhrzpy\",\"value\":\"datamfipvgmlf\"},{\"name\":\"bwfxssxarxvftlls\",\"value\":\"dataqa\"},{\"name\":\"kd\",\"value\":\"datagr\"}],\"\":{\"y\":\"datatfky\"}}") - .toObject(SetVariableActivity.class); - Assertions.assertEquals("ggghwxpgftshcss", model.name()); - Assertions.assertEquals("eplpphfezzgnwx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("zgvtjrobowhcvssm", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vwcmt", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("rkvhgn", model.variableName()); - Assertions.assertEquals(false, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivity model - = new SetVariableActivity().withName("ggghwxpgftshcss") - .withDescription("eplpphfezzgnwx") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("zgvtjrobowhcvssm") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dmhypptfppmu") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hitdqmbo") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("vwcmt").withValue("dataetflirbvqkbxg"), - new UserProperty().withName("epinyursqfhrzpy").withValue("datamfipvgmlf"), - new UserProperty().withName("bwfxssxarxvftlls").withValue("dataqa"), - new UserProperty().withName("kd").withValue("datagr"))) - .withPolicy(new SecureInputOutputPolicy().withSecureInput(false).withSecureOutput(false)) - .withVariableName("rkvhgn") - .withValue("dataxmmpuksvoimdg") - .withSetSystemVariable(false); - model = BinaryData.fromObject(model).toObject(SetVariableActivity.class); - Assertions.assertEquals("ggghwxpgftshcss", model.name()); - Assertions.assertEquals("eplpphfezzgnwx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("zgvtjrobowhcvssm", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vwcmt", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("rkvhgn", model.variableName()); - Assertions.assertEquals(false, 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 6436a4eddf8f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.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.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\":\"ujukcd\",\"value\":\"datapt\",\"setSystemVariable\":false}") - .toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("ujukcd", model.variableName()); - Assertions.assertEquals(false, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivityTypeProperties model = new SetVariableActivityTypeProperties().withVariableName("ujukcd") - .withValue("datapt") - .withSetSystemVariable(false); - model = BinaryData.fromObject(model).toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("ujukcd", model.variableName()); - Assertions.assertEquals(false, 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 a1f68eb1bc88..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\":\"fdk\",\"folderPath\":\"datayvndjokgwesym\",\"fileName\":\"datahrqpfzl\",\"\":{\"aujqbbgsimwejlwb\":\"datatznxlu\"}}") - .toObject(SftpLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpLocation model = new SftpLocation().withFolderPath("datayvndjokgwesym").withFileName("datahrqpfzl"); - 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 a707993f7520..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\":\"kletlwa\",\"recursive\":\"datahxphxokdbv\",\"wildcardFolderPath\":\"dataqttusuxxb\",\"wildcardFileName\":\"datapvue\",\"enablePartitionDiscovery\":\"datarnnwgrxzcn\",\"partitionRootPath\":\"datauezxluimkwbwmg\",\"fileListPath\":\"dataqlsn\",\"deleteFilesAfterCompletion\":\"datachpcjztziu\",\"modifiedDatetimeStart\":\"datayvpcfvi\",\"modifiedDatetimeEnd\":\"dataxciunet\",\"disableChunking\":\"datagd\",\"maxConcurrentConnections\":\"datazbp\",\"disableMetricsCollection\":\"dataxvftjdrqgionmoky\",\"\":{\"ymbeeyskbq\":\"datad\",\"jgxdhgezyhph\":\"datacakle\"}}") - .toObject(SftpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpReadSettings model = new SftpReadSettings().withMaxConcurrentConnections("datazbp") - .withDisableMetricsCollection("dataxvftjdrqgionmoky") - .withRecursive("datahxphxokdbv") - .withWildcardFolderPath("dataqttusuxxb") - .withWildcardFileName("datapvue") - .withEnablePartitionDiscovery("datarnnwgrxzcn") - .withPartitionRootPath("datauezxluimkwbwmg") - .withFileListPath("dataqlsn") - .withDeleteFilesAfterCompletion("datachpcjztziu") - .withModifiedDatetimeStart("datayvpcfvi") - .withModifiedDatetimeEnd("dataxciunet") - .withDisableChunking("datagd"); - 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 269ee58fd774..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\":\"rtoxsthjyyiryb\",\"operationTimeout\":\"dataawfwws\",\"useTempFileRename\":\"datakbdozsspfwmf\",\"maxConcurrentConnections\":\"datamkmwdok\",\"disableMetricsCollection\":\"datayilho\",\"copyBehavior\":\"datatdioxgsrhxoyrgv\",\"metadata\":[{\"name\":\"datatmzglbplqhbrar\",\"value\":\"datadepsxufyqcqf\"}],\"\":{\"xgxbgochpxps\":\"dataye\"}}") - .toObject(SftpWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpWriteSettings model = new SftpWriteSettings().withMaxConcurrentConnections("datamkmwdok") - .withDisableMetricsCollection("datayilho") - .withCopyBehavior("datatdioxgsrhxoyrgv") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datatmzglbplqhbrar").withValue("datadepsxufyqcqf"))) - .withOperationTimeout("dataawfwws") - .withUseTempFileRename("datakbdozsspfwmf"); - 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 290cd7df6b96..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.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.SharePointOnlineListDatasetTypeProperties; - -public final class SharePointOnlineListDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model = BinaryData.fromString("{\"listName\":\"dataouoq\"}") - .toObject(SharePointOnlineListDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model - = new SharePointOnlineListDatasetTypeProperties().withListName("dataouoq"); - 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 ab0ce956d1ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.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.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\":\"yiyjxzxbt\",\"typeProperties\":{\"listName\":\"datavjgvjzykn\"},\"description\":\"nyzpu\",\"structure\":\"datarmdlkoabfcv\",\"schema\":\"databwxpmgyqshsasmr\",\"linkedServiceName\":{\"referenceName\":\"uy\",\"parameters\":{\"uuihkybgkyncyzj\":\"databxrgrztkyqgu\",\"vypmwdz\":\"datadfeemxiurpf\"}},\"parameters\":{\"llyd\":{\"type\":\"SecureString\",\"defaultValue\":\"dataoxppoqimyhxnpdg\"},\"c\":{\"type\":\"Float\",\"defaultValue\":\"datafdmz\"}},\"annotations\":[\"datavwlxd\",\"datanst\",\"dataeurd\",\"dataxklr\"],\"folder\":{\"name\":\"siznymwz\"},\"\":{\"ezxevltfe\":\"datakihqhnfubevwadx\",\"mftwrphmriipzgfo\":\"dataqoqiaklqakpsti\",\"dcjqneaqkgttbarg\":\"datau\",\"jjpfyxhsppvjs\":\"dataeynqlsnrgaxoyv\"}}") - .toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("nyzpu", model.description()); - Assertions.assertEquals("uy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("llyd").type()); - Assertions.assertEquals("siznymwz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListResourceDataset model = new SharePointOnlineListResourceDataset().withDescription("nyzpu") - .withStructure("datarmdlkoabfcv") - .withSchema("databwxpmgyqshsasmr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uy") - .withParameters(mapOf("uuihkybgkyncyzj", "databxrgrztkyqgu", "vypmwdz", "datadfeemxiurpf"))) - .withParameters(mapOf("llyd", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataoxppoqimyhxnpdg"), - "c", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafdmz"))) - .withAnnotations(Arrays.asList("datavwlxd", "datanst", "dataeurd", "dataxklr")) - .withFolder(new DatasetFolder().withName("siznymwz")) - .withListName("datavjgvjzykn"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("nyzpu", model.description()); - Assertions.assertEquals("uy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("llyd").type()); - Assertions.assertEquals("siznymwz", 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 3372a25c4267..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\":\"bprecgeregfthgj\",\"query\":\"dataxzdayzfuv\",\"httpRequestTimeout\":\"dataelmimmcc\",\"sourceRetryCount\":\"datanp\",\"sourceRetryWait\":\"datavafczgisegdei\",\"maxConcurrentConnections\":\"datalcdqxownbjkwgkgo\",\"disableMetricsCollection\":\"dataazmw\",\"\":{\"fjnozityqqoswksh\":\"datafejkrcg\",\"vaufxxvs\":\"datagfewflxby\",\"ismonwhazalftta\":\"dataldtmeendocqaptwk\",\"sve\":\"dataz\"}}") - .toObject(SharePointOnlineListSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListSource model = new SharePointOnlineListSource().withSourceRetryCount("datanp") - .withSourceRetryWait("datavafczgisegdei") - .withMaxConcurrentConnections("datalcdqxownbjkwgkgo") - .withDisableMetricsCollection("dataazmw") - .withQuery("dataxzdayzfuv") - .withHttpRequestTimeout("dataelmimmcc"); - 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 f3b1251e592d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.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.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\":\"qmbwcacwaaqa\",\"typeProperties\":{\"tableName\":\"dataefqhxy\"},\"description\":\"okyaxxratqlr\",\"structure\":\"databrcmmdtshzu\",\"schema\":\"dataucznbabowrcyrnmj\",\"linkedServiceName\":{\"referenceName\":\"ko\",\"parameters\":{\"mnaphrskmpeajzzy\":\"datazkkagvej\",\"r\":\"dataavamzmzfntte\",\"pjdr\":\"datatxytja\"}},\"parameters\":{\"vqmdmrac\":{\"type\":\"Array\",\"defaultValue\":\"datakvbfaehjjirvjqx\"},\"yzhcvlavy\":{\"type\":\"Float\",\"defaultValue\":\"datafdralihhsscy\"}},\"annotations\":[\"datandxrmyzvtiojtpd\",\"datau\",\"dataxaxoyj\"],\"folder\":{\"name\":\"twedi\"},\"\":{\"tmca\":\"datakteccxfnat\",\"cnbdq\":\"databqpmfhjik\"}}") - .toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("okyaxxratqlr", model.description()); - Assertions.assertEquals("ko", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vqmdmrac").type()); - Assertions.assertEquals("twedi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifyObjectDataset model = new ShopifyObjectDataset().withDescription("okyaxxratqlr") - .withStructure("databrcmmdtshzu") - .withSchema("dataucznbabowrcyrnmj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ko") - .withParameters( - mapOf("mnaphrskmpeajzzy", "datazkkagvej", "r", "dataavamzmzfntte", "pjdr", "datatxytja"))) - .withParameters(mapOf("vqmdmrac", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datakvbfaehjjirvjqx"), - "yzhcvlavy", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafdralihhsscy"))) - .withAnnotations(Arrays.asList("datandxrmyzvtiojtpd", "datau", "dataxaxoyj")) - .withFolder(new DatasetFolder().withName("twedi")) - .withTableName("dataefqhxy"); - model = BinaryData.fromObject(model).toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("okyaxxratqlr", model.description()); - Assertions.assertEquals("ko", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vqmdmrac").type()); - Assertions.assertEquals("twedi", 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 afbd0cbe0d93..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\":\"tpriicte\",\"query\":\"datae\",\"queryTimeout\":\"datayguothnucqktu\",\"additionalColumns\":\"datar\",\"sourceRetryCount\":\"datalbahmivtuph\",\"sourceRetryWait\":\"datayi\",\"maxConcurrentConnections\":\"datarfxft\",\"disableMetricsCollection\":\"datamnrziwkcpxg\",\"\":{\"qap\":\"dataou\"}}") - .toObject(ShopifySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifySource model = new ShopifySource().withSourceRetryCount("datalbahmivtuph") - .withSourceRetryWait("datayi") - .withMaxConcurrentConnections("datarfxft") - .withDisableMetricsCollection("datamnrziwkcpxg") - .withQueryTimeout("datayguothnucqktu") - .withAdditionalColumns("datar") - .withQuery("datae"); - 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 dafc8dbde16b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.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.SkipErrorFile; - -public final class SkipErrorFileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkipErrorFile model = BinaryData - .fromString("{\"fileMissing\":\"datakrynziudmhed\",\"dataInconsistency\":\"dataygwagvuioxjwztr\"}") - .toObject(SkipErrorFile.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkipErrorFile model - = new SkipErrorFile().withFileMissing("datakrynziudmhed").withDataInconsistency("dataygwagvuioxjwztr"); - 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 3777b5d283ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.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.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\":\"azburskuff\",\"typeProperties\":{\"schema\":\"datapncdocloepjz\",\"table\":\"databod\"},\"description\":\"bkvunn\",\"structure\":\"dataoasnzlawow\",\"schema\":\"datanixxwdqzur\",\"linkedServiceName\":{\"referenceName\":\"ukszk\",\"parameters\":{\"vvaeght\":\"datahh\",\"uvwa\":\"dataqonxvnmcyze\",\"shkmqfvbks\":\"dataesswbrnbox\",\"wowrmhmifhfutjy\":\"datasmq\"}},\"parameters\":{\"moygcax\":{\"type\":\"Bool\",\"defaultValue\":\"datatguqa\"},\"vgicxt\":{\"type\":\"SecureString\",\"defaultValue\":\"datadqr\"}},\"annotations\":[\"dataqgnsydksvjfgxgdp\",\"datavjk\",\"datacosc\",\"dataljjhcsgzooefzsdt\"],\"folder\":{\"name\":\"kaqdvwo\"},\"\":{\"tingzic\":\"datavfvhrqxrqgh\"}}") - .toObject(SnowflakeDataset.class); - Assertions.assertEquals("bkvunn", model.description()); - Assertions.assertEquals("ukszk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("moygcax").type()); - Assertions.assertEquals("kaqdvwo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDataset model = new SnowflakeDataset().withDescription("bkvunn") - .withStructure("dataoasnzlawow") - .withSchema("datanixxwdqzur") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ukszk") - .withParameters(mapOf("vvaeght", "datahh", "uvwa", "dataqonxvnmcyze", "shkmqfvbks", "dataesswbrnbox", - "wowrmhmifhfutjy", "datasmq"))) - .withParameters(mapOf("moygcax", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datatguqa"), "vgicxt", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datadqr"))) - .withAnnotations(Arrays.asList("dataqgnsydksvjfgxgdp", "datavjk", "datacosc", "dataljjhcsgzooefzsdt")) - .withFolder(new DatasetFolder().withName("kaqdvwo")) - .withSchemaTypePropertiesSchema("datapncdocloepjz") - .withTable("databod"); - model = BinaryData.fromObject(model).toObject(SnowflakeDataset.class); - Assertions.assertEquals("bkvunn", model.description()); - Assertions.assertEquals("ukszk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("moygcax").type()); - Assertions.assertEquals("kaqdvwo", 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 c048b72b61e3..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\":\"datayga\",\"table\":\"datahpwmdkyfgye\"}") - .toObject(SnowflakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDatasetTypeProperties model - = new SnowflakeDatasetTypeProperties().withSchema("datayga").withTable("datahpwmdkyfgye"); - 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 37faa27fba00..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.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.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\":\"mfom\",\"additionalCopyOptions\":{\"tabgejopvegmtgoe\":\"datayphdkxw\",\"bdjzcfdpxbwqgkfx\":\"datayhojdgwezcrss\",\"yevvuddnwj\":\"datadtj\",\"flemxbmaiiv\":\"databc\"},\"additionalFormatOptions\":{\"o\":\"datatzbkevh\",\"sis\":\"datajpumpqlugzydylf\"},\"\":{\"htkprbmcazrfh\":\"datavfnxxkmrf\",\"akjxduhqilv\":\"datajwik\",\"lfrfardjqwd\":\"datajctp\"}}") - .toObject(SnowflakeExportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeExportCopyCommand model = new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("tabgejopvegmtgoe", "datayphdkxw", "bdjzcfdpxbwqgkfx", "datayhojdgwezcrss", - "yevvuddnwj", "datadtj", "flemxbmaiiv", "databc")) - .withAdditionalFormatOptions(mapOf("o", "datatzbkevh", "sis", "datajpumpqlugzydylf")); - 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 067238d48f7f..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\":\"lb\",\"additionalCopyOptions\":{\"ezgbqi\":\"datanfqqlg\",\"aceokrarzkza\":\"datawe\",\"zomtzpukm\":\"dataznvyeuxd\"},\"additionalFormatOptions\":{\"nlfzq\":\"datalzb\",\"wzesejdcpcpeu\":\"datamxuo\",\"jrptltytbqhejhn\":\"databofzmvtwyjc\"},\"\":{\"vygquiwcfqzo\":\"datafmeeuuurxgslxz\",\"irqkskyyam\":\"datagwwdevqmtejhvggy\",\"lmibvczdj\":\"datamimsyiwcdwqjbrrx\"}}") - .toObject(SnowflakeImportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeImportCopyCommand model = new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions( - mapOf("ezgbqi", "datanfqqlg", "aceokrarzkza", "datawe", "zomtzpukm", "dataznvyeuxd")) - .withAdditionalFormatOptions( - mapOf("nlfzq", "datalzb", "wzesejdcpcpeu", "datamxuo", "jrptltytbqhejhn", "databofzmvtwyjc")); - 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 4b8f13e7eca7..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\":\"kbr\",\"preCopyScript\":\"datau\",\"importSettings\":{\"type\":\"ooytilsmise\",\"additionalCopyOptions\":{\"lvwtslzblgvezhim\":\"dataskynkkezkv\",\"dzkovt\":\"dataiyqwlxkyoysyutnr\"},\"additionalFormatOptions\":{\"xmyblway\":\"datacaprxh\",\"wyfy\":\"datapaggkrumpu\",\"jdrvjktvpy\":\"datahcboipxhghicwv\"},\"\":{\"qu\":\"datajmm\",\"zh\":\"datacrzgluqacebcn\",\"wkgcpfz\":\"dataaumjuruspflvgl\"}},\"writeBatchSize\":\"datawvxwqqmvsrbmf\",\"writeBatchTimeout\":\"datatm\",\"sinkRetryCount\":\"dataob\",\"sinkRetryWait\":\"dataoyownygbralc\",\"maxConcurrentConnections\":\"dataebyczwegt\",\"disableMetricsCollection\":\"dataprazqxxvksqi\",\"\":{\"cmegoll\":\"datamidvturdgl\",\"pryhz\":\"datal\"}}") - .toObject(SnowflakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSink model = new SnowflakeSink().withWriteBatchSize("datawvxwqqmvsrbmf") - .withWriteBatchTimeout("datatm") - .withSinkRetryCount("dataob") - .withSinkRetryWait("dataoyownygbralc") - .withMaxConcurrentConnections("dataebyczwegt") - .withDisableMetricsCollection("dataprazqxxvksqi") - .withPreCopyScript("datau") - .withImportSettings(new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions( - mapOf("lvwtslzblgvezhim", "dataskynkkezkv", "dzkovt", "dataiyqwlxkyoysyutnr")) - .withAdditionalFormatOptions( - mapOf("xmyblway", "datacaprxh", "wyfy", "datapaggkrumpu", "jdrvjktvpy", "datahcboipxhghicwv"))); - 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 bcfaac92e47b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.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.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\":\"tjjewezcknp\",\"query\":\"datartldijgrbi\",\"exportSettings\":{\"type\":\"natbecuh\",\"additionalCopyOptions\":{\"wgbajmgctwamj\":\"datajtw\",\"pedmkxtdy\":\"datawvmugistnyzmhh\",\"m\":\"datazgfqtgf\",\"jsrcqpxaajt\":\"datacvblrvkqxhk\"},\"additionalFormatOptions\":{\"azmxssbv\":\"dataqtuztzmubxngs\"},\"\":{\"aousj\":\"datakkewg\"}},\"sourceRetryCount\":\"datavahqjdi\",\"sourceRetryWait\":\"dataoldwahe\",\"maxConcurrentConnections\":\"datadicxolmm\",\"disableMetricsCollection\":\"datad\",\"\":{\"vogrripopzyde\":\"dataoiwbmjqvmpzc\",\"rgwy\":\"datapwwkdmsnezdumjqd\",\"sveaerg\":\"databqmelmqkbepie\",\"ksknst\":\"datajbrnlbfnuppw\"}}") - .toObject(SnowflakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSource model = new SnowflakeSource().withSourceRetryCount("datavahqjdi") - .withSourceRetryWait("dataoldwahe") - .withMaxConcurrentConnections("datadicxolmm") - .withDisableMetricsCollection("datad") - .withQuery("datartldijgrbi") - .withExportSettings(new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("wgbajmgctwamj", "datajtw", "pedmkxtdy", "datawvmugistnyzmhh", "m", - "datazgfqtgf", "jsrcqpxaajt", "datacvblrvkqxhk")) - .withAdditionalFormatOptions(mapOf("azmxssbv", "dataqtuztzmubxngs"))); - 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 8328e5a2b521..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.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.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\":\"ixfzau\",\"typeProperties\":{\"schema\":\"datapuqyrpubbkhcidc\",\"table\":\"dataoolkugzowg\"},\"description\":\"blnagjnpahzhpqsc\",\"structure\":\"dataileqjzrijebmuio\",\"schema\":\"datamndwohoeashuxfvb\",\"linkedServiceName\":{\"referenceName\":\"imzwynsmmphvkye\",\"parameters\":{\"ofzrk\":\"dataeyuoyjmjwqdslqr\",\"symnrtvqmima\":\"dataztpyaymhxlnmwa\",\"vzxx\":\"datayotpcvpahhpkvyq\",\"tominrufq\":\"datand\"}},\"parameters\":{\"ewk\":{\"type\":\"Float\",\"defaultValue\":\"dataasfmhbx\"},\"vuzcc\":{\"type\":\"Array\",\"defaultValue\":\"datat\"},\"hlc\":{\"type\":\"Float\",\"defaultValue\":\"datarybytcaqpj\"}},\"annotations\":[\"datavxyyhhsisz\",\"dataqfrpanteqiw\"],\"folder\":{\"name\":\"kaamim\"},\"\":{\"rjgyindexijov\":\"datacxysjdfxvksi\"}}") - .toObject(SnowflakeV2Dataset.class); - Assertions.assertEquals("blnagjnpahzhpqsc", model.description()); - Assertions.assertEquals("imzwynsmmphvkye", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ewk").type()); - Assertions.assertEquals("kaamim", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Dataset model = new SnowflakeV2Dataset().withDescription("blnagjnpahzhpqsc") - .withStructure("dataileqjzrijebmuio") - .withSchema("datamndwohoeashuxfvb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("imzwynsmmphvkye") - .withParameters(mapOf("ofzrk", "dataeyuoyjmjwqdslqr", "symnrtvqmima", "dataztpyaymhxlnmwa", "vzxx", - "datayotpcvpahhpkvyq", "tominrufq", "datand"))) - .withParameters(mapOf("ewk", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataasfmhbx"), "vuzcc", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datat"), "hlc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datarybytcaqpj"))) - .withAnnotations(Arrays.asList("datavxyyhhsisz", "dataqfrpanteqiw")) - .withFolder(new DatasetFolder().withName("kaamim")) - .withSchemaTypePropertiesSchema("datapuqyrpubbkhcidc") - .withTable("dataoolkugzowg"); - model = BinaryData.fromObject(model).toObject(SnowflakeV2Dataset.class); - Assertions.assertEquals("blnagjnpahzhpqsc", model.description()); - Assertions.assertEquals("imzwynsmmphvkye", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ewk").type()); - Assertions.assertEquals("kaamim", 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 e0e7e745b100..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.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.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\":\"vg\",\"preCopyScript\":\"dataefezjyfaqdwf\",\"importSettings\":{\"type\":\"jncaqgt\",\"additionalCopyOptions\":{\"qziljrsycujnszn\":\"dataalxxgela\",\"pixuyyqsonfxsf\":\"dataskwjjupukh\",\"ytedspkduhz\":\"dataedjnxicufxt\",\"ttesqpjcuuy\":\"datavbgcf\"},\"additionalFormatOptions\":{\"m\":\"dataind\"},\"\":{\"agagmgullnash\":\"datahtlopbnsbjzrnj\",\"betzcdbqzw\":\"dataoxrma\",\"wpllojdccd\":\"datatakbvaqguaubm\",\"jrcrbkw\":\"dataewtddigmmjve\"}},\"writeBatchSize\":\"datau\",\"writeBatchTimeout\":\"datamjcemkcwc\",\"sinkRetryCount\":\"datahqjpiafzwhrgm\",\"sinkRetryWait\":\"datatroafzrqmog\",\"maxConcurrentConnections\":\"datajrryzbqpksoa\",\"disableMetricsCollection\":\"datazuhuojjbkyddsdg\",\"\":{\"shnksupchzspgby\":\"datacqkbetemam\",\"vuhgchtaea\":\"dataumxyqhctr\",\"zuk\":\"databqkx\"}}") - .toObject(SnowflakeV2Sink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Sink model = new SnowflakeV2Sink().withWriteBatchSize("datau") - .withWriteBatchTimeout("datamjcemkcwc") - .withSinkRetryCount("datahqjpiafzwhrgm") - .withSinkRetryWait("datatroafzrqmog") - .withMaxConcurrentConnections("datajrryzbqpksoa") - .withDisableMetricsCollection("datazuhuojjbkyddsdg") - .withPreCopyScript("dataefezjyfaqdwf") - .withImportSettings(new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions(mapOf("qziljrsycujnszn", "dataalxxgela", "pixuyyqsonfxsf", "dataskwjjupukh", - "ytedspkduhz", "dataedjnxicufxt", "ttesqpjcuuy", "datavbgcf")) - .withAdditionalFormatOptions(mapOf("m", "dataind"))); - 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 6569676d430b..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\":\"hvupbiouuqo\",\"query\":\"dataw\",\"exportSettings\":{\"type\":\"cenjctcxamuplxks\",\"additionalCopyOptions\":{\"cxctnijxyczzwh\":\"datadcawazqldakbi\"},\"additionalFormatOptions\":{\"lnuhocbbeoxoewp\":\"datadnqiavoyhno\",\"yuasstokzhmyayb\":\"datatzofcurnhujcu\"},\"\":{\"s\":\"datayubytslfmajswrf\",\"losl\":\"datagvkqz\",\"uxcffbsnlvissyzw\":\"dataufnhejualug\",\"mesoxjkpwbgfhj\":\"datazdyzufgnnsoj\"}},\"sourceRetryCount\":\"dataxtwsreadghlokvis\",\"sourceRetryWait\":\"datamheimsioonn\",\"maxConcurrentConnections\":\"datagrtkeg\",\"disableMetricsCollection\":\"datavwff\",\"\":{\"kksdjkanizdcjx\":\"datauxpyveavstzbz\",\"hivfosbrqeywhlq\":\"datazpmwxvfrmvtwwb\"}}") - .toObject(SnowflakeV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Source model - = new SnowflakeV2Source().withSourceRetryCount("dataxtwsreadghlokvis") - .withSourceRetryWait("datamheimsioonn") - .withMaxConcurrentConnections("datagrtkeg") - .withDisableMetricsCollection("datavwff") - .withQuery("dataw") - .withExportSettings(new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("cxctnijxyczzwh", "datadcawazqldakbi")) - .withAdditionalFormatOptions( - mapOf("lnuhocbbeoxoewp", "datadnqiavoyhno", "yuasstokzhmyayb", "datatzofcurnhujcu"))); - 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 a1388c4e2c4b..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\":\"datansqtrtcacdomz\"}") - .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("datansqtrtcacdomz"); - 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 277660af4f23..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\":\"dataxwhxrztdacrqcwkk\",\"table\":\"dataysyajmm\",\"schema\":\"dataupdc\"}") - .toObject(SparkDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkDatasetTypeProperties model = new SparkDatasetTypeProperties().withTableName("dataxwhxrztdacrqcwkk") - .withTable("dataysyajmm") - .withSchema("dataupdc"); - 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 2a5e4c6db782..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.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.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\":\"brhhvipgt\",\"typeProperties\":{\"tableName\":\"datarchmyuc\",\"table\":\"datamwyvhdiyp\",\"schema\":\"dataqqq\"},\"description\":\"aaoylwhfmkbwe\",\"structure\":\"datagypjixdmobadydw\",\"schema\":\"datauwdvclsxdqdc\",\"linkedServiceName\":{\"referenceName\":\"nzi\",\"parameters\":{\"gd\":\"datargsrwxxqkwargc\"}},\"parameters\":{\"gflhdhoxur\":{\"type\":\"Int\",\"defaultValue\":\"dataiqexqwqykmv\"},\"vmbgyvxhfmu\":{\"type\":\"Float\",\"defaultValue\":\"datankvthwta\"},\"ucqico\":{\"type\":\"Object\",\"defaultValue\":\"dataz\"},\"utpdwneec\":{\"type\":\"Int\",\"defaultValue\":\"datavbeqzjdwx\"}},\"annotations\":[\"datalxug\",\"datarwvn\",\"datafaofkvfruxz\"],\"folder\":{\"name\":\"vhgykz\"},\"\":{\"gubqkfnoxhvoyj\":\"datatvymdqaymqmyrn\",\"xwejuguvnx\":\"datagfkrqsjrvpakxrde\",\"yfenrozoijoxcbpk\":\"dataohpzurnzoytkbea\",\"pan\":\"datawseacbtaxd\"}}") - .toObject(SparkObjectDataset.class); - Assertions.assertEquals("aaoylwhfmkbwe", model.description()); - Assertions.assertEquals("nzi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gflhdhoxur").type()); - Assertions.assertEquals("vhgykz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkObjectDataset model = new SparkObjectDataset().withDescription("aaoylwhfmkbwe") - .withStructure("datagypjixdmobadydw") - .withSchema("datauwdvclsxdqdc") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("nzi").withParameters(mapOf("gd", "datargsrwxxqkwargc"))) - .withParameters(mapOf("gflhdhoxur", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataiqexqwqykmv"), - "vmbgyvxhfmu", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datankvthwta"), "ucqico", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataz"), "utpdwneec", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datavbeqzjdwx"))) - .withAnnotations(Arrays.asList("datalxug", "datarwvn", "datafaofkvfruxz")) - .withFolder(new DatasetFolder().withName("vhgykz")) - .withTableName("datarchmyuc") - .withTable("datamwyvhdiyp") - .withSchemaTypePropertiesSchema("dataqqq"); - model = BinaryData.fromObject(model).toObject(SparkObjectDataset.class); - Assertions.assertEquals("aaoylwhfmkbwe", model.description()); - Assertions.assertEquals("nzi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gflhdhoxur").type()); - Assertions.assertEquals("vhgykz", 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 09d7b5c79176..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\":\"d\",\"query\":\"datartxggmp\",\"queryTimeout\":\"dataukn\",\"additionalColumns\":\"datanjhywgziqcwn\",\"sourceRetryCount\":\"dataptln\",\"sourceRetryWait\":\"datal\",\"maxConcurrentConnections\":\"datawbneszxnmgeuoih\",\"disableMetricsCollection\":\"datakfiwpgxyavcbdsu\",\"\":{\"p\":\"datavbhcjfgxtljyrey\",\"ivhk\":\"datatwzr\"}}") - .toObject(SparkSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkSource model = new SparkSource().withSourceRetryCount("dataptln") - .withSourceRetryWait("datal") - .withMaxConcurrentConnections("datawbneszxnmgeuoih") - .withDisableMetricsCollection("datakfiwpgxyavcbdsu") - .withQueryTimeout("dataukn") - .withAdditionalColumns("datanjhywgziqcwn") - .withQuery("datartxggmp"); - 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 c4346dbba86f..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\":\"imbchi\",\"sqlReaderQuery\":\"datawzttkhyrwdsnpuoa\",\"sqlReaderStoredProcedureName\":\"datafpizybpjypqat\",\"storedProcedureParameters\":\"dataghw\",\"isolationLevel\":\"datawrbmxw\",\"partitionOption\":\"datakkffwf\",\"partitionSettings\":{\"partitionColumnName\":\"datae\",\"partitionUpperBound\":\"datamhsqyjsw\",\"partitionLowerBound\":\"datahafcoayuq\"},\"queryTimeout\":\"datajtsemnidbaykvlrs\",\"additionalColumns\":\"dataniocyo\",\"sourceRetryCount\":\"datawaffsjqn\",\"sourceRetryWait\":\"datacybugojzcarg\",\"maxConcurrentConnections\":\"datamaw\",\"disableMetricsCollection\":\"dataaagazryyjjwggpc\",\"\":{\"sj\":\"datawddobp\",\"gwkqnmhfml\":\"dataexedzmmcgqifhyhz\",\"qkdmpf\":\"dataorvhthxcrwe\",\"veibntwikm\":\"datacrcelsnjftnfdcj\"}}") - .toObject(SqlDWSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlDWSource model = new SqlDWSource().withSourceRetryCount("datawaffsjqn") - .withSourceRetryWait("datacybugojzcarg") - .withMaxConcurrentConnections("datamaw") - .withDisableMetricsCollection("dataaagazryyjjwggpc") - .withQueryTimeout("datajtsemnidbaykvlrs") - .withAdditionalColumns("dataniocyo") - .withSqlReaderQuery("datawzttkhyrwdsnpuoa") - .withSqlReaderStoredProcedureName("datafpizybpjypqat") - .withStoredProcedureParameters("dataghw") - .withIsolationLevel("datawrbmxw") - .withPartitionOption("datakkffwf") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datae") - .withPartitionUpperBound("datamhsqyjsw") - .withPartitionLowerBound("datahafcoayuq")); - 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 4d17179cbb9f..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\":\"ltbpqjfoujeiagny\",\"sqlReaderQuery\":\"dataekmgpseassdqpwhp\",\"sqlReaderStoredProcedureName\":\"datadosfgbvsozjf\",\"storedProcedureParameters\":\"datawxcjciotlbpuemqe\",\"isolationLevel\":\"datao\",\"produceAdditionalTypes\":\"datavhhedc\",\"partitionOption\":\"datalycrldwccas\",\"partitionSettings\":{\"partitionColumnName\":\"datadvsorvhbyg\",\"partitionUpperBound\":\"datalxqlzzkbx\",\"partitionLowerBound\":\"datacgg\"},\"queryTimeout\":\"datakghlexvq\",\"additionalColumns\":\"datanwmokz\",\"sourceRetryCount\":\"datafjssayrwyf\",\"sourceRetryWait\":\"datatezxr\",\"maxConcurrentConnections\":\"datadhzwdyva\",\"disableMetricsCollection\":\"datav\",\"\":{\"qlshg\":\"dataexwhoscinpmvcvnm\",\"elazvcfhiayro\":\"dataym\"}}") - .toObject(SqlMISource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlMISource model = new SqlMISource().withSourceRetryCount("datafjssayrwyf") - .withSourceRetryWait("datatezxr") - .withMaxConcurrentConnections("datadhzwdyva") - .withDisableMetricsCollection("datav") - .withQueryTimeout("datakghlexvq") - .withAdditionalColumns("datanwmokz") - .withSqlReaderQuery("dataekmgpseassdqpwhp") - .withSqlReaderStoredProcedureName("datadosfgbvsozjf") - .withStoredProcedureParameters("datawxcjciotlbpuemqe") - .withIsolationLevel("datao") - .withProduceAdditionalTypes("datavhhedc") - .withPartitionOption("datalycrldwccas") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datadvsorvhbyg") - .withPartitionUpperBound("datalxqlzzkbx") - .withPartitionLowerBound("datacgg")); - 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 47399b368ef0..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\":\"datazrrapimtuojq\",\"partitionUpperBound\":\"datayymyy\",\"partitionLowerBound\":\"datafdkjykvezso\"}") - .toObject(SqlPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPartitionSettings model = new SqlPartitionSettings().withPartitionColumnName("datazrrapimtuojq") - .withPartitionUpperBound("datayymyy") - .withPartitionLowerBound("datafdkjykvezso"); - model = BinaryData.fromObject(model).toObject(SqlPartitionSettings.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 26becd0c1072..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\":\"oyyfysn\",\"sqlReaderQuery\":\"datazldplamcc\",\"sqlReaderStoredProcedureName\":\"datajrnveqleozqqwia\",\"storedProcedureParameters\":\"datawzyvbu\",\"isolationLevel\":\"datahysatoplqc\",\"produceAdditionalTypes\":\"datasrlzwuqkprf\",\"partitionOption\":\"datacowtoqfwbsbkob\",\"partitionSettings\":{\"partitionColumnName\":\"datasjhwhfcxwrj\",\"partitionUpperBound\":\"dataxmrsetttulswaj\",\"partitionLowerBound\":\"dataespfgmosiskih\"},\"queryTimeout\":\"datazgmxqa\",\"additionalColumns\":\"dataypxgoypo\",\"sourceRetryCount\":\"datajnl\",\"sourceRetryWait\":\"datacmhonojese\",\"maxConcurrentConnections\":\"dataxel\",\"disableMetricsCollection\":\"dataxwmpziy\",\"\":{\"wpcutzlvx\":\"datajswedkfofyfwpu\",\"vddwgozr\":\"dataolvedzrjkrpor\",\"dyhcwcgvyuuse\":\"dataglkmgcxmkrldfo\"}}") - .toObject(SqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerSource model = new SqlServerSource().withSourceRetryCount("datajnl") - .withSourceRetryWait("datacmhonojese") - .withMaxConcurrentConnections("dataxel") - .withDisableMetricsCollection("dataxwmpziy") - .withQueryTimeout("datazgmxqa") - .withAdditionalColumns("dataypxgoypo") - .withSqlReaderQuery("datazldplamcc") - .withSqlReaderStoredProcedureName("datajrnveqleozqqwia") - .withStoredProcedureParameters("datawzyvbu") - .withIsolationLevel("datahysatoplqc") - .withProduceAdditionalTypes("datasrlzwuqkprf") - .withPartitionOption("datacowtoqfwbsbkob") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datasjhwhfcxwrj") - .withPartitionUpperBound("dataxmrsetttulswaj") - .withPartitionLowerBound("dataespfgmosiskih")); - 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 e0853f5fb5a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.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.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\":\"npodsqilmvxpfay\",\"typeProperties\":{\"storedProcedureName\":\"datayzacjxczjosixter\",\"storedProcedureParameters\":\"datajkhtmmkmezlhmt\"},\"linkedServiceName\":{\"referenceName\":\"caynhzmzi\",\"parameters\":{\"qqlpphotbsgkliu\":\"datawpitwlel\",\"zchpjh\":\"datatxfzhvxqotwcfbqz\",\"xqkm\":\"datahyxxftrfwmxwjc\"}},\"policy\":{\"timeout\":\"datauleofdxznopkd\",\"retry\":\"datafeutvqgnugiiyc\",\"retryIntervalInSeconds\":1621828202,\"secureInput\":true,\"secureOutput\":false,\"\":{\"hgi\":\"datanbrfscrabrqdb\",\"yxntuzgceuzhp\":\"datazrruvnlubkbgfzii\"}},\"name\":\"phpud\",\"description\":\"aqhbqvb\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"rwiivekrgvzjtvj\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\",\"Completed\"],\"\":{\"cdoat\":\"dataz\",\"mijraei\":\"datanktheh\"}},{\"activity\":\"v\",\"dependencyConditions\":[\"Failed\"],\"\":{\"nroxgwqgbvnctcbm\":\"datakl\",\"twkzfp\":\"dataecozvxdb\"}},{\"activity\":\"wjvjuixbtkuv\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Succeeded\",\"Failed\"],\"\":{\"jnxznlxcjk\":\"dataegxdzopfkzj\"}}],\"userProperties\":[{\"name\":\"bntqvl\",\"value\":\"datatqsbmurbl\"},{\"name\":\"tvsxnaothlrhjikt\",\"value\":\"datafjylh\"}],\"\":{\"egyh\":\"databaowclbzn\",\"d\":\"dataucpix\",\"rhqbpfvhnh\":\"dataicpchbcbdpy\"}}") - .toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("phpud", model.name()); - Assertions.assertEquals("aqhbqvb", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("rwiivekrgvzjtvj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bntqvl", model.userProperties().get(0).name()); - Assertions.assertEquals("caynhzmzi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1621828202, 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 { - SqlServerStoredProcedureActivity model = new SqlServerStoredProcedureActivity().withName("phpud") - .withDescription("aqhbqvb") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("rwiivekrgvzjtvj") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("v") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wjvjuixbtkuv") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("bntqvl").withValue("datatqsbmurbl"), - new UserProperty().withName("tvsxnaothlrhjikt").withValue("datafjylh"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("caynhzmzi") - .withParameters(mapOf("qqlpphotbsgkliu", "datawpitwlel", "zchpjh", "datatxfzhvxqotwcfbqz", "xqkm", - "datahyxxftrfwmxwjc"))) - .withPolicy(new ActivityPolicy().withTimeout("datauleofdxznopkd") - .withRetry("datafeutvqgnugiiyc") - .withRetryIntervalInSeconds(1621828202) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStoredProcedureName("datayzacjxczjosixter") - .withStoredProcedureParameters("datajkhtmmkmezlhmt"); - model = BinaryData.fromObject(model).toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("phpud", model.name()); - Assertions.assertEquals("aqhbqvb", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("rwiivekrgvzjtvj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bntqvl", model.userProperties().get(0).name()); - Assertions.assertEquals("caynhzmzi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1621828202, 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/SqlServerStoredProcedureActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java deleted file mode 100644 index 45e5645f8a92..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.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.SqlServerStoredProcedureActivityTypeProperties; - -public final class SqlServerStoredProcedureActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model = BinaryData - .fromString( - "{\"storedProcedureName\":\"dataxcwsnhszmuvarea\",\"storedProcedureParameters\":\"dataxdamnmnmqy\"}") - .toObject(SqlServerStoredProcedureActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model - = new SqlServerStoredProcedureActivityTypeProperties().withStoredProcedureName("dataxcwsnhszmuvarea") - .withStoredProcedureParameters("dataxdamnmnmqy"); - 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 646b91cb46e4..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\":\"ptlsrvqzgaqs\",\"typeProperties\":{\"tableName\":\"dataiuokglts\",\"schema\":\"dataoiobh\",\"table\":\"datab\"},\"description\":\"r\",\"structure\":\"datalvgrghnhuoxrqhjn\",\"schema\":\"datapesw\",\"linkedServiceName\":{\"referenceName\":\"nhqkgebzqz\",\"parameters\":{\"aosxsxoxvimdvetq\":\"dataviujojzdvms\",\"u\":\"datadbitqsbyujsgomri\",\"xgfygfkgxbd\":\"datagrmsdbv\"}},\"parameters\":{\"porrvkxtfctane\":{\"type\":\"SecureString\",\"defaultValue\":\"datawbdpsesboynpy\"}},\"annotations\":[\"dataqxdhnpjnezji\"],\"folder\":{\"name\":\"umltpmrzwv\"},\"\":{\"uqhngqqxjbsoto\":\"dataqffuxvf\"}}") - .toObject(SqlServerTableDataset.class); - Assertions.assertEquals("r", model.description()); - Assertions.assertEquals("nhqkgebzqz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("porrvkxtfctane").type()); - Assertions.assertEquals("umltpmrzwv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDataset model = new SqlServerTableDataset().withDescription("r") - .withStructure("datalvgrghnhuoxrqhjn") - .withSchema("datapesw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nhqkgebzqz") - .withParameters(mapOf("aosxsxoxvimdvetq", "dataviujojzdvms", "u", "datadbitqsbyujsgomri", "xgfygfkgxbd", - "datagrmsdbv"))) - .withParameters(mapOf("porrvkxtfctane", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datawbdpsesboynpy"))) - .withAnnotations(Arrays.asList("dataqxdhnpjnezji")) - .withFolder(new DatasetFolder().withName("umltpmrzwv")) - .withTableName("dataiuokglts") - .withSchemaTypePropertiesSchema("dataoiobh") - .withTable("datab"); - model = BinaryData.fromObject(model).toObject(SqlServerTableDataset.class); - Assertions.assertEquals("r", model.description()); - Assertions.assertEquals("nhqkgebzqz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("porrvkxtfctane").type()); - Assertions.assertEquals("umltpmrzwv", 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 e079cb22aae9..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\":\"datamrttujyd\",\"schema\":\"datatwxpxbxedhxbboc\",\"table\":\"datasramqc\"}") - .toObject(SqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDatasetTypeProperties model - = new SqlServerTableDatasetTypeProperties().withTableName("datamrttujyd") - .withSchema("datatwxpxbxedhxbboc") - .withTable("datasramqc"); - 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 4b21527e9040..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\":\"gqgcnkghgczjxo\",\"sqlReaderQuery\":\"dataqzd\",\"sqlReaderStoredProcedureName\":\"datamyutzttroymi\",\"storedProcedureParameters\":\"datakuz\",\"isolationLevel\":\"datacegyztzhcfuwm\",\"partitionOption\":\"dataz\",\"partitionSettings\":{\"partitionColumnName\":\"datak\",\"partitionUpperBound\":\"dataoogflhhos\",\"partitionLowerBound\":\"datablyokjwss\"},\"queryTimeout\":\"datardg\",\"additionalColumns\":\"dataihnzvoeh\",\"sourceRetryCount\":\"dataigdwpg\",\"sourceRetryWait\":\"dataqh\",\"maxConcurrentConnections\":\"dataexnwxqw\",\"disableMetricsCollection\":\"dataaqlymmhzvnetecfy\",\"\":{\"wfpoaf\":\"datak\",\"kssygdvllbb\":\"datagkzgzxqwvvfkqb\",\"xygrniqnxpsebazb\":\"datafulvhpwp\",\"qgn\":\"datayrjr\"}}") - .toObject(SqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlSource model = new SqlSource().withSourceRetryCount("dataigdwpg") - .withSourceRetryWait("dataqh") - .withMaxConcurrentConnections("dataexnwxqw") - .withDisableMetricsCollection("dataaqlymmhzvnetecfy") - .withQueryTimeout("datardg") - .withAdditionalColumns("dataihnzvoeh") - .withSqlReaderQuery("dataqzd") - .withSqlReaderStoredProcedureName("datamyutzttroymi") - .withStoredProcedureParameters("datakuz") - .withIsolationLevel("datacegyztzhcfuwm") - .withPartitionOption("dataz") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datak") - .withPartitionUpperBound("dataoogflhhos") - .withPartitionLowerBound("datablyokjwss")); - 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 cb614e4d0c69..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.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.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\":\"cwbshfihvl\",\"typeProperties\":{\"tableName\":\"datauxkdiumgsivxw\"},\"description\":\"ceylaulpuexyigxz\",\"structure\":\"dataecxdslspgnndefyh\",\"schema\":\"datayhwl\",\"linkedServiceName\":{\"referenceName\":\"svsyltap\",\"parameters\":{\"cuhbgftfvqukkmvz\":\"datafkmvzrkpmonxdw\",\"dqrjylwqqsemjhh\":\"dataneg\",\"hztb\":\"datalsub\",\"zwufi\":\"datajrdzwyktdp\"}},\"parameters\":{\"kmcykxmysmk\":{\"type\":\"Float\",\"defaultValue\":\"datahmjkykqf\"},\"ig\":{\"type\":\"Float\",\"defaultValue\":\"datanrihpjaxhcbeejn\"},\"ardvdpfgwdxmia\":{\"type\":\"Array\",\"defaultValue\":\"datalkrnpsbnmrmhkip\"}},\"annotations\":[\"datapbie\",\"datal\"],\"folder\":{\"name\":\"dvjlpbjszqjfs\"},\"\":{\"wknsbgh\":\"dataaycx\",\"pzcyhk\":\"datapbrzwi\"}}") - .toObject(SquareObjectDataset.class); - Assertions.assertEquals("ceylaulpuexyigxz", model.description()); - Assertions.assertEquals("svsyltap", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("kmcykxmysmk").type()); - Assertions.assertEquals("dvjlpbjszqjfs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareObjectDataset model = new SquareObjectDataset().withDescription("ceylaulpuexyigxz") - .withStructure("dataecxdslspgnndefyh") - .withSchema("datayhwl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("svsyltap") - .withParameters(mapOf("cuhbgftfvqukkmvz", "datafkmvzrkpmonxdw", "dqrjylwqqsemjhh", "dataneg", "hztb", - "datalsub", "zwufi", "datajrdzwyktdp"))) - .withParameters(mapOf("kmcykxmysmk", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datahmjkykqf"), "ig", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datanrihpjaxhcbeejn"), - "ardvdpfgwdxmia", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datalkrnpsbnmrmhkip"))) - .withAnnotations(Arrays.asList("datapbie", "datal")) - .withFolder(new DatasetFolder().withName("dvjlpbjszqjfs")) - .withTableName("datauxkdiumgsivxw"); - model = BinaryData.fromObject(model).toObject(SquareObjectDataset.class); - Assertions.assertEquals("ceylaulpuexyigxz", model.description()); - Assertions.assertEquals("svsyltap", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("kmcykxmysmk").type()); - Assertions.assertEquals("dvjlpbjszqjfs", 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 3369d38df377..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\":\"nkhvpuqlh\",\"query\":\"datagephviue\",\"queryTimeout\":\"datayagaxruffkm\",\"additionalColumns\":\"datau\",\"sourceRetryCount\":\"databbitp\",\"sourceRetryWait\":\"datan\",\"maxConcurrentConnections\":\"datamsdgmxwfodvzpxmo\",\"disableMetricsCollection\":\"databvgieey\",\"\":{\"tbasvjodgplagwvg\":\"datan\",\"hinbsys\":\"datanxmqudnqcbb\",\"iyyzqdnrgnyb\":\"datalbfzkvrmdos\",\"mkhxunq\":\"dataqwjj\"}}") - .toObject(SquareSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareSource model = new SquareSource().withSourceRetryCount("databbitp") - .withSourceRetryWait("datan") - .withMaxConcurrentConnections("datamsdgmxwfodvzpxmo") - .withDisableMetricsCollection("databvgieey") - .withQueryTimeout("datayagaxruffkm") - .withAdditionalColumns("datau") - .withQuery("datagephviue"); - 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 0b99a216aed9..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\":\"dataogbwhawref\",\"packageName\":\"tt\",\"packageContent\":\"datazlokttpmbxn\",\"packageLastModifiedDate\":\"bvhdbgnbcwfpgv\"}") - .toObject(SsisChildPackage.class); - Assertions.assertEquals("tt", model.packageName()); - Assertions.assertEquals("bvhdbgnbcwfpgv", model.packageLastModifiedDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisChildPackage model = new SsisChildPackage().withPackagePath("dataogbwhawref") - .withPackageName("tt") - .withPackageContent("datazlokttpmbxn") - .withPackageLastModifiedDate("bvhdbgnbcwfpgv"); - model = BinaryData.fromObject(model).toObject(SsisChildPackage.class); - Assertions.assertEquals("tt", model.packageName()); - Assertions.assertEquals("bvhdbgnbcwfpgv", 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 f3dc4bb04e3d..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\":4444581189400066307,\"environmentFolderName\":\"gxgl\",\"environmentName\":\"deoubv\",\"referenceType\":\"iswemncjhmvvze\"}") - .toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(4444581189400066307L, model.id()); - Assertions.assertEquals("gxgl", model.environmentFolderName()); - Assertions.assertEquals("deoubv", model.environmentName()); - Assertions.assertEquals("iswemncjhmvvze", model.referenceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironmentReference model = new SsisEnvironmentReference().withId(4444581189400066307L) - .withEnvironmentFolderName("gxgl") - .withEnvironmentName("deoubv") - .withReferenceType("iswemncjhmvvze"); - model = BinaryData.fromObject(model).toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(4444581189400066307L, model.id()); - Assertions.assertEquals("gxgl", model.environmentFolderName()); - Assertions.assertEquals("deoubv", model.environmentName()); - Assertions.assertEquals("iswemncjhmvvze", model.referenceType()); - } -} 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 1e4055f45896..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\":\"datadqeuewgp\"}").toObject(SsisExecutionParameter.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisExecutionParameter model = new SsisExecutionParameter().withValue("datadqeuewgp"); - 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 c20b15228ca2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.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.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\":6236771935686026963,\"name\":\"edxgdju\",\"description\":\"k\"}") - .toObject(SsisFolder.class); - Assertions.assertEquals(6236771935686026963L, model.id()); - Assertions.assertEquals("edxgdju", model.name()); - Assertions.assertEquals("k", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisFolder model = new SsisFolder().withId(6236771935686026963L).withName("edxgdju").withDescription("k"); - model = BinaryData.fromObject(model).toObject(SsisFolder.class); - Assertions.assertEquals(6236771935686026963L, model.id()); - Assertions.assertEquals("edxgdju", model.name()); - Assertions.assertEquals("k", 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 3c76a31695cd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.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.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.models.SsisEnvironment; -import com.azure.resourcemanager.datafactory.models.SsisFolder; -import com.azure.resourcemanager.datafactory.models.SsisPackage; -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\":\"Folder\",\"id\":6035205555692229077,\"name\":\"cg\",\"description\":\"wndnhj\"},{\"type\":\"Environment\",\"id\":8777833208183910050,\"name\":\"l\",\"description\":\"btdhxujznbm\"},{\"type\":\"Package\",\"id\":3222705953592047297,\"name\":\"zqlveualupjmkhf\",\"description\":\"bbcswsrtjri\"},{\"type\":\"Environment\",\"id\":7508041016656443291,\"name\":\"wtgh\",\"description\":\"blcg\"}],\"nextLink\":\"zvlvqhjkbegib\"}") - .toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(6035205555692229077L, model.value().get(0).id()); - Assertions.assertEquals("cg", model.value().get(0).name()); - Assertions.assertEquals("wndnhj", model.value().get(0).description()); - Assertions.assertEquals("zvlvqhjkbegib", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataListResponseInner model = new SsisObjectMetadataListResponseInner() - .withValue( - Arrays.asList(new SsisFolder().withId(6035205555692229077L).withName("cg").withDescription("wndnhj"), - new SsisEnvironment().withId(8777833208183910050L).withName("l").withDescription("btdhxujznbm"), - new SsisPackage().withId(3222705953592047297L) - .withName("zqlveualupjmkhf") - .withDescription("bbcswsrtjri"), - new SsisEnvironment().withId(7508041016656443291L).withName("wtgh").withDescription("blcg"))) - .withNextLink("zvlvqhjkbegib"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(6035205555692229077L, model.value().get(0).id()); - Assertions.assertEquals("cg", model.value().get(0).name()); - Assertions.assertEquals("wndnhj", model.value().get(0).description()); - Assertions.assertEquals("zvlvqhjkbegib", 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 4870398bfeee..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\":\"civyhzceuo\",\"name\":\"jrwjueiotwm\",\"properties\":\"ytdxwit\",\"error\":\"rjaw\"}") - .toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("civyhzceuo", model.status()); - Assertions.assertEquals("jrwjueiotwm", model.name()); - Assertions.assertEquals("ytdxwit", model.properties()); - Assertions.assertEquals("rjaw", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataStatusResponseInner model - = new SsisObjectMetadataStatusResponseInner().withStatus("civyhzceuo") - .withName("jrwjueiotwm") - .withProperties("ytdxwit") - .withError("rjaw"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("civyhzceuo", model.status()); - Assertions.assertEquals("jrwjueiotwm", model.name()); - Assertions.assertEquals("ytdxwit", model.properties()); - Assertions.assertEquals("rjaw", 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 7ed1763cdc7d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.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.SsisObjectMetadata; -import com.azure.resourcemanager.datafactory.models.SsisProject; -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\":\"Project\",\"id\":8168827985153452849,\"name\":\"wwaloayqcgwrt\",\"description\":\"uzgwyzmhtx\"}") - .toObject(SsisObjectMetadata.class); - Assertions.assertEquals(8168827985153452849L, model.id()); - Assertions.assertEquals("wwaloayqcgwrt", model.name()); - Assertions.assertEquals("uzgwyzmhtx", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadata model - = new SsisProject().withId(8168827985153452849L).withName("wwaloayqcgwrt").withDescription("uzgwyzmhtx"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadata.class); - Assertions.assertEquals(8168827985153452849L, model.id()); - Assertions.assertEquals("wwaloayqcgwrt", model.name()); - Assertions.assertEquals("uzgwyzmhtx", model.description()); - } -} 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 5ec9109a70d7..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\":4128209313466556237,\"name\":\"bsjtfqwlb\",\"description\":\"czzscgropuq\",\"dataType\":\"s\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"yikqlyoorme\",\"defaultValue\":\"glq\",\"sensitiveDefaultValue\":\"ykckyhxuzn\",\"valueType\":\"piadjslv\",\"valueSet\":false,\"variable\":\"cdwbi\"}") - .toObject(SsisParameter.class); - Assertions.assertEquals(4128209313466556237L, model.id()); - Assertions.assertEquals("bsjtfqwlb", model.name()); - Assertions.assertEquals("czzscgropuq", model.description()); - Assertions.assertEquals("s", model.dataType()); - Assertions.assertEquals(true, model.required()); - Assertions.assertEquals(true, model.sensitive()); - Assertions.assertEquals("yikqlyoorme", model.designDefaultValue()); - Assertions.assertEquals("glq", model.defaultValue()); - Assertions.assertEquals("ykckyhxuzn", model.sensitiveDefaultValue()); - Assertions.assertEquals("piadjslv", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("cdwbi", model.variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisParameter model = new SsisParameter().withId(4128209313466556237L) - .withName("bsjtfqwlb") - .withDescription("czzscgropuq") - .withDataType("s") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("yikqlyoorme") - .withDefaultValue("glq") - .withSensitiveDefaultValue("ykckyhxuzn") - .withValueType("piadjslv") - .withValueSet(false) - .withVariable("cdwbi"); - model = BinaryData.fromObject(model).toObject(SsisParameter.class); - Assertions.assertEquals(4128209313466556237L, model.id()); - Assertions.assertEquals("bsjtfqwlb", model.name()); - Assertions.assertEquals("czzscgropuq", model.description()); - Assertions.assertEquals("s", model.dataType()); - Assertions.assertEquals(true, model.required()); - Assertions.assertEquals(true, model.sensitive()); - Assertions.assertEquals("yikqlyoorme", model.designDefaultValue()); - Assertions.assertEquals("glq", model.defaultValue()); - Assertions.assertEquals("ykckyhxuzn", model.sensitiveDefaultValue()); - Assertions.assertEquals("piadjslv", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("cdwbi", 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 a325170b060f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":6810027269223003615,\"version\":8020114105989626918,\"environmentRefs\":[{\"id\":3010334204752979015,\"environmentFolderName\":\"qnztukirdedij\",\"environmentName\":\"zkwvueweivajelsw\",\"referenceType\":\"dknxctglzbcxd\"},{\"id\":9144944610093515005,\"environmentFolderName\":\"gyiw\",\"environmentName\":\"judxzfvna\",\"referenceType\":\"ffch\"},{\"id\":9040103124560572261,\"environmentFolderName\":\"vjehtseaoxxsehfl\",\"environmentName\":\"abpyz\",\"referenceType\":\"plphfstvurtk\"},{\"id\":4504562454300211422,\"environmentFolderName\":\"axwzbwx\",\"environmentName\":\"disxsrrhr\",\"referenceType\":\"bbedrnrjz\"}],\"parameters\":[{\"id\":418641047348887519,\"name\":\"bmy\",\"description\":\"ihcgxmfbi\",\"dataType\":\"uvqqo\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"nqtjcemiasi\",\"defaultValue\":\"hxqnlmjvpm\",\"sensitiveDefaultValue\":\"fibwvhwouhysr\",\"valueType\":\"kzj\",\"valueSet\":false,\"variable\":\"ljxaayxpdzvg\"},{\"id\":1887624659598495182,\"name\":\"jge\",\"description\":\"dbigi\",\"dataType\":\"amudyrsirnbpi\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"xolixfe\",\"defaultValue\":\"r\",\"sensitiveDefaultValue\":\"zvtzyfktbayhas\",\"valueType\":\"alkiyzlkqyez\",\"valueSet\":true,\"variable\":\"rdfdssofuxystltk\"},{\"id\":5934714436449506549,\"name\":\"iiqajfwzubfg\",\"description\":\"vzbueiydoqb\",\"dataType\":\"xlxptxhedn\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"a\",\"defaultValue\":\"zrtsei\",\"sensitiveDefaultValue\":\"krw\",\"valueType\":\"n\",\"valueSet\":true,\"variable\":\"wcyeljniadgzxbw\"},{\"id\":4788013996128357968,\"name\":\"ctyukmzozbkht\",\"description\":\"ghutiqlmvn\",\"dataType\":\"fyftk\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"ykiumagfyinmajj\",\"defaultValue\":\"l\",\"sensitiveDefaultValue\":\"wfkflcvbzkb\",\"valueType\":\"uafbddm\",\"valueSet\":false,\"variable\":\"nml\"}],\"id\":6777524756518511166,\"name\":\"tagpyuhdqh\",\"description\":\"rksypoosfxzobovs\"}") - .toObject(SsisProject.class); - Assertions.assertEquals(6777524756518511166L, model.id()); - Assertions.assertEquals("tagpyuhdqh", model.name()); - Assertions.assertEquals("rksypoosfxzobovs", model.description()); - Assertions.assertEquals(6810027269223003615L, model.folderId()); - Assertions.assertEquals(8020114105989626918L, model.version()); - Assertions.assertEquals(3010334204752979015L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("qnztukirdedij", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("zkwvueweivajelsw", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("dknxctglzbcxd", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(418641047348887519L, model.parameters().get(0).id()); - Assertions.assertEquals("bmy", model.parameters().get(0).name()); - Assertions.assertEquals("ihcgxmfbi", model.parameters().get(0).description()); - Assertions.assertEquals("uvqqo", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("nqtjcemiasi", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("hxqnlmjvpm", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("fibwvhwouhysr", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("kzj", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("ljxaayxpdzvg", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisProject model = new SsisProject().withId(6777524756518511166L) - .withName("tagpyuhdqh") - .withDescription("rksypoosfxzobovs") - .withFolderId(6810027269223003615L) - .withVersion(8020114105989626918L) - .withEnvironmentRefs(Arrays.asList( - new SsisEnvironmentReference().withId(3010334204752979015L) - .withEnvironmentFolderName("qnztukirdedij") - .withEnvironmentName("zkwvueweivajelsw") - .withReferenceType("dknxctglzbcxd"), - new SsisEnvironmentReference().withId(9144944610093515005L) - .withEnvironmentFolderName("gyiw") - .withEnvironmentName("judxzfvna") - .withReferenceType("ffch"), - new SsisEnvironmentReference().withId(9040103124560572261L) - .withEnvironmentFolderName("vjehtseaoxxsehfl") - .withEnvironmentName("abpyz") - .withReferenceType("plphfstvurtk"), - new SsisEnvironmentReference().withId(4504562454300211422L) - .withEnvironmentFolderName("axwzbwx") - .withEnvironmentName("disxsrrhr") - .withReferenceType("bbedrnrjz"))) - .withParameters(Arrays.asList( - new SsisParameter().withId(418641047348887519L) - .withName("bmy") - .withDescription("ihcgxmfbi") - .withDataType("uvqqo") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("nqtjcemiasi") - .withDefaultValue("hxqnlmjvpm") - .withSensitiveDefaultValue("fibwvhwouhysr") - .withValueType("kzj") - .withValueSet(false) - .withVariable("ljxaayxpdzvg"), - new SsisParameter().withId(1887624659598495182L) - .withName("jge") - .withDescription("dbigi") - .withDataType("amudyrsirnbpi") - .withRequired(false) - .withSensitive(true) - .withDesignDefaultValue("xolixfe") - .withDefaultValue("r") - .withSensitiveDefaultValue("zvtzyfktbayhas") - .withValueType("alkiyzlkqyez") - .withValueSet(true) - .withVariable("rdfdssofuxystltk"), - new SsisParameter().withId(5934714436449506549L) - .withName("iiqajfwzubfg") - .withDescription("vzbueiydoqb") - .withDataType("xlxptxhedn") - .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("a") - .withDefaultValue("zrtsei") - .withSensitiveDefaultValue("krw") - .withValueType("n") - .withValueSet(true) - .withVariable("wcyeljniadgzxbw"), - new SsisParameter().withId(4788013996128357968L) - .withName("ctyukmzozbkht") - .withDescription("ghutiqlmvn") - .withDataType("fyftk") - .withRequired(false) - .withSensitive(false) - .withDesignDefaultValue("ykiumagfyinmajj") - .withDefaultValue("l") - .withSensitiveDefaultValue("wfkflcvbzkb") - .withValueType("uafbddm") - .withValueSet(false) - .withVariable("nml"))); - model = BinaryData.fromObject(model).toObject(SsisProject.class); - Assertions.assertEquals(6777524756518511166L, model.id()); - Assertions.assertEquals("tagpyuhdqh", model.name()); - Assertions.assertEquals("rksypoosfxzobovs", model.description()); - Assertions.assertEquals(6810027269223003615L, model.folderId()); - Assertions.assertEquals(8020114105989626918L, model.version()); - Assertions.assertEquals(3010334204752979015L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("qnztukirdedij", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("zkwvueweivajelsw", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("dknxctglzbcxd", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(418641047348887519L, model.parameters().get(0).id()); - Assertions.assertEquals("bmy", model.parameters().get(0).name()); - Assertions.assertEquals("ihcgxmfbi", model.parameters().get(0).description()); - Assertions.assertEquals("uvqqo", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("nqtjcemiasi", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("hxqnlmjvpm", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("fibwvhwouhysr", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("kzj", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("ljxaayxpdzvg", 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 67abeb753c72..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\":\"dataademloimaykb\",\"isSensitive\":true}") - .toObject(SsisPropertyOverride.class); - Assertions.assertEquals(true, model.isSensitive()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisPropertyOverride model = new SsisPropertyOverride().withValue("dataademloimaykb").withIsSensitive(true); - model = BinaryData.fromObject(model).toObject(SsisPropertyOverride.class); - Assertions.assertEquals(true, 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 1a1a442ec14a..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\":2100467242964547244,\"name\":\"lkkwbdekbvdu\",\"description\":\"kaadnxbssatpi\",\"dataType\":\"rqh\",\"sensitive\":false,\"value\":\"ccfgfvo\",\"sensitiveValue\":\"iyvrexitpz\"}") - .toObject(SsisVariable.class); - Assertions.assertEquals(2100467242964547244L, model.id()); - Assertions.assertEquals("lkkwbdekbvdu", model.name()); - Assertions.assertEquals("kaadnxbssatpi", model.description()); - Assertions.assertEquals("rqh", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("ccfgfvo", model.value()); - Assertions.assertEquals("iyvrexitpz", model.sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisVariable model = new SsisVariable().withId(2100467242964547244L) - .withName("lkkwbdekbvdu") - .withDescription("kaadnxbssatpi") - .withDataType("rqh") - .withSensitive(false) - .withValue("ccfgfvo") - .withSensitiveValue("iyvrexitpz"); - model = BinaryData.fromObject(model).toObject(SsisVariable.class); - Assertions.assertEquals(2100467242964547244L, model.id()); - Assertions.assertEquals("lkkwbdekbvdu", model.name()); - Assertions.assertEquals("kaadnxbssatpi", model.description()); - Assertions.assertEquals("rqh", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("ccfgfvo", model.value()); - Assertions.assertEquals("iyvrexitpz", 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 8c5c4c372ecc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.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.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\":\"iflzsrk\",\"parameters\":{\"svpokv\":\"dataobhhbl\"}},\"path\":\"databy\",\"enableCompression\":\"datafu\",\"\":{\"fffagoovfwzy\":\"dataus\",\"xup\":\"datavnvrfjg\",\"earowrmesziubkyv\":\"datahgonovwu\",\"kaomy\":\"datagkouf\"}}") - .toObject(StagingSettings.class); - Assertions.assertEquals("iflzsrk", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StagingSettings model = new StagingSettings() - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("iflzsrk").withParameters(mapOf("svpokv", "dataobhhbl"))) - .withPath("databy") - .withEnableCompression("datafu") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(StagingSettings.class); - Assertions.assertEquals("iflzsrk", 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 15c6128ebd30..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\":\"mx\",\"maxConcurrentConnections\":\"datax\",\"disableMetricsCollection\":\"datauvgtoinozsmyvv\",\"\":{\"efcooptmdspddxgu\":\"datafbmrwhk\",\"xjwn\":\"dataiosibgolaxuy\",\"fiksjpkig\":\"datarskyrttnrikss\"}}") - .toObject(StoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreReadSettings model = new StoreReadSettings().withMaxConcurrentConnections("datax") - .withDisableMetricsCollection("datauvgtoinozsmyvv") - .withAdditionalProperties(mapOf("type", "mx")); - 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 e70007bd2569..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\":\"wwsioozrugbdkxl\",\"maxConcurrentConnections\":\"datakuvlzkzjjtapv\",\"disableMetricsCollection\":\"dataebtdpsgkeexso\",\"copyBehavior\":\"datakvy\",\"metadata\":[{\"name\":\"datatwtfqpmpyw\",\"value\":\"databuk\"},{\"name\":\"datajcwdoecdqu\",\"value\":\"datauqco\"},{\"name\":\"datahdxjrrbyrbn\",\"value\":\"datapsquouppzgdtu\"},{\"name\":\"dataoimojcm\",\"value\":\"datacd\"}],\"\":{\"nvb\":\"dataorzhzfocgfylto\",\"lwifbdwy\":\"datauy\",\"bbvkthre\":\"datavcy\"}}") - .toObject(StoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreWriteSettings model = new StoreWriteSettings().withMaxConcurrentConnections("datakuvlzkzjjtapv") - .withDisableMetricsCollection("dataebtdpsgkeexso") - .withCopyBehavior("datakvy") - .withMetadata(Arrays.asList(new MetadataItem().withName("datatwtfqpmpyw").withValue("databuk"), - new MetadataItem().withName("datajcwdoecdqu").withValue("datauqco"), - new MetadataItem().withName("datahdxjrrbyrbn").withValue("datapsquouppzgdtu"), - new MetadataItem().withName("dataoimojcm").withValue("datacd"))) - .withAdditionalProperties(mapOf("type", "wwsioozrugbdkxl")); - 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 5dd020c02638..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\":\"qutdewemxs\"}").toObject(SubResourceDebugResource.class); - Assertions.assertEquals("qutdewemxs", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubResourceDebugResource model = new SubResourceDebugResource().withName("qutdewemxs"); - model = BinaryData.fromObject(model).toObject(SubResourceDebugResource.class); - Assertions.assertEquals("qutdewemxs", 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 6b8e363dd840..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"mpmf\",\"typeProperties\":{\"on\":{\"value\":\"ajbgpuwk\"},\"cases\":[{\"value\":\"nkzyqizx\",\"activities\":[{\"type\":\"ehtrgybfumoro\",\"name\":\"rutbfkynwwm\",\"description\":\"pyrzazkalj\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"bzloaepb\",\"dependencyConditions\":[]},{\"activity\":\"ntgsju\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"eggphwgixypgvwm\",\"value\":\"dataa\"},{\"name\":\"hriua\",\"value\":\"dataqgkvkoynjucmyj\"},{\"name\":\"lafv\",\"value\":\"datandkvbc\"},{\"name\":\"qenbgymgjneoh\",\"value\":\"datakis\"}],\"\":{\"fsjodskqyjsdxgef\":\"datag\"}},{\"type\":\"rfih\",\"name\":\"tor\",\"description\":\"hfuw\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ociunndgpxdjkwy\",\"dependencyConditions\":[]},{\"activity\":\"qnlqzymivjk\",\"dependencyConditions\":[]},{\"activity\":\"ci\",\"dependencyConditions\":[]},{\"activity\":\"zag\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"sywdtg\",\"value\":\"datargqflpux\"},{\"name\":\"ak\",\"value\":\"datafr\"}],\"\":{\"cpcl\":\"datashqttk\",\"tysmnyfahi\":\"dataotce\"}},{\"type\":\"scdoweorniyjq\",\"name\":\"j\",\"description\":\"ko\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"opirgdsqcbxkwwnq\",\"dependencyConditions\":[]},{\"activity\":\"ybwjvifgj\",\"dependencyConditions\":[]},{\"activity\":\"tzhkhyqjvgagrbir\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ubbn\",\"value\":\"dataofyeggaauubkr\"},{\"name\":\"chkwwibxjpyt\",\"value\":\"dataak\"}],\"\":{\"ujwcyv\":\"dataoe\",\"norfxirj\":\"dataxbqu\"}}]},{\"value\":\"ggwzvdqpxicpoz\",\"activities\":[{\"type\":\"uraqpcspsbrd\",\"name\":\"domyqbeasbv\",\"description\":\"fkzu\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"frwbmfq\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"aqltoxhfphaw\",\"value\":\"dataovqtvbusyqyfit\"},{\"name\":\"prbmmfqteox\",\"value\":\"dataikdcjmbwrhpw\"},{\"name\":\"udegykzdspbjks\",\"value\":\"datadsrwhjhivgeran\"}],\"\":{\"jtqqqcxr\":\"dataaf\",\"cgyvzpvz\":\"datawduspxijrremvz\",\"kq\":\"dataduzfybjucfsu\"}}]}],\"defaultActivities\":[{\"type\":\"jw\",\"name\":\"wpoywymtwhzdgbg\",\"description\":\"yzrzhkhmwcg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"gqxnyoakdp\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"bmfejtdboa\":\"dataezgzsekbce\"}},{\"activity\":\"nya\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Failed\"],\"\":{\"rjgrzxaamibhkaqz\":\"datafzypykjor\"}},{\"activity\":\"hjqslshceyhalbx\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\"],\"\":{\"t\":\"dataco\",\"rifmtk\":\"dataupaqzithojrtcdav\",\"xirsvjozexxzkci\":\"datawezwkparj\",\"sjblagsshdubqhaf\":\"dataykeawrumhzg\"}}],\"userProperties\":[{\"name\":\"omwnkhiwqiqx\",\"value\":\"datawbormfnntpocf\"}],\"\":{\"quhdyzuehqmtt\":\"datazsfdohytk\",\"eddwjimrzavci\":\"datawpeaivbzrms\",\"i\":\"datafqameccuqkoat\"}},{\"type\":\"diecrbcv\",\"name\":\"kkdsyxabdd\",\"description\":\"zohvpqtxlu\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"cxjbaloi\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"nxuiiprfijmilo\":\"datavpavraeeiboqcv\",\"grelgggjt\":\"dataedxsphfjzxesw\",\"ojoe\":\"datajeolxbg\",\"rczzgu\":\"datatwehvuttngatgl\"}},{\"activity\":\"rkrfabffeahypjqa\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\",\"Succeeded\"],\"\":{\"bplbtmwae\":\"dataffpvdjfws\",\"cxh\":\"dataybrhn\",\"heuwcmwixyrv\":\"datashabnpdnbtym\",\"buvviysg\":\"datapu\"}}],\"userProperties\":[{\"name\":\"hmvx\",\"value\":\"datapqfawwoxqj\"},{\"name\":\"mfyvgm\",\"value\":\"datawvvs\"},{\"name\":\"ynvgfaotokipndek\",\"value\":\"datazgdrkddzkkikrotn\"},{\"name\":\"x\",\"value\":\"dataeqdinwq\"}],\"\":{\"xmnsrejq\":\"datatqoxethrxlpgrvtz\",\"earbk\":\"dataylhesmhov\",\"xfsknmrc\":\"dataaomxyxnbenhxtx\"}},{\"type\":\"dfbdxwywdyqpkw\",\"name\":\"woflfniislohftm\",\"description\":\"xrx\",\"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\"}}]},\"name\":\"kinodekppcpwc\",\"description\":\"nuys\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ldorqprjevueyzg\",\"dependencyConditions\":[\"Completed\"],\"\":{\"irg\":\"datazeqvf\"}},{\"activity\":\"gu\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\",\"Skipped\"],\"\":{\"wepojmxby\":\"datamabnwsga\",\"cxpzje\":\"dataiykwrffxorwx\",\"npuquyatvsnkrxh\":\"dataoyqlcvtdyuozmtsj\",\"ldtjzi\":\"dataegwvblrgrzlrnuy\"}},{\"activity\":\"fwzpauwhfhynhol\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"ctvl\":\"dataukjywgsyidqlghr\",\"drfekxv\":\"datank\"}}],\"userProperties\":[{\"name\":\"htbqzxqi\",\"value\":\"dataguawrwjbante\"},{\"name\":\"uyricaik\",\"value\":\"datavjktfpob\"},{\"name\":\"lrrqjioltdl\",\"value\":\"datapyksqns\"}],\"\":{\"geqybordnwtu\":\"datahvfodrqm\",\"nvdorsgcvgkn\":\"datavbviymvgnqq\",\"l\":\"datampcnezd\",\"pdyztqpszbtbx\":\"databqhbbzfcjmhpobu\"}}") - .toObject(SwitchActivity.class); - Assertions.assertEquals("kinodekppcpwc", model.name()); - Assertions.assertEquals("nuys", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ldorqprjevueyzg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("htbqzxqi", model.userProperties().get(0).name()); - Assertions.assertEquals("ajbgpuwk", model.on().value()); - Assertions.assertEquals("nkzyqizx", model.cases().get(0).value()); - Assertions.assertEquals("rutbfkynwwm", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("pyrzazkalj", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("bzloaepb", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("eggphwgixypgvwm", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("wpoywymtwhzdgbg", model.defaultActivities().get(0).name()); - Assertions.assertEquals("yzrzhkhmwcg", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gqxnyoakdp", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("omwnkhiwqiqx", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchActivity model = new SwitchActivity().withName("kinodekppcpwc") - .withDescription("nuys") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ldorqprjevueyzg") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gu") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fwzpauwhfhynhol") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("htbqzxqi").withValue("dataguawrwjbante"), - new UserProperty().withName("uyricaik").withValue("datavjktfpob"), - new UserProperty().withName("lrrqjioltdl").withValue("datapyksqns"))) - .withOn(new Expression().withValue("ajbgpuwk")) - .withCases(Arrays.asList( - new SwitchCase().withValue("nkzyqizx") - .withActivities(Arrays.asList( - new Activity().withName("rutbfkynwwm") - .withDescription("pyrzazkalj") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("bzloaepb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ntgsju") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("eggphwgixypgvwm").withValue("dataa"), - new UserProperty().withName("hriua").withValue("dataqgkvkoynjucmyj"), - new UserProperty().withName("lafv").withValue("datandkvbc"), - new UserProperty().withName("qenbgymgjneoh").withValue("datakis"))) - .withAdditionalProperties(mapOf("type", "ehtrgybfumoro")), - new Activity().withName("tor") - .withDescription("hfuw") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ociunndgpxdjkwy") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qnlqzymivjk") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ci") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zag") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("sywdtg").withValue("datargqflpux"), - new UserProperty().withName("ak").withValue("datafr"))) - .withAdditionalProperties(mapOf("type", "rfih")), - new Activity().withName("j") - .withDescription("ko") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("opirgdsqcbxkwwnq") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ybwjvifgj") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tzhkhyqjvgagrbir") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ubbn").withValue("dataofyeggaauubkr"), - new UserProperty().withName("chkwwibxjpyt").withValue("dataak"))) - .withAdditionalProperties(mapOf("type", "scdoweorniyjq")))), - new SwitchCase().withValue("ggwzvdqpxicpoz") - .withActivities(Arrays.asList(new Activity().withName("domyqbeasbv") - .withDescription("fkzu") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("frwbmfq") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("aqltoxhfphaw").withValue("dataovqtvbusyqyfit"), - new UserProperty().withName("prbmmfqteox").withValue("dataikdcjmbwrhpw"), - new UserProperty().withName("udegykzdspbjks").withValue("datadsrwhjhivgeran"))) - .withAdditionalProperties(mapOf("type", "uraqpcspsbrd")))))) - .withDefaultActivities( - Arrays - .asList( - new Activity().withName("wpoywymtwhzdgbg") - .withDescription("yzrzhkhmwcg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("gqxnyoakdp") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nya") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hjqslshceyhalbx") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("omwnkhiwqiqx").withValue("datawbormfnntpocf"))) - .withAdditionalProperties(mapOf("type", "jw")), - new Activity().withName("kkdsyxabdd") - .withDescription("zohvpqtxlu") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("cxjbaloi") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rkrfabffeahypjqa") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hmvx").withValue("datapqfawwoxqj"), - new UserProperty().withName("mfyvgm").withValue("datawvvs"), - new UserProperty().withName("ynvgfaotokipndek").withValue("datazgdrkddzkkikrotn"), - new UserProperty().withName("x").withValue("dataeqdinwq"))) - .withAdditionalProperties(mapOf("type", "diecrbcv")), - new Activity().withName("woflfniislohftm") - .withDescription("xrx") - .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", "dfbdxwywdyqpkw")))); - model = BinaryData.fromObject(model).toObject(SwitchActivity.class); - Assertions.assertEquals("kinodekppcpwc", model.name()); - Assertions.assertEquals("nuys", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ldorqprjevueyzg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("htbqzxqi", model.userProperties().get(0).name()); - Assertions.assertEquals("ajbgpuwk", model.on().value()); - Assertions.assertEquals("nkzyqizx", model.cases().get(0).value()); - Assertions.assertEquals("rutbfkynwwm", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("pyrzazkalj", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("bzloaepb", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("eggphwgixypgvwm", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("wpoywymtwhzdgbg", model.defaultActivities().get(0).name()); - Assertions.assertEquals("yzrzhkhmwcg", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gqxnyoakdp", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("omwnkhiwqiqx", 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 90810dcb838e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"mbyltd\"},\"cases\":[{\"value\":\"ehxotizv\",\"activities\":[{\"type\":\"dcotfovjiy\",\"name\":\"u\",\"description\":\"bco\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"yokwaxehxsweb\",\"dependencyConditions\":[]},{\"activity\":\"a\",\"dependencyConditions\":[]},{\"activity\":\"xffttfqlcxymcmo\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"weuazxtsgsqoads\",\"value\":\"dataacemw\"},{\"name\":\"icdgimsbumpp\",\"value\":\"databcarcyrftcjxz\"},{\"name\":\"xwwmhdlrfy\",\"value\":\"datannbxvxrcmrdmyj\"},{\"name\":\"ouxzod\",\"value\":\"datalehc\"}],\"\":{\"yxhqwoxmcob\":\"datazrckzir\"}},{\"type\":\"nybfmbl\",\"name\":\"hpqnzpf\",\"description\":\"ppkqufdmgmfyia\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"rilhyfxmrq\",\"dependencyConditions\":[]},{\"activity\":\"icknygzdrdicwm\",\"dependencyConditions\":[]},{\"activity\":\"eavawywofgccj\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"vvr\",\"value\":\"dataxclf\"},{\"name\":\"mx\",\"value\":\"datafqwyiuhhuftn\"}],\"\":{\"wxossokafymlstg\":\"dataxwxxfkft\",\"evtsrcs\":\"datameijgj\"}}]},{\"value\":\"xdwv\",\"activities\":[{\"type\":\"wo\",\"name\":\"walefmenbajzeelb\",\"description\":\"yaohiz\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"upft\",\"dependencyConditions\":[]},{\"activity\":\"ddohxvcsoqxydcqp\",\"dependencyConditions\":[]},{\"activity\":\"ywttdanu\",\"dependencyConditions\":[]},{\"activity\":\"iwtkhcmoc\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"mfugik\",\"value\":\"datambkstkkzt\"},{\"name\":\"xdsnmhndcr\",\"value\":\"dataveccmqenfgba\"},{\"name\":\"uuyt\",\"value\":\"datadenv\"},{\"name\":\"olfiigox\",\"value\":\"datahjyvpfisy\"}],\"\":{\"vhqvmilpg\":\"dataymccwvcfayll\",\"fgtedfmcoru\":\"dataeaqwogpetsm\",\"ypckhqoo\":\"dataiod\",\"voqsudtmkmg\":\"datani\"}},{\"type\":\"pv\",\"name\":\"kngvpsukkk\",\"description\":\"ghugfdugqhm\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"lcbpbtjtiidozf\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qurr\",\"value\":\"datanijdr\"},{\"name\":\"vohjg\",\"value\":\"dataoiikr\"},{\"name\":\"lzsgpoiccbzqko\",\"value\":\"dataja\"}],\"\":{\"suctt\":\"datatzkqnlzytaz\",\"gbfiosdizp\":\"datavt\",\"tgwvvenmu\":\"datacqnglzfgepblh\"}},{\"type\":\"oqhamr\",\"name\":\"trny\",\"description\":\"ixiduzrdvh\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"vfwlxkxlrungs\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"lxlezz\",\"value\":\"datammzzoiudel\"}],\"\":{\"cgxwa\":\"dataxbyxajia\"}},{\"type\":\"udnygtsjafvzdsjb\",\"name\":\"uzybmsyzz\",\"description\":\"bnmzjwhybsg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"z\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qmwmwoggbxiasfi\",\"value\":\"dataucnp\"},{\"name\":\"lfedwhvhlzpvpix\",\"value\":\"datajvycodfubnvdibb\"}],\"\":{\"lypauqyaisd\":\"datatbtmhanmptxlrv\",\"krma\":\"datawokgvksox\",\"vahjlvbnl\":\"dataenl\"}}]},{\"value\":\"bgojops\",\"activities\":[{\"type\":\"yy\",\"name\":\"ueifmtgntlfdiqzv\",\"description\":\"ff\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"wl\",\"dependencyConditions\":[]},{\"activity\":\"dgpud\",\"dependencyConditions\":[]},{\"activity\":\"imehdxcytyfhw\",\"dependencyConditions\":[]},{\"activity\":\"bhapfny\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"tebehj\",\"value\":\"datamfejeihnhwg\"}],\"\":{\"fzcpy\":\"databc\",\"obutkqwrsx\":\"datarngfujvxafrqqfgu\",\"ikiuxvdnchrvsfnl\":\"datacaxgr\"}},{\"type\":\"puasbfc\",\"name\":\"lvakhdigxxtf\",\"description\":\"asdhdiiwvznff\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"tpd\",\"dependencyConditions\":[]},{\"activity\":\"hbpf\",\"dependencyConditions\":[]},{\"activity\":\"mrhxpmt\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"xfglilfjcowrzqy\",\"value\":\"datacjxsgrt\"},{\"name\":\"itaamp\",\"value\":\"dataenyvpxpcj\"},{\"name\":\"bnffex\",\"value\":\"datazijtctfewniwt\"},{\"name\":\"plwyluvqp\",\"value\":\"datawvoyqsnt\"}],\"\":{\"tosoanxinlmi\":\"dataxvezoaldssesxc\",\"uivzsjf\":\"datacgu\"}},{\"type\":\"enhyhd\",\"name\":\"saykr\",\"description\":\"wybbda\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ltsxmd\",\"dependencyConditions\":[]},{\"activity\":\"cetj\",\"dependencyConditions\":[]},{\"activity\":\"apfieau\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"xdirdcxu\",\"value\":\"dataamrxlhf\"},{\"name\":\"jcqofpwjjtd\",\"value\":\"datafyivvtxqp\"},{\"name\":\"mqogtohzfvysv\",\"value\":\"datadbjd\"},{\"name\":\"htxvmnyslpdq\",\"value\":\"datamzjppblnervt\"}],\"\":{\"si\":\"datadtnjxvtvyy\"}}]}],\"defaultActivities\":[{\"type\":\"ygn\",\"name\":\"xgzzq\",\"description\":\"svjhm\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"sugkdvmgpeitfbgy\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Succeeded\"],\"\":{\"ookhcu\":\"datadsgfztmhvuoavp\",\"sutseejtfnjrrxf\":\"datawgbjzznmjwqwyhh\"}},{\"activity\":\"uywzpcx\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Skipped\",\"Succeeded\"],\"\":{\"h\":\"datalowm\",\"tceehqeahlfujp\":\"datauhywdckvcof\",\"uumldunalo\":\"datavtakijwkwed\"}}],\"userProperties\":[{\"name\":\"ikfqcbe\",\"value\":\"datansszu\"},{\"name\":\"dvhqecqqiulwfz\",\"value\":\"dataszgbgtwaquiuzsn\"},{\"name\":\"jgnmpu\",\"value\":\"datasjfvdajmczlvcxm\"}],\"\":{\"tbgkx\":\"databrp\",\"lszcwomayr\":\"dataxwjzleeup\",\"dfxnxtiwi\":\"dataatrjpa\",\"ihsgt\":\"datanho\"}},{\"type\":\"gmfnpeluvxsicp\",\"name\":\"ukupngorw\",\"description\":\"yrguxfjjgcfqfwgr\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jgxkrppxjnrujd\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"zdakfxzhapcwhj\":\"dataladibsjirhaqedfu\"}},{\"activity\":\"mjfr\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Completed\",\"Skipped\"],\"\":{\"bnvwhqctqdyfug\":\"datayyebgfffnt\",\"y\":\"datasmxvevudywny\"}},{\"activity\":\"naynlxwukpqcf\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Completed\",\"Failed\"],\"\":{\"aqrxzjmxtm\":\"datadslrrtvahizmz\",\"e\":\"databdwqwh\"}}],\"userProperties\":[{\"name\":\"fjzyin\",\"value\":\"datauuabe\"},{\"name\":\"sqk\",\"value\":\"datatb\"}],\"\":{\"s\":\"datayrifhuyavhesqn\",\"nfakcchcnmzvhdu\":\"datateprs\",\"chgvwggylbmfrxof\":\"dataigadpq\"}},{\"type\":\"yscwv\",\"name\":\"qzfg\",\"description\":\"yrppsowdo\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"tbpaircnupmz\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\"],\"\":{\"ejvsfhjrsxrml\":\"dataoebzofmm\",\"o\":\"datasz\"}},{\"activity\":\"pqnp\",\"dependencyConditions\":[\"Completed\"],\"\":{\"b\":\"datasekdfhnhbkt\"}},{\"activity\":\"on\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Succeeded\"],\"\":{\"nqneo\":\"dataxetqknzevbyp\"}},{\"activity\":\"zcrmngaqlinlwc\",\"dependencyConditions\":[\"Failed\"],\"\":{\"u\":\"dataxctojxtkmdegmiv\",\"abt\":\"datalpctlbuobi\",\"ktg\":\"datarkmktcs\",\"epmhohq\":\"dataofzzsohcaet\"}}],\"userProperties\":[{\"name\":\"y\",\"value\":\"datatliwoodndu\"},{\"name\":\"tykyzirgiyqzuhn\",\"value\":\"dataa\"},{\"name\":\"dttgbsd\",\"value\":\"dataruwvr\"},{\"name\":\"xoozyhuc\",\"value\":\"datadeqslhzzy\"}],\"\":{\"oqusrlkphtyqydrn\":\"dataazol\",\"dlhuslqikocgzjm\":\"datasfaemkbpdp\"}}]}") - .toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("mbyltd", model.on().value()); - Assertions.assertEquals("ehxotizv", model.cases().get(0).value()); - Assertions.assertEquals("u", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("bco", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("yokwaxehxsweb", - model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("weuazxtsgsqoads", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("xgzzq", model.defaultActivities().get(0).name()); - Assertions.assertEquals("svjhm", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("sugkdvmgpeitfbgy", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ikfqcbe", 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("mbyltd")) - .withCases(Arrays.asList( - new SwitchCase().withValue("ehxotizv") - .withActivities(Arrays.asList( - new Activity().withName("u") - .withDescription("bco") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("yokwaxehxsweb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("a") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xffttfqlcxymcmo") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("weuazxtsgsqoads").withValue("dataacemw"), - new UserProperty().withName("icdgimsbumpp").withValue("databcarcyrftcjxz"), - new UserProperty().withName("xwwmhdlrfy").withValue("datannbxvxrcmrdmyj"), - new UserProperty().withName("ouxzod").withValue("datalehc"))) - .withAdditionalProperties(mapOf("type", "dcotfovjiy")), - new Activity().withName("hpqnzpf") - .withDescription("ppkqufdmgmfyia") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("rilhyfxmrq") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("icknygzdrdicwm") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("eavawywofgccj") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("vvr").withValue("dataxclf"), - new UserProperty().withName("mx").withValue("datafqwyiuhhuftn"))) - .withAdditionalProperties(mapOf("type", "nybfmbl")))), - new SwitchCase().withValue("xdwv") - .withActivities(Arrays.asList( - new Activity().withName("walefmenbajzeelb") - .withDescription("yaohiz") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("upft") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ddohxvcsoqxydcqp") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ywttdanu") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("iwtkhcmoc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("mfugik").withValue("datambkstkkzt"), - new UserProperty().withName("xdsnmhndcr").withValue("dataveccmqenfgba"), - new UserProperty().withName("uuyt").withValue("datadenv"), - new UserProperty().withName("olfiigox").withValue("datahjyvpfisy"))) - .withAdditionalProperties(mapOf("type", "wo")), - new Activity().withName("kngvpsukkk") - .withDescription("ghugfdugqhm") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("lcbpbtjtiidozf") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qurr").withValue("datanijdr"), - new UserProperty().withName("vohjg").withValue("dataoiikr"), - new UserProperty().withName("lzsgpoiccbzqko").withValue("dataja"))) - .withAdditionalProperties(mapOf("type", "pv")), - new Activity().withName("trny") - .withDescription("ixiduzrdvh") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("vfwlxkxlrungs") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("lxlezz").withValue("datammzzoiudel"))) - .withAdditionalProperties(mapOf("type", "oqhamr")), - new Activity().withName("uzybmsyzz") - .withDescription("bnmzjwhybsg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("z") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qmwmwoggbxiasfi").withValue("dataucnp"), - new UserProperty().withName("lfedwhvhlzpvpix").withValue("datajvycodfubnvdibb"))) - .withAdditionalProperties(mapOf("type", "udnygtsjafvzdsjb")))), - new SwitchCase().withValue("bgojops") - .withActivities(Arrays.asList( - new Activity().withName("ueifmtgntlfdiqzv") - .withDescription("ff") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("wl") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dgpud") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("imehdxcytyfhw") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bhapfny") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("tebehj").withValue("datamfejeihnhwg"))) - .withAdditionalProperties(mapOf("type", "yy")), - new Activity().withName("lvakhdigxxtf") - .withDescription("asdhdiiwvznff") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("tpd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hbpf") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mrhxpmt") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("xfglilfjcowrzqy").withValue("datacjxsgrt"), - new UserProperty().withName("itaamp").withValue("dataenyvpxpcj"), - new UserProperty().withName("bnffex").withValue("datazijtctfewniwt"), - new UserProperty().withName("plwyluvqp").withValue("datawvoyqsnt"))) - .withAdditionalProperties(mapOf("type", "puasbfc")), - new Activity().withName("saykr") - .withDescription("wybbda") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ltsxmd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("cetj") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("apfieau") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("xdirdcxu").withValue("dataamrxlhf"), - new UserProperty().withName("jcqofpwjjtd").withValue("datafyivvtxqp"), - new UserProperty().withName("mqogtohzfvysv").withValue("datadbjd"), - new UserProperty().withName("htxvmnyslpdq").withValue("datamzjppblnervt"))) - .withAdditionalProperties(mapOf("type", "enhyhd")))))) - .withDefaultActivities(Arrays.asList( - new Activity() - .withName("xgzzq") - .withDescription("svjhm") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency() - .withActivity("sugkdvmgpeitfbgy") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("uywzpcx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ikfqcbe").withValue("datansszu"), - new UserProperty().withName("dvhqecqqiulwfz").withValue("dataszgbgtwaquiuzsn"), - new UserProperty().withName("jgnmpu").withValue("datasjfvdajmczlvcxm"))) - .withAdditionalProperties(mapOf("type", "ygn")), - new Activity().withName("ukupngorw") - .withDescription("yrguxfjjgcfqfwgr") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jgxkrppxjnrujd") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mjfr") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("naynlxwukpqcf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("fjzyin").withValue("datauuabe"), - new UserProperty().withName("sqk").withValue("datatb"))) - .withAdditionalProperties(mapOf("type", "gmfnpeluvxsicp")), - new Activity().withName("qzfg") - .withDescription("yrppsowdo") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("tbpaircnupmz") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pqnp") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("on") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zcrmngaqlinlwc") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("y").withValue("datatliwoodndu"), - new UserProperty().withName("tykyzirgiyqzuhn").withValue("dataa"), - new UserProperty().withName("dttgbsd").withValue("dataruwvr"), - new UserProperty().withName("xoozyhuc").withValue("datadeqslhzzy"))) - .withAdditionalProperties(mapOf("type", "yscwv")))); - model = BinaryData.fromObject(model).toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("mbyltd", model.on().value()); - Assertions.assertEquals("ehxotizv", model.cases().get(0).value()); - Assertions.assertEquals("u", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("bco", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("yokwaxehxsweb", - model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("weuazxtsgsqoads", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("xgzzq", model.defaultActivities().get(0).name()); - Assertions.assertEquals("svjhm", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("sugkdvmgpeitfbgy", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ikfqcbe", 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 97ccd3bc9aa6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.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.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\":\"oq\",\"activities\":[{\"type\":\"cwekbbvtcoxd\",\"name\":\"gjdpy\",\"description\":\"m\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"tjcpoynbsttur\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\"],\"\":{\"ecsreo\":\"datagaiusglg\",\"xbmgheyamoety\":\"dataswmkxbbziffpvvg\",\"xseyjqklaihqrbrm\":\"dataevyitidi\",\"pydjsubt\":\"datahljqqbue\"}}],\"userProperties\":[{\"name\":\"vcveomdlrsjgu\",\"value\":\"datadf\"},{\"name\":\"dqvuqufaowu\",\"value\":\"databujjvojm\"}],\"\":{\"lx\":\"datavovj\",\"rh\":\"datawfqvlhjaw\",\"ffwqbdvgfgirrzyn\":\"datafgzlrnfmmefppjxt\",\"nqfrxggvs\":\"datadvdrn\"}},{\"type\":\"xvfkqaqf\",\"name\":\"imfpnp\",\"description\":\"dgjndwtdorvx\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"effpidwqrzdzjm\",\"dependencyConditions\":[\"Completed\"],\"\":{\"uetfxz\":\"datapplcoqb\",\"s\":\"dataj\",\"dgq\":\"datadlokhimzfltxqpoz\",\"jwjnvhu\":\"datakfevhgjk\"}},{\"activity\":\"wmwvqbpazjmfqu\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\",\"Failed\"],\"\":{\"hdyifjvfrg\":\"datagjaa\",\"cwpjpkaf\":\"datanquj\",\"vuyc\":\"datakaf\",\"qsmk\":\"datatlmnrdkiqsqbdvk\"}},{\"activity\":\"iqljxn\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"ptsdlcsrhttmh\":\"datarofqh\",\"duzqu\":\"datagwov\"}}],\"userProperties\":[{\"name\":\"cwnlyq\",\"value\":\"datakknulrqpacu\"}],\"\":{\"r\":\"datasjawbnxcizeuifnd\",\"fs\":\"datanzjyghq\",\"vgec\":\"dataln\",\"cgrkgt\":\"dataems\"}}]}") - .toObject(SwitchCase.class); - Assertions.assertEquals("oq", model.value()); - Assertions.assertEquals("gjdpy", model.activities().get(0).name()); - Assertions.assertEquals("m", 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("tjcpoynbsttur", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vcveomdlrsjgu", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchCase model = new SwitchCase().withValue("oq") - .withActivities(Arrays.asList( - new Activity().withName("gjdpy") - .withDescription("m") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("tjcpoynbsttur") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("vcveomdlrsjgu").withValue("datadf"), - new UserProperty().withName("dqvuqufaowu").withValue("databujjvojm"))) - .withAdditionalProperties(mapOf("type", "cwekbbvtcoxd")), - new Activity().withName("imfpnp") - .withDescription("dgjndwtdorvx") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("effpidwqrzdzjm") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wmwvqbpazjmfqu") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("iqljxn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("cwnlyq").withValue("datakknulrqpacu"))) - .withAdditionalProperties(mapOf("type", "xvfkqaqf")))); - model = BinaryData.fromObject(model).toObject(SwitchCase.class); - Assertions.assertEquals("oq", model.value()); - Assertions.assertEquals("gjdpy", model.activities().get(0).name()); - Assertions.assertEquals("m", 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("tjcpoynbsttur", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vcveomdlrsjgu", 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 2bd4d61886b2..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\":\"upcio\",\"query\":\"dataqzhtmeuip\",\"queryTimeout\":\"datasrpsjkqfabju\",\"additionalColumns\":\"datats\",\"sourceRetryCount\":\"datarjdeyfnqanbadkzp\",\"sourceRetryWait\":\"datatuplpkjexq\",\"maxConcurrentConnections\":\"datanzlalugoeftrbxom\",\"disableMetricsCollection\":\"dataovarfqverx\",\"\":{\"epgvj\":\"datauq\",\"mddwqiucpjprtb\":\"datallzykalbau\",\"zelxrft\":\"datasjtj\",\"lvrofhhitjhh\":\"datadb\"}}") - .toObject(SybaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseSource model = new SybaseSource().withSourceRetryCount("datarjdeyfnqanbadkzp") - .withSourceRetryWait("datatuplpkjexq") - .withMaxConcurrentConnections("datanzlalugoeftrbxom") - .withDisableMetricsCollection("dataovarfqverx") - .withQueryTimeout("datasrpsjkqfabju") - .withAdditionalColumns("datats") - .withQuery("dataqzhtmeuip"); - 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 e54083eabe0b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.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.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\":\"vxjdqosxzmdz\",\"typeProperties\":{\"tableName\":\"databk\"},\"description\":\"bqfufke\",\"structure\":\"datafkicxhsevmnkggh\",\"schema\":\"dataryjok\",\"linkedServiceName\":{\"referenceName\":\"lwvbjsarxs\",\"parameters\":{\"gieabbf\":\"datapabwbpzgfgqpudhg\",\"avlozu\":\"datax\",\"jsfmaxcebnbe\":\"datagsnuhwy\"}},\"parameters\":{\"v\":{\"type\":\"String\",\"defaultValue\":\"dataqqerwqxpj\"},\"httuobrx\":{\"type\":\"Array\",\"defaultValue\":\"dataf\"},\"cwtfmabvbmn\":{\"type\":\"Int\",\"defaultValue\":\"dataytebjkjge\"}},\"annotations\":[\"dataofxfmhlvyqnslbq\",\"datamlqkiekhj\",\"dataqqrugwespscvs\"],\"folder\":{\"name\":\"tluwozfvzasupc\"},\"\":{\"cgmlmpn\":\"dataxcvwioqhc\"}}") - .toObject(SybaseTableDataset.class); - Assertions.assertEquals("bqfufke", model.description()); - Assertions.assertEquals("lwvbjsarxs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("v").type()); - Assertions.assertEquals("tluwozfvzasupc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDataset model = new SybaseTableDataset().withDescription("bqfufke") - .withStructure("datafkicxhsevmnkggh") - .withSchema("dataryjok") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lwvbjsarxs") - .withParameters( - mapOf("gieabbf", "datapabwbpzgfgqpudhg", "avlozu", "datax", "jsfmaxcebnbe", "datagsnuhwy"))) - .withParameters(mapOf("v", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataqqerwqxpj"), - "httuobrx", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataf"), - "cwtfmabvbmn", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataytebjkjge"))) - .withAnnotations(Arrays.asList("dataofxfmhlvyqnslbq", "datamlqkiekhj", "dataqqrugwespscvs")) - .withFolder(new DatasetFolder().withName("tluwozfvzasupc")) - .withTableName("databk"); - model = BinaryData.fromObject(model).toObject(SybaseTableDataset.class); - Assertions.assertEquals("bqfufke", model.description()); - Assertions.assertEquals("lwvbjsarxs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("v").type()); - Assertions.assertEquals("tluwozfvzasupc", 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 4eaa4ed4eb56..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\":\"dataxuyi\"}").toObject(SybaseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDatasetTypeProperties model = new SybaseTableDatasetTypeProperties().withTableName("dataxuyi"); - 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 0237361306ea..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"uemotgkyfh\",\"typeProperties\":{\"notebook\":{\"type\":\"NotebookReference\",\"referenceName\":\"datallt\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"dataxxzhbfib\"},\"parameters\":{\"djrhxjawf\":{\"value\":\"datahzpjdbzhlchv\",\"type\":\"int\"},\"pucybtravel\":{\"value\":\"datavgvrpearooh\",\"type\":\"bool\"},\"ogxexeaexweei\":{\"value\":\"datam\",\"type\":\"float\"},\"ncnf\":{\"value\":\"datagvzmqdn\",\"type\":\"float\"}},\"executorSize\":\"dataggiomgv\",\"conf\":\"datarxlrtm\",\"driverSize\":\"datagnixkp\",\"numExecutors\":\"datajqjwlhqeibucm\",\"configurationType\":\"Artifact\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"datajrs\"},\"sparkConfig\":{\"uzwy\":\"datamaezxldmzh\"}},\"linkedServiceName\":{\"referenceName\":\"omuapyskwi\",\"parameters\":{\"xfyqsfygafhbf\":\"datafqvulesqjdbcypvs\",\"vqlmzpckxlcslm\":\"dataz\"}},\"policy\":{\"timeout\":\"dataojqpjba\",\"retry\":\"datanxdizdfulv\",\"retryIntervalInSeconds\":1834458226,\"secureInput\":false,\"secureOutput\":true,\"\":{\"dht\":\"datasp\",\"hx\":\"dataopzfcexbtwic\",\"gkvmmkwa\":\"datae\"}},\"name\":\"xmwq\",\"description\":\"svzczisi\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"fuhqbatdnufvz\",\"dependencyConditions\":[\"Failed\"],\"\":{\"vdtssa\":\"datat\",\"mfaagpjslrf\":\"databmdoj\"}}],\"userProperties\":[{\"name\":\"ut\",\"value\":\"databhs\"},{\"name\":\"nnf\",\"value\":\"databxtabxdkboyqes\"}],\"\":{\"uikqzdqkxjcqdnzh\":\"datavutarurfjppmi\",\"pjinjikxocf\":\"datalbdlhnkv\",\"r\":\"datakcnjzxezo\"}}") - .toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("xmwq", model.name()); - Assertions.assertEquals("svzczisi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("fuhqbatdnufvz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ut", model.userProperties().get(0).name()); - Assertions.assertEquals("omuapyskwi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1834458226, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.INT, model.parameters().get("djrhxjawf").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("xmwq") - .withDescription("svzczisi") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("fuhqbatdnufvz") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ut").withValue("databhs"), - new UserProperty().withName("nnf").withValue("databxtabxdkboyqes"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("omuapyskwi") - .withParameters(mapOf("xfyqsfygafhbf", "datafqvulesqjdbcypvs", "vqlmzpckxlcslm", "dataz"))) - .withPolicy(new ActivityPolicy().withTimeout("dataojqpjba") - .withRetry("datanxdizdfulv") - .withRetryIntervalInSeconds(1834458226) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withNotebook(new SynapseNotebookReference().withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datallt")) - .withSparkPool( - new BigDataPoolParametrizationReference().withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("dataxxzhbfib")) - .withParameters(mapOf("djrhxjawf", - new NotebookParameter().withValue("datahzpjdbzhlchv").withType(NotebookParameterType.INT), - "pucybtravel", - new NotebookParameter().withValue("datavgvrpearooh").withType(NotebookParameterType.BOOL), - "ogxexeaexweei", new NotebookParameter().withValue("datam").withType(NotebookParameterType.FLOAT), - "ncnf", new NotebookParameter().withValue("datagvzmqdn").withType(NotebookParameterType.FLOAT))) - .withExecutorSize("dataggiomgv") - .withConf("datarxlrtm") - .withDriverSize("datagnixkp") - .withNumExecutors("datajqjwlhqeibucm") - .withConfigurationType(ConfigurationType.ARTIFACT) - .withTargetSparkConfiguration(new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("datajrs")) - .withSparkConfig(mapOf("uzwy", "datamaezxldmzh")); - model = BinaryData.fromObject(model).toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("xmwq", model.name()); - Assertions.assertEquals("svzczisi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("fuhqbatdnufvz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ut", model.userProperties().get(0).name()); - Assertions.assertEquals("omuapyskwi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1834458226, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.INT, model.parameters().get("djrhxjawf").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 527cfc96b7ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.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.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\":\"dataewthslzt\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"datang\"},\"parameters\":{\"znlscfbwkh\":{\"value\":\"dataycbvefldfwqn\",\"type\":\"string\"},\"nbzpcxo\":{\"value\":\"dataumiboprg\",\"type\":\"int\"},\"vnanx\":{\"value\":\"datamepzekm\",\"type\":\"int\"}},\"executorSize\":\"datawzla\",\"conf\":\"datateqnttmhsrw\",\"driverSize\":\"datacxyfje\",\"numExecutors\":\"datacgelipoequjkhum\",\"configurationType\":\"Artifact\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"databptvvwfamhljhi\"},\"sparkConfig\":{\"zwd\":\"dataccwmrckvlb\",\"ohxmzpfptt\":\"dataydbsrjofxoktokms\"}}") - .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("znlscfbwkh").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 { - SynapseNotebookActivityTypeProperties model = new SynapseNotebookActivityTypeProperties() - .withNotebook(new SynapseNotebookReference().withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("dataewthslzt")) - .withSparkPool( - new BigDataPoolParametrizationReference().withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("datang")) - .withParameters(mapOf("znlscfbwkh", - new NotebookParameter().withValue("dataycbvefldfwqn").withType(NotebookParameterType.STRING), "nbzpcxo", - new NotebookParameter().withValue("dataumiboprg").withType(NotebookParameterType.INT), "vnanx", - new NotebookParameter().withValue("datamepzekm").withType(NotebookParameterType.INT))) - .withExecutorSize("datawzla") - .withConf("datateqnttmhsrw") - .withDriverSize("datacxyfje") - .withNumExecutors("datacgelipoequjkhum") - .withConfigurationType(ConfigurationType.ARTIFACT) - .withTargetSparkConfiguration(new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("databptvvwfamhljhi")) - .withSparkConfig(mapOf("zwd", "dataccwmrckvlb", "ohxmzpfptt", "dataydbsrjofxoktokms")); - 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("znlscfbwkh").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/SynapseNotebookReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java deleted file mode 100644 index 143c48d14b18..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\":\"datawqrbtadsdkbndkof\"}") - .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("datawqrbtadsdkbndkof"); - 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 a2fc691424a6..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\":\"dataityp\"}") - .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("dataityp"); - 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 ad0dbc6fb7db..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\":\"vhfpfsesiywcre\",\"queryTimeout\":\"dataj\",\"additionalColumns\":\"datap\",\"sourceRetryCount\":\"dataphqqozhesbpq\",\"sourceRetryWait\":\"datamfjktd\",\"maxConcurrentConnections\":\"datahlkzt\",\"disableMetricsCollection\":\"datauuupcdaoatzvajw\",\"\":{\"lmazgpqo\":\"dataefmotulh\"}}") - .toObject(TabularSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularSource model = new TabularSource().withSourceRetryCount("dataphqqozhesbpq") - .withSourceRetryWait("datamfjktd") - .withMaxConcurrentConnections("datahlkzt") - .withDisableMetricsCollection("datauuupcdaoatzvajw") - .withQueryTimeout("dataj") - .withAdditionalColumns("datap"); - 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 c1c659e0e967..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\":\"a\",\"columnMappings\":\"datalnkbmvnvfgwgoxf\",\"schemaMapping\":\"datakezoxhazafmq\",\"collectionReference\":\"dataifpciammpeakdheb\",\"mapComplexValuesToString\":\"datauqg\",\"mappings\":\"dataxklojd\",\"typeConversion\":\"datahajfj\",\"typeConversionSettings\":{\"allowDataTruncation\":\"datasxgjih\",\"treatBooleanAsNumber\":\"dataox\",\"dateTimeFormat\":\"datahumvptbhogll\",\"dateTimeOffsetFormat\":\"dataealcj\",\"timeSpanFormat\":\"datazzil\",\"culture\":\"datacrnovbg\"},\"\":{\"pzzq\":\"dataxsyhpilqojdmzej\",\"rcivxaq\":\"datainrymzlq\"}}") - .toObject(TabularTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularTranslator model = new TabularTranslator().withColumnMappings("datalnkbmvnvfgwgoxf") - .withSchemaMapping("datakezoxhazafmq") - .withCollectionReference("dataifpciammpeakdheb") - .withMapComplexValuesToString("datauqg") - .withMappings("dataxklojd") - .withTypeConversion("datahajfj") - .withTypeConversionSettings(new TypeConversionSettings().withAllowDataTruncation("datasxgjih") - .withTreatBooleanAsNumber("dataox") - .withDateTimeFormat("datahumvptbhogll") - .withDateTimeOffsetFormat("dataealcj") - .withTimeSpanFormat("datazzil") - .withCulture("datacrnovbg")); - 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 295bdf076b0d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.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.TarGZipReadSettings; - -public final class TarGZipReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TarGZipReadSettings model = BinaryData.fromString( - "{\"type\":\"eqljzkhncaeyk\",\"preserveCompressionFileNameAsFolder\":\"datapdnnsujx\",\"\":{\"lniahvlzgs\":\"datatztnprns\",\"isjscuwyl\":\"datawiubgbltj\",\"rziryx\":\"dataktzcuxuxaihhegu\"}}") - .toObject(TarGZipReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarGZipReadSettings model = new TarGZipReadSettings().withPreserveCompressionFileNameAsFolder("datapdnnsujx"); - 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 6469eaf5165c..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\":\"gfqxejjntiqbx\",\"preserveCompressionFileNameAsFolder\":\"datahsfnocz\",\"\":{\"fcrb\":\"dataudog\",\"wzbew\":\"dataoeomufaza\",\"ucj\":\"databsspexejhwpnjc\",\"dqtir\":\"databovuvmd\"}}") - .toObject(TarReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarReadSettings model = new TarReadSettings().withPreserveCompressionFileNameAsFolder("datahsfnocz"); - 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 885835124999..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\":\"dataoqbzrclar\",\"partitionUpperBound\":\"datafmfkuvybem\",\"partitionLowerBound\":\"dataamshqvku\"}") - .toObject(TeradataPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataPartitionSettings model = new TeradataPartitionSettings().withPartitionColumnName("dataoqbzrclar") - .withPartitionUpperBound("datafmfkuvybem") - .withPartitionLowerBound("dataamshqvku"); - 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 7758f5978315..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\":\"moyxdigkggzmyl\",\"query\":\"datakqiqsriubem\",\"partitionOption\":\"datauygmrenrbn\",\"partitionSettings\":{\"partitionColumnName\":\"datafmophtkyzsgayn\",\"partitionUpperBound\":\"dataowvcnvf\",\"partitionLowerBound\":\"dataxqhysuapdns\"},\"queryTimeout\":\"dataycjdnio\",\"additionalColumns\":\"datagyxmpmsacbamtoqs\",\"sourceRetryCount\":\"dataqeosx\",\"sourceRetryWait\":\"dataxilefiottdawgka\",\"maxConcurrentConnections\":\"datah\",\"disableMetricsCollection\":\"datatyhypi\",\"\":{\"nkkxoicb\":\"datajjfcysk\",\"pmvppvgrigjegrl\":\"datasmfvltbocqhv\"}}") - .toObject(TeradataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataSource model = new TeradataSource().withSourceRetryCount("dataqeosx") - .withSourceRetryWait("dataxilefiottdawgka") - .withMaxConcurrentConnections("datah") - .withDisableMetricsCollection("datatyhypi") - .withQueryTimeout("dataycjdnio") - .withAdditionalColumns("datagyxmpmsacbamtoqs") - .withQuery("datakqiqsriubem") - .withPartitionOption("datauygmrenrbn") - .withPartitionSettings(new TeradataPartitionSettings().withPartitionColumnName("datafmophtkyzsgayn") - .withPartitionUpperBound("dataowvcnvf") - .withPartitionLowerBound("dataxqhysuapdns")); - 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 fac11aef959a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.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.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\":\"mucjiuh\",\"typeProperties\":{\"database\":\"datauyjnqzbrqcakm\",\"table\":\"datakviyjucamnsbqoit\"},\"description\":\"yvehyk\",\"structure\":\"datalyqdvpqfbxgyc\",\"schema\":\"datausdmtxq\",\"linkedServiceName\":{\"referenceName\":\"ef\",\"parameters\":{\"ey\":\"dataeywvfopkyll\",\"w\":\"datanj\",\"wxhqhgkh\":\"datamsfwtwrsvevcneq\",\"t\":\"databzvulqevvjncpmy\"}},\"parameters\":{\"bcyjrtalqee\":{\"type\":\"Float\",\"defaultValue\":\"dataghcmixmlwkfe\"},\"oaezktomsgoihlq\":{\"type\":\"Object\",\"defaultValue\":\"datafyim\"}},\"annotations\":[\"datawaazbaeeek\",\"dataztvn\",\"databfb\"],\"folder\":{\"name\":\"wnoljdkx\"},\"\":{\"puyytbpkrpkh\":\"datawyaolclzxkr\"}}") - .toObject(TeradataTableDataset.class); - Assertions.assertEquals("yvehyk", model.description()); - Assertions.assertEquals("ef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("bcyjrtalqee").type()); - Assertions.assertEquals("wnoljdkx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDataset model = new TeradataTableDataset().withDescription("yvehyk") - .withStructure("datalyqdvpqfbxgyc") - .withSchema("datausdmtxq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ef") - .withParameters(mapOf("ey", "dataeywvfopkyll", "w", "datanj", "wxhqhgkh", "datamsfwtwrsvevcneq", "t", - "databzvulqevvjncpmy"))) - .withParameters(mapOf("bcyjrtalqee", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataghcmixmlwkfe"), - "oaezktomsgoihlq", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datafyim"))) - .withAnnotations(Arrays.asList("datawaazbaeeek", "dataztvn", "databfb")) - .withFolder(new DatasetFolder().withName("wnoljdkx")) - .withDatabase("datauyjnqzbrqcakm") - .withTable("datakviyjucamnsbqoit"); - model = BinaryData.fromObject(model).toObject(TeradataTableDataset.class); - Assertions.assertEquals("yvehyk", model.description()); - Assertions.assertEquals("ef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("bcyjrtalqee").type()); - Assertions.assertEquals("wnoljdkx", 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 61d9f38046d1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.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.TeradataTableDatasetTypeProperties; - -public final class TeradataTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataTableDatasetTypeProperties model - = BinaryData.fromString("{\"database\":\"datatpoenefnoafpcnrx\",\"table\":\"datarxowvhufcmuajwb\"}") - .toObject(TeradataTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDatasetTypeProperties model - = new TeradataTableDatasetTypeProperties().withDatabase("datatpoenefnoafpcnrx") - .withTable("datarxowvhufcmuajwb"); - 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 523d0bd3957e..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\":\"e\",\"columnDelimiter\":\"datajlwyxedzn\",\"rowDelimiter\":\"datarfo\",\"escapeChar\":\"datakewvmyifopxfj\",\"quoteChar\":\"datapdyzoutx\",\"nullValue\":\"datatofhgnuywez\",\"encodingName\":\"datavadga\",\"treatEmptyAsNull\":\"datawv\",\"skipLineCount\":\"datajpytp\",\"firstRowAsHeader\":\"datavdn\",\"serializer\":\"dataufb\",\"deserializer\":\"datatbnukkfaxz\",\"\":{\"oewyhxessmvrkd\":\"dataxxyjisskobqoclfl\"}}") - .toObject(TextFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TextFormat model = new TextFormat().withSerializer("dataufb") - .withDeserializer("datatbnukkfaxz") - .withColumnDelimiter("datajlwyxedzn") - .withRowDelimiter("datarfo") - .withEscapeChar("datakewvmyifopxfj") - .withQuoteChar("datapdyzoutx") - .withNullValue("datatofhgnuywez") - .withEncodingName("datavadga") - .withTreatEmptyAsNull("datawv") - .withSkipLineCount("datajpytp") - .withFirstRowAsHeader("datavdn"); - 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 9616c07bcddf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.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.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\":\"fgkuh\",\"description\":\"whvuldbkk\",\"dataset\":{\"referenceName\":\"jkjigawgaz\",\"parameters\":{\"aahzbhuroolkol\":\"dataqifhujjsbcml\",\"gfjzcvaax\":\"datarhhmojusu\",\"ahfxwccok\":\"dataia\",\"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\"}}}") - .toObject(Transformation.class); - Assertions.assertEquals("fgkuh", model.name()); - Assertions.assertEquals("whvuldbkk", model.description()); - Assertions.assertEquals("jkjigawgaz", model.dataset().referenceName()); - Assertions.assertEquals("nuhhoqeqshav", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("drnzkjthf", model.flowlet().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Transformation model = new Transformation().withName("fgkuh") - .withDescription("whvuldbkk") - .withDataset(new DatasetReference().withReferenceName("jkjigawgaz") - .withParameters(mapOf("aahzbhuroolkol", "dataqifhujjsbcml", "gfjzcvaax", "datarhhmojusu", "ahfxwccok", - "dataia", "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())); - model = BinaryData.fromObject(model).toObject(Transformation.class); - Assertions.assertEquals("fgkuh", model.name()); - Assertions.assertEquals("whvuldbkk", model.description()); - Assertions.assertEquals("jkjigawgaz", model.dataset().referenceName()); - Assertions.assertEquals("nuhhoqeqshav", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("drnzkjthf", 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 6c99f754cdb0..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\":\"ihwiezc\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"riottzyru\"}}") - .toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("riottzyru", 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("riottzyru")); - model = BinaryData.fromObject(model).toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("riottzyru", 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 ff4e6bcec198..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.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.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\":\"kb\",\"description\":\"rj\",\"runtimeState\":\"Started\",\"annotations\":[\"datacmisofie\"],\"\":{\"qdhcu\":\"datafoj\",\"khihihlhzds\":\"datalcplc\",\"mvec\":\"datatzbsrgnowcjhf\"}},\"name\":\"txmwoteyow\",\"type\":\"uqovekqvgqouwif\",\"etag\":\"pjwyiv\",\"id\":\"kfxcvhrfs\"},{\"properties\":{\"type\":\"uagrttikteusqc\",\"description\":\"vyklxuby\",\"runtimeState\":\"Started\",\"annotations\":[\"datamfblcqcuubg\",\"dataibrta\",\"datametttwgd\",\"datalqxihhrmooiz\"],\"\":{\"hyrpetogebjoxs\":\"dataypxiutcxap\",\"abrqnkkzj\":\"datahvnh\",\"rgaehvvibrxjj\":\"datajb\",\"lftidgfcwqmpim\":\"datatoqbeitpkxztmoob\"}},\"name\":\"xzhemjyh\",\"type\":\"uj\",\"etag\":\"t\",\"id\":\"ozzwculkba\"},{\"properties\":{\"type\":\"fajnjwltlwtjjguk\",\"description\":\"lhsnvkcdmx\",\"runtimeState\":\"Started\",\"annotations\":[\"dataimlnwiaaomylw\",\"dataazul\",\"datasethwwn\"],\"\":{\"zswpchwa\":\"datal\"}},\"name\":\"bousn\",\"type\":\"pgfewetwlyx\",\"etag\":\"cxy\",\"id\":\"hdjhlimmbcx\"},{\"properties\":{\"type\":\"bcporxvxcjzhqizx\",\"description\":\"xtgqscjavftjuh\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datamtggu\"],\"\":{\"ghfcfiwrxgkneuvy\":\"datajrajcivm\"}},\"name\":\"zqodfvpgshox\",\"type\":\"gbpfgz\",\"etag\":\"tx\",\"id\":\"flbqvgaq\"}],\"nextLink\":\"gafcqu\"}") - .toObject(TriggerListResponse.class); - Assertions.assertEquals("kfxcvhrfs", model.value().get(0).id()); - Assertions.assertEquals("rj", model.value().get(0).properties().description()); - Assertions.assertEquals("gafcqu", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerListResponse model - = new TriggerListResponse() - .withValue(Arrays.asList( - new TriggerResourceInner().withId("kfxcvhrfs") - .withProperties(new Trigger().withDescription("rj") - .withAnnotations(Arrays.asList("datacmisofie")) - .withAdditionalProperties(mapOf("type", "kb", "runtimeState", "Started"))), - new TriggerResourceInner().withId("ozzwculkba") - .withProperties(new Trigger().withDescription("vyklxuby") - .withAnnotations( - Arrays.asList("datamfblcqcuubg", "dataibrta", "datametttwgd", "datalqxihhrmooiz")) - .withAdditionalProperties(mapOf("type", "uagrttikteusqc", "runtimeState", "Started"))), - new TriggerResourceInner().withId("hdjhlimmbcx") - .withProperties(new Trigger().withDescription("lhsnvkcdmx") - .withAnnotations(Arrays.asList("dataimlnwiaaomylw", "dataazul", "datasethwwn")) - .withAdditionalProperties(mapOf("type", "fajnjwltlwtjjguk", "runtimeState", "Started"))), - new TriggerResourceInner().withId("flbqvgaq") - .withProperties(new Trigger().withDescription("xtgqscjavftjuh") - .withAnnotations(Arrays.asList("datamtggu")) - .withAdditionalProperties(mapOf("type", "bcporxvxcjzhqizx", "runtimeState", "Disabled"))))) - .withNextLink("gafcqu"); - model = BinaryData.fromObject(model).toObject(TriggerListResponse.class); - Assertions.assertEquals("kfxcvhrfs", model.value().get(0).id()); - Assertions.assertEquals("rj", model.value().get(0).properties().description()); - Assertions.assertEquals("gafcqu", 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 050783d5be38..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.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.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\":\"koilaci\",\"name\":\"wjleip\"},\"parameters\":{\"kkwhbgxvellvulnx\":\"datawyxpzruzyth\"}}") - .toObject(TriggerPipelineReference.class); - Assertions.assertEquals("koilaci", model.pipelineReference().referenceName()); - Assertions.assertEquals("wjleip", model.pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerPipelineReference model = new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("koilaci").withName("wjleip")) - .withParameters(mapOf("kkwhbgxvellvulnx", "datawyxpzruzyth")); - model = BinaryData.fromObject(model).toObject(TriggerPipelineReference.class); - Assertions.assertEquals("koilaci", model.pipelineReference().referenceName()); - Assertions.assertEquals("wjleip", 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 39ebd39b2030..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.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.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\":\"pyxaltmrhiina\"}") - .toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("pyxaltmrhiina", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerReference model = new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE) - .withReferenceName("pyxaltmrhiina"); - model = BinaryData.fromObject(model).toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("pyxaltmrhiina", 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 6a5fe2ea1ac2..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\":\"dvetnws\",\"description\":\"utnw\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datavuzhyr\",\"dataewipm\",\"dataekdxuku\",\"datagsjj\"],\"\":{\"hvvmuvgpmun\":\"datadxgketwzhhzjhfj\"}},\"name\":\"sx\",\"type\":\"hfbuzjyihsasbhud\",\"etag\":\"ohyuemslynsq\",\"id\":\"pfoobr\"}") - .toObject(TriggerResourceInner.class); - Assertions.assertEquals("pfoobr", model.id()); - Assertions.assertEquals("utnw", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerResourceInner model = new TriggerResourceInner().withId("pfoobr") - .withProperties(new Trigger().withDescription("utnw") - .withAnnotations(Arrays.asList("datavuzhyr", "dataewipm", "dataekdxuku", "datagsjj")) - .withAdditionalProperties(mapOf("type", "dvetnws", "runtimeState", "Stopped"))); - model = BinaryData.fromObject(model).toObject(TriggerResourceInner.class); - Assertions.assertEquals("pfoobr", model.id()); - Assertions.assertEquals("utnw", 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 bf7992e6215f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.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.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\":\"eokbze\",\"triggerName\":\"zrxcczurt\",\"triggerType\":\"ipqxbkwvzgnzv\",\"triggerRunTimestamp\":\"2021-07-04T23:14:39Z\",\"status\":\"Failed\",\"message\":\"xzmqpnodawop\",\"properties\":{\"gsbos\":\"wjptm\",\"jlvfhrbbpneqv\":\"zelndlatutmzlbi\"},\"triggeredPipelines\":{\"k\":\"yyurmochpprprsnm\"},\"runDimension\":{\"pcpil\":\"ejnhlbkpb\",\"hol\":\"hahzvechndbnwi\"},\"dependencyStatus\":{\"efqsfapaqtferrqw\":\"datawiuub\",\"kmfx\":\"datax\",\"pud\":\"datapjwogqqno\",\"yawbzasqbu\":\"datadabtqwp\"},\"\":{\"i\":\"datagkyexaoguy\"}}") - .toObject(TriggerRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerRun model = new TriggerRun().withAdditionalProperties(mapOf("triggerRunId", "eokbze", "triggerName", - "zrxcczurt", "runDimension", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"pcpil\":\"ejnhlbkpb\",\"hol\":\"hahzvechndbnwi\"}", Object.class, SerializerEncoding.JSON), - "dependencyStatus", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"efqsfapaqtferrqw\":\"datawiuub\",\"kmfx\":\"datax\",\"pud\":\"datapjwogqqno\",\"yawbzasqbu\":\"datadabtqwp\"}", - Object.class, SerializerEncoding.JSON), - "triggeredPipelines", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"k\":\"yyurmochpprprsnm\"}", Object.class, SerializerEncoding.JSON), - "triggerType", "ipqxbkwvzgnzv", "triggerRunTimestamp", "2021-07-04T23:14:39Z", "message", "xzmqpnodawop", - "properties", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"gsbos\":\"wjptm\",\"jlvfhrbbpneqv\":\"zelndlatutmzlbi\"}", Object.class, - SerializerEncoding.JSON), - "status", "Failed")); - 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 a80a3f93a139..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("gabygzafgt", "dkdyxnvzfp", "tttouwnfsbeznjcn", "lhgfpfykyos", - 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 e7b2bce9befd..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("jptxdl", "kyjhvpgdugxo", "ls", "euhwonivwua", 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 f6852cbcaf78..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\":\"nhxk\",\"status\":\"Deprovisioning\"}") - .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 5373a8939bbc..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\":\"tyms\",\"description\":\"ygqdnfwqzdz\",\"runtimeState\":\"Stopped\",\"annotations\":[\"dataxhnfhqly\",\"dataijouwivkxoyzunb\"],\"\":{\"lrcivtsoxfrke\":\"datartikvcpwpg\",\"skawaoqvmmb\":\"dataxpmyyefrpmpdnq\",\"egnitg\":\"datapqfrtqlkz\",\"ealzxwhcansymoyq\":\"datakxlzyqdrfeg\"}}") - .toObject(Trigger.class); - Assertions.assertEquals("ygqdnfwqzdz", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Trigger model = new Trigger().withDescription("ygqdnfwqzdz") - .withAnnotations(Arrays.asList("dataxhnfhqly", "dataijouwivkxoyzunb")) - .withAdditionalProperties(mapOf("type", "tyms", "runtimeState", "Stopped")); - model = BinaryData.fromObject(model).toObject(Trigger.class); - Assertions.assertEquals("ygqdnfwqzdz", 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 a68fa6dec68f..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\":\"shwcgomgfflyp\",\"description\":\"gzz\",\"runtimeState\":\"Disabled\",\"annotations\":[\"dataqnp\",\"databeplicbohvvkmtx\",\"datacbnmzcbtwofeuih\"],\"\":{\"wgdrwev\":\"datauerxaqhpecnf\"}},\"name\":\"wlhi\",\"type\":\"odogcvadpbajfms\",\"etag\":\"oirdpgm\",\"id\":\"twfb\"}"; - - 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("oapjjmytku") - .withExistingFactory("ldtusvnr", "pohpkoalwspq") - .withProperties(new Trigger().withDescription("ottjkrlielb") - .withAnnotations(Arrays.asList("datavvhp", "datauhfbjuzsp")) - .withAdditionalProperties(mapOf("type", "ctnmybainctm", "runtimeState", "Stopped"))) - .withIfMatch("gbpdpjewof") - .create(); - - Assertions.assertEquals("twfb", response.id()); - Assertions.assertEquals("gzz", 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 9495b1e1b6de..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("wgeglrs", "ekfpju", "aknhyfwbrepfogv", 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 98025e699d61..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.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.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\":\"cyrn\",\"status\":\"Deprovisioning\"}"; - - 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("p", "xcg", "yv", 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 ac03109f074b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.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.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\":\"ef\",\"description\":\"ngsityt\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datarw\"],\"\":{\"ftperw\":\"dataugdwrlqfqxzny\",\"dtbuikrpwyhrqdn\":\"datance\"}},\"name\":\"rfukygryrf\",\"type\":\"kjusue\",\"etag\":\"voiyaqhbbifll\",\"id\":\"g\"}"; - - 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("sz", "a", "y", "rshlptlyxfnhc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("g", response.id()); - Assertions.assertEquals("ngsityt", 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 4f1736d4a35e..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\":\"achfwdbtlz\",\"description\":\"unmvtlkthekhn\",\"runtimeState\":\"Disabled\",\"annotations\":[\"dataywmkttaqqr\",\"dataxntik\",\"dataht\"],\"\":{\"pd\":\"datadyhnnizwpyq\",\"rsmxigurdkgcx\":\"dataxhwvstlccc\",\"dvzugqhsxop\":\"datajpwavlfsunmnewo\",\"lycfvp\":\"datas\"}},\"name\":\"e\",\"type\":\"uhgasjwdwxnofce\",\"etag\":\"kmlmasrtt\",\"id\":\"mgz\"}]}"; - - 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("oioicxytuud", "xugukvyhy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mgz", response.iterator().next().id()); - Assertions.assertEquals("unmvtlkthekhn", 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 4d0b4d601773..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("nweznx", "hhvnpieclljsygx", "iuoqlnx", 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 01852ff9ed5e..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("ddjib", "zwbrwu", "j", 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 a42e3d30352b..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\":\"pnwbbpvpcxecnwk\",\"status\":\"Disabled\"}"; - - 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("ybhij", "wyeihqwwmikq", "buxrg", 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 b0845606c9db..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\":\"ylplycycswg\",\"status\":\"Disabled\"}"; - - 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("im", "iyfzklhoirlpy", "ulbbusdewulorfv", 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 43b082cae9bf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.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.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\":\"r\",\"offset\":\"ljbjpkv\",\"size\":\"ahpztvlfffym\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"rtpznychwbzrbqpz\"}}") - .toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("rtpznychwbzrbqpz", model.referenceTrigger().referenceName()); - Assertions.assertEquals("ljbjpkv", model.offset()); - Assertions.assertEquals("ahpztvlfffym", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerDependencyReference model - = new TumblingWindowTriggerDependencyReference() - .withReferenceTrigger(new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE) - .withReferenceName("rtpznychwbzrbqpz")) - .withOffset("ljbjpkv") - .withSize("ahpztvlfffym"); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("rtpznychwbzrbqpz", model.referenceTrigger().referenceName()); - Assertions.assertEquals("ljbjpkv", model.offset()); - Assertions.assertEquals("ahpztvlfffym", 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 0afed119b499..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.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.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\":\"jsghuokjwvsacwdu\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"pcoiaaagvaec\",\"name\":\"dqgoo\"},\"parameters\":{\"fh\":\"datafrgmpu\",\"wcxzxvgfxzck\":\"datakrfe\",\"jal\":\"datawqujpugj\"}},\"typeProperties\":{\"frequency\":\"Minute\",\"interval\":1684959165,\"startTime\":\"2021-12-01T05:51:53Z\",\"endTime\":\"2021-11-29T21:19:29Z\",\"delay\":\"datadsvycj\",\"maxConcurrency\":1878853669,\"retryPolicy\":{\"count\":\"datapuphgogmggkkjc\",\"intervalInSeconds\":31605107},\"dependsOn\":[{\"type\":\"nnmjpgzw\"},{\"type\":\"upzs\"},{\"type\":\"sidkziparp\"}]},\"description\":\"zuykly\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datalevardbrdrt\",\"dataakezorhjhyzqhb\"],\"\":{\"dgd\":\"datadztvumvxkrxgai\",\"ojc\":\"datakhiqwuwxrcydmky\",\"nxeyfkrcmxtbwolz\":\"datasbygm\",\"buwqmicukwmz\":\"datakjaqlszlymyqpw\"}}") - .toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("zuykly", model.description()); - Assertions.assertEquals("pcoiaaagvaec", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("dqgoo", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1684959165, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T05:51:53Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T21:19:29Z"), model.endTime()); - Assertions.assertEquals(1878853669, model.maxConcurrency()); - Assertions.assertEquals(31605107, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTrigger model = new TumblingWindowTrigger().withDescription("zuykly") - .withAnnotations(Arrays.asList("datalevardbrdrt", "dataakezorhjhyzqhb")) - .withPipeline(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("pcoiaaagvaec").withName("dqgoo")) - .withParameters(mapOf("fh", "datafrgmpu", "wcxzxvgfxzck", "datakrfe", "jal", "datawqujpugj"))) - .withFrequency(TumblingWindowFrequency.MINUTE) - .withInterval(1684959165) - .withStartTime(OffsetDateTime.parse("2021-12-01T05:51:53Z")) - .withEndTime(OffsetDateTime.parse("2021-11-29T21:19:29Z")) - .withDelay("datadsvycj") - .withMaxConcurrency(1878853669) - .withRetryPolicy(new RetryPolicy().withCount("datapuphgogmggkkjc").withIntervalInSeconds(31605107)) - .withDependsOn( - Arrays.asList(new DependencyReference(), new DependencyReference(), new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("zuykly", model.description()); - Assertions.assertEquals("pcoiaaagvaec", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("dqgoo", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1684959165, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T05:51:53Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T21:19:29Z"), model.endTime()); - Assertions.assertEquals(1878853669, model.maxConcurrency()); - Assertions.assertEquals(31605107, 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 7d965b282674..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\":\"Minute\",\"interval\":1052042151,\"startTime\":\"2021-03-29T22:51Z\",\"endTime\":\"2021-04-11T13:06:29Z\",\"delay\":\"dataqmbuv\",\"maxConcurrency\":838737054,\"retryPolicy\":{\"count\":\"datamcymwr\",\"intervalInSeconds\":1972140841},\"dependsOn\":[{\"type\":\"uldgtkedvxh\"}]}") - .toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1052042151, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-29T22:51Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-11T13:06:29Z"), model.endTime()); - Assertions.assertEquals(838737054, model.maxConcurrency()); - Assertions.assertEquals(1972140841, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerTypeProperties model - = new TumblingWindowTriggerTypeProperties().withFrequency(TumblingWindowFrequency.MINUTE) - .withInterval(1052042151) - .withStartTime(OffsetDateTime.parse("2021-03-29T22:51Z")) - .withEndTime(OffsetDateTime.parse("2021-04-11T13:06:29Z")) - .withDelay("dataqmbuv") - .withMaxConcurrency(838737054) - .withRetryPolicy(new RetryPolicy().withCount("datamcymwr").withIntervalInSeconds(1972140841)) - .withDependsOn(Arrays.asList(new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(1052042151, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-29T22:51Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-11T13:06:29Z"), model.endTime()); - Assertions.assertEquals(838737054, model.maxConcurrency()); - Assertions.assertEquals(1972140841, 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 177227df4c34..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\":\"datavgxqtkcvnyi\",\"treatBooleanAsNumber\":\"dataexw\",\"dateTimeFormat\":\"dataivgxe\",\"dateTimeOffsetFormat\":\"datau\",\"timeSpanFormat\":\"datayztnsutesq\",\"culture\":\"datalzyhavt\"}") - .toObject(TypeConversionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TypeConversionSettings model = new TypeConversionSettings().withAllowDataTruncation("datavgxqtkcvnyi") - .withTreatBooleanAsNumber("dataexw") - .withDateTimeFormat("dataivgxe") - .withDateTimeOffsetFormat("datau") - .withTimeSpanFormat("datayztnsutesq") - .withCulture("datalzyhavt"); - 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 97c6bdd16744..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"diujfputc\",\"typeProperties\":{\"expression\":{\"value\":\"yaszuoheuifshs\"},\"timeout\":\"datapl\",\"activities\":[{\"type\":\"kztc\",\"name\":\"qkwg\",\"description\":\"aeby\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"zfqzvkorsrpm\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"iq\":\"dataj\",\"wbdk\":\"dataqtm\",\"hpfrexbg\":\"datauxda\",\"z\":\"datawjmsogzc\"}},{\"activity\":\"j\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\",\"Skipped\"],\"\":{\"rzvjvlnafpfo\":\"datavdnpkdmqc\",\"hjwcdjxqxf\":\"databqaqbae\"}}],\"userProperties\":[{\"name\":\"urxwtfpeuftpjldl\",\"value\":\"dataforvsypjytgz\"},{\"name\":\"mmbxkbtberyql\",\"value\":\"datazebmikojpggwuwa\"}],\"\":{\"beuugir\":\"datalgmgcnllq\",\"fgqhxdyhoozd\":\"dataqezpsydkgtdwlv\",\"nyleisawvd\":\"datathhecmjgbzhd\",\"yrfmozuoopotudky\":\"datamuytkkfoto\"}},{\"type\":\"iyvh\",\"name\":\"dkbfqkea\",\"description\":\"bkenqcvdrpwck\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"tlbaxiaerpoasy\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\"],\"\":{\"ixoudmaniwkwtmqy\":\"datannrd\"}},{\"activity\":\"giydgee\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\",\"Completed\"],\"\":{\"p\":\"datawehjqyullep\",\"gobrsnxcayy\":\"dataf\",\"vmmef\":\"datari\"}},{\"activity\":\"pimmwirixczxkxv\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"efygna\":\"dataxzascalw\"}},{\"activity\":\"pie\",\"dependencyConditions\":[\"Completed\"],\"\":{\"aypsvedxphf\":\"datau\",\"qqwxjnkbes\":\"datao\",\"qoujhmdpe\":\"datammitvviqs\"}}],\"userProperties\":[{\"name\":\"qwjqevwtkrjqnciw\",\"value\":\"databjwngrrpdt\"},{\"name\":\"nhctkgllmpku\",\"value\":\"datablucxyhtkyq\"},{\"name\":\"ynvtimpgusroqk\",\"value\":\"datawkvojr\"}],\"\":{\"hkplxbpxzdu\":\"datajtjqhfkwsmgkomqf\"}}]},\"name\":\"h\",\"description\":\"apksjwaglhwnnfg\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"kmwvqtmfq\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\",\"Succeeded\"],\"\":{\"ujsvhezhezyhwo\":\"datatshjjbocuug\",\"x\":\"dataayyshf\",\"zeid\":\"datafyzjzeylthdr\",\"divqybvgcebuts\":\"datalredxfcckticw\"}}],\"userProperties\":[{\"name\":\"suhtlzomsqebm\",\"value\":\"dataope\"},{\"name\":\"yfuliatbosnla\",\"value\":\"dataeozgjtuhdgmshuyq\"}],\"\":{\"bzlz\":\"dataprrptoentuveqmtl\",\"hetrqudxzrbg\":\"dataduqlxwrets\",\"iwpaeumely\":\"datatjjiearyzzxk\"}}") - .toObject(UntilActivity.class); - Assertions.assertEquals("h", model.name()); - Assertions.assertEquals("apksjwaglhwnnfg", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("kmwvqtmfq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("suhtlzomsqebm", model.userProperties().get(0).name()); - Assertions.assertEquals("yaszuoheuifshs", model.expression().value()); - Assertions.assertEquals("qkwg", model.activities().get(0).name()); - Assertions.assertEquals("aeby", 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("zfqzvkorsrpm", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("urxwtfpeuftpjldl", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UntilActivity model = new UntilActivity().withName("h") - .withDescription("apksjwaglhwnnfg") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("kmwvqtmfq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("suhtlzomsqebm").withValue("dataope"), - new UserProperty().withName("yfuliatbosnla").withValue("dataeozgjtuhdgmshuyq"))) - .withExpression(new Expression().withValue("yaszuoheuifshs")) - .withTimeout("datapl") - .withActivities(Arrays.asList( - new Activity().withName("qkwg") - .withDescription("aeby") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("zfqzvkorsrpm") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("j") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("urxwtfpeuftpjldl").withValue("dataforvsypjytgz"), - new UserProperty().withName("mmbxkbtberyql").withValue("datazebmikojpggwuwa"))) - .withAdditionalProperties(mapOf("type", "kztc")), - new Activity().withName("dkbfqkea") - .withDescription("bkenqcvdrpwck") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("tlbaxiaerpoasy") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("giydgee") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pimmwirixczxkxv") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pie") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qwjqevwtkrjqnciw").withValue("databjwngrrpdt"), - new UserProperty().withName("nhctkgllmpku").withValue("datablucxyhtkyq"), - new UserProperty().withName("ynvtimpgusroqk").withValue("datawkvojr"))) - .withAdditionalProperties(mapOf("type", "iyvh")))); - model = BinaryData.fromObject(model).toObject(UntilActivity.class); - Assertions.assertEquals("h", model.name()); - Assertions.assertEquals("apksjwaglhwnnfg", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("kmwvqtmfq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("suhtlzomsqebm", model.userProperties().get(0).name()); - Assertions.assertEquals("yaszuoheuifshs", model.expression().value()); - Assertions.assertEquals("qkwg", model.activities().get(0).name()); - Assertions.assertEquals("aeby", 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("zfqzvkorsrpm", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("urxwtfpeuftpjldl", 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 b3e25815d6ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code 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\":\"hphurzaz\"},\"timeout\":\"datakgmtrnwwww\",\"activities\":[{\"type\":\"rditghbaqumqlfno\",\"name\":\"ize\",\"description\":\"yg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"qryaahltt\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"eovsgikvsnfn\":\"datasjlkjvoeuiwyptze\"}},{\"activity\":\"fsfgabdumhpbcix\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Failed\"],\"\":{\"gbelxmulyalupijq\":\"datawyltau\",\"qitmcxqahxtnl\":\"datarfdyawetkr\",\"xqqbk\":\"datarjdceimludqx\"}},{\"activity\":\"dnskivoxrjmgms\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"eebcxeecgfs\":\"dataufhx\",\"yltnfwlt\":\"datadjipayybwxqr\",\"amgijevfjnvu\":\"dataukmdeqrp\",\"xtkvpejtdlqorcyp\":\"datakwjmtehpfn\"}}],\"userProperties\":[{\"name\":\"falg\",\"value\":\"datasgkruclzmjhiq\"},{\"name\":\"ihducvhhayq\",\"value\":\"datalcrshozuje\"}],\"\":{\"u\":\"datafvisc\",\"qiekwf\":\"datadxfcvtzrgcmxbr\",\"otdgvsoypgqoqv\":\"datam\"}},{\"type\":\"dbypzcqlau\",\"name\":\"bkapbgmjodf\",\"description\":\"hlipxkxhj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"jmnsgv\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"piwpi\":\"dataplvglwx\",\"txyjq\":\"dataydxmplxzrofscib\",\"zxzkpumzda\":\"datari\",\"rrpzcvg\":\"databoqeteavphup\"}},{\"activity\":\"hknnvjgc\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"nrbtattzxvfsr\":\"dataofhjonqk\",\"zjvzg\":\"datafjfuvryf\"}},{\"activity\":\"zen\",\"dependencyConditions\":[\"Completed\"],\"\":{\"fkbbchdypc\":\"datadngtylvdumpmx\",\"pteclfjauetzppc\":\"datakmrvgdjbl\",\"vlrmmizh\":\"datafgrtg\",\"plvrqkmpqs\":\"dataxsybnwogvkc\"}},{\"activity\":\"lvinxwtxtetwqk\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\"],\"\":{\"rvkneo\":\"datawlr\",\"zvugqwxslisgfx\":\"dataplng\",\"llgrckoxkpjzyc\":\"datayfeqajtzquhqrj\",\"iopecuxgim\":\"dataizjwugr\"}}],\"userProperties\":[{\"name\":\"vylfkecsdfqxsb\",\"value\":\"datadjawuldyjmjvzp\"},{\"name\":\"dhbapfrriwrm\",\"value\":\"datamrhsybvnqaxm\"},{\"name\":\"pkatjyxhvjjvsv\",\"value\":\"datamdlysfroyn\"},{\"name\":\"loamgnpf\",\"value\":\"dataivgd\"}],\"\":{\"gjukqnxy\":\"dataknik\",\"ehrslvofnsuwsu\":\"dataoyclrlepashmfbzk\"}},{\"type\":\"ddohngbbxahs\",\"name\":\"orsandslrndi\",\"description\":\"o\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"a\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\",\"Succeeded\"],\"\":{\"rnhpxzjk\":\"datazfssweznzfdextd\"}}],\"userProperties\":[{\"name\":\"zpcecisnhtdsk\",\"value\":\"datanigohafud\"},{\"name\":\"eowepueq\",\"value\":\"datarcnfhcqgjvlnvfz\"},{\"name\":\"mugxpuge\",\"value\":\"datawgjlxdddvfnqa\"},{\"name\":\"va\",\"value\":\"dataspjdxaytzkdqim\"}],\"\":{\"rssyyred\":\"dataijcullk\"}},{\"type\":\"nyl\",\"name\":\"rvrx\",\"description\":\"p\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ecdo\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"vicaqxs\":\"dataw\",\"drcnoexwar\":\"dataykusfqmgjexiqejv\"}},{\"activity\":\"azfsrvz\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\"],\"\":{\"dycspidc\":\"datazwewhobxl\",\"kcuozwowwmulq\":\"dataxjfgxynuxvya\",\"lxtqlbj\":\"dataaeq\"}},{\"activity\":\"zcwfscxkr\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"dvuvqgu\":\"datamkzgrrgrkovsgeb\",\"doamqkdwagnyah\":\"datal\",\"vfqykni\":\"datarxtpuyuradfiwjou\",\"dfwfzkocdjwjmrb\":\"datak\"}},{\"activity\":\"htllkpkcqzbvyrv\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"vxrjidxiosyp\":\"datat\",\"wwhbmowmhkn\":\"datavfrbujltgxhgylla\",\"npyob\":\"datakn\"}}],\"userProperties\":[{\"name\":\"yqsds\",\"value\":\"dataewf\"},{\"name\":\"rijd\",\"value\":\"datakmcrtmvtfeyopg\"},{\"name\":\"iwebmcizmggvsxv\",\"value\":\"datawrqywaagzaxqh\"},{\"name\":\"erkyimcfmdhwtlli\",\"value\":\"datacyxcluvj\"}],\"\":{\"hshcjgoobltoar\":\"datajpld\",\"fsmabuur\":\"datacntgqyqwmzzcgbg\",\"hf\":\"datauqwvybxmu\"}}]}") - .toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("hphurzaz", model.expression().value()); - Assertions.assertEquals("ize", model.activities().get(0).name()); - Assertions.assertEquals("yg", 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("qryaahltt", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("falg", 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("hphurzaz")) - .withTimeout("datakgmtrnwwww") - .withActivities( - Arrays - .asList( - new Activity().withName("ize") - .withDescription("yg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("qryaahltt") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fsfgabdumhpbcix") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("dnskivoxrjmgms") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("falg").withValue("datasgkruclzmjhiq"), - new UserProperty().withName("ihducvhhayq").withValue("datalcrshozuje"))) - .withAdditionalProperties(mapOf("type", "rditghbaqumqlfno")), - new Activity().withName("bkapbgmjodf") - .withDescription("hlipxkxhj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("jmnsgv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hknnvjgc") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zen") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lvinxwtxtetwqk") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("vylfkecsdfqxsb").withValue("datadjawuldyjmjvzp"), - new UserProperty().withName("dhbapfrriwrm").withValue("datamrhsybvnqaxm"), - new UserProperty() - .withName("pkatjyxhvjjvsv") - .withValue("datamdlysfroyn"), - new UserProperty().withName("loamgnpf").withValue("dataivgd"))) - .withAdditionalProperties(mapOf("type", "dbypzcqlau")), - new Activity().withName("orsandslrndi") - .withDescription("o") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("a") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("zpcecisnhtdsk").withValue("datanigohafud"), - new UserProperty().withName("eowepueq").withValue("datarcnfhcqgjvlnvfz"), - new UserProperty().withName("mugxpuge").withValue("datawgjlxdddvfnqa"), - new UserProperty().withName("va").withValue("dataspjdxaytzkdqim"))) - .withAdditionalProperties(mapOf("type", "ddohngbbxahs")), - new Activity().withName("rvrx") - .withDescription("p") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("ecdo") - .withDependencyConditions(Arrays - .asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("azfsrvz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zcwfscxkr") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("htllkpkcqzbvyrv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("yqsds").withValue("dataewf"), - new UserProperty().withName("rijd").withValue("datakmcrtmvtfeyopg"), - new UserProperty().withName("iwebmcizmggvsxv").withValue("datawrqywaagzaxqh"), - new UserProperty().withName("erkyimcfmdhwtlli").withValue("datacyxcluvj"))) - .withAdditionalProperties(mapOf("type", "nyl")))); - model = BinaryData.fromObject(model).toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("hphurzaz", model.expression().value()); - Assertions.assertEquals("ize", model.activities().get(0).name()); - Assertions.assertEquals("yg", 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("qryaahltt", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("falg", 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 8bae85bc0528..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\":538368150}") - .toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(538368150, model.concurrentJobsLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model - = new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(538368150); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(538368150, 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 908afa9b2e09..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\":\"Off\",\"updateDelayOffset\":\"gmgsxnkjzkde\"}") - .toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.OFF, model.autoUpdate()); - Assertions.assertEquals("gmgsxnkjzkde", model.updateDelayOffset()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeRequest model - = new UpdateIntegrationRuntimeRequest().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF) - .withUpdateDelayOffset("gmgsxnkjzkde"); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.OFF, model.autoUpdate()); - Assertions.assertEquals("gmgsxnkjzkde", 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 73e6eb8c1675..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\":\"fkbey\",\"accessResourcePath\":\"wrmjmwvvjektc\",\"profileName\":\"enhwlrs\",\"startTime\":\"rzpwvlqdqgbiq\",\"expireTime\":\"ihkaetcktvfc\"}") - .toObject(UserAccessPolicy.class); - Assertions.assertEquals("fkbey", model.permissions()); - Assertions.assertEquals("wrmjmwvvjektc", model.accessResourcePath()); - Assertions.assertEquals("enhwlrs", model.profileName()); - Assertions.assertEquals("rzpwvlqdqgbiq", model.startTime()); - Assertions.assertEquals("ihkaetcktvfc", model.expireTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAccessPolicy model = new UserAccessPolicy().withPermissions("fkbey") - .withAccessResourcePath("wrmjmwvvjektc") - .withProfileName("enhwlrs") - .withStartTime("rzpwvlqdqgbiq") - .withExpireTime("ihkaetcktvfc"); - model = BinaryData.fromObject(model).toObject(UserAccessPolicy.class); - Assertions.assertEquals("fkbey", model.permissions()); - Assertions.assertEquals("wrmjmwvvjektc", model.accessResourcePath()); - Assertions.assertEquals("enhwlrs", model.profileName()); - Assertions.assertEquals("rzpwvlqdqgbiq", model.startTime()); - Assertions.assertEquals("ihkaetcktvfc", 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 316280decf0e..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\":\"otcubi\",\"value\":\"datap\"}").toObject(UserProperty.class); - Assertions.assertEquals("otcubi", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserProperty model = new UserProperty().withName("otcubi").withValue("datap"); - model = BinaryData.fromObject(model).toObject(UserProperty.class); - Assertions.assertEquals("otcubi", 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 4925cda9bb66..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.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.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\":\"k\",\"typeProperties\":{\"timeout\":\"datarnfavqefiwwhbkxz\",\"sleep\":\"datayovlhm\",\"minimumSize\":\"dataobiagwuefmyiw\",\"childItems\":\"datatau\",\"dataset\":{\"referenceName\":\"msyfjno\",\"parameters\":{\"fyarl\":\"databcezd\",\"erql\":\"datallg\"}}},\"name\":\"kvkmfkmchc\",\"description\":\"gjvyosmxovyfdbah\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"s\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Completed\"],\"\":{\"zouayvejwqeyp\":\"datadvn\",\"hiyus\":\"dataoawnk\",\"mrnrhsv\":\"datahmjlkknwsja\",\"ivkzgcqy\":\"datajnlerm\"}},{\"activity\":\"vfekjvclbkkj\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"vpmwnmuzcjnkaw\":\"dataftqah\"}},{\"activity\":\"yhnnwtknpbzktk\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Failed\",\"Succeeded\"],\"\":{\"rebbonjhmhfseykp\":\"datazutwpsnldjj\",\"gzadpwhldxbvry\":\"datagpqnesutnsm\"}}],\"userProperties\":[{\"name\":\"zs\",\"value\":\"datamugz\"},{\"name\":\"s\",\"value\":\"datazke\"}],\"\":{\"abrhiao\":\"dataetvcxabzwehvsmt\",\"ziquirozqusdz\":\"dataldtkqoajpxtkraf\"}}") - .toObject(ValidationActivity.class); - Assertions.assertEquals("kvkmfkmchc", model.name()); - Assertions.assertEquals("gjvyosmxovyfdbah", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("s", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zs", model.userProperties().get(0).name()); - Assertions.assertEquals("msyfjno", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivity model = new ValidationActivity().withName("kvkmfkmchc") - .withDescription("gjvyosmxovyfdbah") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("s") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vfekjvclbkkj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yhnnwtknpbzktk") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("zs").withValue("datamugz"), - new UserProperty().withName("s").withValue("datazke"))) - .withTimeout("datarnfavqefiwwhbkxz") - .withSleep("datayovlhm") - .withMinimumSize("dataobiagwuefmyiw") - .withChildItems("datatau") - .withDataset(new DatasetReference().withReferenceName("msyfjno") - .withParameters(mapOf("fyarl", "databcezd", "erql", "datallg"))); - model = BinaryData.fromObject(model).toObject(ValidationActivity.class); - Assertions.assertEquals("kvkmfkmchc", model.name()); - Assertions.assertEquals("gjvyosmxovyfdbah", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("s", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zs", model.userProperties().get(0).name()); - Assertions.assertEquals("msyfjno", 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 d102f22f0ecf..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\":\"datahhjdfyusiupdmb\",\"sleep\":\"dataumpwgteroaenv\",\"minimumSize\":\"datauzjkjx\",\"childItems\":\"dataaqzrbvogfmpdlm\",\"dataset\":{\"referenceName\":\"ynl\",\"parameters\":{\"r\":\"datalbwyqoypo\",\"jerokbdkwvjond\":\"dataajxmgxsp\"}}}") - .toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("ynl", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivityTypeProperties model - = new ValidationActivityTypeProperties().withTimeout("datahhjdfyusiupdmb") - .withSleep("dataumpwgteroaenv") - .withMinimumSize("datauzjkjx") - .withChildItems("dataaqzrbvogfmpdlm") - .withDataset(new DatasetReference().withReferenceName("ynl") - .withParameters(mapOf("r", "datalbwyqoypo", "jerokbdkwvjond", "dataajxmgxsp"))); - model = BinaryData.fromObject(model).toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("ynl", 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 c5f724872055..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.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.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\":\"dataw\"}") - .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("dataw"); - 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 f1e5900559fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.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.VerticaDatasetTypeProperties; - -public final class VerticaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaDatasetTypeProperties model = BinaryData.fromString( - "{\"tableName\":\"datagwhzbbdwrje\",\"table\":\"dataofeiiewibdtplj\",\"schema\":\"datamajokbxxcdkhxjwt\"}") - .toObject(VerticaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaDatasetTypeProperties model = new VerticaDatasetTypeProperties().withTableName("datagwhzbbdwrje") - .withTable("dataofeiiewibdtplj") - .withSchema("datamajokbxxcdkhxjwt"); - 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 aa0191b96d42..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\":\"yfaprhf\",\"query\":\"dataxxaoyiskyoasxakb\",\"queryTimeout\":\"datagccldxuweweeegs\",\"additionalColumns\":\"datas\",\"sourceRetryCount\":\"datahbcrib\",\"sourceRetryWait\":\"dataszu\",\"maxConcurrentConnections\":\"dataaqlyw\",\"disableMetricsCollection\":\"datak\",\"\":{\"qu\":\"datahbknragpnm\",\"oujhijldu\":\"datafxhfgdrzegmlueb\",\"arufjfordzwbsk\":\"datavxk\"}}") - .toObject(VerticaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaSource model = new VerticaSource().withSourceRetryCount("datahbcrib") - .withSourceRetryWait("dataszu") - .withMaxConcurrentConnections("dataaqlyw") - .withDisableMetricsCollection("datak") - .withQueryTimeout("datagccldxuweweeegs") - .withAdditionalColumns("datas") - .withQuery("dataxxaoyiskyoasxakb"); - 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 5a532b30170b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.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.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\":\"vmlkwkzlinv\",\"typeProperties\":{\"tableName\":\"datamjvegpdxtsa\",\"table\":\"datatcoojybolqox\",\"schema\":\"datatsl\"},\"description\":\"t\",\"structure\":\"dataxs\",\"schema\":\"dataekfxcs\",\"linkedServiceName\":{\"referenceName\":\"mzdo\",\"parameters\":{\"eohpl\":\"datakdpc\",\"edaxkuyorfjidqo\":\"datagcnbvmhvqp\",\"vfyihuzsbpwn\":\"dataaweog\",\"zgkooagrlwpame\":\"datafjcypazwiimd\"}},\"parameters\":{\"atfamrna\":{\"type\":\"Object\",\"defaultValue\":\"dataadewhuwxkyx\"},\"zwhomydxgtuqbv\":{\"type\":\"Int\",\"defaultValue\":\"datalxccprkiyf\"}},\"annotations\":[\"datazihirqvvketyd\",\"dataaqoktssgvqxer\",\"datarmh\",\"dataraqgb\"],\"folder\":{\"name\":\"vihylrxsiyzsyium\"},\"\":{\"ycfvernnkq\":\"datal\",\"oy\":\"datakayqivbigdrqgzet\",\"nmuxppwpcfmgr\":\"datat\"}}") - .toObject(VerticaTableDataset.class); - Assertions.assertEquals("t", model.description()); - Assertions.assertEquals("mzdo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("atfamrna").type()); - Assertions.assertEquals("vihylrxsiyzsyium", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaTableDataset model = new VerticaTableDataset().withDescription("t") - .withStructure("dataxs") - .withSchema("dataekfxcs") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mzdo") - .withParameters(mapOf("eohpl", "datakdpc", "edaxkuyorfjidqo", "datagcnbvmhvqp", "vfyihuzsbpwn", - "dataaweog", "zgkooagrlwpame", "datafjcypazwiimd"))) - .withParameters(mapOf("atfamrna", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataadewhuwxkyx"), - "zwhomydxgtuqbv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datalxccprkiyf"))) - .withAnnotations(Arrays.asList("datazihirqvvketyd", "dataaqoktssgvqxer", "datarmh", "dataraqgb")) - .withFolder(new DatasetFolder().withName("vihylrxsiyzsyium")) - .withTableName("datamjvegpdxtsa") - .withTable("datatcoojybolqox") - .withSchemaTypePropertiesSchema("datatsl"); - model = BinaryData.fromObject(model).toObject(VerticaTableDataset.class); - Assertions.assertEquals("t", model.description()); - Assertions.assertEquals("mzdo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("atfamrna").type()); - Assertions.assertEquals("vihylrxsiyzsyium", 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 27d7ae7e8f52..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.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.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\":\"ui\",\"typeProperties\":{\"waitTimeInSeconds\":\"datawos\"},\"name\":\"ihpydywwjsqdchb\",\"description\":\"iifuyvll\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"eorvchsarffyd\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\"],\"\":{\"hcftzobwpnfzlo\":\"datae\",\"vsbg\":\"datainw\",\"mwfeoutz\":\"dataywfyo\"}},{\"activity\":\"lnhgymtddk\",\"dependencyConditions\":[\"Completed\"],\"\":{\"wkrwpishcrxcep\":\"datanqijlocyiu\",\"nwtgyyyskujnzxho\":\"datavpii\"}}],\"userProperties\":[{\"name\":\"yjbenzw\",\"value\":\"datanhvs\"},{\"name\":\"pythqgz\",\"value\":\"dataplacz\"}],\"\":{\"mqyg\":\"datadh\",\"c\":\"dataefsnlob\",\"k\":\"datajeaxjgokvlixwebj\",\"j\":\"datafiizgkvtsmcn\"}}") - .toObject(WaitActivity.class); - Assertions.assertEquals("ihpydywwjsqdchb", model.name()); - Assertions.assertEquals("iifuyvll", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("eorvchsarffyd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("yjbenzw", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivity model = new WaitActivity().withName("ihpydywwjsqdchb") - .withDescription("iifuyvll") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("eorvchsarffyd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lnhgymtddk") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("yjbenzw").withValue("datanhvs"), - new UserProperty().withName("pythqgz").withValue("dataplacz"))) - .withWaitTimeInSeconds("datawos"); - model = BinaryData.fromObject(model).toObject(WaitActivity.class); - Assertions.assertEquals("ihpydywwjsqdchb", model.name()); - Assertions.assertEquals("iifuyvll", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("eorvchsarffyd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("yjbenzw", 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 c58ee11a282b..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\":\"dataovhcelw\"}") - .toObject(WaitActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivityTypeProperties model = new WaitActivityTypeProperties().withWaitTimeInSeconds("dataovhcelw"); - 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 5404a184b254..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSinkTests.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.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\":\"vofo\",\"preCopyScript\":\"dataxwtnrroh\",\"allowCopyCommand\":\"datagzczjwizrulrkw\",\"copyCommandSettings\":{\"defaultValues\":[{\"columnName\":\"dataggcpqmk\",\"defaultValue\":\"databenaahdjn\"},{\"columnName\":\"datachtvpeirhst\",\"defaultValue\":\"databv\"}],\"additionalOptions\":{\"nvsu\":\"hpphjimoecqpqk\",\"tyjgxu\":\"izxdlrjspx\",\"llcdqvunvnggqacf\":\"fejiurldsft\"}},\"tableOption\":\"datauwqbendzruus\",\"writeBehavior\":\"datasttjdioevifzq\",\"writeBatchSize\":\"datapphwv\",\"writeBatchTimeout\":\"datauzpiooacj\",\"sinkRetryCount\":\"dataofsiritpqqpynrln\",\"sinkRetryWait\":\"dataxevizzcjnfyubctw\",\"maxConcurrentConnections\":\"datan\",\"disableMetricsCollection\":\"datanumpna\",\"\":{\"adhnbo\":\"datakleieafpvbsllyor\",\"bvvwdftrq\":\"dataeucctppbgzfmuyls\",\"skck\":\"dataobusurxvjdxlbs\",\"mefbnc\":\"datafxtknywx\"}}") - .toObject(WarehouseSink.class); - Assertions.assertEquals("hpphjimoecqpqk", model.copyCommandSettings().additionalOptions().get("nvsu")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseSink model = new WarehouseSink().withWriteBatchSize("datapphwv") - .withWriteBatchTimeout("datauzpiooacj") - .withSinkRetryCount("dataofsiritpqqpynrln") - .withSinkRetryWait("dataxevizzcjnfyubctw") - .withMaxConcurrentConnections("datan") - .withDisableMetricsCollection("datanumpna") - .withPreCopyScript("dataxwtnrroh") - .withAllowCopyCommand("datagzczjwizrulrkw") - .withCopyCommandSettings(new DWCopyCommandSettings() - .withDefaultValues(Arrays.asList( - new DWCopyCommandDefaultValue().withColumnName("dataggcpqmk").withDefaultValue("databenaahdjn"), - new DWCopyCommandDefaultValue().withColumnName("datachtvpeirhst").withDefaultValue("databv"))) - .withAdditionalOptions( - mapOf("nvsu", "hpphjimoecqpqk", "tyjgxu", "izxdlrjspx", "llcdqvunvnggqacf", "fejiurldsft"))) - .withTableOption("datauwqbendzruus") - .withWriteBehavior("datasttjdioevifzq"); - model = BinaryData.fromObject(model).toObject(WarehouseSink.class); - Assertions.assertEquals("hpphjimoecqpqk", model.copyCommandSettings().additionalOptions().get("nvsu")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[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 07138e18af02..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\":\"dkj\",\"sqlReaderQuery\":\"datafkinidyjffpuuyk\",\"sqlReaderStoredProcedureName\":\"databpn\",\"storedProcedureParameters\":\"datamlctnnsjc\",\"isolationLevel\":\"dataijvaxu\",\"partitionOption\":\"datazzp\",\"partitionSettings\":{\"partitionColumnName\":\"dataaaxglxhbnqye\",\"partitionUpperBound\":\"datanlen\",\"partitionLowerBound\":\"dataykebtvnedcclpbh\"},\"queryTimeout\":\"dataiehooxqkcayy\",\"additionalColumns\":\"datanllkyiqjtxvxgrf\",\"sourceRetryCount\":\"datavhivvoczsry\",\"sourceRetryWait\":\"datavii\",\"maxConcurrentConnections\":\"datajqpsbbxke\",\"disableMetricsCollection\":\"datamqnuyu\",\"\":{\"ekhfdlbcucwfc\":\"datan\",\"tkv\":\"dataugtcccydldavozmi\"}}") - .toObject(WarehouseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseSource model = new WarehouseSource().withSourceRetryCount("datavhivvoczsry") - .withSourceRetryWait("datavii") - .withMaxConcurrentConnections("datajqpsbbxke") - .withDisableMetricsCollection("datamqnuyu") - .withQueryTimeout("dataiehooxqkcayy") - .withAdditionalColumns("datanllkyiqjtxvxgrf") - .withSqlReaderQuery("datafkinidyjffpuuyk") - .withSqlReaderStoredProcedureName("databpn") - .withStoredProcedureParameters("datamlctnnsjc") - .withIsolationLevel("dataijvaxu") - .withPartitionOption("datazzp") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("dataaaxglxhbnqye") - .withPartitionUpperBound("datanlen") - .withPartitionLowerBound("dataykebtvnedcclpbh")); - 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 9becba9acfc0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.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.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\":\"cht\",\"typeProperties\":{\"schema\":\"dataveidzwnkbjqpzmod\",\"table\":\"dataqux\"},\"description\":\"apewz\",\"structure\":\"datalbxmynslcvynavwt\",\"schema\":\"datasmczroddcaqimodn\",\"linkedServiceName\":{\"referenceName\":\"jmjxkhbucmz\",\"parameters\":{\"godjfyplavb\":\"datakfjacktavce\",\"bnzot\":\"datasecedsoqwexi\",\"jqdfadgywyla\":\"dataikf\"}},\"parameters\":{\"tdgj\":{\"type\":\"Object\",\"defaultValue\":\"datavohy\"}},\"annotations\":[\"datatkogfggylyzolrv\",\"datas\",\"dataseqjteoa\"],\"folder\":{\"name\":\"mg\"},\"\":{\"tarirdzdgvqofl\":\"datarjybpvsoba\",\"mzqsx\":\"dataukegougxpyp\"}}") - .toObject(WarehouseTableDataset.class); - Assertions.assertEquals("apewz", model.description()); - Assertions.assertEquals("jmjxkhbucmz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("tdgj").type()); - Assertions.assertEquals("mg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseTableDataset model - = new WarehouseTableDataset().withDescription("apewz") - .withStructure("datalbxmynslcvynavwt") - .withSchema("datasmczroddcaqimodn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jmjxkhbucmz") - .withParameters(mapOf("godjfyplavb", "datakfjacktavce", "bnzot", "datasecedsoqwexi", "jqdfadgywyla", - "dataikf"))) - .withParameters(mapOf("tdgj", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datavohy"))) - .withAnnotations(Arrays.asList("datatkogfggylyzolrv", "datas", "dataseqjteoa")) - .withFolder(new DatasetFolder().withName("mg")) - .withSchemaTypePropertiesSchema("dataveidzwnkbjqpzmod") - .withTable("dataqux"); - model = BinaryData.fromObject(model).toObject(WarehouseTableDataset.class); - Assertions.assertEquals("apewz", model.description()); - Assertions.assertEquals("jmjxkhbucmz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("tdgj").type()); - Assertions.assertEquals("mg", 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 19517aa9ce75..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.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.WarehouseTableDatasetTypeProperties; - -public final class WarehouseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datamnxrxkulytivviyq\",\"table\":\"databxxyfozbgodywxj\"}") - .toObject(WarehouseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseTableDatasetTypeProperties model - = new WarehouseTableDatasetTypeProperties().withSchema("datamnxrxkulytivviyq") - .withTable("databxxyfozbgodywxj"); - 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 1b060f29b253..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\":\"datazuzxoeouf\"}") - .toObject(WebAnonymousAuthentication.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebAnonymousAuthentication model = new WebAnonymousAuthentication().withUrl("datazuzxoeouf"); - 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 8e95774d44bb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.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.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WebAnonymousAuthentication; -import com.azure.resourcemanager.datafactory.models.WebLinkedService; -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\":\"kd\",\"typeProperties\":{\"authenticationType\":\"Anonymous\",\"url\":\"datamffcttkprxypxt\"},\"connectVia\":{\"referenceName\":\"bafiqxomevketa\",\"parameters\":{\"toai\":\"datancxtnbut\",\"hzqgbaqvqeyla\":\"dataign\",\"yfnbxw\":\"datakobkrg\",\"szhxothfyifjufzl\":\"datalh\"}},\"description\":\"jsmtghm\",\"parameters\":{\"zprycixjgyamo\":{\"type\":\"SecureString\",\"defaultValue\":\"datacqsxyrywd\"},\"wqvckhmoudmca\":{\"type\":\"String\",\"defaultValue\":\"datawwykfytjkztdc\"}},\"annotations\":[\"datajfuvmjtxwazyvibn\",\"dataebffkgfiyd\",\"datarjmwaa\"],\"\":{\"jnaotavwmrfqt\":\"datakhptyhziqeo\",\"cyrwvoohmcw\":\"datagdfecju\"}}") - .toObject(WebLinkedService.class); - Assertions.assertEquals("bafiqxomevketa", model.connectVia().referenceName()); - Assertions.assertEquals("jsmtghm", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("zprycixjgyamo").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedService model = new WebLinkedService() - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("bafiqxomevketa") - .withParameters(mapOf("toai", "datancxtnbut", "hzqgbaqvqeyla", "dataign", "yfnbxw", "datakobkrg", - "szhxothfyifjufzl", "datalh"))) - .withDescription("jsmtghm") - .withParameters( - mapOf("zprycixjgyamo", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datacqsxyrywd"), - "wqvckhmoudmca", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datawwykfytjkztdc"))) - .withAnnotations(Arrays.asList("datajfuvmjtxwazyvibn", "dataebffkgfiyd", "datarjmwaa")) - .withTypeProperties(new WebAnonymousAuthentication().withUrl("datamffcttkprxypxt")); - model = BinaryData.fromObject(model).toObject(WebLinkedService.class); - Assertions.assertEquals("bafiqxomevketa", model.connectVia().referenceName()); - Assertions.assertEquals("jsmtghm", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("zprycixjgyamo").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 22ee24e2a01a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.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.WebBasicAuthentication; -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\":\"Basic\",\"url\":\"dataczypslfqgfwonb\"}") - .toObject(WebLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedServiceTypeProperties model = new WebBasicAuthentication().withUrl("dataczypslfqgfwonb"); - 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 134f31b43ad5..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\":\"ugjalmzpfyl\",\"additionalColumns\":\"datadbeanigozjrcx\",\"sourceRetryCount\":\"datavwwvznp\",\"sourceRetryWait\":\"datacizropzgjleecffb\",\"maxConcurrentConnections\":\"datakvb\",\"disableMetricsCollection\":\"datastqwnpegoupdq\",\"\":{\"xo\":\"datavdfaqcql\"}}") - .toObject(WebSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebSource model = new WebSource().withSourceRetryCount("datavwwvznp") - .withSourceRetryWait("datacizropzgjleecffb") - .withMaxConcurrentConnections("datakvb") - .withDisableMetricsCollection("datastqwnpegoupdq") - .withAdditionalColumns("datadbeanigozjrcx"); - 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 a73daf50cc9d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.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.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\":\"vsimalbmti\",\"typeProperties\":{\"index\":\"dataensjfl\",\"path\":\"dataftvvqtmvif\"},\"description\":\"gosnxajptcdfmzxa\",\"structure\":\"datalhm\",\"schema\":\"datacnnlsbnucqxhp\",\"linkedServiceName\":{\"referenceName\":\"q\",\"parameters\":{\"oxovlz\":\"datavejoy\",\"rykkxakruuptiicg\":\"datakleldkqdlqqhnt\"}},\"parameters\":{\"ek\":{\"type\":\"Int\",\"defaultValue\":\"dataxccnpxiemacmzt\"},\"rtb\":{\"type\":\"Object\",\"defaultValue\":\"datanbrysgktfmocnqbb\"},\"ohocqxugjxugdcr\":{\"type\":\"String\",\"defaultValue\":\"dataghfuifwxudy\"},\"bdmddg\":{\"type\":\"Float\",\"defaultValue\":\"dataplvhmhurosdjl\"}},\"annotations\":[\"datauyaorservpv\",\"datasorsbegcl\",\"dataex\"],\"folder\":{\"name\":\"qzyhzydyvtuqvi\"},\"\":{\"jx\":\"datansskydigt\",\"cwuzs\":\"dataocsvjekejchxzj\"}}") - .toObject(WebTableDataset.class); - Assertions.assertEquals("gosnxajptcdfmzxa", model.description()); - Assertions.assertEquals("q", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ek").type()); - Assertions.assertEquals("qzyhzydyvtuqvi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDataset model = new WebTableDataset().withDescription("gosnxajptcdfmzxa") - .withStructure("datalhm") - .withSchema("datacnnlsbnucqxhp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("q") - .withParameters(mapOf("oxovlz", "datavejoy", "rykkxakruuptiicg", "datakleldkqdlqqhnt"))) - .withParameters(mapOf("ek", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataxccnpxiemacmzt"), "rtb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanbrysgktfmocnqbb"), - "ohocqxugjxugdcr", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataghfuifwxudy"), - "bdmddg", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataplvhmhurosdjl"))) - .withAnnotations(Arrays.asList("datauyaorservpv", "datasorsbegcl", "dataex")) - .withFolder(new DatasetFolder().withName("qzyhzydyvtuqvi")) - .withIndex("dataensjfl") - .withPath("dataftvvqtmvif"); - model = BinaryData.fromObject(model).toObject(WebTableDataset.class); - Assertions.assertEquals("gosnxajptcdfmzxa", model.description()); - Assertions.assertEquals("q", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ek").type()); - Assertions.assertEquals("qzyhzydyvtuqvi", 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 cea5b1a4a598..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\":\"datayfyixecmasjnfgng\",\"path\":\"dataojeeyvfxbfckmo\"}") - .toObject(WebTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDatasetTypeProperties model - = new WebTableDatasetTypeProperties().withIndex("datayfyixecmasjnfgng").withPath("dataojeeyvfxbfckmo"); - 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 a75e6b976221..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.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.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\":\"lzy\",\"typeProperties\":{\"sources\":[{\"script\":\"gygnhrkombc\",\"schemaLinkedService\":{\"referenceName\":\"ajdopggor\",\"parameters\":{\"fyrlmwkptskwxj\":\"dataqtrotpvclp\",\"bputmgvmuyakml\":\"datavhxccbmkakmkoo\",\"flzqjimejtgzjxx\":\"dataktfowzkroyrdur\"}},\"name\":\"fejlzuqloiw\",\"description\":\"yyzivrmitcd\",\"dataset\":{\"referenceName\":\"hchwhrktjleif\",\"parameters\":{\"fnsmycjowly\":\"dataiplh\",\"zbuw\":\"datayzmudsqcmhnx\"}},\"linkedService\":{\"referenceName\":\"machbkv\",\"parameters\":{\"plehmumk\":\"databjrmvgo\",\"dpr\":\"datadllc\",\"goxsstci\":\"datanhkgq\",\"rrynjcwmhly\":\"datarak\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ukxrke\",\"datasetParameters\":\"datapequlrlzaudgjtf\",\"parameters\":{\"dwnhczbutoucgjti\":\"dataakkuc\",\"qqwwvgwks\":\"datajwayhi\",\"abv\":\"datavlizedvb\",\"wkhojqttbspvkhg\":\"datasrgekzyqxadyfhb\"},\"\":{\"sf\":\"datajsgyzstujrzxrk\",\"qwrldaxur\":\"datarlduyehiiittugy\"}}}],\"script\":\"azcsozjvx\",\"documentLocale\":\"ciggbnvtxof\"},\"description\":\"hoeamoeobdo\",\"annotations\":[\"datafpnimtwuuhaueg\",\"datakwmnfeub\"],\"folder\":{\"name\":\"yrkwfugiph\"}}") - .toObject(WranglingDataFlow.class); - Assertions.assertEquals("hoeamoeobdo", model.description()); - Assertions.assertEquals("yrkwfugiph", model.folder().name()); - Assertions.assertEquals("fejlzuqloiw", model.sources().get(0).name()); - Assertions.assertEquals("yyzivrmitcd", model.sources().get(0).description()); - Assertions.assertEquals("hchwhrktjleif", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("machbkv", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("ukxrke", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ajdopggor", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("gygnhrkombc", model.sources().get(0).script()); - Assertions.assertEquals("azcsozjvx", model.script()); - Assertions.assertEquals("ciggbnvtxof", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WranglingDataFlow model = new WranglingDataFlow().withDescription("hoeamoeobdo") - .withAnnotations(Arrays.asList("datafpnimtwuuhaueg", "datakwmnfeub")) - .withFolder(new DataFlowFolder().withName("yrkwfugiph")) - .withSources(Arrays.asList(new PowerQuerySource().withName("fejlzuqloiw") - .withDescription("yyzivrmitcd") - .withDataset(new DatasetReference().withReferenceName("hchwhrktjleif") - .withParameters(mapOf("fnsmycjowly", "dataiplh", "zbuw", "datayzmudsqcmhnx"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("machbkv") - .withParameters(mapOf("plehmumk", "databjrmvgo", "dpr", "datadllc", "goxsstci", "datanhkgq", - "rrynjcwmhly", "datarak"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ukxrke") - .withDatasetParameters("datapequlrlzaudgjtf") - .withParameters(mapOf("dwnhczbutoucgjti", "dataakkuc", "qqwwvgwks", "datajwayhi", "abv", - "datavlizedvb", "wkhojqttbspvkhg", "datasrgekzyqxadyfhb")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ajdopggor") - .withParameters(mapOf("fyrlmwkptskwxj", "dataqtrotpvclp", "bputmgvmuyakml", "datavhxccbmkakmkoo", - "flzqjimejtgzjxx", "dataktfowzkroyrdur"))) - .withScript("gygnhrkombc"))) - .withScript("azcsozjvx") - .withDocumentLocale("ciggbnvtxof"); - model = BinaryData.fromObject(model).toObject(WranglingDataFlow.class); - Assertions.assertEquals("hoeamoeobdo", model.description()); - Assertions.assertEquals("yrkwfugiph", model.folder().name()); - Assertions.assertEquals("fejlzuqloiw", model.sources().get(0).name()); - Assertions.assertEquals("yyzivrmitcd", model.sources().get(0).description()); - Assertions.assertEquals("hchwhrktjleif", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("machbkv", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("ukxrke", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ajdopggor", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("gygnhrkombc", model.sources().get(0).script()); - Assertions.assertEquals("azcsozjvx", model.script()); - Assertions.assertEquals("ciggbnvtxof", 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 55c55db5cd79..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.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.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\":\"rcifflxqqn\",\"typeProperties\":{\"tableName\":\"datacowken\"},\"description\":\"tcuyuwgnyjdiuj\",\"structure\":\"datacwmlfz\",\"schema\":\"dataibfmcoxbktu\",\"linkedServiceName\":{\"referenceName\":\"jkuf\",\"parameters\":{\"mnobbai\":\"datadgnmei\",\"zaisfofg\":\"datacfbfy\",\"ifmyzb\":\"datamrkm\"}},\"parameters\":{\"lptbdponhblqi\":{\"type\":\"SecureString\",\"defaultValue\":\"datahcmt\"},\"bpcwtwtrchkcmru\":{\"type\":\"Array\",\"defaultValue\":\"datauqfpzjz\"}},\"annotations\":[\"dataesqsqmie\",\"dataxipwqchfpt\",\"datakkvjjl\"],\"folder\":{\"name\":\"cu\"},\"\":{\"xpxxizchmbuzg\":\"dataqokbgumuej\",\"fsu\":\"datanrkjkng\",\"zlsbufn\":\"dataaybh\",\"zmzuicsggsxznbp\":\"databvcntpoeeytrsl\"}}") - .toObject(XeroObjectDataset.class); - Assertions.assertEquals("tcuyuwgnyjdiuj", model.description()); - Assertions.assertEquals("jkuf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("lptbdponhblqi").type()); - Assertions.assertEquals("cu", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroObjectDataset model = new XeroObjectDataset().withDescription("tcuyuwgnyjdiuj") - .withStructure("datacwmlfz") - .withSchema("dataibfmcoxbktu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jkuf") - .withParameters(mapOf("mnobbai", "datadgnmei", "zaisfofg", "datacfbfy", "ifmyzb", "datamrkm"))) - .withParameters(mapOf("lptbdponhblqi", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datahcmt"), - "bpcwtwtrchkcmru", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datauqfpzjz"))) - .withAnnotations(Arrays.asList("dataesqsqmie", "dataxipwqchfpt", "datakkvjjl")) - .withFolder(new DatasetFolder().withName("cu")) - .withTableName("datacowken"); - model = BinaryData.fromObject(model).toObject(XeroObjectDataset.class); - Assertions.assertEquals("tcuyuwgnyjdiuj", model.description()); - Assertions.assertEquals("jkuf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("lptbdponhblqi").type()); - Assertions.assertEquals("cu", 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 781d76e1e992..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\":\"jlzkymcgtbpbfbgf\",\"query\":\"databhydcq\",\"queryTimeout\":\"dataq\",\"additionalColumns\":\"dataozmbapjvbzablmp\",\"sourceRetryCount\":\"dataqwlvsefvkxxd\",\"sourceRetryWait\":\"databnqmhrw\",\"maxConcurrentConnections\":\"dataexwgrflqb\",\"disableMetricsCollection\":\"dataxudsmdg\",\"\":{\"tjd\":\"datak\",\"ficzw\":\"datadasomxwsflylols\"}}") - .toObject(XeroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroSource model = new XeroSource().withSourceRetryCount("dataqwlvsefvkxxd") - .withSourceRetryWait("databnqmhrw") - .withMaxConcurrentConnections("dataexwgrflqb") - .withDisableMetricsCollection("dataxudsmdg") - .withQueryTimeout("dataq") - .withAdditionalColumns("dataozmbapjvbzablmp") - .withQuery("databhydcq"); - 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 dba260f24de4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.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.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\":\"tpfcudvafnbfbqv\",\"typeProperties\":{\"location\":{\"type\":\"i\",\"folderPath\":\"datazlrz\",\"fileName\":\"dataasd\",\"\":{\"tgkiqlarh\":\"datamjqmv\",\"ffzjwztsmpchggry\":\"datatwvcazekdzd\"}},\"encodingName\":\"datagfyatig\",\"nullValue\":\"datafrrkdknczgorywnv\",\"compression\":{\"type\":\"datatv\",\"level\":\"dataevdlh\",\"\":{\"bpyhssrlvkpkp\":\"dataka\",\"ccebxxopyicyvspe\":\"dataocm\",\"hgajkrdy\":\"datalhwyykgvrccpumd\"}}},\"description\":\"qnxhgk\",\"structure\":\"datadwzejp\",\"schema\":\"datawz\",\"linkedServiceName\":{\"referenceName\":\"cmbpwdlu\",\"parameters\":{\"ffbvtzldzchub\":\"dataprldidwm\"}},\"parameters\":{\"hfrbzakpjt\":{\"type\":\"Object\",\"defaultValue\":\"datazuvigvl\"},\"qxynqj\":{\"type\":\"Array\",\"defaultValue\":\"dataaqpojpsucmximc\"}},\"annotations\":[\"datatkyvscbgn\",\"datac\",\"datausxhircpg\",\"datavsvkkjbjolpyo\"],\"folder\":{\"name\":\"vuznadvhm\"},\"\":{\"owxxbh\":\"dataoi\",\"ksikawanvmwdv\":\"datapsyioqemqwtqszzg\",\"mpnbnfgyweoj\":\"datajqcrbk\",\"yawkch\":\"dataepgcmahiwf\"}}") - .toObject(XmlDataset.class); - Assertions.assertEquals("qnxhgk", model.description()); - Assertions.assertEquals("cmbpwdlu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("hfrbzakpjt").type()); - Assertions.assertEquals("vuznadvhm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDataset model = new XmlDataset().withDescription("qnxhgk") - .withStructure("datadwzejp") - .withSchema("datawz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("cmbpwdlu") - .withParameters(mapOf("ffbvtzldzchub", "dataprldidwm"))) - .withParameters(mapOf("hfrbzakpjt", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datazuvigvl"), "qxynqj", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataaqpojpsucmximc"))) - .withAnnotations(Arrays.asList("datatkyvscbgn", "datac", "datausxhircpg", "datavsvkkjbjolpyo")) - .withFolder(new DatasetFolder().withName("vuznadvhm")) - .withLocation(new DatasetLocation().withFolderPath("datazlrz") - .withFileName("dataasd") - .withAdditionalProperties(mapOf("type", "i"))) - .withEncodingName("datagfyatig") - .withNullValue("datafrrkdknczgorywnv") - .withCompression( - new DatasetCompression().withType("datatv").withLevel("dataevdlh").withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(XmlDataset.class); - Assertions.assertEquals("qnxhgk", model.description()); - Assertions.assertEquals("cmbpwdlu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("hfrbzakpjt").type()); - Assertions.assertEquals("vuznadvhm", 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 6f0d55b6a052..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\":\"pitskshfyftti\",\"folderPath\":\"dataep\",\"fileName\":\"datahju\",\"\":{\"hblivwehsudym\":\"datagbggcjx\",\"m\":\"datambhdo\",\"xexatmdmnrs\":\"datangkqlgxzduvxd\"}},\"encodingName\":\"dataxo\",\"nullValue\":\"dataxyddmiplois\",\"compression\":{\"type\":\"datazsoxznntwgk\",\"level\":\"dataoh\",\"\":{\"bdjzghximkg\":\"datapzupzwwy\",\"ot\":\"datamxpqkjnpyriwn\"}}}") - .toObject(XmlDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDatasetTypeProperties model = new XmlDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("dataep") - .withFileName("datahju") - .withAdditionalProperties(mapOf("type", "pitskshfyftti"))) - .withEncodingName("dataxo") - .withNullValue("dataxyddmiplois") - .withCompression(new DatasetCompression().withType("datazsoxznntwgk") - .withLevel("dataoh") - .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 3ca3373f1ce1..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\":\"rxenp\",\"compressionProperties\":{\"type\":\"eqotvocjktihnwyv\",\"\":{\"dmtfnbv\":\"datag\",\"cd\":\"dataxqqlbmiqbdiahj\",\"yn\":\"datapdlxwsfddyqp\",\"lj\":\"dataowmjsur\"}},\"validationMode\":\"datasjhh\",\"detectDataType\":\"datawizqvgadolep\",\"namespaces\":\"datalzjhaqxfams\",\"namespacePrefixes\":\"datacesvvrabbyfhzy\",\"\":{\"bwxhlqioqh\":\"datanlbrcydwrcjta\"}}") - .toObject(XmlReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlReadSettings model = new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "eqotvocjktihnwyv"))) - .withValidationMode("datasjhh") - .withDetectDataType("datawizqvgadolep") - .withNamespaces("datalzjhaqxfams") - .withNamespacePrefixes("datacesvvrabbyfhzy"); - 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 d861b294dda7..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\":\"bijoehhqwwsgqzi\",\"storeSettings\":{\"type\":\"awectzjjgvcbtq\",\"maxConcurrentConnections\":\"datapnkyvujhejy\",\"disableMetricsCollection\":\"datavlguysbrn\",\"\":{\"jshtcfnb\":\"dataqhmuqyzxkormr\"}},\"formatSettings\":{\"type\":\"zuaxtbr\",\"compressionProperties\":{\"type\":\"hxpdqoehub\",\"\":{\"glynbqpeo\":\"datazxnuxamxikhrxi\",\"wtihtnywgtsodnx\":\"dataecbog\"}},\"validationMode\":\"datarjtwjimcfrhtz\",\"detectDataType\":\"datauvoaxqo\",\"namespaces\":\"datalp\",\"namespacePrefixes\":\"datapbzyqbggxcyra\",\"\":{\"wxslzqlgxxbnrur\":\"dataurxlp\",\"upckhfbmdemohlsh\":\"datanwbjjy\",\"mwaej\":\"dataaaoofltbsay\",\"gabsfjrjzdq\":\"datazkqcmddcftnxyrtq\"}},\"additionalColumns\":\"datagorvgdibepg\",\"sourceRetryCount\":\"dataoetwjssyazm\",\"sourceRetryWait\":\"dataux\",\"maxConcurrentConnections\":\"dataokckxfk\",\"disableMetricsCollection\":\"dataqkby\",\"\":{\"gxlyvebvxjguwts\":\"dataeawucmqfurbtb\",\"fzv\":\"dataijwiznb\",\"ljjawsaskullvt\":\"dataxtykjrdxlximvr\"}}") - .toObject(XmlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlSource model = new XmlSource().withSourceRetryCount("dataoetwjssyazm") - .withSourceRetryWait("dataux") - .withMaxConcurrentConnections("dataokckxfk") - .withDisableMetricsCollection("dataqkby") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datapnkyvujhejy") - .withDisableMetricsCollection("datavlguysbrn") - .withAdditionalProperties(mapOf("type", "awectzjjgvcbtq"))) - .withFormatSettings(new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "hxpdqoehub"))) - .withValidationMode("datarjtwjimcfrhtz") - .withDetectDataType("datauvoaxqo") - .withNamespaces("datalp") - .withNamespacePrefixes("datapbzyqbggxcyra")) - .withAdditionalColumns("datagorvgdibepg"); - 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 cee283072f69..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\":\"puilf\",\"preserveZipFileNameAsFolder\":\"datafnd\",\"\":{\"fxoffckejxomngu\":\"databcgdp\",\"mgn\":\"datawxxynttrnksvx\",\"hmwfoummdomv\":\"dataiycxuyzrnngnm\"}}") - .toObject(ZipDeflateReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZipDeflateReadSettings model = new ZipDeflateReadSettings().withPreserveZipFileNameAsFolder("datafnd"); - 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 146d554f0e76..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.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.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\":\"ma\",\"typeProperties\":{\"tableName\":\"dataldic\"},\"description\":\"fwl\",\"structure\":\"dataitvkyahfoyfzoi\",\"schema\":\"dataaeprevcjukfal\",\"linkedServiceName\":{\"referenceName\":\"ceechc\",\"parameters\":{\"nylfhicrjriyb\":\"dataqbeqpucnu\",\"fsnqocybrh\":\"databydrlqllb\",\"oqjfeamzkuxdgpks\":\"datagiknrlugseiqb\"}},\"parameters\":{\"ldrqqv\":{\"type\":\"Int\",\"defaultValue\":\"datanvnj\"},\"xlxedthfwlnvq\":{\"type\":\"Object\",\"defaultValue\":\"datausq\"},\"blnlmpuyypaggpai\":{\"type\":\"Object\",\"defaultValue\":\"datayfi\"},\"zwloqrmgdhy\":{\"type\":\"Int\",\"defaultValue\":\"datae\"}},\"annotations\":[\"datavlxtywukhjdspl\",\"dataitxrrgkwiyoyh\"],\"folder\":{\"name\":\"vxcodwkwoytcac\"},\"\":{\"lfwfiikqcdnzs\":\"dataizfue\",\"gne\":\"dataiu\",\"mcrxlyzoaho\":\"datao\"}}") - .toObject(ZohoObjectDataset.class); - Assertions.assertEquals("fwl", model.description()); - Assertions.assertEquals("ceechc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ldrqqv").type()); - Assertions.assertEquals("vxcodwkwoytcac", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoObjectDataset model = new ZohoObjectDataset().withDescription("fwl") - .withStructure("dataitvkyahfoyfzoi") - .withSchema("dataaeprevcjukfal") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ceechc") - .withParameters(mapOf("nylfhicrjriyb", "dataqbeqpucnu", "fsnqocybrh", "databydrlqllb", - "oqjfeamzkuxdgpks", "datagiknrlugseiqb"))) - .withParameters(mapOf("ldrqqv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanvnj"), "xlxedthfwlnvq", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datausq"), - "blnlmpuyypaggpai", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datayfi"), "zwloqrmgdhy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datae"))) - .withAnnotations(Arrays.asList("datavlxtywukhjdspl", "dataitxrrgkwiyoyh")) - .withFolder(new DatasetFolder().withName("vxcodwkwoytcac")) - .withTableName("dataldic"); - model = BinaryData.fromObject(model).toObject(ZohoObjectDataset.class); - Assertions.assertEquals("fwl", model.description()); - Assertions.assertEquals("ceechc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ldrqqv").type()); - Assertions.assertEquals("vxcodwkwoytcac", 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 465200cdf7be..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\":\"lnxwdppi\",\"query\":\"dataeqdj\",\"queryTimeout\":\"datavtwfbqxoqnv\",\"additionalColumns\":\"datahd\",\"sourceRetryCount\":\"datanntoloezpt\",\"sourceRetryWait\":\"datarpzvimx\",\"maxConcurrentConnections\":\"dataxcaczc\",\"disableMetricsCollection\":\"dataomrpucytj\",\"\":{\"nxdyskyrhsijx\":\"dataqwyw\"}}") - .toObject(ZohoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoSource model = new ZohoSource().withSourceRetryCount("datanntoloezpt") - .withSourceRetryWait("datarpzvimx") - .withMaxConcurrentConnections("dataxcaczc") - .withDisableMetricsCollection("dataomrpucytj") - .withQueryTimeout("datavtwfbqxoqnv") - .withAdditionalColumns("datahd") - .withQuery("dataeqdj"); - model = BinaryData.fromObject(model).toObject(ZohoSource.class); - } -}